rubyhealthvault 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/LICENSE +52 -0
- data/README +19 -0
- data/Rakefile +149 -0
- data/bin/certs/HelloWorld-SDK_ID-05a059c9-c309-46af-9b86-b06d42510550.pfx +0 -0
- data/bin/certs/helloWorld.pem +52 -0
- data/bin/example.rb +80 -0
- data/bin/hv.log +118 -0
- data/lib/application.rb +37 -0
- data/lib/code_generation/xsd_parser.rb +376 -0
- data/lib/config.rb +28 -0
- data/lib/connection.rb +61 -0
- data/lib/healthvault.rb +2 -0
- data/lib/request.rb +113 -0
- data/lib/response.rb +50 -0
- data/lib/templates/complex_type_template.erb +64 -0
- data/lib/templates/simple_type_template.erb +65 -0
- data/lib/templates/thing_class_extension_template.erb +22 -0
- data/lib/utils/crypto_utils.rb +69 -0
- data/lib/utils/string_utils.rb +35 -0
- data/lib/wc_data/complex_type.rb +249 -0
- data/lib/wc_data/generated/application/app.rb +217 -0
- data/lib/wc_data/generated/application/app_id_and_incr_auth.rb +118 -0
- data/lib/wc_data/generated/application/app_large_logo.rb +56 -0
- data/lib/wc_data/generated/application/app_large_logo_info.rb +66 -0
- data/lib/wc_data/generated/application/app_persistent_tokens.rb +64 -0
- data/lib/wc_data/generated/application/app_small_logo.rb +56 -0
- data/lib/wc_data/generated/application/app_small_logo_info.rb +66 -0
- data/lib/wc_data/generated/application/app_with_logos.rb +291 -0
- data/lib/wc_data/generated/application/public_key.rb +43 -0
- data/lib/wc_data/generated/application/public_keys.rb +48 -0
- data/lib/wc_data/generated/application/statement.rb +30 -0
- data/lib/wc_data/generated/application/statement_info.rb +66 -0
- data/lib/wc_data/generated/auth/app_record_auth_action.rb +61 -0
- data/lib/wc_data/generated/auth/associated_cred_info.rb +70 -0
- data/lib/wc_data/generated/auth/auth.rb +44 -0
- data/lib/wc_data/generated/auth/auth_session_credential.rb +68 -0
- data/lib/wc_data/generated/auth/auth_session_sub_credential.rb +45 -0
- data/lib/wc_data/generated/auth/auth_xml.rb +44 -0
- data/lib/wc_data/generated/auth/federating_cred.rb +48 -0
- data/lib/wc_data/generated/auth/rule.rb +187 -0
- data/lib/wc_data/generated/auth/rules.rb +48 -0
- data/lib/wc_data/generated/auth/set.rb +70 -0
- data/lib/wc_data/generated/auth/simple_card_space_credential.rb +48 -0
- data/lib/wc_data/generated/auth/simple_passport_credential.rb +47 -0
- data/lib/wc_data/generated/auth/simple_user_pass_credential.rb +48 -0
- data/lib/wc_data/generated/auth/textual_permissions.rb +66 -0
- data/lib/wc_data/generated/auth/textual_permissions_type.rb +81 -0
- data/lib/wc_data/generated/auth/textual_rule.rb +154 -0
- data/lib/wc_data/generated/auth/token.rb +90 -0
- data/lib/wc_data/generated/auth/user_pass_auth_session_cred.rb +92 -0
- data/lib/wc_data/generated/auth/user_pass_cred.rb +70 -0
- data/lib/wc_data/generated/dates/approx_date.rb +82 -0
- data/lib/wc_data/generated/dates/approx_date_time.rb +62 -0
- data/lib/wc_data/generated/dates/date.rb +86 -0
- data/lib/wc_data/generated/dates/date_time.rb +82 -0
- data/lib/wc_data/generated/dates/day.rb +56 -0
- data/lib/wc_data/generated/dates/hour.rb +56 -0
- data/lib/wc_data/generated/dates/millisecond.rb +56 -0
- data/lib/wc_data/generated/dates/minute.rb +56 -0
- data/lib/wc_data/generated/dates/month.rb +56 -0
- data/lib/wc_data/generated/dates/second.rb +56 -0
- data/lib/wc_data/generated/dates/structured_approx_date.rb +82 -0
- data/lib/wc_data/generated/dates/time.rb +102 -0
- data/lib/wc_data/generated/dates/year.rb +56 -0
- data/lib/wc_data/generated/methods/add_application/info.rb +375 -0
- data/lib/wc_data/generated/methods/create_authenticated_session_token/auth_token_info.rb +72 -0
- data/lib/wc_data/generated/methods/create_authenticated_session_token/credential.rb +88 -0
- data/lib/wc_data/generated/methods/create_authenticated_session_token/info.rb +50 -0
- data/lib/wc_data/generated/methods/create_connect_request/info.rb +136 -0
- data/lib/wc_data/generated/methods/delete_open_query/info.rb +50 -0
- data/lib/wc_data/generated/methods/delete_pending_connect_request/info.rb +49 -0
- data/lib/wc_data/generated/methods/get_authorized_connect_requests/info.rb +48 -0
- data/lib/wc_data/generated/methods/get_authorized_records/info.rb +52 -0
- data/lib/wc_data/generated/methods/get_open_query_info/info.rb +50 -0
- data/lib/wc_data/generated/methods/get_person_info/info.rb +48 -0
- data/lib/wc_data/generated/methods/get_thing_type/info.rb +118 -0
- data/lib/wc_data/generated/methods/get_thing_type/thing_type_section_spec.rb +63 -0
- data/lib/wc_data/generated/methods/get_things/info.rb +51 -0
- data/lib/wc_data/generated/methods/get_things/thing_filter_spec.rb +296 -0
- data/lib/wc_data/generated/methods/get_things/thing_format_spec.rb +75 -0
- data/lib/wc_data/generated/methods/get_things/thing_request_group.rb +197 -0
- data/lib/wc_data/generated/methods/get_things/thing_section_spec.rb +67 -0
- data/lib/wc_data/generated/methods/get_vocabulary/info.rb +48 -0
- data/lib/wc_data/generated/methods/get_vocabulary/vocabulary_parameters.rb +73 -0
- data/lib/wc_data/generated/methods/put_things/info.rb +51 -0
- data/lib/wc_data/generated/methods/query_permissions/info.rb +51 -0
- data/lib/wc_data/generated/methods/remove_things/info.rb +52 -0
- data/lib/wc_data/generated/methods/response/add_application/info.rb +51 -0
- data/lib/wc_data/generated/methods/response/any/info.rb +52 -0
- data/lib/wc_data/generated/methods/response/create_authenticated_session_token/app_auth_token_absence_reason.rb +72 -0
- data/lib/wc_data/generated/methods/response/create_authenticated_session_token/auth_token_absence_reason.rb +49 -0
- data/lib/wc_data/generated/methods/response/create_authenticated_session_token/info.rb +78 -0
- data/lib/wc_data/generated/methods/response/create_connect_request/info.rb +52 -0
- data/lib/wc_data/generated/methods/response/delete_open_query/info.rb +52 -0
- data/lib/wc_data/generated/methods/response/get_application_settings/app_settings.rb +54 -0
- data/lib/wc_data/generated/methods/response/get_application_settings/info.rb +70 -0
- data/lib/wc_data/generated/methods/response/get_authorized_connect_requests/connect_request.rb +114 -0
- data/lib/wc_data/generated/methods/response/get_authorized_connect_requests/info.rb +72 -0
- data/lib/wc_data/generated/methods/response/get_authorized_records/info.rb +53 -0
- data/lib/wc_data/generated/methods/response/get_people_for_record/info.rb +76 -0
- data/lib/wc_data/generated/methods/response/get_person_info/info.rb +52 -0
- data/lib/wc_data/generated/methods/response/get_service_definition/configuration_entry.rb +71 -0
- data/lib/wc_data/generated/methods/response/get_service_definition/info.rb +141 -0
- data/lib/wc_data/generated/methods/response/get_service_definition/platform.rb +98 -0
- data/lib/wc_data/generated/methods/response/get_service_definition/sdk_assembly.rb +94 -0
- data/lib/wc_data/generated/methods/response/get_service_definition/shell.rb +95 -0
- data/lib/wc_data/generated/methods/response/get_service_definition/shell_redirect_token.rb +93 -0
- data/lib/wc_data/generated/methods/response/get_service_definition/xml_method.rb +75 -0
- data/lib/wc_data/generated/methods/response/get_service_definition/xml_method_version.rb +92 -0
- data/lib/wc_data/generated/methods/response/get_thing_type/column.rb +130 -0
- data/lib/wc_data/generated/methods/response/get_thing_type/columns.rb +52 -0
- data/lib/wc_data/generated/methods/response/get_thing_type/image.rb +71 -0
- data/lib/wc_data/generated/methods/response/get_thing_type/info.rb +53 -0
- data/lib/wc_data/generated/methods/response/get_thing_type/thing_type_info.rb +232 -0
- data/lib/wc_data/generated/methods/response/get_thing_type/transform_source.rb +72 -0
- data/lib/wc_data/generated/methods/response/get_thing_type/transforms.rb +52 -0
- data/lib/wc_data/generated/methods/response/get_things/info.rb +54 -0
- data/lib/wc_data/generated/methods/response/get_things/thing_response_group.rb +118 -0
- data/lib/wc_data/generated/methods/response/get_things/unprocessed_thing_key_info.rb +95 -0
- data/lib/wc_data/generated/methods/response/get_vocabulary/info.rb +76 -0
- data/lib/wc_data/generated/methods/response/put_things/info.rb +53 -0
- data/lib/wc_data/generated/methods/response/query_permissions/info.rb +54 -0
- data/lib/wc_data/generated/methods/response/query_permissions/permissions.rb +53 -0
- data/lib/wc_data/generated/methods/response/query_permissions/thing_type_permission.rb +89 -0
- data/lib/wc_data/generated/methods/response/search_vocabulary/info.rb +74 -0
- data/lib/wc_data/generated/methods/save_open_query/info.rb +227 -0
- data/lib/wc_data/generated/methods/search_vocabulary/info.rb +70 -0
- data/lib/wc_data/generated/methods/search_vocabulary/vocabulary_search_params.rb +69 -0
- data/lib/wc_data/generated/methods/search_vocabulary/vocabulary_search_string.rb +68 -0
- data/lib/wc_data/generated/methods/send_insecure_message/info.rb +155 -0
- data/lib/wc_data/generated/methods/send_insecure_message_from_application/from_mailbox.rb +71 -0
- data/lib/wc_data/generated/methods/send_insecure_message_from_application/info.rb +178 -0
- data/lib/wc_data/generated/methods/set_application_settings/app_settings.rb +52 -0
- data/lib/wc_data/generated/methods/set_application_settings/info.rb +48 -0
- data/lib/wc_data/generated/methods/update_application/info.rb +384 -0
- data/lib/wc_data/generated/methods/update_external_id/info.rb +70 -0
- data/lib/wc_data/generated/record/active_app_authorization.rb +196 -0
- data/lib/wc_data/generated/record/active_person_authorization.rb +290 -0
- data/lib/wc_data/generated/record/active_person_authorization_no_ids.rb +250 -0
- data/lib/wc_data/generated/record/authorized_record_state.rb +53 -0
- data/lib/wc_data/generated/record/non_active_authorization.rb +340 -0
- data/lib/wc_data/generated/record/non_active_authorization_no_ids.rb +300 -0
- data/lib/wc_data/generated/request/authenticated_session_info.rb +88 -0
- data/lib/wc_data/generated/request/header.rb +274 -0
- data/lib/wc_data/generated/request/info.rb +48 -0
- data/lib/wc_data/generated/request/offline_person_info.rb +46 -0
- data/lib/wc_data/generated/request/request.rb +86 -0
- data/lib/wc_data/generated/request/xsl.rb +64 -0
- data/lib/wc_data/generated/thing/access_avenue.rb +49 -0
- data/lib/wc_data/generated/thing/aerobic/aerobic_session.rb +112 -0
- data/lib/wc_data/generated/thing/aerobic_profile/aerobic_profile.rb +153 -0
- data/lib/wc_data/generated/thing/aerobic_profile/heartrate_zone.rb +90 -0
- data/lib/wc_data/generated/thing/aerobic_profile/heartrate_zone_group.rb +72 -0
- data/lib/wc_data/generated/thing/aerobic_profile/max_vo2.rb +68 -0
- data/lib/wc_data/generated/thing/aerobic_profile/zone_boundary.rb +68 -0
- data/lib/wc_data/generated/thing/aerobic_weekly/aerobic_weekly.rb +72 -0
- data/lib/wc_data/generated/thing/allergic_episode/allergic_episode.rb +108 -0
- data/lib/wc_data/generated/thing/allergy/allergy.rb +186 -0
- data/lib/wc_data/generated/thing/annotation/annotation.rb +144 -0
- data/lib/wc_data/generated/thing/application/app_specific.rb +137 -0
- data/lib/wc_data/generated/thing/appointment/appointment.rb +166 -0
- data/lib/wc_data/generated/thing/audit.rb +150 -0
- data/lib/wc_data/generated/thing/audit_action.rb +53 -0
- data/lib/wc_data/generated/thing/basic/basic.rb +180 -0
- data/lib/wc_data/generated/thing/basic/birthyear.rb +58 -0
- data/lib/wc_data/generated/thing/basic/country.rb +45 -0
- data/lib/wc_data/generated/thing/basic/firstdow.rb +58 -0
- data/lib/wc_data/generated/thing/basic/gender.rb +51 -0
- data/lib/wc_data/generated/thing/blood_glucose/blood_glucose.rb +172 -0
- data/lib/wc_data/generated/thing/blood_pressure/blood_pressure.rb +133 -0
- data/lib/wc_data/generated/thing/cardiac_profile/cardiac_profile.rb +209 -0
- data/lib/wc_data/generated/thing/cholesterol_profile/cholesterol_profile.rb +129 -0
- data/lib/wc_data/generated/thing/common.rb +126 -0
- data/lib/wc_data/generated/thing/concern/concern.rb +71 -0
- data/lib/wc_data/generated/thing/condition/condition.rb +127 -0
- data/lib/wc_data/generated/thing/contact/contact.rb +49 -0
- data/lib/wc_data/generated/thing/contraindication/contraindication.rb +129 -0
- data/lib/wc_data/generated/thing/daily_medication_usage/daily_medication_usage.rb +218 -0
- data/lib/wc_data/generated/thing/data_other.rb +82 -0
- data/lib/wc_data/generated/thing/data_xml.rb +80 -0
- data/lib/wc_data/generated/thing/diabetic_profile/diabetic_profile.rb +92 -0
- data/lib/wc_data/generated/thing/diabetic_profile/target_glucose_zone.rb +90 -0
- data/lib/wc_data/generated/thing/diabetic_profile/target_glucose_zone_group.rb +72 -0
- data/lib/wc_data/generated/thing/diabetic_profile/zone_boundary.rb +68 -0
- data/lib/wc_data/generated/thing/dietary_intake_daily/dietary_intake_daily.rb +249 -0
- data/lib/wc_data/generated/thing/directive/directive.rb +343 -0
- data/lib/wc_data/generated/thing/discharge_summary/discharge_summary.rb +366 -0
- data/lib/wc_data/generated/thing/effective_permissions.rb +66 -0
- data/lib/wc_data/generated/thing/emotion/emotion.rb +109 -0
- data/lib/wc_data/generated/thing/encounter/encounter.rb +143 -0
- data/lib/wc_data/generated/thing/equipment/device.rb +163 -0
- data/lib/wc_data/generated/thing/extension.rb +123 -0
- data/lib/wc_data/generated/thing/family_history/family_history.rb +203 -0
- data/lib/wc_data/generated/thing/family_history_condition/family_history_condition.rb +49 -0
- data/lib/wc_data/generated/thing/family_history_person/family_history_person.rb +107 -0
- data/lib/wc_data/generated/thing/file/file.rb +90 -0
- data/lib/wc_data/generated/thing/guid_and_name.rb +66 -0
- data/lib/wc_data/generated/thing/hb_a1_c/hb_a1_c.rb +111 -0
- data/lib/wc_data/generated/thing/healthcare_proxy/healthcare_proxy.rb +144 -0
- data/lib/wc_data/generated/thing/height/height.rb +71 -0
- data/lib/wc_data/generated/thing/immunization/immunization.rb +244 -0
- data/lib/wc_data/generated/thing/inhaler/alert.rb +74 -0
- data/lib/wc_data/generated/thing/inhaler/asthma_inhaler.rb +272 -0
- data/lib/wc_data/generated/thing/inhaler/dow.rb +58 -0
- data/lib/wc_data/generated/thing/inhaler/purpose.rb +55 -0
- data/lib/wc_data/generated/thing/inhaler_use/asthma_inhaler_use.rb +152 -0
- data/lib/wc_data/generated/thing/insulin/insulin_injection.rb +93 -0
- data/lib/wc_data/generated/thing/insulin_injection_use/diabetes_insulin_injection_use.rb +114 -0
- data/lib/wc_data/generated/thing/lab_test_results/lab_test_results.rb +89 -0
- data/lib/wc_data/generated/thing/life_goal/life_goal.rb +68 -0
- data/lib/wc_data/generated/thing/link/link.rb +68 -0
- data/lib/wc_data/generated/thing/medication/dose_value.rb +107 -0
- data/lib/wc_data/generated/thing/medication/medication.rb +491 -0
- data/lib/wc_data/generated/thing/microbiology/microbiology_lab_results.rb +186 -0
- data/lib/wc_data/generated/thing/password/protected/package/algorithm_name.rb +59 -0
- data/lib/wc_data/generated/thing/password/protected/package/package_encryption_type.rb +71 -0
- data/lib/wc_data/generated/thing/password/protected/package/password_protected_package.rb +53 -0
- data/lib/wc_data/generated/thing/password/protected/package/pbe_parameters_type.rb +97 -0
- data/lib/wc_data/generated/thing/payer/payer.rb +265 -0
- data/lib/wc_data/generated/thing/personal/personal.rb +303 -0
- data/lib/wc_data/generated/thing/personal_image/personal_image.rb +28 -0
- data/lib/wc_data/generated/thing/problem/importance.rb +45 -0
- data/lib/wc_data/generated/thing/problem/problem.rb +114 -0
- data/lib/wc_data/generated/thing/procedure/procedure.rb +125 -0
- data/lib/wc_data/generated/thing/radiology_lab_results/radiology_lab_results.rb +106 -0
- data/lib/wc_data/generated/thing/related_thing.rb +88 -0
- data/lib/wc_data/generated/thing/respiratory_profile/respiratory_profile.rb +109 -0
- data/lib/wc_data/generated/thing/sjam/awakening.rb +70 -0
- data/lib/wc_data/generated/thing/sjam/sleep_am.rb +195 -0
- data/lib/wc_data/generated/thing/sjam/wake_state.rb +58 -0
- data/lib/wc_data/generated/thing/sjpm/activity.rb +70 -0
- data/lib/wc_data/generated/thing/sjpm/sleep_pm.rb +162 -0
- data/lib/wc_data/generated/thing/sjpm/sleepiness.rb +58 -0
- data/lib/wc_data/generated/thing/spirometer/spirometer.rb +317 -0
- data/lib/wc_data/generated/thing/spirometer/volume_value.rb +69 -0
- data/lib/wc_data/generated/thing/thing.rb +213 -0
- data/lib/wc_data/generated/thing/thing_key.rb +66 -0
- data/lib/wc_data/generated/thing/thing_state.rb +49 -0
- data/lib/wc_data/generated/thing/thing_type.rb +64 -0
- data/lib/wc_data/generated/thing/types/address.rb +176 -0
- data/lib/wc_data/generated/thing/types/aerobic_lap_session.rb +86 -0
- data/lib/wc_data/generated/thing/types/aerobic_session.rb +745 -0
- data/lib/wc_data/generated/thing/types/aerobic_session_samples.rb +310 -0
- data/lib/wc_data/generated/thing/types/altitude_value.rb +70 -0
- data/lib/wc_data/generated/thing/types/blood_glucose_value.rb +69 -0
- data/lib/wc_data/generated/thing/types/codable_value.rb +74 -0
- data/lib/wc_data/generated/thing/types/coded_value.rb +112 -0
- data/lib/wc_data/generated/thing/types/communication_type.rb +112 -0
- data/lib/wc_data/generated/thing/types/condition.rb +148 -0
- data/lib/wc_data/generated/thing/types/contact.rb +97 -0
- data/lib/wc_data/generated/thing/types/display_value.rb +90 -0
- data/lib/wc_data/generated/thing/types/document_reference_type.rb +112 -0
- data/lib/wc_data/generated/thing/types/double_range.rb +70 -0
- data/lib/wc_data/generated/thing/types/dow.rb +58 -0
- data/lib/wc_data/generated/thing/types/duration_value.rb +69 -0
- data/lib/wc_data/generated/thing/types/email.rb +89 -0
- data/lib/wc_data/generated/thing/types/flow_value.rb +69 -0
- data/lib/wc_data/generated/thing/types/general_measurement.rb +74 -0
- data/lib/wc_data/generated/thing/types/goal.rb +86 -0
- data/lib/wc_data/generated/thing/types/goal_status.rb +55 -0
- data/lib/wc_data/generated/thing/types/insulin_injection_value.rb +69 -0
- data/lib/wc_data/generated/thing/types/lab_result_type.rb +149 -0
- data/lib/wc_data/generated/thing/types/lab_test_result_type.rb +167 -0
- data/lib/wc_data/generated/thing/types/lab_test_result_value_type.rb +99 -0
- data/lib/wc_data/generated/thing/types/lab_test_results_group_type.rb +138 -0
- data/lib/wc_data/generated/thing/types/lab_test_type.rb +209 -0
- data/lib/wc_data/generated/thing/types/language.rb +69 -0
- data/lib/wc_data/generated/thing/types/length_value.rb +69 -0
- data/lib/wc_data/generated/thing/types/name.rb +148 -0
- data/lib/wc_data/generated/thing/types/non_negative_double.rb +45 -0
- data/lib/wc_data/generated/thing/types/one_to_five.rb +58 -0
- data/lib/wc_data/generated/thing/types/organization.rb +106 -0
- data/lib/wc_data/generated/thing/types/pace_value.rb +69 -0
- data/lib/wc_data/generated/thing/types/percentage.rb +58 -0
- data/lib/wc_data/generated/thing/types/person.rb +146 -0
- data/lib/wc_data/generated/thing/types/phone.rb +89 -0
- data/lib/wc_data/generated/thing/types/positive_double.rb +45 -0
- data/lib/wc_data/generated/thing/types/power_value.rb +69 -0
- data/lib/wc_data/generated/thing/types/sample.rb +88 -0
- data/lib/wc_data/generated/thing/types/sample_set.rb +116 -0
- data/lib/wc_data/generated/thing/types/speed_value.rb +69 -0
- data/lib/wc_data/generated/thing/types/structured_measurement.rb +71 -0
- data/lib/wc_data/generated/thing/types/temperature_value.rb +69 -0
- data/lib/wc_data/generated/thing/types/test_result_range.rb +71 -0
- data/lib/wc_data/generated/thing/types/torque_value.rb +69 -0
- data/lib/wc_data/generated/thing/types/weight_value.rb +69 -0
- data/lib/wc_data/generated/thing/vital_signs/vital_sign_result_type.rb +166 -0
- data/lib/wc_data/generated/thing/vital_signs/vital_signs.rb +110 -0
- data/lib/wc_data/generated/thing/weight/weight.rb +70 -0
- data/lib/wc_data/generated/thing/weight_goal/weight_goal.rb +106 -0
- data/lib/wc_data/generated/types/address.rb +162 -0
- data/lib/wc_data/generated/types/app_info.rb +66 -0
- data/lib/wc_data/generated/types/app_server_cred.rb +70 -0
- data/lib/wc_data/generated/types/app_server_cred_info.rb +70 -0
- data/lib/wc_data/generated/types/app_settings.rb +50 -0
- data/lib/wc_data/generated/types/base64_sha1.rb +56 -0
- data/lib/wc_data/generated/types/card_space_cred.rb +50 -0
- data/lib/wc_data/generated/types/char2.rb +56 -0
- data/lib/wc_data/generated/types/codable_value.rb +72 -0
- data/lib/wc_data/generated/types/coded_value.rb +110 -0
- data/lib/wc_data/generated/types/culture.rb +64 -0
- data/lib/wc_data/generated/types/date_range.rb +62 -0
- data/lib/wc_data/generated/types/email.rb +82 -0
- data/lib/wc_data/generated/types/email_address.rb +56 -0
- data/lib/wc_data/generated/types/gender.rb +49 -0
- data/lib/wc_data/generated/types/group.rb +91 -0
- data/lib/wc_data/generated/types/groups.rb +50 -0
- data/lib/wc_data/generated/types/guid.rb +43 -0
- data/lib/wc_data/generated/types/hash_finalized.rb +48 -0
- data/lib/wc_data/generated/types/hash_finalized_data.rb +68 -0
- data/lib/wc_data/generated/types/hmac_algorithm.rb +48 -0
- data/lib/wc_data/generated/types/hmac_algorithm_data.rb +68 -0
- data/lib/wc_data/generated/types/hmac_finalized.rb +48 -0
- data/lib/wc_data/generated/types/hmac_finalized_data.rb +68 -0
- data/lib/wc_data/generated/types/iso3166.rb +1001 -0
- data/lib/wc_data/generated/types/iso4217.rb +733 -0
- data/lib/wc_data/generated/types/iso639_1.rb +585 -0
- data/lib/wc_data/generated/types/language_competency.rb +64 -0
- data/lib/wc_data/generated/types/localized_string.rb +64 -0
- data/lib/wc_data/generated/types/login_name.rb +56 -0
- data/lib/wc_data/generated/types/name_match_type.rb +53 -0
- data/lib/wc_data/generated/types/omb_ethnicity.rb +65 -0
- data/lib/wc_data/generated/types/open_query_info.rb +149 -0
- data/lib/wc_data/generated/types/permission.rb +61 -0
- data/lib/wc_data/generated/types/person_info.rb +214 -0
- data/lib/wc_data/generated/types/phone.rb +82 -0
- data/lib/wc_data/generated/types/positive_long.rb +43 -0
- data/lib/wc_data/generated/types/puid.rb +43 -0
- data/lib/wc_data/generated/types/rcpt_address.rb +69 -0
- data/lib/wc_data/generated/types/rcpt_person.rb +68 -0
- data/lib/wc_data/generated/types/rcpt_record.rb +48 -0
- data/lib/wc_data/generated/types/record.rb +264 -0
- data/lib/wc_data/generated/types/record_state.rb +57 -0
- data/lib/wc_data/generated/types/sig.rb +112 -0
- data/lib/wc_data/generated/types/string1024.rb +56 -0
- data/lib/wc_data/generated/types/string128.rb +56 -0
- data/lib/wc_data/generated/types/string16.rb +56 -0
- data/lib/wc_data/generated/types/string255.rb +56 -0
- data/lib/wc_data/generated/types/string32.rb +56 -0
- data/lib/wc_data/generated/types/string512.rb +56 -0
- data/lib/wc_data/generated/types/string64.rb +56 -0
- data/lib/wc_data/generated/types/stringnz.rb +43 -0
- data/lib/wc_data/generated/types/stringz1024.rb +56 -0
- data/lib/wc_data/generated/types/stringz128.rb +56 -0
- data/lib/wc_data/generated/types/stringz16.rb +56 -0
- data/lib/wc_data/generated/types/stringz255.rb +56 -0
- data/lib/wc_data/generated/types/stringz32.rb +56 -0
- data/lib/wc_data/generated/types/stringz512.rb +56 -0
- data/lib/wc_data/generated/types/stringz64.rb +56 -0
- data/lib/wc_data/generated/types/url.rb +56 -0
- data/lib/wc_data/generated/types/version.rb +56 -0
- data/lib/wc_data/generated/vocab/info_xml.rb +46 -0
- data/lib/wc_data/generated/vocab/vocabulary_code_item.rb +104 -0
- data/lib/wc_data/generated/vocab/vocabulary_code_set.rb +133 -0
- data/lib/wc_data/generated/vocab/vocabulary_key.rb +106 -0
- data/lib/wc_data/generated/vocab/vocabulary_key_info.rb +26 -0
- data/lib/wc_data/init.rb +27 -0
- data/lib/wc_data/raw_info_xml.rb +12 -0
- data/lib/wc_data/simple_type.rb +16 -0
- data/lib/wc_data/thing.rb +78 -0
- data/lib/xsd/bootstrap/request.xsd +107 -0
- data/lib/xsd/bootstrap/response-getservicedefinition.xsd +119 -0
- data/lib/xsd/bootstrap/types.xsd +1117 -0
- data/lib/xsd/common/application.xsd +766 -0
- data/lib/xsd/common/auth.xsd +1093 -0
- data/lib/xsd/common/dates.xsd +510 -0
- data/lib/xsd/common/record.xsd +1160 -0
- data/lib/xsd/common/request.xsd +524 -0
- data/lib/xsd/common/thing.xsd +881 -0
- data/lib/xsd/common/types.xsd +3131 -0
- data/lib/xsd/common/vocab.xsd +359 -0
- data/lib/xsd/requests/method-addapplication.xsd +349 -0
- data/lib/xsd/requests/method-createauthenticatedsessiontoken.xsd +216 -0
- data/lib/xsd/requests/method-createconnectrequest.xsd +143 -0
- data/lib/xsd/requests/method-deleteopenquery.xsd +75 -0
- data/lib/xsd/requests/method-deletependingconnectrequest.xsd +77 -0
- data/lib/xsd/requests/method-getauthorizedconnectrequests.xsd +78 -0
- data/lib/xsd/requests/method-getauthorizedrecords.xsd +82 -0
- data/lib/xsd/requests/method-getopenqueryinfo.xsd +74 -0
- data/lib/xsd/requests/method-getpersoninfo.xsd +80 -0
- data/lib/xsd/requests/method-getthings.xsd +516 -0
- data/lib/xsd/requests/method-getthingtype.xsd +201 -0
- data/lib/xsd/requests/method-getvocabulary.xsd +135 -0
- data/lib/xsd/requests/method-putthings.xsd +80 -0
- data/lib/xsd/requests/method-querypermissions.xsd +79 -0
- data/lib/xsd/requests/method-removethings.xsd +78 -0
- data/lib/xsd/requests/method-saveopenquery.xsd +219 -0
- data/lib/xsd/requests/method-searchvocabulary.xsd +222 -0
- data/lib/xsd/requests/method-sendinsecuremessage.xsd +185 -0
- data/lib/xsd/requests/method-sendinsecuremessagefromapplication.xsd +274 -0
- data/lib/xsd/requests/method-setapplicationsettings.xsd +166 -0
- data/lib/xsd/requests/method-updateapplication.xsd +357 -0
- data/lib/xsd/requests/method-updateexternalid.xsd +84 -0
- data/lib/xsd/responses/response-addapplication.xsd +79 -0
- data/lib/xsd/responses/response-any.xsd +59 -0
- data/lib/xsd/responses/response-createauthenticatedsessiontoken.xsd +167 -0
- data/lib/xsd/responses/response-createconnectrequest.xsd +88 -0
- data/lib/xsd/responses/response-deleteopenquery.xsd +87 -0
- data/lib/xsd/responses/response-getapplicationsettings.xsd +192 -0
- data/lib/xsd/responses/response-getauthorizedconnectrequests.xsd +135 -0
- data/lib/xsd/responses/response-getauthorizedrecords.xsd +76 -0
- data/lib/xsd/responses/response-getopenqueryinfo.xsd +64 -0
- data/lib/xsd/responses/response-getpeopleforrecord.xsd +95 -0
- data/lib/xsd/responses/response-getpersoninfo.xsd +87 -0
- data/lib/xsd/responses/response-getservicedefinition.xsd +515 -0
- data/lib/xsd/responses/response-getthings.xsd +198 -0
- data/lib/xsd/responses/response-getthingtype.xsd +457 -0
- data/lib/xsd/responses/response-getvocabulary.xsd +93 -0
- data/lib/xsd/responses/response-putthings.xsd +63 -0
- data/lib/xsd/responses/response-querypermissions.xsd +182 -0
- data/lib/xsd/responses/response-saveopenquery.xsd +62 -0
- data/lib/xsd/responses/response-searchvocabulary.xsd +90 -0
- data/lib/xsd/things/Advance Directive.xsd +60 -0
- data/lib/xsd/things/Aerobic Exercise Session.xsd +19 -0
- data/lib/xsd/things/Aerobic Profile.xsd +143 -0
- data/lib/xsd/things/Allergic Episode.xsd +17 -0
- data/lib/xsd/things/Allergy.xsd +39 -0
- data/lib/xsd/things/Application-Specific Information.xsd +42 -0
- data/lib/xsd/things/Appointment.xsd +24 -0
- data/lib/xsd/things/Asthma Inhaler Usage.xsd +44 -0
- data/lib/xsd/things/Asthma Inhaler.xsd +99 -0
- data/lib/xsd/things/Base Thing Type.xsd +1000 -0
- data/lib/xsd/things/Basic Demographic Information.xsd +49 -0
- data/lib/xsd/things/Blood Glucose Measurement.xsd +28 -0
- data/lib/xsd/things/Blood Pressure Measurement.xsd +30 -0
- data/lib/xsd/things/Cardiac Profile.xsd +80 -0
- data/lib/xsd/things/Cholesterol Profile (Lipid Profile).xsd +38 -0
- data/lib/xsd/things/Concern.xsd +17 -0
- data/lib/xsd/things/Condition.xsd +28 -0
- data/lib/xsd/things/Continuity of Care Record.xsd +3 -0
- data/lib/xsd/things/Contraindication.xsd +27 -0
- data/lib/xsd/things/Daily Dietary Intake.xsd +51 -0
- data/lib/xsd/things/Daily Medication Usage.xsd +41 -0
- data/lib/xsd/things/Device.xsd +24 -0
- data/lib/xsd/things/Diabetes Insulin Injection Use.xsd +26 -0
- data/lib/xsd/things/Diabetic Profile.xsd +92 -0
- data/lib/xsd/things/Discharge Summary.xsd +43 -0
- data/lib/xsd/things/Emergency or Provider Contact.xsd +11 -0
- data/lib/xsd/things/Emotional State.xsd +24 -0
- data/lib/xsd/things/Encounter (old).xsd +21 -0
- data/lib/xsd/things/Encounter.xsd +19 -0
- data/lib/xsd/things/Family History Condition.xsd +12 -0
- data/lib/xsd/things/Family History Person.xsd +18 -0
- data/lib/xsd/things/Family History.xsd +27 -0
- data/lib/xsd/things/File.xsd +28 -0
- data/lib/xsd/things/HL7 Continuity of Care Document.xsd +33 -0
- data/lib/xsd/things/HbA1C Measurement.xsd +23 -0
- data/lib/xsd/things/Healthcare Proxy.xsd +21 -0
- data/lib/xsd/things/Height Measurement.xsd +13 -0
- data/lib/xsd/things/Immunization.xsd +32 -0
- data/lib/xsd/things/Insulin Injection.xsd +30 -0
- data/lib/xsd/things/Insurance Plan.xsd +46 -0
- data/lib/xsd/things/Lab Test Result.xsd +11 -0
- data/lib/xsd/things/Life Goal.xsd +19 -0
- data/lib/xsd/things/Link.xsd +12 -0
- data/lib/xsd/things/Medical Annotation.xsd +21 -0
- data/lib/xsd/things/Medical Problem.xsd +15 -0
- data/lib/xsd/things/Medication.xsd +82 -0
- data/lib/xsd/things/Microbiology Lab Test Result.xsd +25 -0
- data/lib/xsd/things/Password Protected Package.xsd +23 -0
- data/lib/xsd/things/Personal Contact Information.xsd +18 -0
- data/lib/xsd/things/Personal Demographic Information.xsd +63 -0
- data/lib/xsd/things/Personal Image.xsd +13 -0
- data/lib/xsd/things/Procedure.xsd +19 -0
- data/lib/xsd/things/Radiology Lab Result.xsd +19 -0
- data/lib/xsd/things/Respiratory Profile.xsd +33 -0
- data/lib/xsd/things/Sleep Related Activity.xsd +45 -0
- data/lib/xsd/things/Sleep Session.xsd +51 -0
- data/lib/xsd/things/Spirometer Measurement.xsd +113 -0
- data/lib/xsd/things/Vital Signs.xsd +31 -0
- data/lib/xsd/things/Weekly Aerobic Exercise Goal.xsd +25 -0
- data/lib/xsd/things/Weight Goal.xsd +33 -0
- data/lib/xsd/things/Weight Measurement.xsd +10 -0
- data/spec/connection_spec.rb +17 -0
- data/spec/request_spec.rb +42 -0
- data/spec/support/test_server.rb +42 -0
- metadata +646 -0
@@ -0,0 +1,106 @@
|
|
1
|
+
# -*- ruby -*-
|
2
|
+
#--
|
3
|
+
# Copyright 2008 Danny Coates, Ashkan Farhadtouski
|
4
|
+
# All rights reserved.
|
5
|
+
# See LICENSE for permissions.
|
6
|
+
#++
|
7
|
+
# AUTOGENERATED ComplexType
|
8
|
+
|
9
|
+
module HealthVault
|
10
|
+
module WCData
|
11
|
+
module Vocab
|
12
|
+
|
13
|
+
class VocabularyKey < ComplexType
|
14
|
+
|
15
|
+
|
16
|
+
|
17
|
+
#<b>REQUIRED</b>
|
18
|
+
#<b>summary</b>: The name of the vocabulary being referenced.
|
19
|
+
#<em>value</em> is a HealthVault::WCData::Types::Stringnz
|
20
|
+
def name=(value)
|
21
|
+
@children['name'][:value] = value
|
22
|
+
end
|
23
|
+
|
24
|
+
#<b>returns</b>: a HealthVault::WCData::Types::Stringnz
|
25
|
+
def name
|
26
|
+
return @children['name'][:value]
|
27
|
+
end
|
28
|
+
|
29
|
+
|
30
|
+
|
31
|
+
|
32
|
+
#<b>summary</b>: The family to which the vocabulary being referenced belongs.
|
33
|
+
#<b>remarks</b>: Vocabularies can be defined by HealthVault or by a number of standards organizations such as the ISO. The family parameter specfies this source.
|
34
|
+
#<em>value</em> is a HealthVault::WCData::Types::Stringnz
|
35
|
+
def family=(value)
|
36
|
+
@children['family'][:value] = value
|
37
|
+
end
|
38
|
+
|
39
|
+
#<b>returns</b>: a HealthVault::WCData::Types::Stringnz
|
40
|
+
def family
|
41
|
+
return @children['family'][:value]
|
42
|
+
end
|
43
|
+
|
44
|
+
|
45
|
+
|
46
|
+
|
47
|
+
#<b>summary</b>: The version of the vocabulary being referenced.
|
48
|
+
#<b>remarks</b>: A string used to identify a particular version of a vocabulary.
|
49
|
+
#<em>value</em> is a HealthVault::WCData::Types::Stringnz
|
50
|
+
def version=(value)
|
51
|
+
@children['version'][:value] = value
|
52
|
+
end
|
53
|
+
|
54
|
+
#<b>returns</b>: a HealthVault::WCData::Types::Stringnz
|
55
|
+
def version
|
56
|
+
return @children['version'][:value]
|
57
|
+
end
|
58
|
+
|
59
|
+
|
60
|
+
|
61
|
+
|
62
|
+
#<b>remarks</b>: If the code-value is specified, all vocabulary code items starting with the one which has the specified code value are returned.
|
63
|
+
#<em>value</em> is a String
|
64
|
+
def code_value=(value)
|
65
|
+
@children['code-value'][:value] = value
|
66
|
+
end
|
67
|
+
|
68
|
+
#<b>returns</b>: a String
|
69
|
+
def code_value
|
70
|
+
return @children['code-value'][:value]
|
71
|
+
end
|
72
|
+
|
73
|
+
|
74
|
+
|
75
|
+
def initialize
|
76
|
+
super
|
77
|
+
self.tag_name = 'vocabularykey'
|
78
|
+
|
79
|
+
|
80
|
+
@children['name'] = {:name => 'name', :class => HealthVault::WCData::Types::Stringnz, :value => nil, :min => 1, :max => 1, :order => 1, :place => :element, :choice => 0 }
|
81
|
+
|
82
|
+
@children['name'][:value] = HealthVault::WCData::Types::Stringnz.new
|
83
|
+
|
84
|
+
|
85
|
+
|
86
|
+
|
87
|
+
@children['family'] = {:name => 'family', :class => HealthVault::WCData::Types::Stringnz, :value => nil, :min => 0, :max => 1, :order => 2, :place => :element, :choice => 0 }
|
88
|
+
|
89
|
+
|
90
|
+
|
91
|
+
|
92
|
+
@children['version'] = {:name => 'version', :class => HealthVault::WCData::Types::Stringnz, :value => nil, :min => 0, :max => 1, :order => 3, :place => :element, :choice => 0 }
|
93
|
+
|
94
|
+
|
95
|
+
|
96
|
+
|
97
|
+
@children['code-value'] = {:name => 'code-value', :class => String, :value => nil, :min => 0, :max => 1, :order => 4, :place => :element, :choice => 0 }
|
98
|
+
|
99
|
+
|
100
|
+
|
101
|
+
end
|
102
|
+
end
|
103
|
+
end
|
104
|
+
|
105
|
+
end
|
106
|
+
end
|
@@ -0,0 +1,26 @@
|
|
1
|
+
# -*- ruby -*-
|
2
|
+
#--
|
3
|
+
# Copyright 2008 Danny Coates, Ashkan Farhadtouski
|
4
|
+
# All rights reserved.
|
5
|
+
# See LICENSE for permissions.
|
6
|
+
#++
|
7
|
+
# AUTOGENERATED ComplexType
|
8
|
+
|
9
|
+
module HealthVault
|
10
|
+
module WCData
|
11
|
+
module Vocab
|
12
|
+
|
13
|
+
class VocabularyKeyInfo < ComplexType
|
14
|
+
|
15
|
+
|
16
|
+
|
17
|
+
def initialize
|
18
|
+
super
|
19
|
+
self.tag_name = 'vocabularykeyinfo'
|
20
|
+
|
21
|
+
end
|
22
|
+
end
|
23
|
+
end
|
24
|
+
|
25
|
+
end
|
26
|
+
end
|
data/lib/wc_data/init.rb
ADDED
@@ -0,0 +1,27 @@
|
|
1
|
+
# -*- ruby -*-
|
2
|
+
#--
|
3
|
+
# Copyright 2008 Danny Coates, Ashkan Farhadtouski
|
4
|
+
# All rights reserved.
|
5
|
+
# See LICENSE for permissions.
|
6
|
+
#++
|
7
|
+
|
8
|
+
dir = File.dirname(__FILE__) + '/generated'
|
9
|
+
require dir + '/../simple_type'
|
10
|
+
require dir + '/../complex_type'
|
11
|
+
require dir + '/../raw_info_xml'
|
12
|
+
|
13
|
+
def recurse_require(dir)
|
14
|
+
Dir.foreach(dir) do |filename|
|
15
|
+
f = dir + "/#{filename}"
|
16
|
+
if File.directory?(f) && f[-1] != 46 #'.'
|
17
|
+
recurse_require(f)
|
18
|
+
elsif f.include?('.rb') && f != __FILE__
|
19
|
+
require f
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
23
|
+
recurse_require(dir)
|
24
|
+
# '/../thing' won't exist until generated
|
25
|
+
if File.exists?(dir + '/../thing.rb')
|
26
|
+
require dir + '/../thing'
|
27
|
+
end
|
@@ -0,0 +1,16 @@
|
|
1
|
+
# -*- ruby -*-
|
2
|
+
#--
|
3
|
+
# Copyright 2008 Danny Coates, Ashkan Farhadtouski
|
4
|
+
# All rights reserved.
|
5
|
+
# See LICENSE for permissions.
|
6
|
+
#++
|
7
|
+
|
8
|
+
module HealthVault
|
9
|
+
module WCData
|
10
|
+
class SimpleType
|
11
|
+
def self.valid?(value)
|
12
|
+
return true
|
13
|
+
end
|
14
|
+
end
|
15
|
+
end
|
16
|
+
end
|
@@ -0,0 +1,78 @@
|
|
1
|
+
# -*- ruby -*-
|
2
|
+
#--
|
3
|
+
# Copyright 2008 Danny Coates, Ashkan Farhadtouski
|
4
|
+
# All rights reserved.
|
5
|
+
# See LICENSE for permissions.
|
6
|
+
#++
|
7
|
+
#AUTOGENERATED Thing extension
|
8
|
+
|
9
|
+
module HealthVault
|
10
|
+
module WCData
|
11
|
+
module Thing
|
12
|
+
class Thing
|
13
|
+
@@class_hash = Hash.new
|
14
|
+
|
15
|
+
@@class_hash['5E2C027E-3417-4CFC-BD10-5A6F2E91AD23'] = HealthVault::WCData::Thing::Problem::Problem
|
16
|
+
@@class_hash['bd0403c5-4ae2-4b0e-a8db-1888678e4528'] = HealthVault::WCData::Thing::File::File
|
17
|
+
@@class_hash['5a8b14b6-2f8d-4c3d-aaa0-6eaf7cf194d2'] = HealthVault::WCData::Thing::Familyhistorycondition::Familyhistorycondition
|
18
|
+
@@class_hash['02EF57A2-A620-425A-8E92-A301542CCA54'] = HealthVault::WCData::Thing::Dischargesummary::Dischargesummary
|
19
|
+
@@class_hash['AEA2E8F2-11DD-4A7D-AB43-1D58764EBC19'] = HealthVault::WCData::Thing::Concern::Concern
|
20
|
+
@@class_hash['F57746AF-9631-49DC-944E-2C92BEE0D1E9'] = HealthVault::WCData::Thing::Labtestresults::Labtestresults
|
21
|
+
@@class_hash['227F55FB-1001-4D4E-9F6A-8D893E07B451'] = HealthVault::WCData::Thing::HbA1C::HbA1C
|
22
|
+
@@class_hash['52bf9104-2c5e-4f1f-a66d-552ebcc53df7'] = HealthVault::WCData::Thing::Allergy::Allergy
|
23
|
+
@@class_hash['e4501363-fb95-4a11-bb60-da64e98048b5'] = HealthVault::WCData::Thing::Aerobicweekly::Aerobicweekly
|
24
|
+
@@class_hash['B8FCB138-F8E6-436A-A15D-E3A2D6916094'] = HealthVault::WCData::Thing::Microbiology::Microbiologylabresults
|
25
|
+
@@class_hash['5C5F1223-F63C-4464-870C-3E36BA471DEF'] = HealthVault::WCData::Thing::Medication::Medication
|
26
|
+
@@class_hash['6D39F894-F7AC-4FCE-AC78-B22693BF96E6'] = HealthVault::WCData::Thing::Familyhistory::Familyhistory
|
27
|
+
@@class_hash['7ea7a1f9-880b-4bd4-b593-f5660f20eda8'] = HealthVault::WCData::Thing::Condition::Condition
|
28
|
+
@@class_hash['4B18AEB6-5F01-444C-8C70-DBF13A2F510B'] = HealthVault::WCData::Thing::Appointment::Appointment
|
29
|
+
@@class_hash['5fd15cb7-b717-4b1c-89e0-1dbcf7f815dd'] = HealthVault::WCData::Thing::Respiratoryprofile::Respiratoryprofile
|
30
|
+
@@class_hash['40750a6a-89b2-455c-bd8d-b420a4cb500b'] = HealthVault::WCData::Thing::Height::Height
|
31
|
+
@@class_hash['9c29c6b9-f40e-44ff-b24e-fba6f3074638'] = HealthVault::WCData::Thing::Dietaryintakedaily::Dietaryintakedaily
|
32
|
+
@@class_hash['921588d1-27bf-423c-8e55-650d2fedb3e0'] = HealthVault::WCData::Thing::Spirometer::Spirometer
|
33
|
+
@@class_hash['92ba621e-66b3-4a01-bd73-74844aed4f5b'] = HealthVault::WCData::Thing::Personal::Personal
|
34
|
+
@@class_hash['3D4BDF01-1B3E-4AFC-B41C-BD3E641A6DA7'] = HealthVault::WCData::Thing::Encounter::Encounter
|
35
|
+
@@class_hash['A9A76456-0357-493e-B840-598BBB9483FD'] = HealthVault::WCData::Thing::Dailymedicationusage::Dailymedicationusage
|
36
|
+
@@class_hash['046d0ad7-6d7f-4bfd-afd4-4192ca2e913d'] = HealthVault::WCData::Thing::Contraindication::Contraindication
|
37
|
+
@@class_hash['ca3c57f4-f4c1-4e15-be67-0a3caf5414ed'] = HealthVault::WCData::Thing::BloodPressure::Bloodpressure
|
38
|
+
@@class_hash['879e7c04-4e8a-4707-9ad3-b054df467ce4'] = HealthVault::WCData::Thing::BloodGlucose::Bloodglucose
|
39
|
+
@@class_hash['b7925180-d69e-48fa-ae1d-cb3748ca170e'] = HealthVault::WCData::Thing::Weightgoal::Weightgoal
|
40
|
+
@@class_hash['bcb7157b-9e8a-4f13-aab6-4eed246d0902'] = HealthVault::WCData::Thing::Sjpm::Sleeppm
|
41
|
+
@@class_hash['7AB3E662-CC5B-4BE2-BF38-78F8AAD5B161'] = HealthVault::WCData::Thing::Annotation::Annotation
|
42
|
+
@@class_hash['3d817dbe-af42-4a9d-a553-d1298b4d08fc'] = HealthVault::WCData::Thing::Immunization::Immunization
|
43
|
+
@@class_hash['464083cc-13de-4f3e-a189-da8e47d5651b'] = HealthVault::WCData::Thing::Encounter::Encounter
|
44
|
+
@@class_hash['EF9CF8D5-6C0B-4292-997F-4047240BC7BE'] = HealthVault::WCData::Thing::Equipment::Device
|
45
|
+
@@class_hash['d65ad514-c492-4b59-bd05-f3f6cb43ceb3'] = HealthVault::WCData::Thing::Allergicepisode::Allergicepisode
|
46
|
+
@@class_hash['73822612-C15F-4B49-9E65-6AF369E55C65'] = HealthVault::WCData::Thing::Vitalsigns::Vitalsigns
|
47
|
+
@@class_hash['668bf643-7da8-4735-ad6f-8fd5bb5a63e2'] = HealthVault::WCData::Thing::Sjam::Sleepam
|
48
|
+
@@class_hash['a5294488-f865-4ce3-92fa-187cd3b58930'] = HealthVault::WCData::Thing::Personalimage::Personalimage
|
49
|
+
@@class_hash['162dd12d-9859-4a66-b75f-96760d67072b'] = HealthVault::WCData::Thing::Contact::Contact
|
50
|
+
@@class_hash['609319bf-35cc-40a4-b9d7-1b329679baaa'] = HealthVault::WCData::Thing::Lifegoal::Lifegoal
|
51
|
+
@@class_hash['796C186F-B874-471c-8468-3EEFF73BF66E'] = HealthVault::WCData::Thing::Cholesterolprofile::Cholesterolprofile
|
52
|
+
@@class_hash['822a5e5a-14f1-4d06-b92f-8f3f1b05218f'] = HealthVault::WCData::Thing::Directive::Directive
|
53
|
+
@@class_hash['d4b48e6b-50fa-4ba8-ac73-7d64a68dc328'] = HealthVault::WCData::Thing::Link::Link
|
54
|
+
@@class_hash['adaf49ad-8e10-49f8-9783-174819e97051'] = HealthVault::WCData::Thing::Cardiacprofile::Cardiacprofile
|
55
|
+
@@class_hash['3d34d87e-7fc1-4153-800f-f56592cb0d17'] = HealthVault::WCData::Thing::Weight::Weight
|
56
|
+
@@class_hash['7EA47715-CBA4-47F0-99D2-EB0A9FB4A85C'] = HealthVault::WCData::Thing::Healthcareproxy::Healthcareproxy
|
57
|
+
@@class_hash['cc23422c-4fba-4a23-b52a-c01d6cd53fdf'] = HealthVault::WCData::Thing::Familyhistoryperson::Familyhistoryperson
|
58
|
+
@@class_hash['80CF4080-AD3F-4BB5-A0B5-907C22F73017'] = HealthVault::WCData::Thing::Diabeticprofile::Diabeticprofile
|
59
|
+
@@class_hash['184166BE-8ADB-4D9C-8162-C403040E31AD'] = HealthVault::WCData::Thing::Insulininjectionuse::Diabetesinsulininjectionuse
|
60
|
+
@@class_hash['bf516a61-5252-4c28-a979-27f45f62f78d'] = HealthVault::WCData::Thing::Basic::Basic
|
61
|
+
@@class_hash['E4911BD3-61BF-4E10-AE78-9C574B888B8F'] = HealthVault::WCData::Thing::Radiologylabresults::Radiologylabresults
|
62
|
+
@@class_hash['c9287326-bb43-4194-858c-8b60768f000f'] = HealthVault::WCData::Thing::Password::Protected::Package::Passwordprotectedpackage
|
63
|
+
@@class_hash['9366440c-ec81-4b89-b231-308a4c4d70ed'] = HealthVault::WCData::Thing::Payer::Payer
|
64
|
+
@@class_hash['4b7971d6-e427-427d-bf2c-2fbcf76606b3'] = HealthVault::WCData::Thing::Emotion::Emotion
|
65
|
+
@@class_hash['ff9ce191-2096-47d8-9300-5469a9883746'] = HealthVault::WCData::Thing::Inhaler::Asthmainhaler
|
66
|
+
@@class_hash['90dbf000-fc55-4b92-b4a1-da45c36ad8bb'] = HealthVault::WCData::Thing::Aerobic::Aerobicsession
|
67
|
+
@@class_hash['0A5F9A43-DC88-4E9F-890F-1F9159B76E7B'] = HealthVault::WCData::Thing::Procedure::Procedure
|
68
|
+
@@class_hash['3B3C053B-B1FE-4E11-9E22-D4B480DE74E8'] = HealthVault::WCData::Thing::Insulin::Insulininjection
|
69
|
+
@@class_hash['03efe378-976a-42f8-ae1e-507c497a8c6d'] = HealthVault::WCData::Thing::Inhaleruse::Asthmainhaleruse
|
70
|
+
@@class_hash['a5033c9d-08cf-4204-9bd3-cb412ce39fc0'] = HealthVault::WCData::Thing::Application::Appspecific
|
71
|
+
@@class_hash['7b2ea78c-4b78-4f75-a6a7-5396fe38b09a'] = HealthVault::WCData::Thing::Aerobicprofile::Aerobicprofile
|
72
|
+
def self.guid_to_class(guid)
|
73
|
+
return @@class_hash[guid]
|
74
|
+
end
|
75
|
+
end
|
76
|
+
end
|
77
|
+
end
|
78
|
+
end
|
@@ -0,0 +1,107 @@
|
|
1
|
+
<?xml version="1.0"?>
|
2
|
+
<schema
|
3
|
+
targetNamespace="urn:com.microsoft.wc.request"
|
4
|
+
xmlns:wc-request="urn:com.microsoft.wc.request"
|
5
|
+
xmlns:wc-types="urn:com.microsoft.wc.types"
|
6
|
+
xmlns="http://www.w3.org/2001/XMLSchema" >
|
7
|
+
<!--
|
8
|
+
|
9
|
+
REQUEST.XSD
|
10
|
+
Microsoft Wildcat
|
11
|
+
|
12
|
+
Platform API: Incoming request schema
|
13
|
+
|
14
|
+
-->
|
15
|
+
<import
|
16
|
+
namespace="urn:com.microsoft.wc.types"
|
17
|
+
schemaLocation="types.xsd" />
|
18
|
+
<complexType name="Xsl">
|
19
|
+
<simpleContent>
|
20
|
+
<extension base="string">
|
21
|
+
<attribute name="content-type"
|
22
|
+
type="wc-types:string128" use="optional"/>
|
23
|
+
</extension>
|
24
|
+
</simpleContent>
|
25
|
+
</complexType>
|
26
|
+
<complexType name="Info">
|
27
|
+
<sequence>
|
28
|
+
<any minOccurs="0" maxOccurs="unbounded"
|
29
|
+
namespace="##any" processContents="skip">
|
30
|
+
</any>
|
31
|
+
</sequence>
|
32
|
+
</complexType>
|
33
|
+
<complexType name="OfflinePersonInfo">
|
34
|
+
<sequence>
|
35
|
+
<element name="offline-person-id" type="wc-types:guid" >
|
36
|
+
</element>
|
37
|
+
</sequence>
|
38
|
+
</complexType>
|
39
|
+
<complexType name="AuthenticatedSessionInfo">
|
40
|
+
<sequence>
|
41
|
+
<element name="auth-token" type="string" >
|
42
|
+
</element>
|
43
|
+
|
44
|
+
<choice minOccurs="0" maxOccurs="1">
|
45
|
+
<element name="user-auth-token" type="string">
|
46
|
+
</element>
|
47
|
+
|
48
|
+
<element name="offline-person-info"
|
49
|
+
type="wc-request:OfflinePersonInfo">
|
50
|
+
</element>
|
51
|
+
</choice>
|
52
|
+
</sequence>
|
53
|
+
</complexType>
|
54
|
+
<complexType name="Header">
|
55
|
+
<sequence>
|
56
|
+
<element name="method" type="string" >
|
57
|
+
</element>
|
58
|
+
<element name="method-version" type="int" >
|
59
|
+
</element>
|
60
|
+
<element name="target-person-id" type="wc-types:guid"
|
61
|
+
minOccurs="0" maxOccurs="1" >
|
62
|
+
</element>
|
63
|
+
<element name="record-id" type="wc-types:guid"
|
64
|
+
minOccurs="0" maxOccurs="1" >
|
65
|
+
</element>
|
66
|
+
<choice minOccurs="1" maxOccurs="1">
|
67
|
+
<element name="app-id" type="wc-types:guid" >
|
68
|
+
</element>
|
69
|
+
<element name="auth-session"
|
70
|
+
type="wc-request:AuthenticatedSessionInfo" >
|
71
|
+
</element>
|
72
|
+
</choice>
|
73
|
+
<element name="language" type="wc-types:iso639-1"
|
74
|
+
minOccurs="0" maxOccurs="1" >
|
75
|
+
</element>
|
76
|
+
<element name="country" type="wc-types:iso3166"
|
77
|
+
minOccurs="0" maxOccurs="1" >
|
78
|
+
</element>
|
79
|
+
<element name="final-xsl" type="wc-request:Xsl"
|
80
|
+
minOccurs="0" maxOccurs="1" >
|
81
|
+
</element>
|
82
|
+
<element name="msg-time" type="dateTime" >
|
83
|
+
</element>
|
84
|
+
<element name="msg-ttl" type="nonNegativeInteger" >
|
85
|
+
</element>
|
86
|
+
<element name="version" type="wc-types:Version"
|
87
|
+
minOccurs="1" maxOccurs="1" >
|
88
|
+
</element>
|
89
|
+
<element name="info-hash" type="wc-types:HashFinalized"
|
90
|
+
minOccurs="0" maxOccurs="1" >
|
91
|
+
</element>
|
92
|
+
</sequence>
|
93
|
+
</complexType>
|
94
|
+
<element name="request">
|
95
|
+
<complexType>
|
96
|
+
<sequence>
|
97
|
+
<element name="auth" type="wc-types:HMACFinalized"
|
98
|
+
minOccurs="0" maxOccurs="1">
|
99
|
+
</element>
|
100
|
+
<element name="header" type="wc-request:Header" >
|
101
|
+
</element>
|
102
|
+
<element name="info" type="wc-request:Info" >
|
103
|
+
</element>
|
104
|
+
</sequence>
|
105
|
+
</complexType>
|
106
|
+
</element>
|
107
|
+
</schema>
|
@@ -0,0 +1,119 @@
|
|
1
|
+
<?xml version="1.0"?>
|
2
|
+
<schema
|
3
|
+
targetNamespace=
|
4
|
+
"urn:com.microsoft.wc.methods.response.GetServiceDefinition"
|
5
|
+
xmlns:wc-getservicedefinition-response=
|
6
|
+
"urn:com.microsoft.wc.methods.response.GetServiceDefinition"
|
7
|
+
xmlns="http://www.w3.org/2001/XMLSchema" >
|
8
|
+
<!-- rubyhealthvault bootstrap response-getservicedefinition.xsd -->
|
9
|
+
<complexType name="ConfigurationEntry">
|
10
|
+
<simpleContent>
|
11
|
+
<extension base="string">
|
12
|
+
<attribute name="key"
|
13
|
+
type="string" use="required">
|
14
|
+
</attribute>
|
15
|
+
</extension>
|
16
|
+
</simpleContent>
|
17
|
+
</complexType>
|
18
|
+
|
19
|
+
<complexType name="Platform">
|
20
|
+
<sequence>
|
21
|
+
<element name="url" type="string" >
|
22
|
+
</element>
|
23
|
+
<element name="version" type="string" >
|
24
|
+
</element>
|
25
|
+
<element name="configuration"
|
26
|
+
type="wc-getservicedefinition-response:ConfigurationEntry"
|
27
|
+
minOccurs="0"
|
28
|
+
maxOccurs="unbounded" >
|
29
|
+
</element>
|
30
|
+
</sequence>
|
31
|
+
</complexType>
|
32
|
+
<complexType name="ShellRedirectToken">
|
33
|
+
<sequence>
|
34
|
+
<element name="token" type="string">
|
35
|
+
</element>
|
36
|
+
<element name="description" type="string">
|
37
|
+
</element>
|
38
|
+
<element name="querystring-parameters" type="string">
|
39
|
+
</element>
|
40
|
+
</sequence>
|
41
|
+
</complexType>
|
42
|
+
<complexType name="Shell">
|
43
|
+
<sequence>
|
44
|
+
<element name="url" type="string" >
|
45
|
+
</element>
|
46
|
+
<element name="redirect-url" type="string">
|
47
|
+
</element>
|
48
|
+
<element name="redirect-token"
|
49
|
+
type="wc-getservicedefinition-response:ShellRedirectToken"
|
50
|
+
minOccurs="0" maxOccurs="unbounded">
|
51
|
+
</element>
|
52
|
+
</sequence>
|
53
|
+
</complexType>
|
54
|
+
<complexType name="SDKAssembly">
|
55
|
+
<sequence>
|
56
|
+
<element name="url" type="string" >
|
57
|
+
</element>
|
58
|
+
<element name="version" type="string" >
|
59
|
+
</element>
|
60
|
+
<element name="doc-url" type="string" >
|
61
|
+
</element>
|
62
|
+
</sequence>
|
63
|
+
</complexType>
|
64
|
+
<complexType name="XmlMethodVersion">
|
65
|
+
<sequence>
|
66
|
+
<element name="request-schema-url"
|
67
|
+
type="string"
|
68
|
+
minOccurs="0"
|
69
|
+
maxOccurs="1" >
|
70
|
+
</element>
|
71
|
+
<element name="response-schema-url"
|
72
|
+
type="string"
|
73
|
+
minOccurs="0"
|
74
|
+
maxOccurs="1" >
|
75
|
+
</element>
|
76
|
+
</sequence>
|
77
|
+
<attribute name="number" type="string" use="required">
|
78
|
+
</attribute>
|
79
|
+
</complexType>
|
80
|
+
<complexType name="XmlMethod">
|
81
|
+
<sequence>
|
82
|
+
<element name="name" type="string" >
|
83
|
+
</element>
|
84
|
+
<element name="version"
|
85
|
+
type="wc-getservicedefinition-response:XmlMethodVersion"
|
86
|
+
minOccurs="0"
|
87
|
+
maxOccurs="unbounded" >
|
88
|
+
</element>
|
89
|
+
</sequence>
|
90
|
+
</complexType>
|
91
|
+
<element name="info">
|
92
|
+
<complexType>
|
93
|
+
<sequence>
|
94
|
+
<element name="platform"
|
95
|
+
type="wc-getservicedefinition-response:Platform">
|
96
|
+
</element>
|
97
|
+
<element name="shell"
|
98
|
+
type="wc-getservicedefinition-response:Shell" >
|
99
|
+
</element>
|
100
|
+
<element name="sdk-assembly"
|
101
|
+
type="wc-getservicedefinition-response:SDKAssembly"
|
102
|
+
minOccurs="1"
|
103
|
+
maxOccurs="unbounded">
|
104
|
+
</element>
|
105
|
+
<element name="xml-method"
|
106
|
+
type="wc-getservicedefinition-response:XmlMethod"
|
107
|
+
minOccurs="1"
|
108
|
+
maxOccurs="unbounded" >
|
109
|
+
</element>
|
110
|
+
<element name="common-schema"
|
111
|
+
type="string"
|
112
|
+
minOccurs="0"
|
113
|
+
maxOccurs="unbounded" >
|
114
|
+
</element>
|
115
|
+
</sequence>
|
116
|
+
</complexType>
|
117
|
+
</element>
|
118
|
+
|
119
|
+
</schema>
|