rubyhealthvault 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (477) hide show
  1. data/LICENSE +52 -0
  2. data/README +19 -0
  3. data/Rakefile +149 -0
  4. data/bin/certs/HelloWorld-SDK_ID-05a059c9-c309-46af-9b86-b06d42510550.pfx +0 -0
  5. data/bin/certs/helloWorld.pem +52 -0
  6. data/bin/example.rb +80 -0
  7. data/bin/hv.log +118 -0
  8. data/lib/application.rb +37 -0
  9. data/lib/code_generation/xsd_parser.rb +376 -0
  10. data/lib/config.rb +28 -0
  11. data/lib/connection.rb +61 -0
  12. data/lib/healthvault.rb +2 -0
  13. data/lib/request.rb +113 -0
  14. data/lib/response.rb +50 -0
  15. data/lib/templates/complex_type_template.erb +64 -0
  16. data/lib/templates/simple_type_template.erb +65 -0
  17. data/lib/templates/thing_class_extension_template.erb +22 -0
  18. data/lib/utils/crypto_utils.rb +69 -0
  19. data/lib/utils/string_utils.rb +35 -0
  20. data/lib/wc_data/complex_type.rb +249 -0
  21. data/lib/wc_data/generated/application/app.rb +217 -0
  22. data/lib/wc_data/generated/application/app_id_and_incr_auth.rb +118 -0
  23. data/lib/wc_data/generated/application/app_large_logo.rb +56 -0
  24. data/lib/wc_data/generated/application/app_large_logo_info.rb +66 -0
  25. data/lib/wc_data/generated/application/app_persistent_tokens.rb +64 -0
  26. data/lib/wc_data/generated/application/app_small_logo.rb +56 -0
  27. data/lib/wc_data/generated/application/app_small_logo_info.rb +66 -0
  28. data/lib/wc_data/generated/application/app_with_logos.rb +291 -0
  29. data/lib/wc_data/generated/application/public_key.rb +43 -0
  30. data/lib/wc_data/generated/application/public_keys.rb +48 -0
  31. data/lib/wc_data/generated/application/statement.rb +30 -0
  32. data/lib/wc_data/generated/application/statement_info.rb +66 -0
  33. data/lib/wc_data/generated/auth/app_record_auth_action.rb +61 -0
  34. data/lib/wc_data/generated/auth/associated_cred_info.rb +70 -0
  35. data/lib/wc_data/generated/auth/auth.rb +44 -0
  36. data/lib/wc_data/generated/auth/auth_session_credential.rb +68 -0
  37. data/lib/wc_data/generated/auth/auth_session_sub_credential.rb +45 -0
  38. data/lib/wc_data/generated/auth/auth_xml.rb +44 -0
  39. data/lib/wc_data/generated/auth/federating_cred.rb +48 -0
  40. data/lib/wc_data/generated/auth/rule.rb +187 -0
  41. data/lib/wc_data/generated/auth/rules.rb +48 -0
  42. data/lib/wc_data/generated/auth/set.rb +70 -0
  43. data/lib/wc_data/generated/auth/simple_card_space_credential.rb +48 -0
  44. data/lib/wc_data/generated/auth/simple_passport_credential.rb +47 -0
  45. data/lib/wc_data/generated/auth/simple_user_pass_credential.rb +48 -0
  46. data/lib/wc_data/generated/auth/textual_permissions.rb +66 -0
  47. data/lib/wc_data/generated/auth/textual_permissions_type.rb +81 -0
  48. data/lib/wc_data/generated/auth/textual_rule.rb +154 -0
  49. data/lib/wc_data/generated/auth/token.rb +90 -0
  50. data/lib/wc_data/generated/auth/user_pass_auth_session_cred.rb +92 -0
  51. data/lib/wc_data/generated/auth/user_pass_cred.rb +70 -0
  52. data/lib/wc_data/generated/dates/approx_date.rb +82 -0
  53. data/lib/wc_data/generated/dates/approx_date_time.rb +62 -0
  54. data/lib/wc_data/generated/dates/date.rb +86 -0
  55. data/lib/wc_data/generated/dates/date_time.rb +82 -0
  56. data/lib/wc_data/generated/dates/day.rb +56 -0
  57. data/lib/wc_data/generated/dates/hour.rb +56 -0
  58. data/lib/wc_data/generated/dates/millisecond.rb +56 -0
  59. data/lib/wc_data/generated/dates/minute.rb +56 -0
  60. data/lib/wc_data/generated/dates/month.rb +56 -0
  61. data/lib/wc_data/generated/dates/second.rb +56 -0
  62. data/lib/wc_data/generated/dates/structured_approx_date.rb +82 -0
  63. data/lib/wc_data/generated/dates/time.rb +102 -0
  64. data/lib/wc_data/generated/dates/year.rb +56 -0
  65. data/lib/wc_data/generated/methods/add_application/info.rb +375 -0
  66. data/lib/wc_data/generated/methods/create_authenticated_session_token/auth_token_info.rb +72 -0
  67. data/lib/wc_data/generated/methods/create_authenticated_session_token/credential.rb +88 -0
  68. data/lib/wc_data/generated/methods/create_authenticated_session_token/info.rb +50 -0
  69. data/lib/wc_data/generated/methods/create_connect_request/info.rb +136 -0
  70. data/lib/wc_data/generated/methods/delete_open_query/info.rb +50 -0
  71. data/lib/wc_data/generated/methods/delete_pending_connect_request/info.rb +49 -0
  72. data/lib/wc_data/generated/methods/get_authorized_connect_requests/info.rb +48 -0
  73. data/lib/wc_data/generated/methods/get_authorized_records/info.rb +52 -0
  74. data/lib/wc_data/generated/methods/get_open_query_info/info.rb +50 -0
  75. data/lib/wc_data/generated/methods/get_person_info/info.rb +48 -0
  76. data/lib/wc_data/generated/methods/get_thing_type/info.rb +118 -0
  77. data/lib/wc_data/generated/methods/get_thing_type/thing_type_section_spec.rb +63 -0
  78. data/lib/wc_data/generated/methods/get_things/info.rb +51 -0
  79. data/lib/wc_data/generated/methods/get_things/thing_filter_spec.rb +296 -0
  80. data/lib/wc_data/generated/methods/get_things/thing_format_spec.rb +75 -0
  81. data/lib/wc_data/generated/methods/get_things/thing_request_group.rb +197 -0
  82. data/lib/wc_data/generated/methods/get_things/thing_section_spec.rb +67 -0
  83. data/lib/wc_data/generated/methods/get_vocabulary/info.rb +48 -0
  84. data/lib/wc_data/generated/methods/get_vocabulary/vocabulary_parameters.rb +73 -0
  85. data/lib/wc_data/generated/methods/put_things/info.rb +51 -0
  86. data/lib/wc_data/generated/methods/query_permissions/info.rb +51 -0
  87. data/lib/wc_data/generated/methods/remove_things/info.rb +52 -0
  88. data/lib/wc_data/generated/methods/response/add_application/info.rb +51 -0
  89. data/lib/wc_data/generated/methods/response/any/info.rb +52 -0
  90. data/lib/wc_data/generated/methods/response/create_authenticated_session_token/app_auth_token_absence_reason.rb +72 -0
  91. data/lib/wc_data/generated/methods/response/create_authenticated_session_token/auth_token_absence_reason.rb +49 -0
  92. data/lib/wc_data/generated/methods/response/create_authenticated_session_token/info.rb +78 -0
  93. data/lib/wc_data/generated/methods/response/create_connect_request/info.rb +52 -0
  94. data/lib/wc_data/generated/methods/response/delete_open_query/info.rb +52 -0
  95. data/lib/wc_data/generated/methods/response/get_application_settings/app_settings.rb +54 -0
  96. data/lib/wc_data/generated/methods/response/get_application_settings/info.rb +70 -0
  97. data/lib/wc_data/generated/methods/response/get_authorized_connect_requests/connect_request.rb +114 -0
  98. data/lib/wc_data/generated/methods/response/get_authorized_connect_requests/info.rb +72 -0
  99. data/lib/wc_data/generated/methods/response/get_authorized_records/info.rb +53 -0
  100. data/lib/wc_data/generated/methods/response/get_people_for_record/info.rb +76 -0
  101. data/lib/wc_data/generated/methods/response/get_person_info/info.rb +52 -0
  102. data/lib/wc_data/generated/methods/response/get_service_definition/configuration_entry.rb +71 -0
  103. data/lib/wc_data/generated/methods/response/get_service_definition/info.rb +141 -0
  104. data/lib/wc_data/generated/methods/response/get_service_definition/platform.rb +98 -0
  105. data/lib/wc_data/generated/methods/response/get_service_definition/sdk_assembly.rb +94 -0
  106. data/lib/wc_data/generated/methods/response/get_service_definition/shell.rb +95 -0
  107. data/lib/wc_data/generated/methods/response/get_service_definition/shell_redirect_token.rb +93 -0
  108. data/lib/wc_data/generated/methods/response/get_service_definition/xml_method.rb +75 -0
  109. data/lib/wc_data/generated/methods/response/get_service_definition/xml_method_version.rb +92 -0
  110. data/lib/wc_data/generated/methods/response/get_thing_type/column.rb +130 -0
  111. data/lib/wc_data/generated/methods/response/get_thing_type/columns.rb +52 -0
  112. data/lib/wc_data/generated/methods/response/get_thing_type/image.rb +71 -0
  113. data/lib/wc_data/generated/methods/response/get_thing_type/info.rb +53 -0
  114. data/lib/wc_data/generated/methods/response/get_thing_type/thing_type_info.rb +232 -0
  115. data/lib/wc_data/generated/methods/response/get_thing_type/transform_source.rb +72 -0
  116. data/lib/wc_data/generated/methods/response/get_thing_type/transforms.rb +52 -0
  117. data/lib/wc_data/generated/methods/response/get_things/info.rb +54 -0
  118. data/lib/wc_data/generated/methods/response/get_things/thing_response_group.rb +118 -0
  119. data/lib/wc_data/generated/methods/response/get_things/unprocessed_thing_key_info.rb +95 -0
  120. data/lib/wc_data/generated/methods/response/get_vocabulary/info.rb +76 -0
  121. data/lib/wc_data/generated/methods/response/put_things/info.rb +53 -0
  122. data/lib/wc_data/generated/methods/response/query_permissions/info.rb +54 -0
  123. data/lib/wc_data/generated/methods/response/query_permissions/permissions.rb +53 -0
  124. data/lib/wc_data/generated/methods/response/query_permissions/thing_type_permission.rb +89 -0
  125. data/lib/wc_data/generated/methods/response/search_vocabulary/info.rb +74 -0
  126. data/lib/wc_data/generated/methods/save_open_query/info.rb +227 -0
  127. data/lib/wc_data/generated/methods/search_vocabulary/info.rb +70 -0
  128. data/lib/wc_data/generated/methods/search_vocabulary/vocabulary_search_params.rb +69 -0
  129. data/lib/wc_data/generated/methods/search_vocabulary/vocabulary_search_string.rb +68 -0
  130. data/lib/wc_data/generated/methods/send_insecure_message/info.rb +155 -0
  131. data/lib/wc_data/generated/methods/send_insecure_message_from_application/from_mailbox.rb +71 -0
  132. data/lib/wc_data/generated/methods/send_insecure_message_from_application/info.rb +178 -0
  133. data/lib/wc_data/generated/methods/set_application_settings/app_settings.rb +52 -0
  134. data/lib/wc_data/generated/methods/set_application_settings/info.rb +48 -0
  135. data/lib/wc_data/generated/methods/update_application/info.rb +384 -0
  136. data/lib/wc_data/generated/methods/update_external_id/info.rb +70 -0
  137. data/lib/wc_data/generated/record/active_app_authorization.rb +196 -0
  138. data/lib/wc_data/generated/record/active_person_authorization.rb +290 -0
  139. data/lib/wc_data/generated/record/active_person_authorization_no_ids.rb +250 -0
  140. data/lib/wc_data/generated/record/authorized_record_state.rb +53 -0
  141. data/lib/wc_data/generated/record/non_active_authorization.rb +340 -0
  142. data/lib/wc_data/generated/record/non_active_authorization_no_ids.rb +300 -0
  143. data/lib/wc_data/generated/request/authenticated_session_info.rb +88 -0
  144. data/lib/wc_data/generated/request/header.rb +274 -0
  145. data/lib/wc_data/generated/request/info.rb +48 -0
  146. data/lib/wc_data/generated/request/offline_person_info.rb +46 -0
  147. data/lib/wc_data/generated/request/request.rb +86 -0
  148. data/lib/wc_data/generated/request/xsl.rb +64 -0
  149. data/lib/wc_data/generated/thing/access_avenue.rb +49 -0
  150. data/lib/wc_data/generated/thing/aerobic/aerobic_session.rb +112 -0
  151. data/lib/wc_data/generated/thing/aerobic_profile/aerobic_profile.rb +153 -0
  152. data/lib/wc_data/generated/thing/aerobic_profile/heartrate_zone.rb +90 -0
  153. data/lib/wc_data/generated/thing/aerobic_profile/heartrate_zone_group.rb +72 -0
  154. data/lib/wc_data/generated/thing/aerobic_profile/max_vo2.rb +68 -0
  155. data/lib/wc_data/generated/thing/aerobic_profile/zone_boundary.rb +68 -0
  156. data/lib/wc_data/generated/thing/aerobic_weekly/aerobic_weekly.rb +72 -0
  157. data/lib/wc_data/generated/thing/allergic_episode/allergic_episode.rb +108 -0
  158. data/lib/wc_data/generated/thing/allergy/allergy.rb +186 -0
  159. data/lib/wc_data/generated/thing/annotation/annotation.rb +144 -0
  160. data/lib/wc_data/generated/thing/application/app_specific.rb +137 -0
  161. data/lib/wc_data/generated/thing/appointment/appointment.rb +166 -0
  162. data/lib/wc_data/generated/thing/audit.rb +150 -0
  163. data/lib/wc_data/generated/thing/audit_action.rb +53 -0
  164. data/lib/wc_data/generated/thing/basic/basic.rb +180 -0
  165. data/lib/wc_data/generated/thing/basic/birthyear.rb +58 -0
  166. data/lib/wc_data/generated/thing/basic/country.rb +45 -0
  167. data/lib/wc_data/generated/thing/basic/firstdow.rb +58 -0
  168. data/lib/wc_data/generated/thing/basic/gender.rb +51 -0
  169. data/lib/wc_data/generated/thing/blood_glucose/blood_glucose.rb +172 -0
  170. data/lib/wc_data/generated/thing/blood_pressure/blood_pressure.rb +133 -0
  171. data/lib/wc_data/generated/thing/cardiac_profile/cardiac_profile.rb +209 -0
  172. data/lib/wc_data/generated/thing/cholesterol_profile/cholesterol_profile.rb +129 -0
  173. data/lib/wc_data/generated/thing/common.rb +126 -0
  174. data/lib/wc_data/generated/thing/concern/concern.rb +71 -0
  175. data/lib/wc_data/generated/thing/condition/condition.rb +127 -0
  176. data/lib/wc_data/generated/thing/contact/contact.rb +49 -0
  177. data/lib/wc_data/generated/thing/contraindication/contraindication.rb +129 -0
  178. data/lib/wc_data/generated/thing/daily_medication_usage/daily_medication_usage.rb +218 -0
  179. data/lib/wc_data/generated/thing/data_other.rb +82 -0
  180. data/lib/wc_data/generated/thing/data_xml.rb +80 -0
  181. data/lib/wc_data/generated/thing/diabetic_profile/diabetic_profile.rb +92 -0
  182. data/lib/wc_data/generated/thing/diabetic_profile/target_glucose_zone.rb +90 -0
  183. data/lib/wc_data/generated/thing/diabetic_profile/target_glucose_zone_group.rb +72 -0
  184. data/lib/wc_data/generated/thing/diabetic_profile/zone_boundary.rb +68 -0
  185. data/lib/wc_data/generated/thing/dietary_intake_daily/dietary_intake_daily.rb +249 -0
  186. data/lib/wc_data/generated/thing/directive/directive.rb +343 -0
  187. data/lib/wc_data/generated/thing/discharge_summary/discharge_summary.rb +366 -0
  188. data/lib/wc_data/generated/thing/effective_permissions.rb +66 -0
  189. data/lib/wc_data/generated/thing/emotion/emotion.rb +109 -0
  190. data/lib/wc_data/generated/thing/encounter/encounter.rb +143 -0
  191. data/lib/wc_data/generated/thing/equipment/device.rb +163 -0
  192. data/lib/wc_data/generated/thing/extension.rb +123 -0
  193. data/lib/wc_data/generated/thing/family_history/family_history.rb +203 -0
  194. data/lib/wc_data/generated/thing/family_history_condition/family_history_condition.rb +49 -0
  195. data/lib/wc_data/generated/thing/family_history_person/family_history_person.rb +107 -0
  196. data/lib/wc_data/generated/thing/file/file.rb +90 -0
  197. data/lib/wc_data/generated/thing/guid_and_name.rb +66 -0
  198. data/lib/wc_data/generated/thing/hb_a1_c/hb_a1_c.rb +111 -0
  199. data/lib/wc_data/generated/thing/healthcare_proxy/healthcare_proxy.rb +144 -0
  200. data/lib/wc_data/generated/thing/height/height.rb +71 -0
  201. data/lib/wc_data/generated/thing/immunization/immunization.rb +244 -0
  202. data/lib/wc_data/generated/thing/inhaler/alert.rb +74 -0
  203. data/lib/wc_data/generated/thing/inhaler/asthma_inhaler.rb +272 -0
  204. data/lib/wc_data/generated/thing/inhaler/dow.rb +58 -0
  205. data/lib/wc_data/generated/thing/inhaler/purpose.rb +55 -0
  206. data/lib/wc_data/generated/thing/inhaler_use/asthma_inhaler_use.rb +152 -0
  207. data/lib/wc_data/generated/thing/insulin/insulin_injection.rb +93 -0
  208. data/lib/wc_data/generated/thing/insulin_injection_use/diabetes_insulin_injection_use.rb +114 -0
  209. data/lib/wc_data/generated/thing/lab_test_results/lab_test_results.rb +89 -0
  210. data/lib/wc_data/generated/thing/life_goal/life_goal.rb +68 -0
  211. data/lib/wc_data/generated/thing/link/link.rb +68 -0
  212. data/lib/wc_data/generated/thing/medication/dose_value.rb +107 -0
  213. data/lib/wc_data/generated/thing/medication/medication.rb +491 -0
  214. data/lib/wc_data/generated/thing/microbiology/microbiology_lab_results.rb +186 -0
  215. data/lib/wc_data/generated/thing/password/protected/package/algorithm_name.rb +59 -0
  216. data/lib/wc_data/generated/thing/password/protected/package/package_encryption_type.rb +71 -0
  217. data/lib/wc_data/generated/thing/password/protected/package/password_protected_package.rb +53 -0
  218. data/lib/wc_data/generated/thing/password/protected/package/pbe_parameters_type.rb +97 -0
  219. data/lib/wc_data/generated/thing/payer/payer.rb +265 -0
  220. data/lib/wc_data/generated/thing/personal/personal.rb +303 -0
  221. data/lib/wc_data/generated/thing/personal_image/personal_image.rb +28 -0
  222. data/lib/wc_data/generated/thing/problem/importance.rb +45 -0
  223. data/lib/wc_data/generated/thing/problem/problem.rb +114 -0
  224. data/lib/wc_data/generated/thing/procedure/procedure.rb +125 -0
  225. data/lib/wc_data/generated/thing/radiology_lab_results/radiology_lab_results.rb +106 -0
  226. data/lib/wc_data/generated/thing/related_thing.rb +88 -0
  227. data/lib/wc_data/generated/thing/respiratory_profile/respiratory_profile.rb +109 -0
  228. data/lib/wc_data/generated/thing/sjam/awakening.rb +70 -0
  229. data/lib/wc_data/generated/thing/sjam/sleep_am.rb +195 -0
  230. data/lib/wc_data/generated/thing/sjam/wake_state.rb +58 -0
  231. data/lib/wc_data/generated/thing/sjpm/activity.rb +70 -0
  232. data/lib/wc_data/generated/thing/sjpm/sleep_pm.rb +162 -0
  233. data/lib/wc_data/generated/thing/sjpm/sleepiness.rb +58 -0
  234. data/lib/wc_data/generated/thing/spirometer/spirometer.rb +317 -0
  235. data/lib/wc_data/generated/thing/spirometer/volume_value.rb +69 -0
  236. data/lib/wc_data/generated/thing/thing.rb +213 -0
  237. data/lib/wc_data/generated/thing/thing_key.rb +66 -0
  238. data/lib/wc_data/generated/thing/thing_state.rb +49 -0
  239. data/lib/wc_data/generated/thing/thing_type.rb +64 -0
  240. data/lib/wc_data/generated/thing/types/address.rb +176 -0
  241. data/lib/wc_data/generated/thing/types/aerobic_lap_session.rb +86 -0
  242. data/lib/wc_data/generated/thing/types/aerobic_session.rb +745 -0
  243. data/lib/wc_data/generated/thing/types/aerobic_session_samples.rb +310 -0
  244. data/lib/wc_data/generated/thing/types/altitude_value.rb +70 -0
  245. data/lib/wc_data/generated/thing/types/blood_glucose_value.rb +69 -0
  246. data/lib/wc_data/generated/thing/types/codable_value.rb +74 -0
  247. data/lib/wc_data/generated/thing/types/coded_value.rb +112 -0
  248. data/lib/wc_data/generated/thing/types/communication_type.rb +112 -0
  249. data/lib/wc_data/generated/thing/types/condition.rb +148 -0
  250. data/lib/wc_data/generated/thing/types/contact.rb +97 -0
  251. data/lib/wc_data/generated/thing/types/display_value.rb +90 -0
  252. data/lib/wc_data/generated/thing/types/document_reference_type.rb +112 -0
  253. data/lib/wc_data/generated/thing/types/double_range.rb +70 -0
  254. data/lib/wc_data/generated/thing/types/dow.rb +58 -0
  255. data/lib/wc_data/generated/thing/types/duration_value.rb +69 -0
  256. data/lib/wc_data/generated/thing/types/email.rb +89 -0
  257. data/lib/wc_data/generated/thing/types/flow_value.rb +69 -0
  258. data/lib/wc_data/generated/thing/types/general_measurement.rb +74 -0
  259. data/lib/wc_data/generated/thing/types/goal.rb +86 -0
  260. data/lib/wc_data/generated/thing/types/goal_status.rb +55 -0
  261. data/lib/wc_data/generated/thing/types/insulin_injection_value.rb +69 -0
  262. data/lib/wc_data/generated/thing/types/lab_result_type.rb +149 -0
  263. data/lib/wc_data/generated/thing/types/lab_test_result_type.rb +167 -0
  264. data/lib/wc_data/generated/thing/types/lab_test_result_value_type.rb +99 -0
  265. data/lib/wc_data/generated/thing/types/lab_test_results_group_type.rb +138 -0
  266. data/lib/wc_data/generated/thing/types/lab_test_type.rb +209 -0
  267. data/lib/wc_data/generated/thing/types/language.rb +69 -0
  268. data/lib/wc_data/generated/thing/types/length_value.rb +69 -0
  269. data/lib/wc_data/generated/thing/types/name.rb +148 -0
  270. data/lib/wc_data/generated/thing/types/non_negative_double.rb +45 -0
  271. data/lib/wc_data/generated/thing/types/one_to_five.rb +58 -0
  272. data/lib/wc_data/generated/thing/types/organization.rb +106 -0
  273. data/lib/wc_data/generated/thing/types/pace_value.rb +69 -0
  274. data/lib/wc_data/generated/thing/types/percentage.rb +58 -0
  275. data/lib/wc_data/generated/thing/types/person.rb +146 -0
  276. data/lib/wc_data/generated/thing/types/phone.rb +89 -0
  277. data/lib/wc_data/generated/thing/types/positive_double.rb +45 -0
  278. data/lib/wc_data/generated/thing/types/power_value.rb +69 -0
  279. data/lib/wc_data/generated/thing/types/sample.rb +88 -0
  280. data/lib/wc_data/generated/thing/types/sample_set.rb +116 -0
  281. data/lib/wc_data/generated/thing/types/speed_value.rb +69 -0
  282. data/lib/wc_data/generated/thing/types/structured_measurement.rb +71 -0
  283. data/lib/wc_data/generated/thing/types/temperature_value.rb +69 -0
  284. data/lib/wc_data/generated/thing/types/test_result_range.rb +71 -0
  285. data/lib/wc_data/generated/thing/types/torque_value.rb +69 -0
  286. data/lib/wc_data/generated/thing/types/weight_value.rb +69 -0
  287. data/lib/wc_data/generated/thing/vital_signs/vital_sign_result_type.rb +166 -0
  288. data/lib/wc_data/generated/thing/vital_signs/vital_signs.rb +110 -0
  289. data/lib/wc_data/generated/thing/weight/weight.rb +70 -0
  290. data/lib/wc_data/generated/thing/weight_goal/weight_goal.rb +106 -0
  291. data/lib/wc_data/generated/types/address.rb +162 -0
  292. data/lib/wc_data/generated/types/app_info.rb +66 -0
  293. data/lib/wc_data/generated/types/app_server_cred.rb +70 -0
  294. data/lib/wc_data/generated/types/app_server_cred_info.rb +70 -0
  295. data/lib/wc_data/generated/types/app_settings.rb +50 -0
  296. data/lib/wc_data/generated/types/base64_sha1.rb +56 -0
  297. data/lib/wc_data/generated/types/card_space_cred.rb +50 -0
  298. data/lib/wc_data/generated/types/char2.rb +56 -0
  299. data/lib/wc_data/generated/types/codable_value.rb +72 -0
  300. data/lib/wc_data/generated/types/coded_value.rb +110 -0
  301. data/lib/wc_data/generated/types/culture.rb +64 -0
  302. data/lib/wc_data/generated/types/date_range.rb +62 -0
  303. data/lib/wc_data/generated/types/email.rb +82 -0
  304. data/lib/wc_data/generated/types/email_address.rb +56 -0
  305. data/lib/wc_data/generated/types/gender.rb +49 -0
  306. data/lib/wc_data/generated/types/group.rb +91 -0
  307. data/lib/wc_data/generated/types/groups.rb +50 -0
  308. data/lib/wc_data/generated/types/guid.rb +43 -0
  309. data/lib/wc_data/generated/types/hash_finalized.rb +48 -0
  310. data/lib/wc_data/generated/types/hash_finalized_data.rb +68 -0
  311. data/lib/wc_data/generated/types/hmac_algorithm.rb +48 -0
  312. data/lib/wc_data/generated/types/hmac_algorithm_data.rb +68 -0
  313. data/lib/wc_data/generated/types/hmac_finalized.rb +48 -0
  314. data/lib/wc_data/generated/types/hmac_finalized_data.rb +68 -0
  315. data/lib/wc_data/generated/types/iso3166.rb +1001 -0
  316. data/lib/wc_data/generated/types/iso4217.rb +733 -0
  317. data/lib/wc_data/generated/types/iso639_1.rb +585 -0
  318. data/lib/wc_data/generated/types/language_competency.rb +64 -0
  319. data/lib/wc_data/generated/types/localized_string.rb +64 -0
  320. data/lib/wc_data/generated/types/login_name.rb +56 -0
  321. data/lib/wc_data/generated/types/name_match_type.rb +53 -0
  322. data/lib/wc_data/generated/types/omb_ethnicity.rb +65 -0
  323. data/lib/wc_data/generated/types/open_query_info.rb +149 -0
  324. data/lib/wc_data/generated/types/permission.rb +61 -0
  325. data/lib/wc_data/generated/types/person_info.rb +214 -0
  326. data/lib/wc_data/generated/types/phone.rb +82 -0
  327. data/lib/wc_data/generated/types/positive_long.rb +43 -0
  328. data/lib/wc_data/generated/types/puid.rb +43 -0
  329. data/lib/wc_data/generated/types/rcpt_address.rb +69 -0
  330. data/lib/wc_data/generated/types/rcpt_person.rb +68 -0
  331. data/lib/wc_data/generated/types/rcpt_record.rb +48 -0
  332. data/lib/wc_data/generated/types/record.rb +264 -0
  333. data/lib/wc_data/generated/types/record_state.rb +57 -0
  334. data/lib/wc_data/generated/types/sig.rb +112 -0
  335. data/lib/wc_data/generated/types/string1024.rb +56 -0
  336. data/lib/wc_data/generated/types/string128.rb +56 -0
  337. data/lib/wc_data/generated/types/string16.rb +56 -0
  338. data/lib/wc_data/generated/types/string255.rb +56 -0
  339. data/lib/wc_data/generated/types/string32.rb +56 -0
  340. data/lib/wc_data/generated/types/string512.rb +56 -0
  341. data/lib/wc_data/generated/types/string64.rb +56 -0
  342. data/lib/wc_data/generated/types/stringnz.rb +43 -0
  343. data/lib/wc_data/generated/types/stringz1024.rb +56 -0
  344. data/lib/wc_data/generated/types/stringz128.rb +56 -0
  345. data/lib/wc_data/generated/types/stringz16.rb +56 -0
  346. data/lib/wc_data/generated/types/stringz255.rb +56 -0
  347. data/lib/wc_data/generated/types/stringz32.rb +56 -0
  348. data/lib/wc_data/generated/types/stringz512.rb +56 -0
  349. data/lib/wc_data/generated/types/stringz64.rb +56 -0
  350. data/lib/wc_data/generated/types/url.rb +56 -0
  351. data/lib/wc_data/generated/types/version.rb +56 -0
  352. data/lib/wc_data/generated/vocab/info_xml.rb +46 -0
  353. data/lib/wc_data/generated/vocab/vocabulary_code_item.rb +104 -0
  354. data/lib/wc_data/generated/vocab/vocabulary_code_set.rb +133 -0
  355. data/lib/wc_data/generated/vocab/vocabulary_key.rb +106 -0
  356. data/lib/wc_data/generated/vocab/vocabulary_key_info.rb +26 -0
  357. data/lib/wc_data/init.rb +27 -0
  358. data/lib/wc_data/raw_info_xml.rb +12 -0
  359. data/lib/wc_data/simple_type.rb +16 -0
  360. data/lib/wc_data/thing.rb +78 -0
  361. data/lib/xsd/bootstrap/request.xsd +107 -0
  362. data/lib/xsd/bootstrap/response-getservicedefinition.xsd +119 -0
  363. data/lib/xsd/bootstrap/types.xsd +1117 -0
  364. data/lib/xsd/common/application.xsd +766 -0
  365. data/lib/xsd/common/auth.xsd +1093 -0
  366. data/lib/xsd/common/dates.xsd +510 -0
  367. data/lib/xsd/common/record.xsd +1160 -0
  368. data/lib/xsd/common/request.xsd +524 -0
  369. data/lib/xsd/common/thing.xsd +881 -0
  370. data/lib/xsd/common/types.xsd +3131 -0
  371. data/lib/xsd/common/vocab.xsd +359 -0
  372. data/lib/xsd/requests/method-addapplication.xsd +349 -0
  373. data/lib/xsd/requests/method-createauthenticatedsessiontoken.xsd +216 -0
  374. data/lib/xsd/requests/method-createconnectrequest.xsd +143 -0
  375. data/lib/xsd/requests/method-deleteopenquery.xsd +75 -0
  376. data/lib/xsd/requests/method-deletependingconnectrequest.xsd +77 -0
  377. data/lib/xsd/requests/method-getauthorizedconnectrequests.xsd +78 -0
  378. data/lib/xsd/requests/method-getauthorizedrecords.xsd +82 -0
  379. data/lib/xsd/requests/method-getopenqueryinfo.xsd +74 -0
  380. data/lib/xsd/requests/method-getpersoninfo.xsd +80 -0
  381. data/lib/xsd/requests/method-getthings.xsd +516 -0
  382. data/lib/xsd/requests/method-getthingtype.xsd +201 -0
  383. data/lib/xsd/requests/method-getvocabulary.xsd +135 -0
  384. data/lib/xsd/requests/method-putthings.xsd +80 -0
  385. data/lib/xsd/requests/method-querypermissions.xsd +79 -0
  386. data/lib/xsd/requests/method-removethings.xsd +78 -0
  387. data/lib/xsd/requests/method-saveopenquery.xsd +219 -0
  388. data/lib/xsd/requests/method-searchvocabulary.xsd +222 -0
  389. data/lib/xsd/requests/method-sendinsecuremessage.xsd +185 -0
  390. data/lib/xsd/requests/method-sendinsecuremessagefromapplication.xsd +274 -0
  391. data/lib/xsd/requests/method-setapplicationsettings.xsd +166 -0
  392. data/lib/xsd/requests/method-updateapplication.xsd +357 -0
  393. data/lib/xsd/requests/method-updateexternalid.xsd +84 -0
  394. data/lib/xsd/responses/response-addapplication.xsd +79 -0
  395. data/lib/xsd/responses/response-any.xsd +59 -0
  396. data/lib/xsd/responses/response-createauthenticatedsessiontoken.xsd +167 -0
  397. data/lib/xsd/responses/response-createconnectrequest.xsd +88 -0
  398. data/lib/xsd/responses/response-deleteopenquery.xsd +87 -0
  399. data/lib/xsd/responses/response-getapplicationsettings.xsd +192 -0
  400. data/lib/xsd/responses/response-getauthorizedconnectrequests.xsd +135 -0
  401. data/lib/xsd/responses/response-getauthorizedrecords.xsd +76 -0
  402. data/lib/xsd/responses/response-getopenqueryinfo.xsd +64 -0
  403. data/lib/xsd/responses/response-getpeopleforrecord.xsd +95 -0
  404. data/lib/xsd/responses/response-getpersoninfo.xsd +87 -0
  405. data/lib/xsd/responses/response-getservicedefinition.xsd +515 -0
  406. data/lib/xsd/responses/response-getthings.xsd +198 -0
  407. data/lib/xsd/responses/response-getthingtype.xsd +457 -0
  408. data/lib/xsd/responses/response-getvocabulary.xsd +93 -0
  409. data/lib/xsd/responses/response-putthings.xsd +63 -0
  410. data/lib/xsd/responses/response-querypermissions.xsd +182 -0
  411. data/lib/xsd/responses/response-saveopenquery.xsd +62 -0
  412. data/lib/xsd/responses/response-searchvocabulary.xsd +90 -0
  413. data/lib/xsd/things/Advance Directive.xsd +60 -0
  414. data/lib/xsd/things/Aerobic Exercise Session.xsd +19 -0
  415. data/lib/xsd/things/Aerobic Profile.xsd +143 -0
  416. data/lib/xsd/things/Allergic Episode.xsd +17 -0
  417. data/lib/xsd/things/Allergy.xsd +39 -0
  418. data/lib/xsd/things/Application-Specific Information.xsd +42 -0
  419. data/lib/xsd/things/Appointment.xsd +24 -0
  420. data/lib/xsd/things/Asthma Inhaler Usage.xsd +44 -0
  421. data/lib/xsd/things/Asthma Inhaler.xsd +99 -0
  422. data/lib/xsd/things/Base Thing Type.xsd +1000 -0
  423. data/lib/xsd/things/Basic Demographic Information.xsd +49 -0
  424. data/lib/xsd/things/Blood Glucose Measurement.xsd +28 -0
  425. data/lib/xsd/things/Blood Pressure Measurement.xsd +30 -0
  426. data/lib/xsd/things/Cardiac Profile.xsd +80 -0
  427. data/lib/xsd/things/Cholesterol Profile (Lipid Profile).xsd +38 -0
  428. data/lib/xsd/things/Concern.xsd +17 -0
  429. data/lib/xsd/things/Condition.xsd +28 -0
  430. data/lib/xsd/things/Continuity of Care Record.xsd +3 -0
  431. data/lib/xsd/things/Contraindication.xsd +27 -0
  432. data/lib/xsd/things/Daily Dietary Intake.xsd +51 -0
  433. data/lib/xsd/things/Daily Medication Usage.xsd +41 -0
  434. data/lib/xsd/things/Device.xsd +24 -0
  435. data/lib/xsd/things/Diabetes Insulin Injection Use.xsd +26 -0
  436. data/lib/xsd/things/Diabetic Profile.xsd +92 -0
  437. data/lib/xsd/things/Discharge Summary.xsd +43 -0
  438. data/lib/xsd/things/Emergency or Provider Contact.xsd +11 -0
  439. data/lib/xsd/things/Emotional State.xsd +24 -0
  440. data/lib/xsd/things/Encounter (old).xsd +21 -0
  441. data/lib/xsd/things/Encounter.xsd +19 -0
  442. data/lib/xsd/things/Family History Condition.xsd +12 -0
  443. data/lib/xsd/things/Family History Person.xsd +18 -0
  444. data/lib/xsd/things/Family History.xsd +27 -0
  445. data/lib/xsd/things/File.xsd +28 -0
  446. data/lib/xsd/things/HL7 Continuity of Care Document.xsd +33 -0
  447. data/lib/xsd/things/HbA1C Measurement.xsd +23 -0
  448. data/lib/xsd/things/Healthcare Proxy.xsd +21 -0
  449. data/lib/xsd/things/Height Measurement.xsd +13 -0
  450. data/lib/xsd/things/Immunization.xsd +32 -0
  451. data/lib/xsd/things/Insulin Injection.xsd +30 -0
  452. data/lib/xsd/things/Insurance Plan.xsd +46 -0
  453. data/lib/xsd/things/Lab Test Result.xsd +11 -0
  454. data/lib/xsd/things/Life Goal.xsd +19 -0
  455. data/lib/xsd/things/Link.xsd +12 -0
  456. data/lib/xsd/things/Medical Annotation.xsd +21 -0
  457. data/lib/xsd/things/Medical Problem.xsd +15 -0
  458. data/lib/xsd/things/Medication.xsd +82 -0
  459. data/lib/xsd/things/Microbiology Lab Test Result.xsd +25 -0
  460. data/lib/xsd/things/Password Protected Package.xsd +23 -0
  461. data/lib/xsd/things/Personal Contact Information.xsd +18 -0
  462. data/lib/xsd/things/Personal Demographic Information.xsd +63 -0
  463. data/lib/xsd/things/Personal Image.xsd +13 -0
  464. data/lib/xsd/things/Procedure.xsd +19 -0
  465. data/lib/xsd/things/Radiology Lab Result.xsd +19 -0
  466. data/lib/xsd/things/Respiratory Profile.xsd +33 -0
  467. data/lib/xsd/things/Sleep Related Activity.xsd +45 -0
  468. data/lib/xsd/things/Sleep Session.xsd +51 -0
  469. data/lib/xsd/things/Spirometer Measurement.xsd +113 -0
  470. data/lib/xsd/things/Vital Signs.xsd +31 -0
  471. data/lib/xsd/things/Weekly Aerobic Exercise Goal.xsd +25 -0
  472. data/lib/xsd/things/Weight Goal.xsd +33 -0
  473. data/lib/xsd/things/Weight Measurement.xsd +10 -0
  474. data/spec/connection_spec.rb +17 -0
  475. data/spec/request_spec.rb +42 -0
  476. data/spec/support/test_server.rb +42 -0
  477. metadata +646 -0
