fhir-mongoid-models 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.editorconfig +8 -0
- data/.github/CODEOWNERS +2 -0
- data/.github/workflows/build.yml +54 -0
- data/.gitignore +15 -0
- data/.rspec +3 -0
- data/.rubocop.yml +20 -0
- data/Gemfile +6 -0
- data/LICENSE +121 -0
- data/README.md +23 -0
- data/Rakefile +6 -0
- data/app/models/cqm/cql_statement_dependency.rb +63 -0
- data/app/models/cqm/data_element.rb +41 -0
- data/app/models/cqm/logic_library.rb +62 -0
- data/app/models/cqm/measure.rb +120 -0
- data/app/models/cqm/measure_package.rb +10 -0
- data/app/models/cqm/patient.rb +54 -0
- data/app/models/cqm/population_set.rb +311 -0
- data/app/models/fhir/account.rb +84 -0
- data/app/models/fhir/account_coverage.rb +35 -0
- data/app/models/fhir/account_guarantor.rb +40 -0
- data/app/models/fhir/account_status.rb +27 -0
- data/app/models/fhir/action_cardinality_behavior.rb +27 -0
- data/app/models/fhir/action_condition_kind.rb +27 -0
- data/app/models/fhir/action_grouping_behavior.rb +27 -0
- data/app/models/fhir/action_participant_type.rb +27 -0
- data/app/models/fhir/action_precheck_behavior.rb +27 -0
- data/app/models/fhir/action_relationship_type.rb +27 -0
- data/app/models/fhir/action_required_behavior.rb +27 -0
- data/app/models/fhir/action_selection_behavior.rb +27 -0
- data/app/models/fhir/activity_definition.rb +337 -0
- data/app/models/fhir/activity_definition_dynamic_value.rb +35 -0
- data/app/models/fhir/activity_definition_kind.rb +27 -0
- data/app/models/fhir/activity_definition_participant.rb +35 -0
- data/app/models/fhir/activity_participant_type.rb +27 -0
- data/app/models/fhir/address.rb +94 -0
- data/app/models/fhir/address_type.rb +27 -0
- data/app/models/fhir/address_use.rb +27 -0
- data/app/models/fhir/administrative_gender.rb +27 -0
- data/app/models/fhir/adverse_event.rb +131 -0
- data/app/models/fhir/adverse_event_actuality.rb +27 -0
- data/app/models/fhir/adverse_event_suspect_entity.rb +33 -0
- data/app/models/fhir/adverse_event_suspect_entity_causality.rb +45 -0
- data/app/models/fhir/age.rb +23 -0
- data/app/models/fhir/aggregation_mode.rb +27 -0
- data/app/models/fhir/allergy_intolerance.rb +140 -0
- data/app/models/fhir/allergy_intolerance_category.rb +27 -0
- data/app/models/fhir/allergy_intolerance_criticality.rb +27 -0
- data/app/models/fhir/allergy_intolerance_reaction.rb +64 -0
- data/app/models/fhir/allergy_intolerance_severity.rb +27 -0
- data/app/models/fhir/allergy_intolerance_type.rb +27 -0
- data/app/models/fhir/annotation.rb +49 -0
- data/app/models/fhir/appointment.rb +151 -0
- data/app/models/fhir/appointment_participant.rb +52 -0
- data/app/models/fhir/appointment_response.rb +71 -0
- data/app/models/fhir/appointment_status.rb +27 -0
- data/app/models/fhir/assertion_direction_type.rb +27 -0
- data/app/models/fhir/assertion_operator_type.rb +27 -0
- data/app/models/fhir/assertion_response_types.rb +27 -0
- data/app/models/fhir/attachment.rb +79 -0
- data/app/models/fhir/audit_event.rb +86 -0
- data/app/models/fhir/audit_event_action.rb +27 -0
- data/app/models/fhir/audit_event_agent.rb +89 -0
- data/app/models/fhir/audit_event_agent_network.rb +37 -0
- data/app/models/fhir/audit_event_agent_network_type.rb +27 -0
- data/app/models/fhir/audit_event_entity.rb +74 -0
- data/app/models/fhir/audit_event_entity_detail.rb +44 -0
- data/app/models/fhir/audit_event_outcome.rb +27 -0
- data/app/models/fhir/audit_event_source.rb +40 -0
- data/app/models/fhir/backbone_element.rb +28 -0
- data/app/models/fhir/basic.rb +50 -0
- data/app/models/fhir/binary.rb +42 -0
- data/app/models/fhir/binding_strength.rb +27 -0
- data/app/models/fhir/biologically_derived_product.rb +84 -0
- data/app/models/fhir/biologically_derived_product_category.rb +27 -0
- data/app/models/fhir/biologically_derived_product_collection.rb +45 -0
- data/app/models/fhir/biologically_derived_product_manipulation.rb +42 -0
- data/app/models/fhir/biologically_derived_product_processing.rb +52 -0
- data/app/models/fhir/biologically_derived_product_status.rb +27 -0
- data/app/models/fhir/biologically_derived_product_storage.rb +49 -0
- data/app/models/fhir/biologically_derived_product_storage_scale.rb +27 -0
- data/app/models/fhir/body_structure.rb +67 -0
- data/app/models/fhir/bundle.rb +64 -0
- data/app/models/fhir/bundle_entry.rb +55 -0
- data/app/models/fhir/bundle_entry_request.rb +65 -0
- data/app/models/fhir/bundle_entry_response.rb +56 -0
- data/app/models/fhir/bundle_entry_search.rb +37 -0
- data/app/models/fhir/bundle_link.rb +37 -0
- data/app/models/fhir/bundle_type.rb +27 -0
- data/app/models/fhir/capability_statement.rb +204 -0
- data/app/models/fhir/capability_statement_document.rb +44 -0
- data/app/models/fhir/capability_statement_implementation.rb +42 -0
- data/app/models/fhir/capability_statement_kind.rb +27 -0
- data/app/models/fhir/capability_statement_messaging.rb +47 -0
- data/app/models/fhir/capability_statement_messaging_endpoint.rb +35 -0
- data/app/models/fhir/capability_statement_messaging_supported_message.rb +37 -0
- data/app/models/fhir/capability_statement_rest.rb +72 -0
- data/app/models/fhir/capability_statement_rest_interaction.rb +37 -0
- data/app/models/fhir/capability_statement_rest_resource.rb +148 -0
- data/app/models/fhir/capability_statement_rest_resource_interaction.rb +37 -0
- data/app/models/fhir/capability_statement_rest_resource_operation.rb +44 -0
- data/app/models/fhir/capability_statement_rest_resource_search_param.rb +51 -0
- data/app/models/fhir/capability_statement_rest_security.rb +42 -0
- data/app/models/fhir/capability_statement_software.rb +44 -0
- data/app/models/fhir/care_plan.rb +158 -0
- data/app/models/fhir/care_plan_activity.rb +48 -0
- data/app/models/fhir/care_plan_activity_detail.rb +143 -0
- data/app/models/fhir/care_plan_activity_kind.rb +27 -0
- data/app/models/fhir/care_plan_activity_status.rb +27 -0
- data/app/models/fhir/care_plan_intent.rb +27 -0
- data/app/models/fhir/care_plan_status.rb +27 -0
- data/app/models/fhir/care_team.rb +92 -0
- data/app/models/fhir/care_team_participant.rb +43 -0
- data/app/models/fhir/care_team_status.rb +27 -0
- data/app/models/fhir/catalog_entry.rb +96 -0
- data/app/models/fhir/catalog_entry_related_entry.rb +35 -0
- data/app/models/fhir/catalog_entry_relation_type.rb +27 -0
- data/app/models/fhir/charge_item.rb +188 -0
- data/app/models/fhir/charge_item_definition.rb +175 -0
- data/app/models/fhir/charge_item_definition_applicability.rb +44 -0
- data/app/models/fhir/charge_item_definition_price_component_type.rb +27 -0
- data/app/models/fhir/charge_item_definition_property_group.rb +33 -0
- data/app/models/fhir/charge_item_definition_property_group_price_component.rb +47 -0
- data/app/models/fhir/charge_item_performer.rb +33 -0
- data/app/models/fhir/charge_item_status.rb +27 -0
- data/app/models/fhir/claim.rb +164 -0
- data/app/models/fhir/claim_accident.rb +45 -0
- data/app/models/fhir/claim_care_team.rb +52 -0
- data/app/models/fhir/claim_diagnosis.rb +55 -0
- data/app/models/fhir/claim_insurance.rb +69 -0
- data/app/models/fhir/claim_item.rb +169 -0
- data/app/models/fhir/claim_item_detail.rb +87 -0
- data/app/models/fhir/claim_item_detail_sub_detail.rb +82 -0
- data/app/models/fhir/claim_payee.rb +33 -0
- data/app/models/fhir/claim_procedure.rb +57 -0
- data/app/models/fhir/claim_related.rb +38 -0
- data/app/models/fhir/claim_response.rb +170 -0
- data/app/models/fhir/claim_response_add_item.rb +152 -0
- data/app/models/fhir/claim_response_add_item_detail.rb +75 -0
- data/app/models/fhir/claim_response_add_item_detail_sub_detail.rb +70 -0
- data/app/models/fhir/claim_response_error.rb +49 -0
- data/app/models/fhir/claim_response_insurance.rb +54 -0
- data/app/models/fhir/claim_response_item.rb +50 -0
- data/app/models/fhir/claim_response_item_adjudication.rb +45 -0
- data/app/models/fhir/claim_response_item_detail.rb +50 -0
- data/app/models/fhir/claim_response_item_detail_sub_detail.rb +45 -0
- data/app/models/fhir/claim_response_payment.rb +55 -0
- data/app/models/fhir/claim_response_process_note.rb +49 -0
- data/app/models/fhir/claim_response_status.rb +27 -0
- data/app/models/fhir/claim_response_total.rb +33 -0
- data/app/models/fhir/claim_status.rb +27 -0
- data/app/models/fhir/claim_supporting_info.rb +86 -0
- data/app/models/fhir/clinical_impression.rb +143 -0
- data/app/models/fhir/clinical_impression_finding.rb +40 -0
- data/app/models/fhir/clinical_impression_investigation.rb +33 -0
- data/app/models/fhir/clinical_impression_status.rb +27 -0
- data/app/models/fhir/code_search_support.rb +27 -0
- data/app/models/fhir/code_system.rb +191 -0
- data/app/models/fhir/code_system_concept.rb +59 -0
- data/app/models/fhir/code_system_concept_designation.rb +42 -0
- data/app/models/fhir/code_system_concept_property.rb +77 -0
- data/app/models/fhir/code_system_content_mode.rb +27 -0
- data/app/models/fhir/code_system_filter.rb +54 -0
- data/app/models/fhir/code_system_hierarchy_meaning.rb +27 -0
- data/app/models/fhir/code_system_property.rb +51 -0
- data/app/models/fhir/codeable_concept.rb +35 -0
- data/app/models/fhir/coding.rb +58 -0
- data/app/models/fhir/communication.rb +156 -0
- data/app/models/fhir/communication_payload.rb +40 -0
- data/app/models/fhir/communication_priority.rb +27 -0
- data/app/models/fhir/communication_request.rb +148 -0
- data/app/models/fhir/communication_request_payload.rb +40 -0
- data/app/models/fhir/communication_request_status.rb +27 -0
- data/app/models/fhir/communication_status.rb +27 -0
- data/app/models/fhir/compartment_code.rb +27 -0
- data/app/models/fhir/compartment_definition.rb +115 -0
- data/app/models/fhir/compartment_definition_resource.rb +47 -0
- data/app/models/fhir/compartment_type.rb +27 -0
- data/app/models/fhir/composition.rb +106 -0
- data/app/models/fhir/composition_attestation_mode.rb +27 -0
- data/app/models/fhir/composition_attester.rb +42 -0
- data/app/models/fhir/composition_event.rb +38 -0
- data/app/models/fhir/composition_relates_to.rb +40 -0
- data/app/models/fhir/composition_section.rb +77 -0
- data/app/models/fhir/composition_status.rb +27 -0
- data/app/models/fhir/concept_map.rb +153 -0
- data/app/models/fhir/concept_map_equivalence.rb +27 -0
- data/app/models/fhir/concept_map_group.rb +61 -0
- data/app/models/fhir/concept_map_group_element.rb +42 -0
- data/app/models/fhir/concept_map_group_element_target.rb +61 -0
- data/app/models/fhir/concept_map_group_element_target_depends_on.rb +51 -0
- data/app/models/fhir/concept_map_group_unmapped.rb +51 -0
- data/app/models/fhir/concept_map_group_unmapped_mode.rb +27 -0
- data/app/models/fhir/condition.rb +158 -0
- data/app/models/fhir/condition_evidence.rb +33 -0
- data/app/models/fhir/condition_stage.rb +38 -0
- data/app/models/fhir/conditional_delete_status.rb +27 -0
- data/app/models/fhir/conditional_read_status.rb +27 -0
- data/app/models/fhir/consent.rb +97 -0
- data/app/models/fhir/consent_data_meaning.rb +27 -0
- data/app/models/fhir/consent_policy.rb +37 -0
- data/app/models/fhir/consent_provision.rb +80 -0
- data/app/models/fhir/consent_provision_actor.rb +33 -0
- data/app/models/fhir/consent_provision_data.rb +35 -0
- data/app/models/fhir/consent_provision_type.rb +27 -0
- data/app/models/fhir/consent_state.rb +27 -0
- data/app/models/fhir/consent_verification.rb +42 -0
- data/app/models/fhir/constraint_severity.rb +27 -0
- data/app/models/fhir/contact_detail.rb +35 -0
- data/app/models/fhir/contact_point.rb +56 -0
- data/app/models/fhir/contact_point_system.rb +27 -0
- data/app/models/fhir/contact_point_use.rb +27 -0
- data/app/models/fhir/contract.rb +219 -0
- data/app/models/fhir/contract_content_definition.rb +59 -0
- data/app/models/fhir/contract_friendly.rb +33 -0
- data/app/models/fhir/contract_legal.rb +33 -0
- data/app/models/fhir/contract_publication_status.rb +27 -0
- data/app/models/fhir/contract_rule.rb +33 -0
- data/app/models/fhir/contract_signer.rb +38 -0
- data/app/models/fhir/contract_status.rb +27 -0
- data/app/models/fhir/contract_term.rb +92 -0
- data/app/models/fhir/contract_term_action.rb +177 -0
- data/app/models/fhir/contract_term_action_subject.rb +33 -0
- data/app/models/fhir/contract_term_asset.rb +112 -0
- data/app/models/fhir/contract_term_asset_context.rb +40 -0
- data/app/models/fhir/contract_term_asset_valued_item.rb +118 -0
- data/app/models/fhir/contract_term_offer.rb +85 -0
- data/app/models/fhir/contract_term_offer_answer.rb +99 -0
- data/app/models/fhir/contract_term_offer_party.rb +33 -0
- data/app/models/fhir/contract_term_security_label.rb +48 -0
- data/app/models/fhir/contributor.rb +42 -0
- data/app/models/fhir/contributor_type.rb +27 -0
- data/app/models/fhir/count.rb +23 -0
- data/app/models/fhir/coverage.rb +120 -0
- data/app/models/fhir/coverage_class.rb +42 -0
- data/app/models/fhir/coverage_cost_to_beneficiary.rb +43 -0
- data/app/models/fhir/coverage_cost_to_beneficiary_exception.rb +33 -0
- data/app/models/fhir/coverage_eligibility_request.rb +109 -0
- data/app/models/fhir/coverage_eligibility_request_insurance.rb +42 -0
- data/app/models/fhir/coverage_eligibility_request_item.rb +78 -0
- data/app/models/fhir/coverage_eligibility_request_item_diagnosis.rb +33 -0
- data/app/models/fhir/coverage_eligibility_request_supporting_info.rb +42 -0
- data/app/models/fhir/coverage_eligibility_response.rb +120 -0
- data/app/models/fhir/coverage_eligibility_response_error.rb +28 -0
- data/app/models/fhir/coverage_eligibility_response_insurance.rb +45 -0
- data/app/models/fhir/coverage_eligibility_response_insurance_item.rb +103 -0
- data/app/models/fhir/coverage_eligibility_response_insurance_item_benefit.rb +66 -0
- data/app/models/fhir/coverage_status.rb +27 -0
- data/app/models/fhir/currency_code.rb +27 -0
- data/app/models/fhir/data_requirement.rb +82 -0
- data/app/models/fhir/data_requirement_code_filter.rb +49 -0
- data/app/models/fhir/data_requirement_date_filter.rb +54 -0
- data/app/models/fhir/data_requirement_sort.rb +37 -0
- data/app/models/fhir/day_of_week.rb +27 -0
- data/app/models/fhir/days_of_week.rb +27 -0
- data/app/models/fhir/detected_issue.rb +98 -0
- data/app/models/fhir/detected_issue_evidence.rb +33 -0
- data/app/models/fhir/detected_issue_mitigation.rb +40 -0
- data/app/models/fhir/detected_issue_severity.rb +27 -0
- data/app/models/fhir/detected_issue_status.rb +27 -0
- data/app/models/fhir/device.rb +173 -0
- data/app/models/fhir/device_definition.rb +151 -0
- data/app/models/fhir/device_definition_capability.rb +33 -0
- data/app/models/fhir/device_definition_device_name.rb +37 -0
- data/app/models/fhir/device_definition_material.rb +42 -0
- data/app/models/fhir/device_definition_property.rb +38 -0
- data/app/models/fhir/device_definition_specialization.rb +37 -0
- data/app/models/fhir/device_definition_udi_device_identifier.rb +44 -0
- data/app/models/fhir/device_device_name.rb +37 -0
- data/app/models/fhir/device_metric.rb +79 -0
- data/app/models/fhir/device_metric_calibration.rb +44 -0
- data/app/models/fhir/device_metric_calibration_state.rb +27 -0
- data/app/models/fhir/device_metric_calibration_type.rb +27 -0
- data/app/models/fhir/device_metric_category.rb +27 -0
- data/app/models/fhir/device_metric_color.rb +27 -0
- data/app/models/fhir/device_metric_operational_status.rb +27 -0
- data/app/models/fhir/device_name_type.rb +27 -0
- data/app/models/fhir/device_property.rb +38 -0
- data/app/models/fhir/device_request.rb +178 -0
- data/app/models/fhir/device_request_parameter.rb +50 -0
- data/app/models/fhir/device_request_status.rb +27 -0
- data/app/models/fhir/device_specialization.rb +35 -0
- data/app/models/fhir/device_udi_carrier.rb +65 -0
- data/app/models/fhir/device_use_statement.rb +104 -0
- data/app/models/fhir/device_use_statement_status.rb +27 -0
- data/app/models/fhir/device_version.rb +40 -0
- data/app/models/fhir/diagnostic_report.rb +126 -0
- data/app/models/fhir/diagnostic_report_media.rb +35 -0
- data/app/models/fhir/diagnostic_report_status.rb +27 -0
- data/app/models/fhir/discriminator_type.rb +27 -0
- data/app/models/fhir/distance.rb +23 -0
- data/app/models/fhir/document_confidentiality.rb +27 -0
- data/app/models/fhir/document_manifest.rb +91 -0
- data/app/models/fhir/document_manifest_related.rb +33 -0
- data/app/models/fhir/document_mode.rb +27 -0
- data/app/models/fhir/document_reference.rb +111 -0
- data/app/models/fhir/document_reference_content.rb +33 -0
- data/app/models/fhir/document_reference_context.rb +58 -0
- data/app/models/fhir/document_reference_relates_to.rb +35 -0
- data/app/models/fhir/document_reference_status.rb +27 -0
- data/app/models/fhir/document_relationship_type.rb +27 -0
- data/app/models/fhir/domain_resource.rb +43 -0
- data/app/models/fhir/dosage.rb +101 -0
- data/app/models/fhir/dosage_dose_and_rate.rb +53 -0
- data/app/models/fhir/duration.rb +23 -0
- data/app/models/fhir/effect_evidence_synthesis.rb +210 -0
- data/app/models/fhir/effect_evidence_synthesis_certainty.rb +38 -0
- data/app/models/fhir/effect_evidence_synthesis_certainty_certainty_subcomponent.rb +38 -0
- data/app/models/fhir/effect_evidence_synthesis_effect_estimate.rb +57 -0
- data/app/models/fhir/effect_evidence_synthesis_effect_estimate_precision_estimate.rb +49 -0
- data/app/models/fhir/effect_evidence_synthesis_results_by_exposure.rb +47 -0
- data/app/models/fhir/effect_evidence_synthesis_sample_size.rb +44 -0
- data/app/models/fhir/element.rb +37 -0
- data/app/models/fhir/element_definition.rb +1205 -0
- data/app/models/fhir/element_definition_base.rb +44 -0
- data/app/models/fhir/element_definition_binding.rb +44 -0
- data/app/models/fhir/element_definition_constraint.rb +72 -0
- data/app/models/fhir/element_definition_example.rb +318 -0
- data/app/models/fhir/element_definition_mapping.rb +51 -0
- data/app/models/fhir/element_definition_slicing.rb +49 -0
- data/app/models/fhir/element_definition_slicing_discriminator.rb +37 -0
- data/app/models/fhir/element_definition_type.rb +47 -0
- data/app/models/fhir/eligibility_request_purpose.rb +27 -0
- data/app/models/fhir/eligibility_request_status.rb +27 -0
- data/app/models/fhir/eligibility_response_purpose.rb +27 -0
- data/app/models/fhir/eligibility_response_status.rb +27 -0
- data/app/models/fhir/enable_when_behavior.rb +27 -0
- data/app/models/fhir/encounter.rb +140 -0
- data/app/models/fhir/encounter_class_history.rb +33 -0
- data/app/models/fhir/encounter_diagnosis.rb +40 -0
- data/app/models/fhir/encounter_hospitalization.rb +68 -0
- data/app/models/fhir/encounter_location.rb +45 -0
- data/app/models/fhir/encounter_location_status.rb +27 -0
- data/app/models/fhir/encounter_participant.rb +38 -0
- data/app/models/fhir/encounter_status.rb +27 -0
- data/app/models/fhir/encounter_status_history.rb +35 -0
- data/app/models/fhir/endpoint.rb +94 -0
- data/app/models/fhir/endpoint_status.rb +27 -0
- data/app/models/fhir/enrollment_request.rb +62 -0
- data/app/models/fhir/enrollment_request_status.rb +27 -0
- data/app/models/fhir/enrollment_response.rb +71 -0
- data/app/models/fhir/enrollment_response_status.rb +27 -0
- data/app/models/fhir/episode_of_care.rb +85 -0
- data/app/models/fhir/episode_of_care_diagnosis.rb +40 -0
- data/app/models/fhir/episode_of_care_status.rb +27 -0
- data/app/models/fhir/episode_of_care_status_history.rb +35 -0
- data/app/models/fhir/event_capability_mode.rb +27 -0
- data/app/models/fhir/event_definition.rb +198 -0
- data/app/models/fhir/event_timing.rb +27 -0
- data/app/models/fhir/evidence.rb +189 -0
- data/app/models/fhir/evidence_variable.rb +186 -0
- data/app/models/fhir/evidence_variable_characteristic.rb +108 -0
- data/app/models/fhir/evidence_variable_type.rb +27 -0
- data/app/models/fhir/example_scenario.rb +131 -0
- data/app/models/fhir/example_scenario_actor.rb +51 -0
- data/app/models/fhir/example_scenario_actor_type.rb +27 -0
- data/app/models/fhir/example_scenario_instance.rb +61 -0
- data/app/models/fhir/example_scenario_instance_contained_instance.rb +37 -0
- data/app/models/fhir/example_scenario_instance_version.rb +37 -0
- data/app/models/fhir/example_scenario_process.rb +56 -0
- data/app/models/fhir/example_scenario_process_step.rb +45 -0
- data/app/models/fhir/example_scenario_process_step_alternative.rb +42 -0
- data/app/models/fhir/example_scenario_process_step_operation.rb +89 -0
- data/app/models/fhir/explanation_of_benefit.rb +255 -0
- data/app/models/fhir/explanation_of_benefit_accident.rb +45 -0
- data/app/models/fhir/explanation_of_benefit_add_item.rb +152 -0
- data/app/models/fhir/explanation_of_benefit_add_item_detail.rb +75 -0
- data/app/models/fhir/explanation_of_benefit_add_item_detail_sub_detail.rb +70 -0
- data/app/models/fhir/explanation_of_benefit_benefit_balance.rb +69 -0
- data/app/models/fhir/explanation_of_benefit_benefit_balance_financial.rb +59 -0
- data/app/models/fhir/explanation_of_benefit_care_team.rb +52 -0
- data/app/models/fhir/explanation_of_benefit_diagnosis.rb +55 -0
- data/app/models/fhir/explanation_of_benefit_insurance.rb +45 -0
- data/app/models/fhir/explanation_of_benefit_item.rb +184 -0
- data/app/models/fhir/explanation_of_benefit_item_adjudication.rb +45 -0
- data/app/models/fhir/explanation_of_benefit_item_detail.rb +102 -0
- data/app/models/fhir/explanation_of_benefit_item_detail_sub_detail.rb +97 -0
- data/app/models/fhir/explanation_of_benefit_payee.rb +33 -0
- data/app/models/fhir/explanation_of_benefit_payment.rb +55 -0
- data/app/models/fhir/explanation_of_benefit_procedure.rb +57 -0
- data/app/models/fhir/explanation_of_benefit_process_note.rb +49 -0
- data/app/models/fhir/explanation_of_benefit_related.rb +38 -0
- data/app/models/fhir/explanation_of_benefit_status.rb +27 -0
- data/app/models/fhir/explanation_of_benefit_supporting_info.rb +86 -0
- data/app/models/fhir/explanation_of_benefit_total.rb +33 -0
- data/app/models/fhir/exposure_state.rb +27 -0
- data/app/models/fhir/expression.rb +58 -0
- data/app/models/fhir/extension.rb +337 -0
- data/app/models/fhir/extension_context_type.rb +27 -0
- data/app/models/fhir/family_history_status.rb +27 -0
- data/app/models/fhir/family_member_history.rb +183 -0
- data/app/models/fhir/family_member_history_condition.rb +67 -0
- data/app/models/fhir/fhir_all_types.rb +27 -0
- data/app/models/fhir/fhir_defined_type.rb +27 -0
- data/app/models/fhir/fhir_device_status.rb +27 -0
- data/app/models/fhir/fhir_resource_type.rb +27 -0
- data/app/models/fhir/fhir_substance_status.rb +27 -0
- data/app/models/fhir/fhir_version.rb +27 -0
- data/app/models/fhir/filter_operator.rb +27 -0
- data/app/models/fhir/flag.rb +65 -0
- data/app/models/fhir/flag_status.rb +27 -0
- data/app/models/fhir/goal.rb +116 -0
- data/app/models/fhir/goal_lifecycle_status.rb +27 -0
- data/app/models/fhir/goal_target.rb +81 -0
- data/app/models/fhir/graph_compartment_rule.rb +27 -0
- data/app/models/fhir/graph_compartment_use.rb +27 -0
- data/app/models/fhir/graph_definition.rb +120 -0
- data/app/models/fhir/graph_definition_link.rb +63 -0
- data/app/models/fhir/graph_definition_link_target.rb +54 -0
- data/app/models/fhir/graph_definition_link_target_compartment.rb +58 -0
- data/app/models/fhir/group.rb +83 -0
- data/app/models/fhir/group_characteristic.rb +67 -0
- data/app/models/fhir/group_measure.rb +27 -0
- data/app/models/fhir/group_member.rb +40 -0
- data/app/models/fhir/group_type.rb +27 -0
- data/app/models/fhir/guidance_response.rb +116 -0
- data/app/models/fhir/guidance_response_status.rb +27 -0
- data/app/models/fhir/guide_page_generation.rb +27 -0
- data/app/models/fhir/guide_parameter_code.rb +27 -0
- data/app/models/fhir/healthcare_service.rb +155 -0
- data/app/models/fhir/healthcare_service_available_time.rb +54 -0
- data/app/models/fhir/healthcare_service_eligibility.rb +35 -0
- data/app/models/fhir/healthcare_service_not_available.rb +35 -0
- data/app/models/fhir/http_verb.rb +27 -0
- data/app/models/fhir/human_name.rb +79 -0
- data/app/models/fhir/identifier.rb +59 -0
- data/app/models/fhir/identifier_use.rb +27 -0
- data/app/models/fhir/identity_assurance_level.rb +27 -0
- data/app/models/fhir/imaging_study.rb +133 -0
- data/app/models/fhir/imaging_study_series.rb +93 -0
- data/app/models/fhir/imaging_study_series_instance.rb +49 -0
- data/app/models/fhir/imaging_study_series_performer.rb +33 -0
- data/app/models/fhir/imaging_study_status.rb +27 -0
- data/app/models/fhir/immunization.rb +184 -0
- data/app/models/fhir/immunization_education.rb +51 -0
- data/app/models/fhir/immunization_evaluation.rb +114 -0
- data/app/models/fhir/immunization_evaluation_status.rb +27 -0
- data/app/models/fhir/immunization_performer.rb +33 -0
- data/app/models/fhir/immunization_protocol_applied.rb +68 -0
- data/app/models/fhir/immunization_reaction.rb +42 -0
- data/app/models/fhir/immunization_recommendation.rb +50 -0
- data/app/models/fhir/immunization_recommendation_recommendation.rb +105 -0
- data/app/models/fhir/immunization_recommendation_recommendation_date_criterion.rb +35 -0
- data/app/models/fhir/immunization_status.rb +27 -0
- data/app/models/fhir/implementation_guide.rb +152 -0
- data/app/models/fhir/implementation_guide_definition.rb +48 -0
- data/app/models/fhir/implementation_guide_definition_grouping.rb +37 -0
- data/app/models/fhir/implementation_guide_definition_page.rb +54 -0
- data/app/models/fhir/implementation_guide_definition_parameter.rb +37 -0
- data/app/models/fhir/implementation_guide_definition_resource.rb +73 -0
- data/app/models/fhir/implementation_guide_definition_template.rb +44 -0
- data/app/models/fhir/implementation_guide_depends_on.rb +44 -0
- data/app/models/fhir/implementation_guide_global.rb +37 -0
- data/app/models/fhir/implementation_guide_manifest.rb +60 -0
- data/app/models/fhir/implementation_guide_manifest_page.rb +47 -0
- data/app/models/fhir/implementation_guide_manifest_resource.rb +49 -0
- data/app/models/fhir/insurance_plan.rb +102 -0
- data/app/models/fhir/insurance_plan_contact.rb +43 -0
- data/app/models/fhir/insurance_plan_coverage.rb +38 -0
- data/app/models/fhir/insurance_plan_coverage_benefit.rb +40 -0
- data/app/models/fhir/insurance_plan_coverage_benefit_limit.rb +33 -0
- data/app/models/fhir/insurance_plan_plan.rb +53 -0
- data/app/models/fhir/insurance_plan_plan_general_cost.rb +47 -0
- data/app/models/fhir/insurance_plan_plan_specific_cost.rb +33 -0
- data/app/models/fhir/insurance_plan_plan_specific_cost_benefit.rb +33 -0
- data/app/models/fhir/insurance_plan_plan_specific_cost_benefit_cost.rb +43 -0
- data/app/models/fhir/invoice.rb +111 -0
- data/app/models/fhir/invoice_line_item.rb +45 -0
- data/app/models/fhir/invoice_line_item_price_component.rb +47 -0
- data/app/models/fhir/invoice_participant.rb +33 -0
- data/app/models/fhir/invoice_price_component_type.rb +27 -0
- data/app/models/fhir/invoice_status.rb +27 -0
- data/app/models/fhir/issue_severity.rb +27 -0
- data/app/models/fhir/issue_type.rb +27 -0
- data/app/models/fhir/library.rb +213 -0
- data/app/models/fhir/link_type.rb +27 -0
- data/app/models/fhir/linkage.rb +40 -0
- data/app/models/fhir/linkage_item.rb +35 -0
- data/app/models/fhir/linkage_type.rb +27 -0
- data/app/models/fhir/list.rb +96 -0
- data/app/models/fhir/list_entry.rb +47 -0
- data/app/models/fhir/list_mode.rb +27 -0
- data/app/models/fhir/list_status.rb +27 -0
- data/app/models/fhir/location.rb +123 -0
- data/app/models/fhir/location_hours_of_operation.rb +54 -0
- data/app/models/fhir/location_mode.rb +27 -0
- data/app/models/fhir/location_position.rb +44 -0
- data/app/models/fhir/location_status.rb +27 -0
- data/app/models/fhir/marketing_status.rb +50 -0
- data/app/models/fhir/measure.rb +295 -0
- data/app/models/fhir/measure_group.rb +45 -0
- data/app/models/fhir/measure_group_population.rb +40 -0
- data/app/models/fhir/measure_group_stratifier.rb +45 -0
- data/app/models/fhir/measure_group_stratifier_component.rb +40 -0
- data/app/models/fhir/measure_report.rb +86 -0
- data/app/models/fhir/measure_report_group.rb +43 -0
- data/app/models/fhir/measure_report_group_population.rb +40 -0
- data/app/models/fhir/measure_report_group_stratifier.rb +33 -0
- data/app/models/fhir/measure_report_group_stratifier_stratum.rb +43 -0
- data/app/models/fhir/measure_report_group_stratifier_stratum_component.rb +33 -0
- data/app/models/fhir/measure_report_group_stratifier_stratum_population.rb +40 -0
- data/app/models/fhir/measure_report_status.rb +27 -0
- data/app/models/fhir/measure_report_type.rb +27 -0
- data/app/models/fhir/measure_supplemental_data.rb +45 -0
- data/app/models/fhir/media.rb +154 -0
- data/app/models/fhir/media_status.rb +27 -0
- data/app/models/fhir/medication.rb +65 -0
- data/app/models/fhir/medication_administration.rb +137 -0
- data/app/models/fhir/medication_administration_dosage.rb +60 -0
- data/app/models/fhir/medication_administration_performer.rb +33 -0
- data/app/models/fhir/medication_administration_status.rb +27 -0
- data/app/models/fhir/medication_batch.rb +37 -0
- data/app/models/fhir/medication_dispense.rb +159 -0
- data/app/models/fhir/medication_dispense_performer.rb +33 -0
- data/app/models/fhir/medication_dispense_status.rb +27 -0
- data/app/models/fhir/medication_dispense_substitution.rb +45 -0
- data/app/models/fhir/medication_ingredient.rb +45 -0
- data/app/models/fhir/medication_knowledge.rb +142 -0
- data/app/models/fhir/medication_knowledge_administration_guidelines.rb +43 -0
- data/app/models/fhir/medication_knowledge_administration_guidelines_dosage.rb +33 -0
- data/app/models/fhir/medication_knowledge_administration_guidelines_patient_characteristics.rb +43 -0
- data/app/models/fhir/medication_knowledge_cost.rb +40 -0
- data/app/models/fhir/medication_knowledge_drug_characteristic.rb +52 -0
- data/app/models/fhir/medication_knowledge_ingredient.rb +45 -0
- data/app/models/fhir/medication_knowledge_kinetics.rb +38 -0
- data/app/models/fhir/medication_knowledge_medicine_classification.rb +33 -0
- data/app/models/fhir/medication_knowledge_monitoring_program.rb +35 -0
- data/app/models/fhir/medication_knowledge_monograph.rb +33 -0
- data/app/models/fhir/medication_knowledge_packaging.rb +33 -0
- data/app/models/fhir/medication_knowledge_regulatory.rb +43 -0
- data/app/models/fhir/medication_knowledge_regulatory_max_dispense.rb +33 -0
- data/app/models/fhir/medication_knowledge_regulatory_schedule.rb +28 -0
- data/app/models/fhir/medication_knowledge_regulatory_substitution.rb +35 -0
- data/app/models/fhir/medication_knowledge_related_medication_knowledge.rb +33 -0
- data/app/models/fhir/medication_knowledge_status.rb +27 -0
- data/app/models/fhir/medication_request.rb +215 -0
- data/app/models/fhir/medication_request_dispense_request.rb +60 -0
- data/app/models/fhir/medication_request_dispense_request_initial_fill.rb +33 -0
- data/app/models/fhir/medication_request_intent.rb +27 -0
- data/app/models/fhir/medication_request_priority.rb +27 -0
- data/app/models/fhir/medication_request_status.rb +27 -0
- data/app/models/fhir/medication_request_substitution.rb +40 -0
- data/app/models/fhir/medication_statement.rb +124 -0
- data/app/models/fhir/medication_statement_status.rb +27 -0
- data/app/models/fhir/medication_status.rb +27 -0
- data/app/models/fhir/medicinal_product.rb +128 -0
- data/app/models/fhir/medicinal_product_authorization.rb +111 -0
- data/app/models/fhir/medicinal_product_authorization_jurisdictional_authorization.rb +48 -0
- data/app/models/fhir/medicinal_product_authorization_procedure.rb +50 -0
- data/app/models/fhir/medicinal_product_contraindication.rb +58 -0
- data/app/models/fhir/medicinal_product_contraindication_other_therapy.rb +38 -0
- data/app/models/fhir/medicinal_product_indication.rb +68 -0
- data/app/models/fhir/medicinal_product_indication_other_therapy.rb +38 -0
- data/app/models/fhir/medicinal_product_ingredient.rb +55 -0
- data/app/models/fhir/medicinal_product_ingredient_specified_substance.rb +43 -0
- data/app/models/fhir/medicinal_product_ingredient_specified_substance_strength.rb +60 -0
- data/app/models/fhir/medicinal_product_ingredient_specified_substance_strength_reference_strength.rb +50 -0
- data/app/models/fhir/medicinal_product_ingredient_substance.rb +33 -0
- data/app/models/fhir/medicinal_product_interaction.rb +60 -0
- data/app/models/fhir/medicinal_product_interaction_interactant.rb +33 -0
- data/app/models/fhir/medicinal_product_manufactured.rb +58 -0
- data/app/models/fhir/medicinal_product_manufacturing_business_operation.rb +55 -0
- data/app/models/fhir/medicinal_product_name.rb +40 -0
- data/app/models/fhir/medicinal_product_name_country_language.rb +38 -0
- data/app/models/fhir/medicinal_product_name_name_part.rb +35 -0
- data/app/models/fhir/medicinal_product_packaged.rb +70 -0
- data/app/models/fhir/medicinal_product_packaged_batch_identifier.rb +33 -0
- data/app/models/fhir/medicinal_product_packaged_package_item.rb +83 -0
- data/app/models/fhir/medicinal_product_pharmaceutical.rb +58 -0
- data/app/models/fhir/medicinal_product_pharmaceutical_characteristics.rb +33 -0
- data/app/models/fhir/medicinal_product_pharmaceutical_route_of_administration.rb +58 -0
- data/app/models/fhir/medicinal_product_pharmaceutical_route_of_administration_target_species.rb +33 -0
- data/app/models/fhir/medicinal_product_pharmaceutical_route_of_administration_target_species_withdrawal_period.rb +40 -0
- data/app/models/fhir/medicinal_product_special_designation.rb +65 -0
- data/app/models/fhir/medicinal_product_undesirable_effect.rb +48 -0
- data/app/models/fhir/message_definition.rb +193 -0
- data/app/models/fhir/message_definition_allowed_response.rb +37 -0
- data/app/models/fhir/message_definition_focus.rb +51 -0
- data/app/models/fhir/message_header.rb +87 -0
- data/app/models/fhir/message_header_destination.rb +47 -0
- data/app/models/fhir/message_header_response.rb +42 -0
- data/app/models/fhir/message_header_source.rb +56 -0
- data/app/models/fhir/message_significance_category.rb +27 -0
- data/app/models/fhir/messageheader_response_request.rb +27 -0
- data/app/models/fhir/meta.rb +64 -0
- data/app/models/fhir/mime_type.rb +27 -0
- data/app/models/fhir/molecular_sequence.rb +111 -0
- data/app/models/fhir/molecular_sequence_quality.rb +120 -0
- data/app/models/fhir/molecular_sequence_quality_roc.rb +93 -0
- data/app/models/fhir/molecular_sequence_reference_seq.rb +80 -0
- data/app/models/fhir/molecular_sequence_repository.rb +65 -0
- data/app/models/fhir/molecular_sequence_structure_variant.rb +52 -0
- data/app/models/fhir/molecular_sequence_structure_variant_inner.rb +37 -0
- data/app/models/fhir/molecular_sequence_structure_variant_outer.rb +37 -0
- data/app/models/fhir/molecular_sequence_variant.rb +63 -0
- data/app/models/fhir/money.rb +37 -0
- data/app/models/fhir/money_quantity.rb +58 -0
- data/app/models/fhir/name_use.rb +27 -0
- data/app/models/fhir/naming_system.rb +104 -0
- data/app/models/fhir/naming_system_identifier_type.rb +27 -0
- data/app/models/fhir/naming_system_type.rb +27 -0
- data/app/models/fhir/naming_system_unique_id.rb +56 -0
- data/app/models/fhir/narrative.rb +37 -0
- data/app/models/fhir/narrative_status.rb +27 -0
- data/app/models/fhir/note_type.rb +27 -0
- data/app/models/fhir/nutritiion_order_intent.rb +27 -0
- data/app/models/fhir/nutrition_order.rb +129 -0
- data/app/models/fhir/nutrition_order_enteral_formula.rb +74 -0
- data/app/models/fhir/nutrition_order_enteral_formula_administration.rb +43 -0
- data/app/models/fhir/nutrition_order_oral_diet.rb +55 -0
- data/app/models/fhir/nutrition_order_oral_diet_nutrient.rb +33 -0
- data/app/models/fhir/nutrition_order_oral_diet_texture.rb +33 -0
- data/app/models/fhir/nutrition_order_status.rb +27 -0
- data/app/models/fhir/nutrition_order_supplement.rb +52 -0
- data/app/models/fhir/observation.rb +226 -0
- data/app/models/fhir/observation_component.rb +108 -0
- data/app/models/fhir/observation_data_type.rb +27 -0
- data/app/models/fhir/observation_definition.rb +97 -0
- data/app/models/fhir/observation_definition_qualified_interval.rb +69 -0
- data/app/models/fhir/observation_definition_quantitative_details.rb +47 -0
- data/app/models/fhir/observation_range_category.rb +27 -0
- data/app/models/fhir/observation_reference_range.rb +55 -0
- data/app/models/fhir/observation_status.rb +27 -0
- data/app/models/fhir/operation_definition.rb +198 -0
- data/app/models/fhir/operation_definition_overload.rb +40 -0
- data/app/models/fhir/operation_definition_parameter.rb +97 -0
- data/app/models/fhir/operation_definition_parameter_binding.rb +37 -0
- data/app/models/fhir/operation_definition_parameter_referenced_from.rb +37 -0
- data/app/models/fhir/operation_kind.rb +27 -0
- data/app/models/fhir/operation_outcome.rb +28 -0
- data/app/models/fhir/operation_outcome_issue.rb +69 -0
- data/app/models/fhir/operation_parameter_use.rb +27 -0
- data/app/models/fhir/organization.rb +82 -0
- data/app/models/fhir/organization_affiliation.rb +85 -0
- data/app/models/fhir/organization_contact.rb +43 -0
- data/app/models/fhir/orientation_type.rb +27 -0
- data/app/models/fhir/parameter_definition.rb +72 -0
- data/app/models/fhir/parameter_use.rb +27 -0
- data/app/models/fhir/parameters.rb +28 -0
- data/app/models/fhir/parameters_parameter.rb +328 -0
- data/app/models/fhir/participant_required.rb +27 -0
- data/app/models/fhir/participant_status.rb +27 -0
- data/app/models/fhir/participation_status.rb +27 -0
- data/app/models/fhir/patient.rb +127 -0
- data/app/models/fhir/patient_communication.rb +35 -0
- data/app/models/fhir/patient_contact.rb +60 -0
- data/app/models/fhir/patient_link.rb +35 -0
- data/app/models/fhir/payment_notice.rb +89 -0
- data/app/models/fhir/payment_notice_status.rb +27 -0
- data/app/models/fhir/payment_reconciliation.rb +108 -0
- data/app/models/fhir/payment_reconciliation_detail.rb +75 -0
- data/app/models/fhir/payment_reconciliation_process_note.rb +37 -0
- data/app/models/fhir/payment_reconciliation_status.rb +27 -0
- data/app/models/fhir/period.rb +37 -0
- data/app/models/fhir/person.rb +79 -0
- data/app/models/fhir/person_link.rb +35 -0
- data/app/models/fhir/plan_definition.rb +218 -0
- data/app/models/fhir/plan_definition_action.rb +226 -0
- data/app/models/fhir/plan_definition_action_condition.rb +35 -0
- data/app/models/fhir/plan_definition_action_dynamic_value.rb +35 -0
- data/app/models/fhir/plan_definition_action_participant.rb +35 -0
- data/app/models/fhir/plan_definition_action_related_action.rb +47 -0
- data/app/models/fhir/plan_definition_goal.rb +58 -0
- data/app/models/fhir/plan_definition_goal_target.rb +48 -0
- data/app/models/fhir/population.rb +48 -0
- data/app/models/fhir/practitioner.rb +79 -0
- data/app/models/fhir/practitioner_qualification.rb +43 -0
- data/app/models/fhir/practitioner_role.rb +97 -0
- data/app/models/fhir/practitioner_role_available_time.rb +54 -0
- data/app/models/fhir/practitioner_role_not_available.rb +35 -0
- data/app/models/fhir/primitive_base_64_binary.rb +31 -0
- data/app/models/fhir/primitive_boolean.rb +31 -0
- data/app/models/fhir/primitive_canonical.rb +27 -0
- data/app/models/fhir/primitive_code.rb +27 -0
- data/app/models/fhir/primitive_date.rb +31 -0
- data/app/models/fhir/primitive_date_time.rb +31 -0
- data/app/models/fhir/primitive_decimal.rb +31 -0
- data/app/models/fhir/primitive_id.rb +27 -0
- data/app/models/fhir/primitive_instant.rb +31 -0
- data/app/models/fhir/primitive_integer.rb +31 -0
- data/app/models/fhir/primitive_markdown.rb +27 -0
- data/app/models/fhir/primitive_oid.rb +27 -0
- data/app/models/fhir/primitive_positive_int.rb +27 -0
- data/app/models/fhir/primitive_question.rb +27 -0
- data/app/models/fhir/primitive_string.rb +31 -0
- data/app/models/fhir/primitive_time.rb +31 -0
- data/app/models/fhir/primitive_unsigned_int.rb +27 -0
- data/app/models/fhir/primitive_uri.rb +31 -0
- data/app/models/fhir/primitive_url.rb +27 -0
- data/app/models/fhir/primitive_uuid.rb +27 -0
- data/app/models/fhir/primitive_xhtml.rb +31 -0
- data/app/models/fhir/procedure.rb +199 -0
- data/app/models/fhir/procedure_focal_device.rb +33 -0
- data/app/models/fhir/procedure_performer.rb +38 -0
- data/app/models/fhir/procedure_status.rb +27 -0
- data/app/models/fhir/prod_characteristic.rb +90 -0
- data/app/models/fhir/product_shelf_life.rb +43 -0
- data/app/models/fhir/property_representation.rb +27 -0
- data/app/models/fhir/property_type.rb +27 -0
- data/app/models/fhir/provenance.rb +87 -0
- data/app/models/fhir/provenance_agent.rb +43 -0
- data/app/models/fhir/provenance_entity.rb +40 -0
- data/app/models/fhir/provenance_entity_role.rb +27 -0
- data/app/models/fhir/publication_status.rb +27 -0
- data/app/models/fhir/quality_type.rb +27 -0
- data/app/models/fhir/quantity.rb +58 -0
- data/app/models/fhir/quantity_comparator.rb +27 -0
- data/app/models/fhir/questionnaire.rb +169 -0
- data/app/models/fhir/questionnaire_item.rb +125 -0
- data/app/models/fhir/questionnaire_item_answer_option.rb +68 -0
- data/app/models/fhir/questionnaire_item_enable_when.rb +101 -0
- data/app/models/fhir/questionnaire_item_initial.rb +99 -0
- data/app/models/fhir/questionnaire_item_operator.rb +27 -0
- data/app/models/fhir/questionnaire_item_type.rb +27 -0
- data/app/models/fhir/questionnaire_response.rb +84 -0
- data/app/models/fhir/questionnaire_response_item.rb +54 -0
- data/app/models/fhir/questionnaire_response_item_answer.rb +104 -0
- data/app/models/fhir/questionnaire_response_status.rb +27 -0
- data/app/models/fhir/range.rb +33 -0
- data/app/models/fhir/ratio.rb +33 -0
- data/app/models/fhir/reference.rb +49 -0
- data/app/models/fhir/reference_handling_policy.rb +27 -0
- data/app/models/fhir/reference_version_rules.rb +27 -0
- data/app/models/fhir/referred_document_status.rb +27 -0
- data/app/models/fhir/related_artifact.rb +70 -0
- data/app/models/fhir/related_artifact_type.rb +27 -0
- data/app/models/fhir/related_person.rb +89 -0
- data/app/models/fhir/related_person_communication.rb +35 -0
- data/app/models/fhir/remittance_outcome.rb +27 -0
- data/app/models/fhir/repository_type.rb +27 -0
- data/app/models/fhir/request_group.rb +131 -0
- data/app/models/fhir/request_group_action.rb +165 -0
- data/app/models/fhir/request_group_action_condition.rb +35 -0
- data/app/models/fhir/request_group_action_related_action.rb +47 -0
- data/app/models/fhir/request_intent.rb +27 -0
- data/app/models/fhir/request_priority.rb +27 -0
- data/app/models/fhir/request_status.rb +27 -0
- data/app/models/fhir/research_definition.rb +240 -0
- data/app/models/fhir/research_element_definition.rb +239 -0
- data/app/models/fhir/research_element_definition_characteristic.rb +144 -0
- data/app/models/fhir/research_element_type.rb +27 -0
- data/app/models/fhir/research_study.rb +149 -0
- data/app/models/fhir/research_study_arm.rb +42 -0
- data/app/models/fhir/research_study_objective.rb +35 -0
- data/app/models/fhir/research_study_status.rb +27 -0
- data/app/models/fhir/research_subject.rb +69 -0
- data/app/models/fhir/research_subject_status.rb +27 -0
- data/app/models/fhir/resource.rb +59 -0
- data/app/models/fhir/resource_type.rb +27 -0
- data/app/models/fhir/resource_version_policy.rb +27 -0
- data/app/models/fhir/response_type.rb +27 -0
- data/app/models/fhir/restful_capability_mode.rb +27 -0
- data/app/models/fhir/risk_assessment.rb +119 -0
- data/app/models/fhir/risk_assessment_prediction.rb +69 -0
- data/app/models/fhir/risk_assessment_status.rb +27 -0
- data/app/models/fhir/risk_evidence_synthesis.rb +200 -0
- data/app/models/fhir/risk_evidence_synthesis_certainty.rb +38 -0
- data/app/models/fhir/risk_evidence_synthesis_certainty_certainty_subcomponent.rb +38 -0
- data/app/models/fhir/risk_evidence_synthesis_risk_estimate.rb +66 -0
- data/app/models/fhir/risk_evidence_synthesis_risk_estimate_precision_estimate.rb +49 -0
- data/app/models/fhir/risk_evidence_synthesis_sample_size.rb +44 -0
- data/app/models/fhir/sampled_data.rb +70 -0
- data/app/models/fhir/schedule.rb +67 -0
- data/app/models/fhir/search_comparator.rb +27 -0
- data/app/models/fhir/search_entry_mode.rb +27 -0
- data/app/models/fhir/search_modifier_code.rb +27 -0
- data/app/models/fhir/search_param_type.rb +27 -0
- data/app/models/fhir/search_parameter.rb +212 -0
- data/app/models/fhir/search_parameter_component.rb +37 -0
- data/app/models/fhir/section_mode.rb +27 -0
- data/app/models/fhir/sequence_type.rb +27 -0
- data/app/models/fhir/service_request.rb +239 -0
- data/app/models/fhir/service_request_intent.rb +27 -0
- data/app/models/fhir/service_request_priority.rb +27 -0
- data/app/models/fhir/service_request_status.rb +27 -0
- data/app/models/fhir/signature.rb +66 -0
- data/app/models/fhir/simple_quantity.rb +51 -0
- data/app/models/fhir/slicing_rules.rb +27 -0
- data/app/models/fhir/slot.rb +88 -0
- data/app/models/fhir/slot_status.rb +27 -0
- data/app/models/fhir/sort_direction.rb +27 -0
- data/app/models/fhir/spdx_license.rb +27 -0
- data/app/models/fhir/specimen.rb +92 -0
- data/app/models/fhir/specimen_collection.rb +70 -0
- data/app/models/fhir/specimen_contained_preference.rb +27 -0
- data/app/models/fhir/specimen_container.rb +60 -0
- data/app/models/fhir/specimen_definition.rb +55 -0
- data/app/models/fhir/specimen_definition_type_tested.rb +69 -0
- data/app/models/fhir/specimen_definition_type_tested_container.rb +74 -0
- data/app/models/fhir/specimen_definition_type_tested_container_additive.rb +33 -0
- data/app/models/fhir/specimen_definition_type_tested_handling.rb +45 -0
- data/app/models/fhir/specimen_processing.rb +52 -0
- data/app/models/fhir/specimen_status.rb +27 -0
- data/app/models/fhir/status.rb +27 -0
- data/app/models/fhir/strand_type.rb +27 -0
- data/app/models/fhir/structure_definition.rb +197 -0
- data/app/models/fhir/structure_definition_context.rb +37 -0
- data/app/models/fhir/structure_definition_differential.rb +28 -0
- data/app/models/fhir/structure_definition_kind.rb +27 -0
- data/app/models/fhir/structure_definition_mapping.rb +51 -0
- data/app/models/fhir/structure_definition_snapshot.rb +28 -0
- data/app/models/fhir/structure_map.rb +140 -0
- data/app/models/fhir/structure_map_context_type.rb +27 -0
- data/app/models/fhir/structure_map_group.rb +61 -0
- data/app/models/fhir/structure_map_group_input.rb +51 -0
- data/app/models/fhir/structure_map_group_rule.rb +57 -0
- data/app/models/fhir/structure_map_group_rule_dependent.rb +40 -0
- data/app/models/fhir/structure_map_group_rule_source.rb +381 -0
- data/app/models/fhir/structure_map_group_rule_target.rb +80 -0
- data/app/models/fhir/structure_map_group_rule_target_parameter.rb +58 -0
- data/app/models/fhir/structure_map_group_type_mode.rb +27 -0
- data/app/models/fhir/structure_map_input_mode.rb +27 -0
- data/app/models/fhir/structure_map_model_mode.rb +27 -0
- data/app/models/fhir/structure_map_source_list_mode.rb +27 -0
- data/app/models/fhir/structure_map_structure.rb +51 -0
- data/app/models/fhir/structure_map_target_list_mode.rb +27 -0
- data/app/models/fhir/structure_map_transform.rb +27 -0
- data/app/models/fhir/subscription.rb +68 -0
- data/app/models/fhir/subscription_channel.rb +54 -0
- data/app/models/fhir/subscription_channel_type.rb +27 -0
- data/app/models/fhir/subscription_status.rb +27 -0
- data/app/models/fhir/substance.rb +62 -0
- data/app/models/fhir/substance_amount.rb +57 -0
- data/app/models/fhir/substance_amount_reference_range.rb +33 -0
- data/app/models/fhir/substance_ingredient.rb +38 -0
- data/app/models/fhir/substance_instance.rb +40 -0
- data/app/models/fhir/substance_nucleic_acid.rb +52 -0
- data/app/models/fhir/substance_nucleic_acid_subunit.rb +69 -0
- data/app/models/fhir/substance_nucleic_acid_subunit_linkage.rb +49 -0
- data/app/models/fhir/substance_nucleic_acid_subunit_sugar.rb +42 -0
- data/app/models/fhir/substance_polymer.rb +58 -0
- data/app/models/fhir/substance_polymer_monomer_set.rb +33 -0
- data/app/models/fhir/substance_polymer_monomer_set_starting_material.rb +45 -0
- data/app/models/fhir/substance_polymer_repeat.rb +47 -0
- data/app/models/fhir/substance_polymer_repeat_repeat_unit.rb +50 -0
- data/app/models/fhir/substance_polymer_repeat_repeat_unit_degree_of_polymerisation.rb +33 -0
- data/app/models/fhir/substance_polymer_repeat_repeat_unit_structural_representation.rb +40 -0
- data/app/models/fhir/substance_protein.rb +50 -0
- data/app/models/fhir/substance_protein_subunit.rb +73 -0
- data/app/models/fhir/substance_reference_information.rb +50 -0
- data/app/models/fhir/substance_reference_information_classification.rb +43 -0
- data/app/models/fhir/substance_reference_information_gene.rb +38 -0
- data/app/models/fhir/substance_reference_information_gene_element.rb +38 -0
- data/app/models/fhir/substance_reference_information_target.rb +75 -0
- data/app/models/fhir/substance_source_material.rb +100 -0
- data/app/models/fhir/substance_source_material_fraction_description.rb +35 -0
- data/app/models/fhir/substance_source_material_organism.rb +65 -0
- data/app/models/fhir/substance_source_material_organism_author.rb +35 -0
- data/app/models/fhir/substance_source_material_organism_hybrid.rb +56 -0
- data/app/models/fhir/substance_source_material_organism_organism_general.rb +43 -0
- data/app/models/fhir/substance_source_material_part_description.rb +33 -0
- data/app/models/fhir/substance_specification.rb +122 -0
- data/app/models/fhir/substance_specification_code.rb +52 -0
- data/app/models/fhir/substance_specification_moiety.rb +69 -0
- data/app/models/fhir/substance_specification_name.rb +82 -0
- data/app/models/fhir/substance_specification_name_official.rb +40 -0
- data/app/models/fhir/substance_specification_property.rb +62 -0
- data/app/models/fhir/substance_specification_relationship.rb +82 -0
- data/app/models/fhir/substance_specification_structure.rb +67 -0
- data/app/models/fhir/substance_specification_structure_isotope.rb +48 -0
- data/app/models/fhir/substance_specification_structure_isotope_molecular_weight.rb +38 -0
- data/app/models/fhir/substance_specification_structure_representation.rb +40 -0
- data/app/models/fhir/supply_delivery.rb +92 -0
- data/app/models/fhir/supply_delivery_status.rb +27 -0
- data/app/models/fhir/supply_delivery_supplied_item.rb +38 -0
- data/app/models/fhir/supply_request.rb +121 -0
- data/app/models/fhir/supply_request_parameter.rb +50 -0
- data/app/models/fhir/supply_request_status.rb +27 -0
- data/app/models/fhir/system_restful_interaction.rb +27 -0
- data/app/models/fhir/task.rb +194 -0
- data/app/models/fhir/task_input.rb +316 -0
- data/app/models/fhir/task_intent.rb +27 -0
- data/app/models/fhir/task_output.rb +316 -0
- data/app/models/fhir/task_priority.rb +27 -0
- data/app/models/fhir/task_restriction.rb +40 -0
- data/app/models/fhir/task_status.rb +27 -0
- data/app/models/fhir/terminology_capabilities.rb +171 -0
- data/app/models/fhir/terminology_capabilities_closure.rb +30 -0
- data/app/models/fhir/terminology_capabilities_code_system.rb +42 -0
- data/app/models/fhir/terminology_capabilities_code_system_version.rb +69 -0
- data/app/models/fhir/terminology_capabilities_code_system_version_filter.rb +40 -0
- data/app/models/fhir/terminology_capabilities_expansion.rb +56 -0
- data/app/models/fhir/terminology_capabilities_expansion_parameter.rb +37 -0
- data/app/models/fhir/terminology_capabilities_implementation.rb +37 -0
- data/app/models/fhir/terminology_capabilities_software.rb +37 -0
- data/app/models/fhir/terminology_capabilities_translation.rb +30 -0
- data/app/models/fhir/terminology_capabilities_validate_code.rb +30 -0
- data/app/models/fhir/test_report.rb +95 -0
- data/app/models/fhir/test_report_action_result.rb +27 -0
- data/app/models/fhir/test_report_participant.rb +44 -0
- data/app/models/fhir/test_report_participant_type.rb +27 -0
- data/app/models/fhir/test_report_result.rb +27 -0
- data/app/models/fhir/test_report_setup.rb +28 -0
- data/app/models/fhir/test_report_setup_action.rb +33 -0
- data/app/models/fhir/test_report_setup_action_assert.rb +44 -0
- data/app/models/fhir/test_report_setup_action_operation.rb +44 -0
- data/app/models/fhir/test_report_status.rb +27 -0
- data/app/models/fhir/test_report_teardown.rb +28 -0
- data/app/models/fhir/test_report_teardown_action.rb +28 -0
- data/app/models/fhir/test_report_test.rb +42 -0
- data/app/models/fhir/test_report_test_action.rb +33 -0
- data/app/models/fhir/test_script.rb +165 -0
- data/app/models/fhir/test_script_destination.rb +35 -0
- data/app/models/fhir/test_script_fixture.rb +42 -0
- data/app/models/fhir/test_script_metadata.rb +33 -0
- data/app/models/fhir/test_script_metadata_capability.rb +78 -0
- data/app/models/fhir/test_script_metadata_link.rb +37 -0
- data/app/models/fhir/test_script_origin.rb +35 -0
- data/app/models/fhir/test_script_request_method_code.rb +27 -0
- data/app/models/fhir/test_script_setup.rb +28 -0
- data/app/models/fhir/test_script_setup_action.rb +33 -0
- data/app/models/fhir/test_script_setup_action_assert.rb +177 -0
- data/app/models/fhir/test_script_setup_action_operation.rb +138 -0
- data/app/models/fhir/test_script_setup_action_operation_request_header.rb +37 -0
- data/app/models/fhir/test_script_teardown.rb +28 -0
- data/app/models/fhir/test_script_teardown_action.rb +28 -0
- data/app/models/fhir/test_script_test.rb +42 -0
- data/app/models/fhir/test_script_test_action.rb +33 -0
- data/app/models/fhir/test_script_variable.rb +79 -0
- data/app/models/fhir/timing.rb +43 -0
- data/app/models/fhir/timing_repeat.rb +145 -0
- data/app/models/fhir/trigger_definition.rb +71 -0
- data/app/models/fhir/trigger_type.rb +27 -0
- data/app/models/fhir/type.rb +23 -0
- data/app/models/fhir/type_derivation_rule.rb +27 -0
- data/app/models/fhir/type_restful_interaction.rb +27 -0
- data/app/models/fhir/udi_entry_type.rb +27 -0
- data/app/models/fhir/units_of_time.rb +27 -0
- data/app/models/fhir/usage_context.rb +48 -0
- data/app/models/fhir/use.rb +27 -0
- data/app/models/fhir/value_set.rb +137 -0
- data/app/models/fhir/value_set_compose.rb +47 -0
- data/app/models/fhir/value_set_compose_include.rb +57 -0
- data/app/models/fhir/value_set_compose_include_concept.rb +42 -0
- data/app/models/fhir/value_set_compose_include_concept_designation.rb +42 -0
- data/app/models/fhir/value_set_compose_include_filter.rb +44 -0
- data/app/models/fhir/value_set_expansion.rb +61 -0
- data/app/models/fhir/value_set_expansion_contains.rb +75 -0
- data/app/models/fhir/value_set_expansion_parameter.rb +79 -0
- data/app/models/fhir/variable_type.rb +27 -0
- data/app/models/fhir/verification_result.rb +106 -0
- data/app/models/fhir/verification_result_attestation.rb +69 -0
- data/app/models/fhir/verification_result_primary_source.rb +60 -0
- data/app/models/fhir/verification_result_validator.rb +40 -0
- data/app/models/fhir/vision_base.rb +27 -0
- data/app/models/fhir/vision_eyes.rb +27 -0
- data/app/models/fhir/vision_prescription.rb +69 -0
- data/app/models/fhir/vision_prescription_lens_specification.rb +113 -0
- data/app/models/fhir/vision_prescription_lens_specification_prism.rb +37 -0
- data/app/models/fhir/vision_status.rb +27 -0
- data/app/models/fhir/x_path_usage_type.rb +27 -0
- data/app/models/models.rb +940 -0
- data/bin/console +14 -0
- data/bin/setup +8 -0
- data/config/mongoid.yml +6 -0
- data/fhir-mongoid-models.gemspec +30 -0
- data/fhir-mongoid-models.iml +9 -0
- data/lib/ext/fhir/library.rb +23 -0
- data/lib/fhir/mongoid/models.rb +12 -0
- data/package-lock.json +110 -0
- data/package.json +30 -0
- data/resources/fhir-modelinfo-4.0.1.xml +12217 -0
- metadata +1115 -0
@@ -0,0 +1,84 @@
|
|
1
|
+
module FHIR
|
2
|
+
# fhir/account.rb
|
3
|
+
class Account < DomainResource
|
4
|
+
include Mongoid::Document
|
5
|
+
embeds_many :identifier, class_name: 'FHIR::Identifier'
|
6
|
+
embeds_one :status, class_name: 'FHIR::AccountStatus'
|
7
|
+
embeds_one :type, class_name: 'FHIR::CodeableConcept'
|
8
|
+
embeds_one :name, class_name: 'FHIR::PrimitiveString'
|
9
|
+
embeds_many :subject, class_name: 'FHIR::Reference'
|
10
|
+
embeds_one :servicePeriod, class_name: 'FHIR::Period'
|
11
|
+
embeds_many :coverage, class_name: 'FHIR::AccountCoverage'
|
12
|
+
embeds_one :owner, class_name: 'FHIR::Reference'
|
13
|
+
embeds_one :description, class_name: 'FHIR::PrimitiveString'
|
14
|
+
embeds_many :guarantor, class_name: 'FHIR::AccountGuarantor'
|
15
|
+
embeds_one :partOf, class_name: 'FHIR::Reference'
|
16
|
+
|
17
|
+
def as_json(*args)
|
18
|
+
result = super
|
19
|
+
unless self.identifier.nil? || !self.identifier.any?
|
20
|
+
result['identifier'] = self.identifier.map{ |x| x.as_json(*args) }
|
21
|
+
end
|
22
|
+
unless self.status.nil?
|
23
|
+
result['status'] = self.status.value
|
24
|
+
serialized = Extension.serializePrimitiveExtension(self.status)
|
25
|
+
result['_status'] = serialized unless serialized.nil?
|
26
|
+
end
|
27
|
+
unless self.type.nil?
|
28
|
+
result['type'] = self.type.as_json(*args)
|
29
|
+
end
|
30
|
+
unless self.name.nil?
|
31
|
+
result['name'] = self.name.value
|
32
|
+
serialized = Extension.serializePrimitiveExtension(self.name)
|
33
|
+
result['_name'] = serialized unless serialized.nil?
|
34
|
+
end
|
35
|
+
unless self.subject.nil? || !self.subject.any?
|
36
|
+
result['subject'] = self.subject.map{ |x| x.as_json(*args) }
|
37
|
+
end
|
38
|
+
unless self.servicePeriod.nil?
|
39
|
+
result['servicePeriod'] = self.servicePeriod.as_json(*args)
|
40
|
+
end
|
41
|
+
unless self.coverage.nil? || !self.coverage.any?
|
42
|
+
result['coverage'] = self.coverage.map{ |x| x.as_json(*args) }
|
43
|
+
end
|
44
|
+
unless self.owner.nil?
|
45
|
+
result['owner'] = self.owner.as_json(*args)
|
46
|
+
end
|
47
|
+
unless self.description.nil?
|
48
|
+
result['description'] = self.description.value
|
49
|
+
serialized = Extension.serializePrimitiveExtension(self.description)
|
50
|
+
result['_description'] = serialized unless serialized.nil?
|
51
|
+
end
|
52
|
+
unless self.guarantor.nil? || !self.guarantor.any?
|
53
|
+
result['guarantor'] = self.guarantor.map{ |x| x.as_json(*args) }
|
54
|
+
end
|
55
|
+
unless self.partOf.nil?
|
56
|
+
result['partOf'] = self.partOf.as_json(*args)
|
57
|
+
end
|
58
|
+
result.delete('id')
|
59
|
+
unless self.fhirId.nil?
|
60
|
+
result['id'] = self.fhirId
|
61
|
+
result.delete('fhirId')
|
62
|
+
end
|
63
|
+
result
|
64
|
+
end
|
65
|
+
|
66
|
+
def self.transform_json(json_hash, target = Account.new)
|
67
|
+
|
68
|
+
result = self.superclass.transform_json(json_hash, target)
|
69
|
+
result['identifier'] = json_hash['identifier'].map { |var| Identifier.transform_json(var) } unless json_hash['identifier'].nil?
|
70
|
+
result['status'] = AccountStatus.transform_json(json_hash['status'], json_hash['_status']) unless json_hash['status'].nil?
|
71
|
+
result['type'] = CodeableConcept.transform_json(json_hash['type']) unless json_hash['type'].nil?
|
72
|
+
result['name'] = PrimitiveString.transform_json(json_hash['name'], json_hash['_name']) unless json_hash['name'].nil?
|
73
|
+
result['subject'] = json_hash['subject'].map { |var| Reference.transform_json(var) } unless json_hash['subject'].nil?
|
74
|
+
result['servicePeriod'] = Period.transform_json(json_hash['servicePeriod']) unless json_hash['servicePeriod'].nil?
|
75
|
+
result['coverage'] = json_hash['coverage'].map { |var| AccountCoverage.transform_json(var) } unless json_hash['coverage'].nil?
|
76
|
+
result['owner'] = Reference.transform_json(json_hash['owner']) unless json_hash['owner'].nil?
|
77
|
+
result['description'] = PrimitiveString.transform_json(json_hash['description'], json_hash['_description']) unless json_hash['description'].nil?
|
78
|
+
result['guarantor'] = json_hash['guarantor'].map { |var| AccountGuarantor.transform_json(var) } unless json_hash['guarantor'].nil?
|
79
|
+
result['partOf'] = Reference.transform_json(json_hash['partOf']) unless json_hash['partOf'].nil?
|
80
|
+
|
81
|
+
result
|
82
|
+
end
|
83
|
+
end
|
84
|
+
end
|
@@ -0,0 +1,35 @@
|
|
1
|
+
module FHIR
|
2
|
+
# fhir/account_coverage.rb
|
3
|
+
class AccountCoverage < BackboneElement
|
4
|
+
include Mongoid::Document
|
5
|
+
embeds_one :coverage, class_name: 'FHIR::Reference'
|
6
|
+
embeds_one :priority, class_name: 'FHIR::PrimitivePositiveInt'
|
7
|
+
|
8
|
+
def as_json(*args)
|
9
|
+
result = super
|
10
|
+
unless self.coverage.nil?
|
11
|
+
result['coverage'] = self.coverage.as_json(*args)
|
12
|
+
end
|
13
|
+
unless self.priority.nil?
|
14
|
+
result['priority'] = self.priority.value
|
15
|
+
serialized = Extension.serializePrimitiveExtension(self.priority)
|
16
|
+
result['_priority'] = serialized unless serialized.nil?
|
17
|
+
end
|
18
|
+
result.delete('id')
|
19
|
+
unless self.fhirId.nil?
|
20
|
+
result['id'] = self.fhirId
|
21
|
+
result.delete('fhirId')
|
22
|
+
end
|
23
|
+
result
|
24
|
+
end
|
25
|
+
|
26
|
+
def self.transform_json(json_hash, target = AccountCoverage.new)
|
27
|
+
|
28
|
+
result = self.superclass.transform_json(json_hash, target)
|
29
|
+
result['coverage'] = Reference.transform_json(json_hash['coverage']) unless json_hash['coverage'].nil?
|
30
|
+
result['priority'] = PrimitivePositiveInt.transform_json(json_hash['priority'], json_hash['_priority']) unless json_hash['priority'].nil?
|
31
|
+
|
32
|
+
result
|
33
|
+
end
|
34
|
+
end
|
35
|
+
end
|
@@ -0,0 +1,40 @@
|
|
1
|
+
module FHIR
|
2
|
+
# fhir/account_guarantor.rb
|
3
|
+
class AccountGuarantor < BackboneElement
|
4
|
+
include Mongoid::Document
|
5
|
+
embeds_one :party, class_name: 'FHIR::Reference'
|
6
|
+
embeds_one :onHold, class_name: 'FHIR::PrimitiveBoolean'
|
7
|
+
embeds_one :period, class_name: 'FHIR::Period'
|
8
|
+
|
9
|
+
def as_json(*args)
|
10
|
+
result = super
|
11
|
+
unless self.party.nil?
|
12
|
+
result['party'] = self.party.as_json(*args)
|
13
|
+
end
|
14
|
+
unless self.onHold.nil?
|
15
|
+
result['onHold'] = self.onHold.value
|
16
|
+
serialized = Extension.serializePrimitiveExtension(self.onHold)
|
17
|
+
result['_onHold'] = serialized unless serialized.nil?
|
18
|
+
end
|
19
|
+
unless self.period.nil?
|
20
|
+
result['period'] = self.period.as_json(*args)
|
21
|
+
end
|
22
|
+
result.delete('id')
|
23
|
+
unless self.fhirId.nil?
|
24
|
+
result['id'] = self.fhirId
|
25
|
+
result.delete('fhirId')
|
26
|
+
end
|
27
|
+
result
|
28
|
+
end
|
29
|
+
|
30
|
+
def self.transform_json(json_hash, target = AccountGuarantor.new)
|
31
|
+
|
32
|
+
result = self.superclass.transform_json(json_hash, target)
|
33
|
+
result['party'] = Reference.transform_json(json_hash['party']) unless json_hash['party'].nil?
|
34
|
+
result['onHold'] = PrimitiveBoolean.transform_json(json_hash['onHold'], json_hash['_onHold']) unless json_hash['onHold'].nil?
|
35
|
+
result['period'] = Period.transform_json(json_hash['period']) unless json_hash['period'].nil?
|
36
|
+
|
37
|
+
result
|
38
|
+
end
|
39
|
+
end
|
40
|
+
end
|
@@ -0,0 +1,27 @@
|
|
1
|
+
module FHIR
|
2
|
+
# fhir/account_status.rb
|
3
|
+
class AccountStatus < PrimitiveCode
|
4
|
+
include Mongoid::Document
|
5
|
+
|
6
|
+
def as_json(*args)
|
7
|
+
result = super
|
8
|
+
result.delete('id')
|
9
|
+
unless self.fhirId.nil?
|
10
|
+
result['id'] = self.fhirId
|
11
|
+
result.delete('fhirId')
|
12
|
+
end
|
13
|
+
result
|
14
|
+
end
|
15
|
+
|
16
|
+
def self.transform_json(json_hash, extension_hash, target = AccountStatus.new)
|
17
|
+
|
18
|
+
result = target
|
19
|
+
unless extension_hash.nil?
|
20
|
+
result['fhirId'] = extension_hash['id'] unless extension_hash['id'].nil?
|
21
|
+
result['extension'] = extension_hash['extension'].map { |ext| Extension.transform_json(ext) }
|
22
|
+
end
|
23
|
+
result['value'] = json_hash
|
24
|
+
result
|
25
|
+
end
|
26
|
+
end
|
27
|
+
end
|
@@ -0,0 +1,27 @@
|
|
1
|
+
module FHIR
|
2
|
+
# fhir/action_cardinality_behavior.rb
|
3
|
+
class ActionCardinalityBehavior < PrimitiveCode
|
4
|
+
include Mongoid::Document
|
5
|
+
|
6
|
+
def as_json(*args)
|
7
|
+
result = super
|
8
|
+
result.delete('id')
|
9
|
+
unless self.fhirId.nil?
|
10
|
+
result['id'] = self.fhirId
|
11
|
+
result.delete('fhirId')
|
12
|
+
end
|
13
|
+
result
|
14
|
+
end
|
15
|
+
|
16
|
+
def self.transform_json(json_hash, extension_hash, target = ActionCardinalityBehavior.new)
|
17
|
+
|
18
|
+
result = target
|
19
|
+
unless extension_hash.nil?
|
20
|
+
result['fhirId'] = extension_hash['id'] unless extension_hash['id'].nil?
|
21
|
+
result['extension'] = extension_hash['extension'].map { |ext| Extension.transform_json(ext) }
|
22
|
+
end
|
23
|
+
result['value'] = json_hash
|
24
|
+
result
|
25
|
+
end
|
26
|
+
end
|
27
|
+
end
|
@@ -0,0 +1,27 @@
|
|
1
|
+
module FHIR
|
2
|
+
# fhir/action_condition_kind.rb
|
3
|
+
class ActionConditionKind < PrimitiveCode
|
4
|
+
include Mongoid::Document
|
5
|
+
|
6
|
+
def as_json(*args)
|
7
|
+
result = super
|
8
|
+
result.delete('id')
|
9
|
+
unless self.fhirId.nil?
|
10
|
+
result['id'] = self.fhirId
|
11
|
+
result.delete('fhirId')
|
12
|
+
end
|
13
|
+
result
|
14
|
+
end
|
15
|
+
|
16
|
+
def self.transform_json(json_hash, extension_hash, target = ActionConditionKind.new)
|
17
|
+
|
18
|
+
result = target
|
19
|
+
unless extension_hash.nil?
|
20
|
+
result['fhirId'] = extension_hash['id'] unless extension_hash['id'].nil?
|
21
|
+
result['extension'] = extension_hash['extension'].map { |ext| Extension.transform_json(ext) }
|
22
|
+
end
|
23
|
+
result['value'] = json_hash
|
24
|
+
result
|
25
|
+
end
|
26
|
+
end
|
27
|
+
end
|
@@ -0,0 +1,27 @@
|
|
1
|
+
module FHIR
|
2
|
+
# fhir/action_grouping_behavior.rb
|
3
|
+
class ActionGroupingBehavior < PrimitiveCode
|
4
|
+
include Mongoid::Document
|
5
|
+
|
6
|
+
def as_json(*args)
|
7
|
+
result = super
|
8
|
+
result.delete('id')
|
9
|
+
unless self.fhirId.nil?
|
10
|
+
result['id'] = self.fhirId
|
11
|
+
result.delete('fhirId')
|
12
|
+
end
|
13
|
+
result
|
14
|
+
end
|
15
|
+
|
16
|
+
def self.transform_json(json_hash, extension_hash, target = ActionGroupingBehavior.new)
|
17
|
+
|
18
|
+
result = target
|
19
|
+
unless extension_hash.nil?
|
20
|
+
result['fhirId'] = extension_hash['id'] unless extension_hash['id'].nil?
|
21
|
+
result['extension'] = extension_hash['extension'].map { |ext| Extension.transform_json(ext) }
|
22
|
+
end
|
23
|
+
result['value'] = json_hash
|
24
|
+
result
|
25
|
+
end
|
26
|
+
end
|
27
|
+
end
|
@@ -0,0 +1,27 @@
|
|
1
|
+
module FHIR
|
2
|
+
# fhir/action_participant_type.rb
|
3
|
+
class ActionParticipantType < PrimitiveCode
|
4
|
+
include Mongoid::Document
|
5
|
+
|
6
|
+
def as_json(*args)
|
7
|
+
result = super
|
8
|
+
result.delete('id')
|
9
|
+
unless self.fhirId.nil?
|
10
|
+
result['id'] = self.fhirId
|
11
|
+
result.delete('fhirId')
|
12
|
+
end
|
13
|
+
result
|
14
|
+
end
|
15
|
+
|
16
|
+
def self.transform_json(json_hash, extension_hash, target = ActionParticipantType.new)
|
17
|
+
|
18
|
+
result = target
|
19
|
+
unless extension_hash.nil?
|
20
|
+
result['fhirId'] = extension_hash['id'] unless extension_hash['id'].nil?
|
21
|
+
result['extension'] = extension_hash['extension'].map { |ext| Extension.transform_json(ext) }
|
22
|
+
end
|
23
|
+
result['value'] = json_hash
|
24
|
+
result
|
25
|
+
end
|
26
|
+
end
|
27
|
+
end
|
@@ -0,0 +1,27 @@
|
|
1
|
+
module FHIR
|
2
|
+
# fhir/action_precheck_behavior.rb
|
3
|
+
class ActionPrecheckBehavior < PrimitiveCode
|
4
|
+
include Mongoid::Document
|
5
|
+
|
6
|
+
def as_json(*args)
|
7
|
+
result = super
|
8
|
+
result.delete('id')
|
9
|
+
unless self.fhirId.nil?
|
10
|
+
result['id'] = self.fhirId
|
11
|
+
result.delete('fhirId')
|
12
|
+
end
|
13
|
+
result
|
14
|
+
end
|
15
|
+
|
16
|
+
def self.transform_json(json_hash, extension_hash, target = ActionPrecheckBehavior.new)
|
17
|
+
|
18
|
+
result = target
|
19
|
+
unless extension_hash.nil?
|
20
|
+
result['fhirId'] = extension_hash['id'] unless extension_hash['id'].nil?
|
21
|
+
result['extension'] = extension_hash['extension'].map { |ext| Extension.transform_json(ext) }
|
22
|
+
end
|
23
|
+
result['value'] = json_hash
|
24
|
+
result
|
25
|
+
end
|
26
|
+
end
|
27
|
+
end
|
@@ -0,0 +1,27 @@
|
|
1
|
+
module FHIR
|
2
|
+
# fhir/action_relationship_type.rb
|
3
|
+
class ActionRelationshipType < PrimitiveCode
|
4
|
+
include Mongoid::Document
|
5
|
+
|
6
|
+
def as_json(*args)
|
7
|
+
result = super
|
8
|
+
result.delete('id')
|
9
|
+
unless self.fhirId.nil?
|
10
|
+
result['id'] = self.fhirId
|
11
|
+
result.delete('fhirId')
|
12
|
+
end
|
13
|
+
result
|
14
|
+
end
|
15
|
+
|
16
|
+
def self.transform_json(json_hash, extension_hash, target = ActionRelationshipType.new)
|
17
|
+
|
18
|
+
result = target
|
19
|
+
unless extension_hash.nil?
|
20
|
+
result['fhirId'] = extension_hash['id'] unless extension_hash['id'].nil?
|
21
|
+
result['extension'] = extension_hash['extension'].map { |ext| Extension.transform_json(ext) }
|
22
|
+
end
|
23
|
+
result['value'] = json_hash
|
24
|
+
result
|
25
|
+
end
|
26
|
+
end
|
27
|
+
end
|
@@ -0,0 +1,27 @@
|
|
1
|
+
module FHIR
|
2
|
+
# fhir/action_required_behavior.rb
|
3
|
+
class ActionRequiredBehavior < PrimitiveCode
|
4
|
+
include Mongoid::Document
|
5
|
+
|
6
|
+
def as_json(*args)
|
7
|
+
result = super
|
8
|
+
result.delete('id')
|
9
|
+
unless self.fhirId.nil?
|
10
|
+
result['id'] = self.fhirId
|
11
|
+
result.delete('fhirId')
|
12
|
+
end
|
13
|
+
result
|
14
|
+
end
|
15
|
+
|
16
|
+
def self.transform_json(json_hash, extension_hash, target = ActionRequiredBehavior.new)
|
17
|
+
|
18
|
+
result = target
|
19
|
+
unless extension_hash.nil?
|
20
|
+
result['fhirId'] = extension_hash['id'] unless extension_hash['id'].nil?
|
21
|
+
result['extension'] = extension_hash['extension'].map { |ext| Extension.transform_json(ext) }
|
22
|
+
end
|
23
|
+
result['value'] = json_hash
|
24
|
+
result
|
25
|
+
end
|
26
|
+
end
|
27
|
+
end
|
@@ -0,0 +1,27 @@
|
|
1
|
+
module FHIR
|
2
|
+
# fhir/action_selection_behavior.rb
|
3
|
+
class ActionSelectionBehavior < PrimitiveCode
|
4
|
+
include Mongoid::Document
|
5
|
+
|
6
|
+
def as_json(*args)
|
7
|
+
result = super
|
8
|
+
result.delete('id')
|
9
|
+
unless self.fhirId.nil?
|
10
|
+
result['id'] = self.fhirId
|
11
|
+
result.delete('fhirId')
|
12
|
+
end
|
13
|
+
result
|
14
|
+
end
|
15
|
+
|
16
|
+
def self.transform_json(json_hash, extension_hash, target = ActionSelectionBehavior.new)
|
17
|
+
|
18
|
+
result = target
|
19
|
+
unless extension_hash.nil?
|
20
|
+
result['fhirId'] = extension_hash['id'] unless extension_hash['id'].nil?
|
21
|
+
result['extension'] = extension_hash['extension'].map { |ext| Extension.transform_json(ext) }
|
22
|
+
end
|
23
|
+
result['value'] = json_hash
|
24
|
+
result
|
25
|
+
end
|
26
|
+
end
|
27
|
+
end
|
@@ -0,0 +1,337 @@
|
|
1
|
+
module FHIR
|
2
|
+
# fhir/activity_definition.rb
|
3
|
+
class ActivityDefinition < DomainResource
|
4
|
+
include Mongoid::Document
|
5
|
+
embeds_one :url, class_name: 'FHIR::PrimitiveUri'
|
6
|
+
embeds_many :identifier, class_name: 'FHIR::Identifier'
|
7
|
+
embeds_one :version, class_name: 'FHIR::PrimitiveString'
|
8
|
+
embeds_one :name, class_name: 'FHIR::PrimitiveString'
|
9
|
+
embeds_one :title, class_name: 'FHIR::PrimitiveString'
|
10
|
+
embeds_one :subtitle, class_name: 'FHIR::PrimitiveString'
|
11
|
+
embeds_one :status, class_name: 'FHIR::PublicationStatus'
|
12
|
+
embeds_one :experimental, class_name: 'FHIR::PrimitiveBoolean'
|
13
|
+
embeds_one :subjectCodeableConcept, class_name: 'FHIR::CodeableConcept'
|
14
|
+
embeds_one :subjectReference, class_name: 'FHIR::Reference'
|
15
|
+
embeds_one :date, class_name: 'FHIR::PrimitiveDateTime'
|
16
|
+
embeds_one :publisher, class_name: 'FHIR::PrimitiveString'
|
17
|
+
embeds_many :contact, class_name: 'FHIR::ContactDetail'
|
18
|
+
embeds_one :description, class_name: 'FHIR::PrimitiveMarkdown'
|
19
|
+
embeds_many :useContext, class_name: 'FHIR::UsageContext'
|
20
|
+
embeds_many :jurisdiction, class_name: 'FHIR::CodeableConcept'
|
21
|
+
embeds_one :purpose, class_name: 'FHIR::PrimitiveMarkdown'
|
22
|
+
embeds_one :usage, class_name: 'FHIR::PrimitiveString'
|
23
|
+
embeds_one :copyright, class_name: 'FHIR::PrimitiveMarkdown'
|
24
|
+
embeds_one :approvalDate, class_name: 'FHIR::PrimitiveDate'
|
25
|
+
embeds_one :lastReviewDate, class_name: 'FHIR::PrimitiveDate'
|
26
|
+
embeds_one :effectivePeriod, class_name: 'FHIR::Period'
|
27
|
+
embeds_many :topic, class_name: 'FHIR::CodeableConcept'
|
28
|
+
embeds_many :author, class_name: 'FHIR::ContactDetail'
|
29
|
+
embeds_many :editor, class_name: 'FHIR::ContactDetail'
|
30
|
+
embeds_many :reviewer, class_name: 'FHIR::ContactDetail'
|
31
|
+
embeds_many :endorser, class_name: 'FHIR::ContactDetail'
|
32
|
+
embeds_many :relatedArtifact, class_name: 'FHIR::RelatedArtifact'
|
33
|
+
embeds_many :library, class_name: 'FHIR::PrimitiveCanonical'
|
34
|
+
embeds_one :kind, class_name: 'FHIR::ActivityDefinitionKind'
|
35
|
+
embeds_one :profile, class_name: 'FHIR::PrimitiveCanonical'
|
36
|
+
embeds_one :code, class_name: 'FHIR::CodeableConcept'
|
37
|
+
embeds_one :intent, class_name: 'FHIR::RequestIntent'
|
38
|
+
embeds_one :priority, class_name: 'FHIR::RequestPriority'
|
39
|
+
embeds_one :doNotPerform, class_name: 'FHIR::PrimitiveBoolean'
|
40
|
+
embeds_one :timingTiming, class_name: 'FHIR::Timing'
|
41
|
+
embeds_one :timingDateTime, class_name: 'FHIR::PrimitiveDateTime'
|
42
|
+
embeds_one :timingAge, class_name: 'FHIR::Age'
|
43
|
+
embeds_one :timingPeriod, class_name: 'FHIR::Period'
|
44
|
+
embeds_one :timingRange, class_name: 'FHIR::Range'
|
45
|
+
embeds_one :timingDuration, class_name: 'FHIR::Duration'
|
46
|
+
embeds_one :location, class_name: 'FHIR::Reference'
|
47
|
+
embeds_many :participant, class_name: 'FHIR::ActivityDefinitionParticipant'
|
48
|
+
embeds_one :productReference, class_name: 'FHIR::Reference'
|
49
|
+
embeds_one :productCodeableConcept, class_name: 'FHIR::CodeableConcept'
|
50
|
+
embeds_one :quantity, class_name: 'FHIR::SimpleQuantity'
|
51
|
+
embeds_many :dosage, class_name: 'FHIR::Dosage'
|
52
|
+
embeds_many :bodySite, class_name: 'FHIR::CodeableConcept'
|
53
|
+
embeds_many :specimenRequirement, class_name: 'FHIR::Reference'
|
54
|
+
embeds_many :observationRequirement, class_name: 'FHIR::Reference'
|
55
|
+
embeds_many :observationResultRequirement, class_name: 'FHIR::Reference'
|
56
|
+
embeds_one :transform, class_name: 'FHIR::PrimitiveCanonical'
|
57
|
+
embeds_many :dynamicValue, class_name: 'FHIR::ActivityDefinitionDynamicValue'
|
58
|
+
|
59
|
+
def as_json(*args)
|
60
|
+
result = super
|
61
|
+
unless self.url.nil?
|
62
|
+
result['url'] = self.url.value
|
63
|
+
serialized = Extension.serializePrimitiveExtension(self.url)
|
64
|
+
result['_url'] = serialized unless serialized.nil?
|
65
|
+
end
|
66
|
+
unless self.identifier.nil? || !self.identifier.any?
|
67
|
+
result['identifier'] = self.identifier.map{ |x| x.as_json(*args) }
|
68
|
+
end
|
69
|
+
unless self.version.nil?
|
70
|
+
result['version'] = self.version.value
|
71
|
+
serialized = Extension.serializePrimitiveExtension(self.version)
|
72
|
+
result['_version'] = serialized unless serialized.nil?
|
73
|
+
end
|
74
|
+
unless self.name.nil?
|
75
|
+
result['name'] = self.name.value
|
76
|
+
serialized = Extension.serializePrimitiveExtension(self.name)
|
77
|
+
result['_name'] = serialized unless serialized.nil?
|
78
|
+
end
|
79
|
+
unless self.title.nil?
|
80
|
+
result['title'] = self.title.value
|
81
|
+
serialized = Extension.serializePrimitiveExtension(self.title)
|
82
|
+
result['_title'] = serialized unless serialized.nil?
|
83
|
+
end
|
84
|
+
unless self.subtitle.nil?
|
85
|
+
result['subtitle'] = self.subtitle.value
|
86
|
+
serialized = Extension.serializePrimitiveExtension(self.subtitle)
|
87
|
+
result['_subtitle'] = serialized unless serialized.nil?
|
88
|
+
end
|
89
|
+
unless self.status.nil?
|
90
|
+
result['status'] = self.status.value
|
91
|
+
serialized = Extension.serializePrimitiveExtension(self.status)
|
92
|
+
result['_status'] = serialized unless serialized.nil?
|
93
|
+
end
|
94
|
+
unless self.experimental.nil?
|
95
|
+
result['experimental'] = self.experimental.value
|
96
|
+
serialized = Extension.serializePrimitiveExtension(self.experimental)
|
97
|
+
result['_experimental'] = serialized unless serialized.nil?
|
98
|
+
end
|
99
|
+
unless self.subjectCodeableConcept.nil?
|
100
|
+
result['subjectCodeableConcept'] = self.subjectCodeableConcept.as_json(*args)
|
101
|
+
end
|
102
|
+
unless self.subjectReference.nil?
|
103
|
+
result['subjectReference'] = self.subjectReference.as_json(*args)
|
104
|
+
end
|
105
|
+
unless self.date.nil?
|
106
|
+
result['date'] = self.date.value
|
107
|
+
serialized = Extension.serializePrimitiveExtension(self.date)
|
108
|
+
result['_date'] = serialized unless serialized.nil?
|
109
|
+
end
|
110
|
+
unless self.publisher.nil?
|
111
|
+
result['publisher'] = self.publisher.value
|
112
|
+
serialized = Extension.serializePrimitiveExtension(self.publisher)
|
113
|
+
result['_publisher'] = serialized unless serialized.nil?
|
114
|
+
end
|
115
|
+
unless self.contact.nil? || !self.contact.any?
|
116
|
+
result['contact'] = self.contact.map{ |x| x.as_json(*args) }
|
117
|
+
end
|
118
|
+
unless self.description.nil?
|
119
|
+
result['description'] = self.description.value
|
120
|
+
serialized = Extension.serializePrimitiveExtension(self.description)
|
121
|
+
result['_description'] = serialized unless serialized.nil?
|
122
|
+
end
|
123
|
+
unless self.useContext.nil? || !self.useContext.any?
|
124
|
+
result['useContext'] = self.useContext.map{ |x| x.as_json(*args) }
|
125
|
+
end
|
126
|
+
unless self.jurisdiction.nil? || !self.jurisdiction.any?
|
127
|
+
result['jurisdiction'] = self.jurisdiction.map{ |x| x.as_json(*args) }
|
128
|
+
end
|
129
|
+
unless self.purpose.nil?
|
130
|
+
result['purpose'] = self.purpose.value
|
131
|
+
serialized = Extension.serializePrimitiveExtension(self.purpose)
|
132
|
+
result['_purpose'] = serialized unless serialized.nil?
|
133
|
+
end
|
134
|
+
unless self.usage.nil?
|
135
|
+
result['usage'] = self.usage.value
|
136
|
+
serialized = Extension.serializePrimitiveExtension(self.usage)
|
137
|
+
result['_usage'] = serialized unless serialized.nil?
|
138
|
+
end
|
139
|
+
unless self.copyright.nil?
|
140
|
+
result['copyright'] = self.copyright.value
|
141
|
+
serialized = Extension.serializePrimitiveExtension(self.copyright)
|
142
|
+
result['_copyright'] = serialized unless serialized.nil?
|
143
|
+
end
|
144
|
+
unless self.approvalDate.nil?
|
145
|
+
result['approvalDate'] = self.approvalDate.value
|
146
|
+
serialized = Extension.serializePrimitiveExtension(self.approvalDate)
|
147
|
+
result['_approvalDate'] = serialized unless serialized.nil?
|
148
|
+
end
|
149
|
+
unless self.lastReviewDate.nil?
|
150
|
+
result['lastReviewDate'] = self.lastReviewDate.value
|
151
|
+
serialized = Extension.serializePrimitiveExtension(self.lastReviewDate)
|
152
|
+
result['_lastReviewDate'] = serialized unless serialized.nil?
|
153
|
+
end
|
154
|
+
unless self.effectivePeriod.nil?
|
155
|
+
result['effectivePeriod'] = self.effectivePeriod.as_json(*args)
|
156
|
+
end
|
157
|
+
unless self.topic.nil? || !self.topic.any?
|
158
|
+
result['topic'] = self.topic.map{ |x| x.as_json(*args) }
|
159
|
+
end
|
160
|
+
unless self.author.nil? || !self.author.any?
|
161
|
+
result['author'] = self.author.map{ |x| x.as_json(*args) }
|
162
|
+
end
|
163
|
+
unless self.editor.nil? || !self.editor.any?
|
164
|
+
result['editor'] = self.editor.map{ |x| x.as_json(*args) }
|
165
|
+
end
|
166
|
+
unless self.reviewer.nil? || !self.reviewer.any?
|
167
|
+
result['reviewer'] = self.reviewer.map{ |x| x.as_json(*args) }
|
168
|
+
end
|
169
|
+
unless self.endorser.nil? || !self.endorser.any?
|
170
|
+
result['endorser'] = self.endorser.map{ |x| x.as_json(*args) }
|
171
|
+
end
|
172
|
+
unless self.relatedArtifact.nil? || !self.relatedArtifact.any?
|
173
|
+
result['relatedArtifact'] = self.relatedArtifact.map{ |x| x.as_json(*args) }
|
174
|
+
end
|
175
|
+
unless self.library.nil? || !self.library.any?
|
176
|
+
result['library'] = self.library.compact().map{ |x| x.value }
|
177
|
+
serialized = Extension.serializePrimitiveExtensionArray(self.library)
|
178
|
+
result['_library'] = serialized unless serialized.nil? || !serialized.any?
|
179
|
+
end
|
180
|
+
unless self.kind.nil?
|
181
|
+
result['kind'] = self.kind.value
|
182
|
+
serialized = Extension.serializePrimitiveExtension(self.kind)
|
183
|
+
result['_kind'] = serialized unless serialized.nil?
|
184
|
+
end
|
185
|
+
unless self.profile.nil?
|
186
|
+
result['profile'] = self.profile.value
|
187
|
+
serialized = Extension.serializePrimitiveExtension(self.profile)
|
188
|
+
result['_profile'] = serialized unless serialized.nil?
|
189
|
+
end
|
190
|
+
unless self.code.nil?
|
191
|
+
result['code'] = self.code.as_json(*args)
|
192
|
+
end
|
193
|
+
unless self.intent.nil?
|
194
|
+
result['intent'] = self.intent.value
|
195
|
+
serialized = Extension.serializePrimitiveExtension(self.intent)
|
196
|
+
result['_intent'] = serialized unless serialized.nil?
|
197
|
+
end
|
198
|
+
unless self.priority.nil?
|
199
|
+
result['priority'] = self.priority.value
|
200
|
+
serialized = Extension.serializePrimitiveExtension(self.priority)
|
201
|
+
result['_priority'] = serialized unless serialized.nil?
|
202
|
+
end
|
203
|
+
unless self.doNotPerform.nil?
|
204
|
+
result['doNotPerform'] = self.doNotPerform.value
|
205
|
+
serialized = Extension.serializePrimitiveExtension(self.doNotPerform)
|
206
|
+
result['_doNotPerform'] = serialized unless serialized.nil?
|
207
|
+
end
|
208
|
+
unless self.timingTiming.nil?
|
209
|
+
result['timingTiming'] = self.timingTiming.as_json(*args)
|
210
|
+
end
|
211
|
+
unless self.timingDateTime.nil?
|
212
|
+
result['timingDateTime'] = self.timingDateTime.value
|
213
|
+
serialized = Extension.serializePrimitiveExtension(self.timingDateTime)
|
214
|
+
result['_timingDateTime'] = serialized unless serialized.nil?
|
215
|
+
end
|
216
|
+
unless self.timingAge.nil?
|
217
|
+
result['timingAge'] = self.timingAge.as_json(*args)
|
218
|
+
end
|
219
|
+
unless self.timingPeriod.nil?
|
220
|
+
result['timingPeriod'] = self.timingPeriod.as_json(*args)
|
221
|
+
end
|
222
|
+
unless self.timingRange.nil?
|
223
|
+
result['timingRange'] = self.timingRange.as_json(*args)
|
224
|
+
end
|
225
|
+
unless self.timingDuration.nil?
|
226
|
+
result['timingDuration'] = self.timingDuration.as_json(*args)
|
227
|
+
end
|
228
|
+
unless self.location.nil?
|
229
|
+
result['location'] = self.location.as_json(*args)
|
230
|
+
end
|
231
|
+
unless self.participant.nil? || !self.participant.any?
|
232
|
+
result['participant'] = self.participant.map{ |x| x.as_json(*args) }
|
233
|
+
end
|
234
|
+
unless self.productReference.nil?
|
235
|
+
result['productReference'] = self.productReference.as_json(*args)
|
236
|
+
end
|
237
|
+
unless self.productCodeableConcept.nil?
|
238
|
+
result['productCodeableConcept'] = self.productCodeableConcept.as_json(*args)
|
239
|
+
end
|
240
|
+
unless self.quantity.nil?
|
241
|
+
result['quantity'] = self.quantity.as_json(*args)
|
242
|
+
end
|
243
|
+
unless self.dosage.nil? || !self.dosage.any?
|
244
|
+
result['dosage'] = self.dosage.map{ |x| x.as_json(*args) }
|
245
|
+
end
|
246
|
+
unless self.bodySite.nil? || !self.bodySite.any?
|
247
|
+
result['bodySite'] = self.bodySite.map{ |x| x.as_json(*args) }
|
248
|
+
end
|
249
|
+
unless self.specimenRequirement.nil? || !self.specimenRequirement.any?
|
250
|
+
result['specimenRequirement'] = self.specimenRequirement.map{ |x| x.as_json(*args) }
|
251
|
+
end
|
252
|
+
unless self.observationRequirement.nil? || !self.observationRequirement.any?
|
253
|
+
result['observationRequirement'] = self.observationRequirement.map{ |x| x.as_json(*args) }
|
254
|
+
end
|
255
|
+
unless self.observationResultRequirement.nil? || !self.observationResultRequirement.any?
|
256
|
+
result['observationResultRequirement'] = self.observationResultRequirement.map{ |x| x.as_json(*args) }
|
257
|
+
end
|
258
|
+
unless self.transform.nil?
|
259
|
+
result['transform'] = self.transform.value
|
260
|
+
serialized = Extension.serializePrimitiveExtension(self.transform)
|
261
|
+
result['_transform'] = serialized unless serialized.nil?
|
262
|
+
end
|
263
|
+
unless self.dynamicValue.nil? || !self.dynamicValue.any?
|
264
|
+
result['dynamicValue'] = self.dynamicValue.map{ |x| x.as_json(*args) }
|
265
|
+
end
|
266
|
+
result.delete('id')
|
267
|
+
unless self.fhirId.nil?
|
268
|
+
result['id'] = self.fhirId
|
269
|
+
result.delete('fhirId')
|
270
|
+
end
|
271
|
+
result
|
272
|
+
end
|
273
|
+
|
274
|
+
def self.transform_json(json_hash, target = ActivityDefinition.new)
|
275
|
+
|
276
|
+
result = self.superclass.transform_json(json_hash, target)
|
277
|
+
result['url'] = PrimitiveUri.transform_json(json_hash['url'], json_hash['_url']) unless json_hash['url'].nil?
|
278
|
+
result['identifier'] = json_hash['identifier'].map { |var| Identifier.transform_json(var) } unless json_hash['identifier'].nil?
|
279
|
+
result['version'] = PrimitiveString.transform_json(json_hash['version'], json_hash['_version']) unless json_hash['version'].nil?
|
280
|
+
result['name'] = PrimitiveString.transform_json(json_hash['name'], json_hash['_name']) unless json_hash['name'].nil?
|
281
|
+
result['title'] = PrimitiveString.transform_json(json_hash['title'], json_hash['_title']) unless json_hash['title'].nil?
|
282
|
+
result['subtitle'] = PrimitiveString.transform_json(json_hash['subtitle'], json_hash['_subtitle']) unless json_hash['subtitle'].nil?
|
283
|
+
result['status'] = PublicationStatus.transform_json(json_hash['status'], json_hash['_status']) unless json_hash['status'].nil?
|
284
|
+
result['experimental'] = PrimitiveBoolean.transform_json(json_hash['experimental'], json_hash['_experimental']) unless json_hash['experimental'].nil?
|
285
|
+
result['subjectCodeableConcept'] = CodeableConcept.transform_json(json_hash['subjectCodeableConcept']) unless json_hash['subjectCodeableConcept'].nil?
|
286
|
+
result['subjectReference'] = Reference.transform_json(json_hash['subjectReference']) unless json_hash['subjectReference'].nil?
|
287
|
+
result['date'] = PrimitiveDateTime.transform_json(json_hash['date'], json_hash['_date']) unless json_hash['date'].nil?
|
288
|
+
result['publisher'] = PrimitiveString.transform_json(json_hash['publisher'], json_hash['_publisher']) unless json_hash['publisher'].nil?
|
289
|
+
result['contact'] = json_hash['contact'].map { |var| ContactDetail.transform_json(var) } unless json_hash['contact'].nil?
|
290
|
+
result['description'] = PrimitiveMarkdown.transform_json(json_hash['description'], json_hash['_description']) unless json_hash['description'].nil?
|
291
|
+
result['useContext'] = json_hash['useContext'].map { |var| UsageContext.transform_json(var) } unless json_hash['useContext'].nil?
|
292
|
+
result['jurisdiction'] = json_hash['jurisdiction'].map { |var| CodeableConcept.transform_json(var) } unless json_hash['jurisdiction'].nil?
|
293
|
+
result['purpose'] = PrimitiveMarkdown.transform_json(json_hash['purpose'], json_hash['_purpose']) unless json_hash['purpose'].nil?
|
294
|
+
result['usage'] = PrimitiveString.transform_json(json_hash['usage'], json_hash['_usage']) unless json_hash['usage'].nil?
|
295
|
+
result['copyright'] = PrimitiveMarkdown.transform_json(json_hash['copyright'], json_hash['_copyright']) unless json_hash['copyright'].nil?
|
296
|
+
result['approvalDate'] = PrimitiveDate.transform_json(json_hash['approvalDate'], json_hash['_approvalDate']) unless json_hash['approvalDate'].nil?
|
297
|
+
result['lastReviewDate'] = PrimitiveDate.transform_json(json_hash['lastReviewDate'], json_hash['_lastReviewDate']) unless json_hash['lastReviewDate'].nil?
|
298
|
+
result['effectivePeriod'] = Period.transform_json(json_hash['effectivePeriod']) unless json_hash['effectivePeriod'].nil?
|
299
|
+
result['topic'] = json_hash['topic'].map { |var| CodeableConcept.transform_json(var) } unless json_hash['topic'].nil?
|
300
|
+
result['author'] = json_hash['author'].map { |var| ContactDetail.transform_json(var) } unless json_hash['author'].nil?
|
301
|
+
result['editor'] = json_hash['editor'].map { |var| ContactDetail.transform_json(var) } unless json_hash['editor'].nil?
|
302
|
+
result['reviewer'] = json_hash['reviewer'].map { |var| ContactDetail.transform_json(var) } unless json_hash['reviewer'].nil?
|
303
|
+
result['endorser'] = json_hash['endorser'].map { |var| ContactDetail.transform_json(var) } unless json_hash['endorser'].nil?
|
304
|
+
result['relatedArtifact'] = json_hash['relatedArtifact'].map { |var| RelatedArtifact.transform_json(var) } unless json_hash['relatedArtifact'].nil?
|
305
|
+
result['library'] = json_hash['library'].each_with_index.map do |var, i|
|
306
|
+
extension_hash = json_hash['_library'] && json_hash['_library'][i]
|
307
|
+
PrimitiveCanonical.transform_json(var, extension_hash)
|
308
|
+
end unless json_hash['library'].nil?
|
309
|
+
result['kind'] = ActivityDefinitionKind.transform_json(json_hash['kind'], json_hash['_kind']) unless json_hash['kind'].nil?
|
310
|
+
result['profile'] = PrimitiveCanonical.transform_json(json_hash['profile'], json_hash['_profile']) unless json_hash['profile'].nil?
|
311
|
+
result['code'] = CodeableConcept.transform_json(json_hash['code']) unless json_hash['code'].nil?
|
312
|
+
result['intent'] = RequestIntent.transform_json(json_hash['intent'], json_hash['_intent']) unless json_hash['intent'].nil?
|
313
|
+
result['priority'] = RequestPriority.transform_json(json_hash['priority'], json_hash['_priority']) unless json_hash['priority'].nil?
|
314
|
+
result['doNotPerform'] = PrimitiveBoolean.transform_json(json_hash['doNotPerform'], json_hash['_doNotPerform']) unless json_hash['doNotPerform'].nil?
|
315
|
+
result['timingTiming'] = Timing.transform_json(json_hash['timingTiming']) unless json_hash['timingTiming'].nil?
|
316
|
+
result['timingDateTime'] = PrimitiveDateTime.transform_json(json_hash['timingDateTime'], json_hash['_timingDateTime']) unless json_hash['timingDateTime'].nil?
|
317
|
+
result['timingAge'] = Age.transform_json(json_hash['timingAge']) unless json_hash['timingAge'].nil?
|
318
|
+
result['timingPeriod'] = Period.transform_json(json_hash['timingPeriod']) unless json_hash['timingPeriod'].nil?
|
319
|
+
result['timingRange'] = Range.transform_json(json_hash['timingRange']) unless json_hash['timingRange'].nil?
|
320
|
+
result['timingDuration'] = Duration.transform_json(json_hash['timingDuration']) unless json_hash['timingDuration'].nil?
|
321
|
+
result['location'] = Reference.transform_json(json_hash['location']) unless json_hash['location'].nil?
|
322
|
+
result['participant'] = json_hash['participant'].map { |var| ActivityDefinitionParticipant.transform_json(var) } unless json_hash['participant'].nil?
|
323
|
+
result['productReference'] = Reference.transform_json(json_hash['productReference']) unless json_hash['productReference'].nil?
|
324
|
+
result['productCodeableConcept'] = CodeableConcept.transform_json(json_hash['productCodeableConcept']) unless json_hash['productCodeableConcept'].nil?
|
325
|
+
result['quantity'] = SimpleQuantity.transform_json(json_hash['quantity']) unless json_hash['quantity'].nil?
|
326
|
+
result['dosage'] = json_hash['dosage'].map { |var| Dosage.transform_json(var) } unless json_hash['dosage'].nil?
|
327
|
+
result['bodySite'] = json_hash['bodySite'].map { |var| CodeableConcept.transform_json(var) } unless json_hash['bodySite'].nil?
|
328
|
+
result['specimenRequirement'] = json_hash['specimenRequirement'].map { |var| Reference.transform_json(var) } unless json_hash['specimenRequirement'].nil?
|
329
|
+
result['observationRequirement'] = json_hash['observationRequirement'].map { |var| Reference.transform_json(var) } unless json_hash['observationRequirement'].nil?
|
330
|
+
result['observationResultRequirement'] = json_hash['observationResultRequirement'].map { |var| Reference.transform_json(var) } unless json_hash['observationResultRequirement'].nil?
|
331
|
+
result['transform'] = PrimitiveCanonical.transform_json(json_hash['transform'], json_hash['_transform']) unless json_hash['transform'].nil?
|
332
|
+
result['dynamicValue'] = json_hash['dynamicValue'].map { |var| ActivityDefinitionDynamicValue.transform_json(var) } unless json_hash['dynamicValue'].nil?
|
333
|
+
|
334
|
+
result
|
335
|
+
end
|
336
|
+
end
|
337
|
+
end
|