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,42 @@
|
|
1
|
+
module FHIR
|
2
|
+
# fhir/example_scenario_process_step_alternative.rb
|
3
|
+
class ExampleScenarioProcessStepAlternative < BackboneElement
|
4
|
+
include Mongoid::Document
|
5
|
+
embeds_one :title, class_name: 'FHIR::PrimitiveString'
|
6
|
+
embeds_one :description, class_name: 'FHIR::PrimitiveMarkdown'
|
7
|
+
embeds_many :step, class_name: 'FHIR::ExampleScenarioProcessStep'
|
8
|
+
|
9
|
+
def as_json(*args)
|
10
|
+
result = super
|
11
|
+
unless self.title.nil?
|
12
|
+
result['title'] = self.title.value
|
13
|
+
serialized = Extension.serializePrimitiveExtension(self.title)
|
14
|
+
result['_title'] = serialized unless serialized.nil?
|
15
|
+
end
|
16
|
+
unless self.description.nil?
|
17
|
+
result['description'] = self.description.value
|
18
|
+
serialized = Extension.serializePrimitiveExtension(self.description)
|
19
|
+
result['_description'] = serialized unless serialized.nil?
|
20
|
+
end
|
21
|
+
unless self.step.nil? || !self.step.any?
|
22
|
+
result['step'] = self.step.map{ |x| x.as_json(*args) }
|
23
|
+
end
|
24
|
+
result.delete('id')
|
25
|
+
unless self.fhirId.nil?
|
26
|
+
result['id'] = self.fhirId
|
27
|
+
result.delete('fhirId')
|
28
|
+
end
|
29
|
+
result
|
30
|
+
end
|
31
|
+
|
32
|
+
def self.transform_json(json_hash, target = ExampleScenarioProcessStepAlternative.new)
|
33
|
+
|
34
|
+
result = self.superclass.transform_json(json_hash, target)
|
35
|
+
result['title'] = PrimitiveString.transform_json(json_hash['title'], json_hash['_title']) unless json_hash['title'].nil?
|
36
|
+
result['description'] = PrimitiveMarkdown.transform_json(json_hash['description'], json_hash['_description']) unless json_hash['description'].nil?
|
37
|
+
result['step'] = json_hash['step'].map { |var| ExampleScenarioProcessStep.transform_json(var) } unless json_hash['step'].nil?
|
38
|
+
|
39
|
+
result
|
40
|
+
end
|
41
|
+
end
|
42
|
+
end
|
@@ -0,0 +1,89 @@
|
|
1
|
+
module FHIR
|
2
|
+
# fhir/example_scenario_process_step_operation.rb
|
3
|
+
class ExampleScenarioProcessStepOperation < BackboneElement
|
4
|
+
include Mongoid::Document
|
5
|
+
embeds_one :number, class_name: 'FHIR::PrimitiveString'
|
6
|
+
embeds_one :type, class_name: 'FHIR::PrimitiveString'
|
7
|
+
embeds_one :name, class_name: 'FHIR::PrimitiveString'
|
8
|
+
embeds_one :initiator, class_name: 'FHIR::PrimitiveString'
|
9
|
+
embeds_one :receiver, class_name: 'FHIR::PrimitiveString'
|
10
|
+
embeds_one :description, class_name: 'FHIR::PrimitiveMarkdown'
|
11
|
+
embeds_one :initiatorActive, class_name: 'FHIR::PrimitiveBoolean'
|
12
|
+
embeds_one :receiverActive, class_name: 'FHIR::PrimitiveBoolean'
|
13
|
+
embeds_one :request, class_name: 'FHIR::ExampleScenarioInstanceContainedInstance'
|
14
|
+
embeds_one :response, class_name: 'FHIR::ExampleScenarioInstanceContainedInstance'
|
15
|
+
|
16
|
+
def as_json(*args)
|
17
|
+
result = super
|
18
|
+
unless self.number.nil?
|
19
|
+
result['number'] = self.number.value
|
20
|
+
serialized = Extension.serializePrimitiveExtension(self.number)
|
21
|
+
result['_number'] = serialized unless serialized.nil?
|
22
|
+
end
|
23
|
+
unless self.type.nil?
|
24
|
+
result['type'] = self.type.value
|
25
|
+
serialized = Extension.serializePrimitiveExtension(self.type)
|
26
|
+
result['_type'] = serialized unless serialized.nil?
|
27
|
+
end
|
28
|
+
unless self.name.nil?
|
29
|
+
result['name'] = self.name.value
|
30
|
+
serialized = Extension.serializePrimitiveExtension(self.name)
|
31
|
+
result['_name'] = serialized unless serialized.nil?
|
32
|
+
end
|
33
|
+
unless self.initiator.nil?
|
34
|
+
result['initiator'] = self.initiator.value
|
35
|
+
serialized = Extension.serializePrimitiveExtension(self.initiator)
|
36
|
+
result['_initiator'] = serialized unless serialized.nil?
|
37
|
+
end
|
38
|
+
unless self.receiver.nil?
|
39
|
+
result['receiver'] = self.receiver.value
|
40
|
+
serialized = Extension.serializePrimitiveExtension(self.receiver)
|
41
|
+
result['_receiver'] = serialized unless serialized.nil?
|
42
|
+
end
|
43
|
+
unless self.description.nil?
|
44
|
+
result['description'] = self.description.value
|
45
|
+
serialized = Extension.serializePrimitiveExtension(self.description)
|
46
|
+
result['_description'] = serialized unless serialized.nil?
|
47
|
+
end
|
48
|
+
unless self.initiatorActive.nil?
|
49
|
+
result['initiatorActive'] = self.initiatorActive.value
|
50
|
+
serialized = Extension.serializePrimitiveExtension(self.initiatorActive)
|
51
|
+
result['_initiatorActive'] = serialized unless serialized.nil?
|
52
|
+
end
|
53
|
+
unless self.receiverActive.nil?
|
54
|
+
result['receiverActive'] = self.receiverActive.value
|
55
|
+
serialized = Extension.serializePrimitiveExtension(self.receiverActive)
|
56
|
+
result['_receiverActive'] = serialized unless serialized.nil?
|
57
|
+
end
|
58
|
+
unless self.request.nil?
|
59
|
+
result['request'] = self.request.as_json(*args)
|
60
|
+
end
|
61
|
+
unless self.response.nil?
|
62
|
+
result['response'] = self.response.as_json(*args)
|
63
|
+
end
|
64
|
+
result.delete('id')
|
65
|
+
unless self.fhirId.nil?
|
66
|
+
result['id'] = self.fhirId
|
67
|
+
result.delete('fhirId')
|
68
|
+
end
|
69
|
+
result
|
70
|
+
end
|
71
|
+
|
72
|
+
def self.transform_json(json_hash, target = ExampleScenarioProcessStepOperation.new)
|
73
|
+
|
74
|
+
result = self.superclass.transform_json(json_hash, target)
|
75
|
+
result['number'] = PrimitiveString.transform_json(json_hash['number'], json_hash['_number']) unless json_hash['number'].nil?
|
76
|
+
result['type'] = PrimitiveString.transform_json(json_hash['type'], json_hash['_type']) unless json_hash['type'].nil?
|
77
|
+
result['name'] = PrimitiveString.transform_json(json_hash['name'], json_hash['_name']) unless json_hash['name'].nil?
|
78
|
+
result['initiator'] = PrimitiveString.transform_json(json_hash['initiator'], json_hash['_initiator']) unless json_hash['initiator'].nil?
|
79
|
+
result['receiver'] = PrimitiveString.transform_json(json_hash['receiver'], json_hash['_receiver']) unless json_hash['receiver'].nil?
|
80
|
+
result['description'] = PrimitiveMarkdown.transform_json(json_hash['description'], json_hash['_description']) unless json_hash['description'].nil?
|
81
|
+
result['initiatorActive'] = PrimitiveBoolean.transform_json(json_hash['initiatorActive'], json_hash['_initiatorActive']) unless json_hash['initiatorActive'].nil?
|
82
|
+
result['receiverActive'] = PrimitiveBoolean.transform_json(json_hash['receiverActive'], json_hash['_receiverActive']) unless json_hash['receiverActive'].nil?
|
83
|
+
result['request'] = ExampleScenarioInstanceContainedInstance.transform_json(json_hash['request']) unless json_hash['request'].nil?
|
84
|
+
result['response'] = ExampleScenarioInstanceContainedInstance.transform_json(json_hash['response']) unless json_hash['response'].nil?
|
85
|
+
|
86
|
+
result
|
87
|
+
end
|
88
|
+
end
|
89
|
+
end
|
@@ -0,0 +1,255 @@
|
|
1
|
+
module FHIR
|
2
|
+
# fhir/explanation_of_benefit.rb
|
3
|
+
class ExplanationOfBenefit < DomainResource
|
4
|
+
include Mongoid::Document
|
5
|
+
embeds_many :identifier, class_name: 'FHIR::Identifier'
|
6
|
+
embeds_one :status, class_name: 'FHIR::ExplanationOfBenefitStatus'
|
7
|
+
embeds_one :type, class_name: 'FHIR::CodeableConcept'
|
8
|
+
embeds_one :subType, class_name: 'FHIR::CodeableConcept'
|
9
|
+
embeds_one :use, class_name: 'FHIR::Use'
|
10
|
+
embeds_one :patient, class_name: 'FHIR::Reference'
|
11
|
+
embeds_one :billablePeriod, class_name: 'FHIR::Period'
|
12
|
+
embeds_one :created, class_name: 'FHIR::PrimitiveDateTime'
|
13
|
+
embeds_one :enterer, class_name: 'FHIR::Reference'
|
14
|
+
embeds_one :insurer, class_name: 'FHIR::Reference'
|
15
|
+
embeds_one :provider, class_name: 'FHIR::Reference'
|
16
|
+
embeds_one :priority, class_name: 'FHIR::CodeableConcept'
|
17
|
+
embeds_one :fundsReserveRequested, class_name: 'FHIR::CodeableConcept'
|
18
|
+
embeds_one :fundsReserve, class_name: 'FHIR::CodeableConcept'
|
19
|
+
embeds_many :related, class_name: 'FHIR::ExplanationOfBenefitRelated'
|
20
|
+
embeds_one :prescription, class_name: 'FHIR::Reference'
|
21
|
+
embeds_one :originalPrescription, class_name: 'FHIR::Reference'
|
22
|
+
embeds_one :payee, class_name: 'FHIR::ExplanationOfBenefitPayee'
|
23
|
+
embeds_one :referral, class_name: 'FHIR::Reference'
|
24
|
+
embeds_one :facility, class_name: 'FHIR::Reference'
|
25
|
+
embeds_one :claim, class_name: 'FHIR::Reference'
|
26
|
+
embeds_one :claimResponse, class_name: 'FHIR::Reference'
|
27
|
+
embeds_one :outcome, class_name: 'FHIR::RemittanceOutcome'
|
28
|
+
embeds_one :disposition, class_name: 'FHIR::PrimitiveString'
|
29
|
+
embeds_many :preAuthRef, class_name: 'FHIR::PrimitiveString'
|
30
|
+
embeds_many :preAuthRefPeriod, class_name: 'FHIR::Period'
|
31
|
+
embeds_many :careTeam, class_name: 'FHIR::ExplanationOfBenefitCareTeam'
|
32
|
+
embeds_many :supportingInfo, class_name: 'FHIR::ExplanationOfBenefitSupportingInfo'
|
33
|
+
embeds_many :diagnosis, class_name: 'FHIR::ExplanationOfBenefitDiagnosis'
|
34
|
+
embeds_many :procedure, class_name: 'FHIR::ExplanationOfBenefitProcedure'
|
35
|
+
embeds_one :precedence, class_name: 'FHIR::PrimitivePositiveInt'
|
36
|
+
embeds_many :insurance, class_name: 'FHIR::ExplanationOfBenefitInsurance'
|
37
|
+
embeds_one :accident, class_name: 'FHIR::ExplanationOfBenefitAccident'
|
38
|
+
embeds_many :item, class_name: 'FHIR::ExplanationOfBenefitItem'
|
39
|
+
embeds_many :addItem, class_name: 'FHIR::ExplanationOfBenefitAddItem'
|
40
|
+
embeds_many :adjudication, class_name: 'FHIR::ExplanationOfBenefitItemAdjudication'
|
41
|
+
embeds_many :total, class_name: 'FHIR::ExplanationOfBenefitTotal'
|
42
|
+
embeds_one :payment, class_name: 'FHIR::ExplanationOfBenefitPayment'
|
43
|
+
embeds_one :formCode, class_name: 'FHIR::CodeableConcept'
|
44
|
+
embeds_one :form, class_name: 'FHIR::Attachment'
|
45
|
+
embeds_many :processNote, class_name: 'FHIR::ExplanationOfBenefitProcessNote'
|
46
|
+
embeds_one :benefitPeriod, class_name: 'FHIR::Period'
|
47
|
+
embeds_many :benefitBalance, class_name: 'FHIR::ExplanationOfBenefitBenefitBalance'
|
48
|
+
|
49
|
+
def as_json(*args)
|
50
|
+
result = super
|
51
|
+
unless self.identifier.nil? || !self.identifier.any?
|
52
|
+
result['identifier'] = self.identifier.map{ |x| x.as_json(*args) }
|
53
|
+
end
|
54
|
+
unless self.status.nil?
|
55
|
+
result['status'] = self.status.value
|
56
|
+
serialized = Extension.serializePrimitiveExtension(self.status)
|
57
|
+
result['_status'] = serialized unless serialized.nil?
|
58
|
+
end
|
59
|
+
unless self.type.nil?
|
60
|
+
result['type'] = self.type.as_json(*args)
|
61
|
+
end
|
62
|
+
unless self.subType.nil?
|
63
|
+
result['subType'] = self.subType.as_json(*args)
|
64
|
+
end
|
65
|
+
unless self.use.nil?
|
66
|
+
result['use'] = self.use.value
|
67
|
+
serialized = Extension.serializePrimitiveExtension(self.use)
|
68
|
+
result['_use'] = serialized unless serialized.nil?
|
69
|
+
end
|
70
|
+
unless self.patient.nil?
|
71
|
+
result['patient'] = self.patient.as_json(*args)
|
72
|
+
end
|
73
|
+
unless self.billablePeriod.nil?
|
74
|
+
result['billablePeriod'] = self.billablePeriod.as_json(*args)
|
75
|
+
end
|
76
|
+
unless self.created.nil?
|
77
|
+
result['created'] = self.created.value
|
78
|
+
serialized = Extension.serializePrimitiveExtension(self.created)
|
79
|
+
result['_created'] = serialized unless serialized.nil?
|
80
|
+
end
|
81
|
+
unless self.enterer.nil?
|
82
|
+
result['enterer'] = self.enterer.as_json(*args)
|
83
|
+
end
|
84
|
+
unless self.insurer.nil?
|
85
|
+
result['insurer'] = self.insurer.as_json(*args)
|
86
|
+
end
|
87
|
+
unless self.provider.nil?
|
88
|
+
result['provider'] = self.provider.as_json(*args)
|
89
|
+
end
|
90
|
+
unless self.priority.nil?
|
91
|
+
result['priority'] = self.priority.as_json(*args)
|
92
|
+
end
|
93
|
+
unless self.fundsReserveRequested.nil?
|
94
|
+
result['fundsReserveRequested'] = self.fundsReserveRequested.as_json(*args)
|
95
|
+
end
|
96
|
+
unless self.fundsReserve.nil?
|
97
|
+
result['fundsReserve'] = self.fundsReserve.as_json(*args)
|
98
|
+
end
|
99
|
+
unless self.related.nil? || !self.related.any?
|
100
|
+
result['related'] = self.related.map{ |x| x.as_json(*args) }
|
101
|
+
end
|
102
|
+
unless self.prescription.nil?
|
103
|
+
result['prescription'] = self.prescription.as_json(*args)
|
104
|
+
end
|
105
|
+
unless self.originalPrescription.nil?
|
106
|
+
result['originalPrescription'] = self.originalPrescription.as_json(*args)
|
107
|
+
end
|
108
|
+
unless self.payee.nil?
|
109
|
+
result['payee'] = self.payee.as_json(*args)
|
110
|
+
end
|
111
|
+
unless self.referral.nil?
|
112
|
+
result['referral'] = self.referral.as_json(*args)
|
113
|
+
end
|
114
|
+
unless self.facility.nil?
|
115
|
+
result['facility'] = self.facility.as_json(*args)
|
116
|
+
end
|
117
|
+
unless self.claim.nil?
|
118
|
+
result['claim'] = self.claim.as_json(*args)
|
119
|
+
end
|
120
|
+
unless self.claimResponse.nil?
|
121
|
+
result['claimResponse'] = self.claimResponse.as_json(*args)
|
122
|
+
end
|
123
|
+
unless self.outcome.nil?
|
124
|
+
result['outcome'] = self.outcome.value
|
125
|
+
serialized = Extension.serializePrimitiveExtension(self.outcome)
|
126
|
+
result['_outcome'] = serialized unless serialized.nil?
|
127
|
+
end
|
128
|
+
unless self.disposition.nil?
|
129
|
+
result['disposition'] = self.disposition.value
|
130
|
+
serialized = Extension.serializePrimitiveExtension(self.disposition)
|
131
|
+
result['_disposition'] = serialized unless serialized.nil?
|
132
|
+
end
|
133
|
+
unless self.preAuthRef.nil? || !self.preAuthRef.any?
|
134
|
+
result['preAuthRef'] = self.preAuthRef.compact().map{ |x| x.value }
|
135
|
+
serialized = Extension.serializePrimitiveExtensionArray(self.preAuthRef)
|
136
|
+
result['_preAuthRef'] = serialized unless serialized.nil? || !serialized.any?
|
137
|
+
end
|
138
|
+
unless self.preAuthRefPeriod.nil? || !self.preAuthRefPeriod.any?
|
139
|
+
result['preAuthRefPeriod'] = self.preAuthRefPeriod.map{ |x| x.as_json(*args) }
|
140
|
+
end
|
141
|
+
unless self.careTeam.nil? || !self.careTeam.any?
|
142
|
+
result['careTeam'] = self.careTeam.map{ |x| x.as_json(*args) }
|
143
|
+
end
|
144
|
+
unless self.supportingInfo.nil? || !self.supportingInfo.any?
|
145
|
+
result['supportingInfo'] = self.supportingInfo.map{ |x| x.as_json(*args) }
|
146
|
+
end
|
147
|
+
unless self.diagnosis.nil? || !self.diagnosis.any?
|
148
|
+
result['diagnosis'] = self.diagnosis.map{ |x| x.as_json(*args) }
|
149
|
+
end
|
150
|
+
unless self.procedure.nil? || !self.procedure.any?
|
151
|
+
result['procedure'] = self.procedure.map{ |x| x.as_json(*args) }
|
152
|
+
end
|
153
|
+
unless self.precedence.nil?
|
154
|
+
result['precedence'] = self.precedence.value
|
155
|
+
serialized = Extension.serializePrimitiveExtension(self.precedence)
|
156
|
+
result['_precedence'] = serialized unless serialized.nil?
|
157
|
+
end
|
158
|
+
unless self.insurance.nil? || !self.insurance.any?
|
159
|
+
result['insurance'] = self.insurance.map{ |x| x.as_json(*args) }
|
160
|
+
end
|
161
|
+
unless self.accident.nil?
|
162
|
+
result['accident'] = self.accident.as_json(*args)
|
163
|
+
end
|
164
|
+
unless self.item.nil? || !self.item.any?
|
165
|
+
result['item'] = self.item.map{ |x| x.as_json(*args) }
|
166
|
+
end
|
167
|
+
unless self.addItem.nil? || !self.addItem.any?
|
168
|
+
result['addItem'] = self.addItem.map{ |x| x.as_json(*args) }
|
169
|
+
end
|
170
|
+
unless self.adjudication.nil? || !self.adjudication.any?
|
171
|
+
result['adjudication'] = self.adjudication.map{ |x| x.as_json(*args) }
|
172
|
+
end
|
173
|
+
unless self.total.nil? || !self.total.any?
|
174
|
+
result['total'] = self.total.map{ |x| x.as_json(*args) }
|
175
|
+
end
|
176
|
+
unless self.payment.nil?
|
177
|
+
result['payment'] = self.payment.as_json(*args)
|
178
|
+
end
|
179
|
+
unless self.formCode.nil?
|
180
|
+
result['formCode'] = self.formCode.as_json(*args)
|
181
|
+
end
|
182
|
+
unless self.form.nil?
|
183
|
+
result['form'] = self.form.as_json(*args)
|
184
|
+
end
|
185
|
+
unless self.processNote.nil? || !self.processNote.any?
|
186
|
+
result['processNote'] = self.processNote.map{ |x| x.as_json(*args) }
|
187
|
+
end
|
188
|
+
unless self.benefitPeriod.nil?
|
189
|
+
result['benefitPeriod'] = self.benefitPeriod.as_json(*args)
|
190
|
+
end
|
191
|
+
unless self.benefitBalance.nil? || !self.benefitBalance.any?
|
192
|
+
result['benefitBalance'] = self.benefitBalance.map{ |x| x.as_json(*args) }
|
193
|
+
end
|
194
|
+
result.delete('id')
|
195
|
+
unless self.fhirId.nil?
|
196
|
+
result['id'] = self.fhirId
|
197
|
+
result.delete('fhirId')
|
198
|
+
end
|
199
|
+
result
|
200
|
+
end
|
201
|
+
|
202
|
+
def self.transform_json(json_hash, target = ExplanationOfBenefit.new)
|
203
|
+
|
204
|
+
result = self.superclass.transform_json(json_hash, target)
|
205
|
+
result['identifier'] = json_hash['identifier'].map { |var| Identifier.transform_json(var) } unless json_hash['identifier'].nil?
|
206
|
+
result['status'] = ExplanationOfBenefitStatus.transform_json(json_hash['status'], json_hash['_status']) unless json_hash['status'].nil?
|
207
|
+
result['type'] = CodeableConcept.transform_json(json_hash['type']) unless json_hash['type'].nil?
|
208
|
+
result['subType'] = CodeableConcept.transform_json(json_hash['subType']) unless json_hash['subType'].nil?
|
209
|
+
result['use'] = Use.transform_json(json_hash['use'], json_hash['_use']) unless json_hash['use'].nil?
|
210
|
+
result['patient'] = Reference.transform_json(json_hash['patient']) unless json_hash['patient'].nil?
|
211
|
+
result['billablePeriod'] = Period.transform_json(json_hash['billablePeriod']) unless json_hash['billablePeriod'].nil?
|
212
|
+
result['created'] = PrimitiveDateTime.transform_json(json_hash['created'], json_hash['_created']) unless json_hash['created'].nil?
|
213
|
+
result['enterer'] = Reference.transform_json(json_hash['enterer']) unless json_hash['enterer'].nil?
|
214
|
+
result['insurer'] = Reference.transform_json(json_hash['insurer']) unless json_hash['insurer'].nil?
|
215
|
+
result['provider'] = Reference.transform_json(json_hash['provider']) unless json_hash['provider'].nil?
|
216
|
+
result['priority'] = CodeableConcept.transform_json(json_hash['priority']) unless json_hash['priority'].nil?
|
217
|
+
result['fundsReserveRequested'] = CodeableConcept.transform_json(json_hash['fundsReserveRequested']) unless json_hash['fundsReserveRequested'].nil?
|
218
|
+
result['fundsReserve'] = CodeableConcept.transform_json(json_hash['fundsReserve']) unless json_hash['fundsReserve'].nil?
|
219
|
+
result['related'] = json_hash['related'].map { |var| ExplanationOfBenefitRelated.transform_json(var) } unless json_hash['related'].nil?
|
220
|
+
result['prescription'] = Reference.transform_json(json_hash['prescription']) unless json_hash['prescription'].nil?
|
221
|
+
result['originalPrescription'] = Reference.transform_json(json_hash['originalPrescription']) unless json_hash['originalPrescription'].nil?
|
222
|
+
result['payee'] = ExplanationOfBenefitPayee.transform_json(json_hash['payee']) unless json_hash['payee'].nil?
|
223
|
+
result['referral'] = Reference.transform_json(json_hash['referral']) unless json_hash['referral'].nil?
|
224
|
+
result['facility'] = Reference.transform_json(json_hash['facility']) unless json_hash['facility'].nil?
|
225
|
+
result['claim'] = Reference.transform_json(json_hash['claim']) unless json_hash['claim'].nil?
|
226
|
+
result['claimResponse'] = Reference.transform_json(json_hash['claimResponse']) unless json_hash['claimResponse'].nil?
|
227
|
+
result['outcome'] = RemittanceOutcome.transform_json(json_hash['outcome'], json_hash['_outcome']) unless json_hash['outcome'].nil?
|
228
|
+
result['disposition'] = PrimitiveString.transform_json(json_hash['disposition'], json_hash['_disposition']) unless json_hash['disposition'].nil?
|
229
|
+
result['preAuthRef'] = json_hash['preAuthRef'].each_with_index.map do |var, i|
|
230
|
+
extension_hash = json_hash['_preAuthRef'] && json_hash['_preAuthRef'][i]
|
231
|
+
PrimitiveString.transform_json(var, extension_hash)
|
232
|
+
end unless json_hash['preAuthRef'].nil?
|
233
|
+
result['preAuthRefPeriod'] = json_hash['preAuthRefPeriod'].map { |var| Period.transform_json(var) } unless json_hash['preAuthRefPeriod'].nil?
|
234
|
+
result['careTeam'] = json_hash['careTeam'].map { |var| ExplanationOfBenefitCareTeam.transform_json(var) } unless json_hash['careTeam'].nil?
|
235
|
+
result['supportingInfo'] = json_hash['supportingInfo'].map { |var| ExplanationOfBenefitSupportingInfo.transform_json(var) } unless json_hash['supportingInfo'].nil?
|
236
|
+
result['diagnosis'] = json_hash['diagnosis'].map { |var| ExplanationOfBenefitDiagnosis.transform_json(var) } unless json_hash['diagnosis'].nil?
|
237
|
+
result['procedure'] = json_hash['procedure'].map { |var| ExplanationOfBenefitProcedure.transform_json(var) } unless json_hash['procedure'].nil?
|
238
|
+
result['precedence'] = PrimitivePositiveInt.transform_json(json_hash['precedence'], json_hash['_precedence']) unless json_hash['precedence'].nil?
|
239
|
+
result['insurance'] = json_hash['insurance'].map { |var| ExplanationOfBenefitInsurance.transform_json(var) } unless json_hash['insurance'].nil?
|
240
|
+
result['accident'] = ExplanationOfBenefitAccident.transform_json(json_hash['accident']) unless json_hash['accident'].nil?
|
241
|
+
result['item'] = json_hash['item'].map { |var| ExplanationOfBenefitItem.transform_json(var) } unless json_hash['item'].nil?
|
242
|
+
result['addItem'] = json_hash['addItem'].map { |var| ExplanationOfBenefitAddItem.transform_json(var) } unless json_hash['addItem'].nil?
|
243
|
+
result['adjudication'] = json_hash['adjudication'].map { |var| ExplanationOfBenefitItemAdjudication.transform_json(var) } unless json_hash['adjudication'].nil?
|
244
|
+
result['total'] = json_hash['total'].map { |var| ExplanationOfBenefitTotal.transform_json(var) } unless json_hash['total'].nil?
|
245
|
+
result['payment'] = ExplanationOfBenefitPayment.transform_json(json_hash['payment']) unless json_hash['payment'].nil?
|
246
|
+
result['formCode'] = CodeableConcept.transform_json(json_hash['formCode']) unless json_hash['formCode'].nil?
|
247
|
+
result['form'] = Attachment.transform_json(json_hash['form']) unless json_hash['form'].nil?
|
248
|
+
result['processNote'] = json_hash['processNote'].map { |var| ExplanationOfBenefitProcessNote.transform_json(var) } unless json_hash['processNote'].nil?
|
249
|
+
result['benefitPeriod'] = Period.transform_json(json_hash['benefitPeriod']) unless json_hash['benefitPeriod'].nil?
|
250
|
+
result['benefitBalance'] = json_hash['benefitBalance'].map { |var| ExplanationOfBenefitBenefitBalance.transform_json(var) } unless json_hash['benefitBalance'].nil?
|
251
|
+
|
252
|
+
result
|
253
|
+
end
|
254
|
+
end
|
255
|
+
end
|
@@ -0,0 +1,45 @@
|
|
1
|
+
module FHIR
|
2
|
+
# fhir/explanation_of_benefit_accident.rb
|
3
|
+
class ExplanationOfBenefitAccident < BackboneElement
|
4
|
+
include Mongoid::Document
|
5
|
+
embeds_one :date, class_name: 'FHIR::PrimitiveDate'
|
6
|
+
embeds_one :type, class_name: 'FHIR::CodeableConcept'
|
7
|
+
embeds_one :locationAddress, class_name: 'FHIR::Address'
|
8
|
+
embeds_one :locationReference, class_name: 'FHIR::Reference'
|
9
|
+
|
10
|
+
def as_json(*args)
|
11
|
+
result = super
|
12
|
+
unless self.date.nil?
|
13
|
+
result['date'] = self.date.value
|
14
|
+
serialized = Extension.serializePrimitiveExtension(self.date)
|
15
|
+
result['_date'] = serialized unless serialized.nil?
|
16
|
+
end
|
17
|
+
unless self.type.nil?
|
18
|
+
result['type'] = self.type.as_json(*args)
|
19
|
+
end
|
20
|
+
unless self.locationAddress.nil?
|
21
|
+
result['locationAddress'] = self.locationAddress.as_json(*args)
|
22
|
+
end
|
23
|
+
unless self.locationReference.nil?
|
24
|
+
result['locationReference'] = self.locationReference.as_json(*args)
|
25
|
+
end
|
26
|
+
result.delete('id')
|
27
|
+
unless self.fhirId.nil?
|
28
|
+
result['id'] = self.fhirId
|
29
|
+
result.delete('fhirId')
|
30
|
+
end
|
31
|
+
result
|
32
|
+
end
|
33
|
+
|
34
|
+
def self.transform_json(json_hash, target = ExplanationOfBenefitAccident.new)
|
35
|
+
|
36
|
+
result = self.superclass.transform_json(json_hash, target)
|
37
|
+
result['date'] = PrimitiveDate.transform_json(json_hash['date'], json_hash['_date']) unless json_hash['date'].nil?
|
38
|
+
result['type'] = CodeableConcept.transform_json(json_hash['type']) unless json_hash['type'].nil?
|
39
|
+
result['locationAddress'] = Address.transform_json(json_hash['locationAddress']) unless json_hash['locationAddress'].nil?
|
40
|
+
result['locationReference'] = Reference.transform_json(json_hash['locationReference']) unless json_hash['locationReference'].nil?
|
41
|
+
|
42
|
+
result
|
43
|
+
end
|
44
|
+
end
|
45
|
+
end
|
@@ -0,0 +1,152 @@
|
|
1
|
+
module FHIR
|
2
|
+
# fhir/explanation_of_benefit_add_item.rb
|
3
|
+
class ExplanationOfBenefitAddItem < BackboneElement
|
4
|
+
include Mongoid::Document
|
5
|
+
embeds_many :itemSequence, class_name: 'FHIR::PrimitivePositiveInt'
|
6
|
+
embeds_many :detailSequence, class_name: 'FHIR::PrimitivePositiveInt'
|
7
|
+
embeds_many :subDetailSequence, class_name: 'FHIR::PrimitivePositiveInt'
|
8
|
+
embeds_many :provider, class_name: 'FHIR::Reference'
|
9
|
+
embeds_one :productOrService, class_name: 'FHIR::CodeableConcept'
|
10
|
+
embeds_many :modifier, class_name: 'FHIR::CodeableConcept'
|
11
|
+
embeds_many :programCode, class_name: 'FHIR::CodeableConcept'
|
12
|
+
embeds_one :servicedDate, class_name: 'FHIR::PrimitiveDate'
|
13
|
+
embeds_one :servicedPeriod, class_name: 'FHIR::Period'
|
14
|
+
embeds_one :locationCodeableConcept, class_name: 'FHIR::CodeableConcept'
|
15
|
+
embeds_one :locationAddress, class_name: 'FHIR::Address'
|
16
|
+
embeds_one :locationReference, class_name: 'FHIR::Reference'
|
17
|
+
embeds_one :quantity, class_name: 'FHIR::SimpleQuantity'
|
18
|
+
embeds_one :unitPrice, class_name: 'FHIR::Money'
|
19
|
+
embeds_one :factor, class_name: 'FHIR::PrimitiveDecimal'
|
20
|
+
embeds_one :net, class_name: 'FHIR::Money'
|
21
|
+
embeds_one :bodySite, class_name: 'FHIR::CodeableConcept'
|
22
|
+
embeds_many :subSite, class_name: 'FHIR::CodeableConcept'
|
23
|
+
embeds_many :noteNumber, class_name: 'FHIR::PrimitivePositiveInt'
|
24
|
+
embeds_many :adjudication, class_name: 'FHIR::ExplanationOfBenefitItemAdjudication'
|
25
|
+
embeds_many :detail, class_name: 'FHIR::ExplanationOfBenefitAddItemDetail'
|
26
|
+
|
27
|
+
def as_json(*args)
|
28
|
+
result = super
|
29
|
+
unless self.itemSequence.nil? || !self.itemSequence.any?
|
30
|
+
result['itemSequence'] = self.itemSequence.compact().map{ |x| x.value }
|
31
|
+
serialized = Extension.serializePrimitiveExtensionArray(self.itemSequence)
|
32
|
+
result['_itemSequence'] = serialized unless serialized.nil? || !serialized.any?
|
33
|
+
end
|
34
|
+
unless self.detailSequence.nil? || !self.detailSequence.any?
|
35
|
+
result['detailSequence'] = self.detailSequence.compact().map{ |x| x.value }
|
36
|
+
serialized = Extension.serializePrimitiveExtensionArray(self.detailSequence)
|
37
|
+
result['_detailSequence'] = serialized unless serialized.nil? || !serialized.any?
|
38
|
+
end
|
39
|
+
unless self.subDetailSequence.nil? || !self.subDetailSequence.any?
|
40
|
+
result['subDetailSequence'] = self.subDetailSequence.compact().map{ |x| x.value }
|
41
|
+
serialized = Extension.serializePrimitiveExtensionArray(self.subDetailSequence)
|
42
|
+
result['_subDetailSequence'] = serialized unless serialized.nil? || !serialized.any?
|
43
|
+
end
|
44
|
+
unless self.provider.nil? || !self.provider.any?
|
45
|
+
result['provider'] = self.provider.map{ |x| x.as_json(*args) }
|
46
|
+
end
|
47
|
+
unless self.productOrService.nil?
|
48
|
+
result['productOrService'] = self.productOrService.as_json(*args)
|
49
|
+
end
|
50
|
+
unless self.modifier.nil? || !self.modifier.any?
|
51
|
+
result['modifier'] = self.modifier.map{ |x| x.as_json(*args) }
|
52
|
+
end
|
53
|
+
unless self.programCode.nil? || !self.programCode.any?
|
54
|
+
result['programCode'] = self.programCode.map{ |x| x.as_json(*args) }
|
55
|
+
end
|
56
|
+
unless self.servicedDate.nil?
|
57
|
+
result['servicedDate'] = self.servicedDate.value
|
58
|
+
serialized = Extension.serializePrimitiveExtension(self.servicedDate)
|
59
|
+
result['_servicedDate'] = serialized unless serialized.nil?
|
60
|
+
end
|
61
|
+
unless self.servicedPeriod.nil?
|
62
|
+
result['servicedPeriod'] = self.servicedPeriod.as_json(*args)
|
63
|
+
end
|
64
|
+
unless self.locationCodeableConcept.nil?
|
65
|
+
result['locationCodeableConcept'] = self.locationCodeableConcept.as_json(*args)
|
66
|
+
end
|
67
|
+
unless self.locationAddress.nil?
|
68
|
+
result['locationAddress'] = self.locationAddress.as_json(*args)
|
69
|
+
end
|
70
|
+
unless self.locationReference.nil?
|
71
|
+
result['locationReference'] = self.locationReference.as_json(*args)
|
72
|
+
end
|
73
|
+
unless self.quantity.nil?
|
74
|
+
result['quantity'] = self.quantity.as_json(*args)
|
75
|
+
end
|
76
|
+
unless self.unitPrice.nil?
|
77
|
+
result['unitPrice'] = self.unitPrice.as_json(*args)
|
78
|
+
end
|
79
|
+
unless self.factor.nil?
|
80
|
+
result['factor'] = self.factor.value
|
81
|
+
serialized = Extension.serializePrimitiveExtension(self.factor)
|
82
|
+
result['_factor'] = serialized unless serialized.nil?
|
83
|
+
end
|
84
|
+
unless self.net.nil?
|
85
|
+
result['net'] = self.net.as_json(*args)
|
86
|
+
end
|
87
|
+
unless self.bodySite.nil?
|
88
|
+
result['bodySite'] = self.bodySite.as_json(*args)
|
89
|
+
end
|
90
|
+
unless self.subSite.nil? || !self.subSite.any?
|
91
|
+
result['subSite'] = self.subSite.map{ |x| x.as_json(*args) }
|
92
|
+
end
|
93
|
+
unless self.noteNumber.nil? || !self.noteNumber.any?
|
94
|
+
result['noteNumber'] = self.noteNumber.compact().map{ |x| x.value }
|
95
|
+
serialized = Extension.serializePrimitiveExtensionArray(self.noteNumber)
|
96
|
+
result['_noteNumber'] = serialized unless serialized.nil? || !serialized.any?
|
97
|
+
end
|
98
|
+
unless self.adjudication.nil? || !self.adjudication.any?
|
99
|
+
result['adjudication'] = self.adjudication.map{ |x| x.as_json(*args) }
|
100
|
+
end
|
101
|
+
unless self.detail.nil? || !self.detail.any?
|
102
|
+
result['detail'] = self.detail.map{ |x| x.as_json(*args) }
|
103
|
+
end
|
104
|
+
result.delete('id')
|
105
|
+
unless self.fhirId.nil?
|
106
|
+
result['id'] = self.fhirId
|
107
|
+
result.delete('fhirId')
|
108
|
+
end
|
109
|
+
result
|
110
|
+
end
|
111
|
+
|
112
|
+
def self.transform_json(json_hash, target = ExplanationOfBenefitAddItem.new)
|
113
|
+
|
114
|
+
result = self.superclass.transform_json(json_hash, target)
|
115
|
+
result['itemSequence'] = json_hash['itemSequence'].each_with_index.map do |var, i|
|
116
|
+
extension_hash = json_hash['_itemSequence'] && json_hash['_itemSequence'][i]
|
117
|
+
PrimitivePositiveInt.transform_json(var, extension_hash)
|
118
|
+
end unless json_hash['itemSequence'].nil?
|
119
|
+
result['detailSequence'] = json_hash['detailSequence'].each_with_index.map do |var, i|
|
120
|
+
extension_hash = json_hash['_detailSequence'] && json_hash['_detailSequence'][i]
|
121
|
+
PrimitivePositiveInt.transform_json(var, extension_hash)
|
122
|
+
end unless json_hash['detailSequence'].nil?
|
123
|
+
result['subDetailSequence'] = json_hash['subDetailSequence'].each_with_index.map do |var, i|
|
124
|
+
extension_hash = json_hash['_subDetailSequence'] && json_hash['_subDetailSequence'][i]
|
125
|
+
PrimitivePositiveInt.transform_json(var, extension_hash)
|
126
|
+
end unless json_hash['subDetailSequence'].nil?
|
127
|
+
result['provider'] = json_hash['provider'].map { |var| Reference.transform_json(var) } unless json_hash['provider'].nil?
|
128
|
+
result['productOrService'] = CodeableConcept.transform_json(json_hash['productOrService']) unless json_hash['productOrService'].nil?
|
129
|
+
result['modifier'] = json_hash['modifier'].map { |var| CodeableConcept.transform_json(var) } unless json_hash['modifier'].nil?
|
130
|
+
result['programCode'] = json_hash['programCode'].map { |var| CodeableConcept.transform_json(var) } unless json_hash['programCode'].nil?
|
131
|
+
result['servicedDate'] = PrimitiveDate.transform_json(json_hash['servicedDate'], json_hash['_servicedDate']) unless json_hash['servicedDate'].nil?
|
132
|
+
result['servicedPeriod'] = Period.transform_json(json_hash['servicedPeriod']) unless json_hash['servicedPeriod'].nil?
|
133
|
+
result['locationCodeableConcept'] = CodeableConcept.transform_json(json_hash['locationCodeableConcept']) unless json_hash['locationCodeableConcept'].nil?
|
134
|
+
result['locationAddress'] = Address.transform_json(json_hash['locationAddress']) unless json_hash['locationAddress'].nil?
|
135
|
+
result['locationReference'] = Reference.transform_json(json_hash['locationReference']) unless json_hash['locationReference'].nil?
|
136
|
+
result['quantity'] = SimpleQuantity.transform_json(json_hash['quantity']) unless json_hash['quantity'].nil?
|
137
|
+
result['unitPrice'] = Money.transform_json(json_hash['unitPrice']) unless json_hash['unitPrice'].nil?
|
138
|
+
result['factor'] = PrimitiveDecimal.transform_json(json_hash['factor'], json_hash['_factor']) unless json_hash['factor'].nil?
|
139
|
+
result['net'] = Money.transform_json(json_hash['net']) unless json_hash['net'].nil?
|
140
|
+
result['bodySite'] = CodeableConcept.transform_json(json_hash['bodySite']) unless json_hash['bodySite'].nil?
|
141
|
+
result['subSite'] = json_hash['subSite'].map { |var| CodeableConcept.transform_json(var) } unless json_hash['subSite'].nil?
|
142
|
+
result['noteNumber'] = json_hash['noteNumber'].each_with_index.map do |var, i|
|
143
|
+
extension_hash = json_hash['_noteNumber'] && json_hash['_noteNumber'][i]
|
144
|
+
PrimitivePositiveInt.transform_json(var, extension_hash)
|
145
|
+
end unless json_hash['noteNumber'].nil?
|
146
|
+
result['adjudication'] = json_hash['adjudication'].map { |var| ExplanationOfBenefitItemAdjudication.transform_json(var) } unless json_hash['adjudication'].nil?
|
147
|
+
result['detail'] = json_hash['detail'].map { |var| ExplanationOfBenefitAddItemDetail.transform_json(var) } unless json_hash['detail'].nil?
|
148
|
+
|
149
|
+
result
|
150
|
+
end
|
151
|
+
end
|
152
|
+
end
|