@@ -0,0 +1,1093 @@
1
+ <?xml version="1.0"?>
2
+ <schema
3
+ targetNamespace="urn:com.microsoft.wc.auth"
4
+ xmlns:wc-auth="urn:com.microsoft.wc.auth"
5
+ xmlns:wc-thing="urn:com.microsoft.wc.thing"
6
+ xmlns:wc-types="urn:com.microsoft.wc.types"
7
+ xmlns="http://www.w3.org/2001/XMLSchema" >
8
+
9
+ <!--
10
+
11
+ AUTH.XSD
12
+ Microsoft Wildcat
13
+
14
+ Platform API: Representation of the authorization rules
15
+
16
+ -->
17
+
18
+ <import
19
+ namespace="urn:com.microsoft.wc.types"
20
+ schemaLocation="types.xsd" />
21
+
22
+ <annotation>
23
+ <documentation>
24
+ <summary>
25
+
26
+ </summary>
27
+
28
+ <remarks>
29
+
30
+ </remarks>
31
+ </documentation>
32
+ </annotation>
33
+
34
+ <complexType name="Set">
35
+ <annotation>
36
+ <documentation>
37
+ <summary>
38
+
39
+ </summary>
40
+
41
+ <remarks>
42
+
43
+ </remarks>
44
+ </documentation>
45
+ </annotation>
46
+ <sequence>
47
+ <element name="date-range" type="wc-types:DateRange"
48
+ minOccurs="0" maxOccurs="unbounded">
49
+ <annotation>
50
+ <documentation>
51
+ <summary>
52
+
53
+ </summary>
54
+
55
+ <remarks>
56
+
57
+ </remarks>
58
+ </documentation>
59
+ </annotation>
60
+ </element>
61
+
62
+ <element name="type-id" type="wc-types:guid"
63
+ minOccurs="0" maxOccurs="unbounded">
64
+ <annotation>
65
+ <documentation>
66
+ <summary>
67
+
68
+ </summary>
69
+
70
+ <remarks>
71
+
72
+ </remarks>
73
+ </documentation>
74
+ </annotation>
75
+ </element>
76
+
77
+ </sequence>
78
+ </complexType>
79
+
80
+ <complexType name="Rule">
81
+ <annotation>
82
+ <documentation>
83
+ <summary>
84
+
85
+ </summary>
86
+
87
+ <remarks>
88
+
89
+ </remarks>
90
+ </documentation>
91
+ </annotation>
92
+ <sequence>
93
+ <element name="reason" type="wc-types:string1024"
94
+ minOccurs="0" maxOccurs="1">
95
+ <annotation>
96
+ <documentation>
97
+ <summary>
98
+ The reason the application is requesting this access.
99
+ </summary>
100
+ <remarks>
101
+ This reason string will be presented to the user when
102
+ the application asks them to approve this rule.
103
+ </remarks>
104
+ </documentation>
105
+ </annotation>
106
+ </element>
107
+ <element name="display-flags" type="unsignedInt"
108
+ minOccurs="0" maxOccurs="1">
109
+ <annotation>
110
+ <documentation>
111
+ <summary>
112
+ Flags directing the display of optional rules.
113
+ </summary>
114
+ <remarks>
115
+ <pre>
116
+ 0x1 DisplayFirstTime
117
+ Display optional rule during initial App Authorization
118
+ 0x2 CheckedFirstTime
119
+ Display the optional rule as checked during inital App Authorization
120
+ 0x4 CheckedDefault
121
+ Display the optional rule as checked (opt-out)
122
+ </pre>
123
+ </remarks>
124
+ </documentation>
125
+ </annotation>
126
+ </element>
127
+ <element name="permission" type="wc-types:Permission"
128
+ minOccurs="1" maxOccurs="5">
129
+ <annotation>
130
+ <documentation>
131
+ <summary>
132
+
133
+ </summary>
134
+
135
+ <remarks>
136
+
137
+ </remarks>
138
+ </documentation>
139
+ </annotation>
140
+ </element>
141
+
142
+ <element name="target-set" type="wc-auth:Set"
143
+ minOccurs="0" maxOccurs ="unbounded" >
144
+ <annotation>
145
+ <documentation>
146
+ <summary>
147
+
148
+ </summary>
149
+
150
+ <remarks>
151
+
152
+ </remarks>
153
+ </documentation>
154
+ </annotation>
155
+ </element>
156
+ <!-- 0 == all -->
157
+ <element name="exception-set" type="wc-auth:Set"
158
+ minOccurs="0" maxOccurs ="unbounded">
159
+ <annotation>
160
+ <documentation>
161
+ <summary>
162
+
163
+ </summary>
164
+
165
+ <remarks>
166
+
167
+ </remarks>
168
+ </documentation>
169
+ </annotation>
170
+ </element>
171
+
172
+ </sequence>
173
+ <attribute name="is-incr" type="boolean" use="optional">
174
+ <annotation>
175
+ <documentation>
176
+ <summary>
177
+
178
+ </summary>
179
+
180
+ <remarks>
181
+
182
+ </remarks>
183
+ </documentation>
184
+ </annotation>
185
+ </attribute>
186
+ <attribute name="is-optional" type="boolean" use="optional">
187
+ <annotation>
188
+ <documentation>
189
+ <summary>
190
+
191
+ </summary>
192
+
193
+ <remarks>
194
+
195
+ </remarks>
196
+ </documentation>
197
+ </annotation>
198
+ </attribute>
199
+ <attribute name="name" type="wc-types:string16" use="optional">
200
+ <annotation>
201
+ <documentation>
202
+ <summary>
203
+ A short name uniquely identifying the rule within the set.
204
+ </summary>
205
+ <remarks>
206
+ The name must be unique within the rule set.
207
+ </remarks>
208
+ </documentation>
209
+ </annotation>
210
+ </attribute>
211
+
212
+ </complexType>
213
+
214
+ <complexType name="Rules">
215
+ <annotation>
216
+ <documentation>
217
+ <summary>
218
+
219
+ </summary>
220
+
221
+ <remarks>
222
+
223
+ </remarks>
224
+ </documentation>
225
+ </annotation>
226
+ <sequence>
227
+ <element name="rule" type="wc-auth:Rule"
228
+ minOccurs="0" maxOccurs="unbounded">
229
+ <annotation>
230
+ <documentation>
231
+ <summary>
232
+
233
+ </summary>
234
+
235
+ <remarks>
236
+
237
+ </remarks>
238
+ </documentation>
239
+ </annotation>
240
+ </element>
241
+
242
+ </sequence>
243
+ </complexType>
244
+
245
+ <complexType name ="Auth">
246
+ <annotation>
247
+ <documentation>
248
+ <summary>
249
+
250
+ </summary>
251
+
252
+ <remarks>
253
+
254
+ </remarks>
255
+ </documentation>
256
+ </annotation>
257
+ <sequence>
258
+ <element name="rules" type="wc-auth:Rules"
259
+ minOccurs="0" maxOccurs="1">
260
+ <annotation>
261
+ <documentation>
262
+ <summary>
263
+
264
+ </summary>
265
+
266
+ <remarks>
267
+
268
+ </remarks>
269
+ </documentation>
270
+ </annotation>
271
+ </element>
272
+
273
+ </sequence>
274
+ </complexType>
275
+
276
+ <complexType name="AuthXml">
277
+ <annotation>
278
+ <documentation>
279
+ <summary>
280
+
281
+ </summary>
282
+
283
+ <remarks>
284
+
285
+ </remarks>
286
+ </documentation>
287
+ </annotation>
288
+ <sequence>
289
+ <element name="auth" type="wc-auth:Auth"
290
+ minOccurs="0" maxOccurs="1">
291
+ <annotation>
292
+ <documentation>
293
+ <summary>
294
+
295
+ </summary>
296
+
297
+ <remarks>
298
+
299
+ </remarks>
300
+ </documentation>
301
+ </annotation>
302
+ </element>
303
+
304
+ </sequence>
305
+ </complexType>
306
+
307
+ <element name="auth" type="wc-auth:Auth">
308
+ <annotation>
309
+ <documentation>
310
+ <summary>
311
+
312
+ </summary>
313
+
314
+ <remarks>
315
+
316
+ </remarks>
317
+ </documentation>
318
+ </annotation>
319
+ </element>
320
+
321
+
322
+ <simpleType name="TextualPermissionsType">
323
+ <annotation>
324
+ <documentation>
325
+ <summary>
326
+
327
+ </summary>
328
+
329
+ <remarks>
330
+
331
+ </remarks>
332
+ </documentation>
333
+ </annotation>
334
+ <restriction base="string">
335
+ <enumeration value="Custom">
336
+ <annotation>
337
+ <documentation>
338
+ <summary>
339
+
340
+ </summary>
341
+ </documentation>
342
+ </annotation>
343
+ </enumeration>
344
+ <enumeration value="ReadAll">
345
+ <annotation>
346
+ <documentation>
347
+ <summary>
348
+
349
+ </summary>
350
+ </documentation>
351
+ </annotation>
352
+ </enumeration>
353
+ <enumeration value="UpdateAll">
354
+ <annotation>
355
+ <documentation>
356
+ <summary>
357
+
358
+ </summary>
359
+ </documentation>
360
+ </annotation>
361
+ </enumeration>
362
+ <enumeration value="CreateAll">
363
+ <annotation>
364
+ <documentation>
365
+ <summary>
366
+
367
+ </summary>
368
+ </documentation>
369
+ </annotation>
370
+ </enumeration>
371
+ <enumeration value="DeleteAll">
372
+ <annotation>
373
+ <documentation>
374
+ <summary>
375
+
376
+ </summary>
377
+ </documentation>
378
+ </annotation>
379
+ </enumeration>
380
+ <enumeration value="ReadUpdateAll" >
381
+ <annotation>
382
+ <documentation>
383
+ <summary>
384
+
385
+ </summary>
386
+ </documentation>
387
+ </annotation>
388
+ </enumeration>
389
+ <enumeration value="ReadCreateAll">
390
+ <annotation>
391
+ <documentation>
392
+ <summary>
393
+
394
+ </summary>
395
+ </documentation>
396
+ </annotation>
397
+ </enumeration>
398
+ <enumeration value="UpdateCreateAll">
399
+ <annotation>
400
+ <documentation>
401
+ <summary>
402
+
403
+ </summary>
404
+ </documentation>
405
+ </annotation>
406
+ </enumeration>
407
+ <enumeration value="ReadUpdateCreateAll">
408
+ <annotation>
409
+ <documentation>
410
+ <summary>
411
+
412
+ </summary>
413
+ </documentation>
414
+ </annotation>
415
+ </enumeration>
416
+ <enumeration value="ReadUpdateCreateDeleteAll">
417
+ <annotation>
418
+ <documentation>
419
+ <summary>
420
+
421
+ </summary>
422
+ </documentation>
423
+ </annotation>
424
+ </enumeration>
425
+ </restriction>
426
+ </simpleType>
427
+
428
+ <complexType name="TextualRule">
429
+ <annotation>
430
+ <documentation>
431
+ <summary>
432
+
433
+ </summary>
434
+
435
+ <remarks>
436
+
437
+ </remarks>
438
+ </documentation>
439
+ </annotation>
440
+ <sequence>
441
+ <element name="permission" type="string">
442
+ <annotation>
443
+ <documentation>
444
+ <summary>
445
+
446
+ </summary>
447
+
448
+ <remarks>
449
+
450
+ </remarks>
451
+ </documentation>
452
+ </annotation>
453
+ </element>
454
+
455
+ <element name="target-thing-types" type="string"
456
+ minOccurs="0" maxOccurs="1">
457
+ <annotation>
458
+ <documentation>
459
+ <summary>
460
+
461
+ </summary>
462
+
463
+ <remarks>
464
+
465
+ </remarks>
466
+ </documentation>
467
+ </annotation>
468
+ </element>
469
+
470
+ <element name="target-sets" type="string"
471
+ minOccurs="0" maxOccurs="1">
472
+ <annotation>
473
+ <documentation>
474
+ <summary>
475
+
476
+ </summary>
477
+
478
+ <remarks>
479
+
480
+ </remarks>
481
+ </documentation>
482
+ </annotation>
483
+ </element>
484
+
485
+ <element name="target-dates" type="string"
486
+ minOccurs="0" maxOccurs="1">
487
+ <annotation>
488
+ <documentation>
489
+ <summary>
490
+
491
+ </summary>
492
+
493
+ <remarks>
494
+
495
+ </remarks>
496
+ </documentation>
497
+ </annotation>
498
+ </element>
499
+
500
+ <element name="except-thing-types" type="string"
501
+ minOccurs="0" maxOccurs="1">
502
+ <annotation>
503
+ <documentation>
504
+ <summary>
505
+
506
+ </summary>
507
+
508
+ <remarks>
509
+
510
+ </remarks>
511
+ </documentation>
512
+ </annotation>
513
+ </element>
514
+
515
+ <element name="except-sets" type="string"
516
+ minOccurs="0" maxOccurs="1">
517
+ <annotation>
518
+ <documentation>
519
+ <summary>
520
+
521
+ </summary>
522
+
523
+ <remarks>
524
+
525
+ </remarks>
526
+ </documentation>
527
+ </annotation>
528
+ </element>
529
+
530
+ <element name="except-dates" type="string"
531
+ minOccurs="0" maxOccurs="1">
532
+ <annotation>
533
+ <documentation>
534
+ <summary>
535
+
536
+ </summary>
537
+
538
+ <remarks>
539
+
540
+ </remarks>
541
+ </documentation>
542
+ </annotation>
543
+ </element>
544
+
545
+ </sequence>
546
+ </complexType>
547
+
548
+ <complexType name="TextualPermissions">
549
+ <annotation>
550
+ <documentation>
551
+ <summary>
552
+
553
+ </summary>
554
+
555
+ <remarks>
556
+
557
+ </remarks>
558
+ </documentation>
559
+ </annotation>
560
+ <sequence>
561
+ <element name="textual-permissions-type"
562
+ type="wc-auth:TextualPermissionsType">
563
+ <annotation>
564
+ <documentation>
565
+ <summary>
566
+
567
+ </summary>
568
+
569
+ <remarks>
570
+
571
+ </remarks>
572
+ </documentation>
573
+ </annotation>
574
+ </element>
575
+
576
+ <element name="textual-rule"
577
+ type="wc-auth:TextualRule">
578
+ <annotation>
579
+ <documentation>
580
+ <summary>
581
+
582
+ </summary>
583
+
584
+ <remarks>
585
+
586
+ </remarks>
587
+ </documentation>
588
+ </annotation>
589
+ </element>
590
+
591
+ </sequence>
592
+ </complexType>
593
+
594
+ <simpleType name="AppRecordAuthAction">
595
+ <annotation>
596
+ <documentation>
597
+ <summary>
598
+ The states of application-record authorization.
599
+ </summary>
600
+
601
+ <remarks>
602
+ If there are actions required, then the enumeration value
603
+ describes the required user action to successfully create
604
+ a token.
605
+ </remarks>
606
+ </documentation>
607
+ </annotation>
608
+ <restriction base="string">
609
+ <enumeration value="">
610
+ <annotation>
611
+ <documentation>
612
+ <summary>
613
+ </summary>
614
+ </documentation>
615
+ </annotation>
616
+ </enumeration>
617
+ <enumeration value="AuthorizationRequired">
618
+ <annotation>
619
+ <documentation>
620
+ <summary>
621
+ The application has never been authorized.
622
+ The user must authorize this application.
623
+ </summary>
624
+ </documentation>
625
+ </annotation>
626
+ </enumeration>
627
+ <enumeration value="ReauthorizationRequired" >
628
+ <annotation>
629
+ <documentation>
630
+ <summary>
631
+ The user must authorize this application.
632
+ </summary>
633
+ </documentation>
634
+ </annotation>
635
+ </enumeration>
636
+ <enumeration value="ReauthorizationNotPossible">
637
+ <annotation>
638
+ <documentation>
639
+ <summary>
640
+ It is not possible to reauthorize this application.
641
+ </summary>
642
+ </documentation>
643
+ </annotation>
644
+ </enumeration>
645
+ <enumeration value="NoActionRequired" >
646
+ <annotation>
647
+ <documentation>
648
+ <summary>
649
+ No actions are required.
650
+ </summary>
651
+ </documentation>
652
+ </annotation>
653
+ </enumeration>
654
+ </restriction>
655
+ </simpleType>
656
+
657
+ <!-- private Credentials -->
658
+
659
+ <complexType name="UserPassCred">
660
+ <annotation>
661
+ <documentation>
662
+ <summary>
663
+ A username and password based credential.
664
+ </summary>
665
+
666
+ <remarks>
667
+ This credential type authenticates a user with a username
668
+ and password.
669
+ </remarks>
670
+ </documentation>
671
+ </annotation>
672
+ <sequence>
673
+ <element name="username" type="wc-types:LoginName">
674
+ <annotation>
675
+ <documentation>
676
+ <summary>
677
+ The username of the person being authenticated.
678
+ </summary>
679
+
680
+ <remarks>
681
+ Each user has a unique username and an associated
682
+ password.
683
+ </remarks>
684
+ </documentation>
685
+ </annotation>
686
+ </element>
687
+
688
+ <element name="password" type="wc-types:string1024">
689
+ <annotation>
690
+ <documentation>
691
+ <summary>
692
+ The user's password.
693
+ </summary>
694
+
695
+ <remarks>
696
+ The password used to authenticate the user via
697
+ the provided username.
698
+ </remarks>
699
+ </documentation>
700
+ </annotation>
701
+ </element>
702
+
703
+ </sequence>
704
+ </complexType>
705
+
706
+ <complexType name="SimpleUserPassCredential">
707
+ <annotation>
708
+ <documentation>
709
+ <summary>
710
+ A simple user credential that authenticates a user in
711
+ the Microsoft Health Service.
712
+ </summary>
713
+
714
+ <remarks>
715
+ Each user has a unique username and associated password
716
+ that identifies and authenticates a user in the Microsoft
717
+ Health Service.
718
+ </remarks>
719
+ </documentation>
720
+ </annotation>
721
+ <sequence>
722
+ <element name="simple-userpass"
723
+ type="wc-auth:UserPassCred">
724
+ <annotation>
725
+ <documentation>
726
+ <summary>
727
+ A username and password based credential.
728
+ </summary>
729
+
730
+ <remarks>
731
+ This credential type authenticates a user with a
732
+ username and password.
733
+ </remarks>
734
+ </documentation>
735
+ </annotation>
736
+ </element>
737
+
738
+ </sequence>
739
+ </complexType>
740
+
741
+ <complexType name="UserPassAuthSessionCred">
742
+ <annotation>
743
+ <documentation>
744
+ <summary>
745
+ A credential which establishes an authenticated session
746
+ using a username and password based credential.
747
+ </summary>
748
+
749
+ <remarks>
750
+ A username and password based credential in conjunction
751
+ with a shared secret so that an authenticated session
752
+ can be established with the Microsoft Health Service.
753
+ </remarks>
754
+ </documentation>
755
+ </annotation>
756
+ <sequence>
757
+ <element name="username" type="wc-types:string128">
758
+ <annotation>
759
+ <documentation>
760
+ <summary>
761
+ The username of the person being authenticated.
762
+ </summary>
763
+
764
+ <remarks>
765
+ Each user has a unique username and an associated
766
+ password.
767
+ </remarks>
768
+ </documentation>
769
+ </annotation>
770
+ </element>
771
+
772
+ <element name="password" type="wc-types:string1024">
773
+ <annotation>
774
+ <documentation>
775
+ <summary>
776
+ The user's password.
777
+ </summary>
778
+
779
+ <remarks>
780
+ The password used to authenticate the user via
781
+ the provided username.
782
+ </remarks>
783
+ </documentation>
784
+ </annotation>
785
+ </element>
786
+
787
+
788
+ <element name="shared-secret"
789
+ type="wc-types:HMACAlgorithm">
790
+ <annotation>
791
+ <documentation>
792
+ <summary>
793
+ The shared secret used to establish the authenticated
794
+ session with the Microsoft Health Service.
795
+ </summary>
796
+
797
+ <remarks>
798
+ The shared secret is used to authenticate all requests
799
+ which include the token produced on succesful
800
+ authentication. In order for a client to establish
801
+ an authenticated session with the Microsoft Health
802
+ Service, it must provide a shared secret. The
803
+ client uses the secret as the secret key when
804
+ HMAC'ing over the header section of the request. The
805
+ resulting HMAC digest forms the content of the
806
+ request auth section.
807
+ </remarks>
808
+ </documentation>
809
+ </annotation>
810
+ </element>
811
+
812
+ </sequence>
813
+ </complexType>
814
+
815
+ <complexType name="FederatingCred">
816
+ <annotation>
817
+ <documentation>
818
+ <summary>
819
+ The federating credential that demonstrates a prior
820
+ successful authentication.
821
+ </summary>
822
+
823
+ <remarks>
824
+ This credential represents a successful authentication
825
+ to an application which is allowed to federate a logon
826
+ to another application. The token is used to verify
827
+ a prior successful authentication to the federating
828
+ application. The application id associated with the token
829
+ must match the application id in the federating request.
830
+ </remarks>
831
+ </documentation>
832
+ </annotation>
833
+ <sequence>
834
+ <element name="federating-auth-token" type="string">
835
+ <annotation>
836
+ <documentation>
837
+ <summary>
838
+ A credential token that demonstrates a prior
839
+ successful authentication.
840
+ </summary>
841
+
842
+ <remarks>
843
+ This token is produced for application servers
844
+ upon successful authentication of a user.
845
+ </remarks>
846
+ </documentation>
847
+ </annotation>
848
+ </element>
849
+
850
+ </sequence>
851
+ </complexType>
852
+
853
+ <complexType name="SimpleCardSpaceCredential">
854
+ <annotation>
855
+ <documentation>
856
+ <summary>
857
+ A simple cardspace credential.
858
+ </summary>
859
+
860
+ <remarks>
861
+ A simple credential does not provide the necessary information
862
+ to establish an authenticated session. Rather, it provides
863
+ only enough information to authenticate a user.
864
+ </remarks>
865
+ </documentation>
866
+ </annotation>
867
+ <sequence>
868
+ <element name="simple-cardspace"
869
+ type="wc-types:CardSpaceCred">
870
+ <annotation>
871
+ <documentation>
872
+ <summary>
873
+ A SAML-based credential provided by the CardSpace
874
+ service.
875
+ </summary>
876
+
877
+ <remarks>
878
+ CardSpace produces a SAML token that is encrypted
879
+ using the SSL public key used when associating a
880
+ CardSpace credential with a primary credential.
881
+ </remarks>
882
+ </documentation>
883
+ </annotation>
884
+ </element>
885
+
886
+ </sequence>
887
+ </complexType>
888
+
889
+ <complexType name="AuthSessionSubCredential">
890
+ <annotation>
891
+ <documentation>
892
+ <summary>
893
+ Defines the possible subcredentials that can be used with
894
+ an AuthSessionCredential.
895
+ </summary>
896
+ </documentation>
897
+ </annotation>
898
+ <choice>
899
+ <element name="simple-passport"
900
+ type="wc-auth:SimplePassportCredential">
901
+ <annotation>
902
+ <documentation>
903
+ <summary>
904
+ A credential for verifying identity with
905
+ Microsoft Passport.
906
+ </summary>
907
+ </documentation>
908
+ </annotation>
909
+ </element>
910
+ </choice>
911
+ </complexType>
912
+
913
+ <complexType name="AuthSessionCredential">
914
+ <annotation>
915
+ <documentation>
916
+ <summary>
917
+ A credential for authenticating a session with a
918
+ sub-credential.
919
+ </summary>
920
+ </documentation>
921
+ </annotation>
922
+ <sequence>
923
+ <element name="sub-credential"
924
+ type="wc-auth:AuthSessionSubCredential">
925
+ <annotation>
926
+ <documentation>
927
+ <summary>
928
+ The user's credential that will be used with the
929
+ application's credential to create the session.
930
+ </summary>
931
+ </documentation>
932
+ </annotation>
933
+ </element>
934
+
935
+
936
+ <element name="shared-secret"
937
+ type="wc-types:HMACAlgorithm">
938
+ <annotation>
939
+ <documentation>
940
+ <summary>
941
+ The shared secret is used to authenticate all requests
942
+ which include the token produced on succesful
943
+ authentication. In order for a client to establish
944
+ an authenticated session with the Microsoft Health
945
+ Service, it must provide a shared secret. The
946
+ client uses the secret as the secret key when
947
+ HMAC'ing over the header section of the request. The
948
+ resulting HMAC digest forms the content of the
949
+ request auth section.
950
+ </summary>
951
+ </documentation>
952
+ </annotation>
953
+ </element>
954
+
955
+ </sequence>
956
+ </complexType>
957
+
958
+ <complexType name="SimplePassportCredential">
959
+ <annotation>
960
+ <documentation>
961
+ <summary>
962
+ Represents the confirmed identification of a user who
963
+ has been authenticated to the Passport service.
964
+ </summary>
965
+
966
+ <remarks>
967
+ Authentication to Passport is done through the Shell which
968
+ extracts the user's PUID from the ticket and passes it to
969
+ the platform for verification against a platform account.
970
+ </remarks>
971
+ </documentation>
972
+ </annotation>
973
+ <sequence>
974
+ <element name="puid" type="wc-types:puid">
975
+ <annotation>
976
+ <documentation>
977
+ <summary>
978
+ The unique Passport identifier for the person.
979
+ </summary>
980
+ </documentation>
981
+ </annotation>
982
+ </element>
983
+ </sequence>
984
+ </complexType>
985
+
986
+ <complexType name="AssociatedCredInfo">
987
+ <annotation>
988
+ <documentation>
989
+ <summary>
990
+ Info used to describe the credential to associated with
991
+ a primary credential.
992
+ </summary>
993
+
994
+ <remarks>
995
+ Currently, only cardspace credentials may be associated.
996
+ </remarks>
997
+ </documentation>
998
+ </annotation>
999
+ <sequence>
1000
+ <element name="credential"
1001
+ type="wc-auth:SimpleCardSpaceCredential">
1002
+ <annotation>
1003
+ <documentation>
1004
+ <summary>
1005
+ The credential to be associated with a primary
1006
+ credential.
1007
+ </summary>
1008
+
1009
+ <remarks>
1010
+ Simple credentials are used because an authenticated
1011
+ session is not being established.
1012
+ </remarks>
1013
+ </documentation>
1014
+ </annotation>
1015
+ </element>
1016
+
1017
+ <element name="credential-metadata"
1018
+ type="wc-types:stringnz">
1019
+ <annotation>
1020
+ <documentation>
1021
+ <summary>
1022
+ Meta-data associated with the credential that is
1023
+ used by the Microsoft Health Service.
1024
+ </summary>
1025
+
1026
+ <remarks>
1027
+ An example of a meta datum is the description of
1028
+ the associated credential.
1029
+ </remarks>
1030
+ </documentation>
1031
+ </annotation>
1032
+ </element>
1033
+
1034
+ </sequence>
1035
+ </complexType>
1036
+
1037
+
1038
+ <complexType name="Token">
1039
+ <annotation>
1040
+ <documentation>
1041
+ <summary>
1042
+ The authenticated session token.
1043
+ </summary>
1044
+
1045
+ <remarks>
1046
+ If the request succeeded, then an authenticated session
1047
+ token is returned.
1048
+ </remarks>
1049
+ </documentation>
1050
+ </annotation>
1051
+ <simpleContent>
1052
+ <extension base="wc-types:stringz1024" >
1053
+ <attribute name="app-id" type="wc-types:guid" use="required">
1054
+ <annotation>
1055
+ <documentation>
1056
+ <summary>
1057
+ The guid of the application id for which
1058
+ the authenticated session token was created.
1059
+ </summary>
1060
+
1061
+ <remarks>
1062
+ This application id will be the same as the one
1063
+ specified in the request.
1064
+ </remarks>
1065
+ </documentation>
1066
+ </annotation>
1067
+ </attribute>
1068
+
1069
+ <attribute name="app-record-auth-action"
1070
+ type="wc-auth:AppRecordAuthAction"
1071
+ use="required">
1072
+ <annotation>
1073
+ <documentation>
1074
+ <summary>
1075
+ The states of application-record authorization.
1076
+ </summary>
1077
+
1078
+ <remarks>
1079
+ If there are actions required, then the enumeration value
1080
+ describes the required user action to successfully create
1081
+ a token.
1082
+ </remarks>
1083
+ </documentation>
1084
+ </annotation>
1085
+ </attribute>
1086
+
1087
+ </extension>
1088
+ </simpleContent>
1089
+ </complexType>
1090
+
1091
+ </schema>
1092
+
1093
+