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,49 @@
1
+ <schema xmlns:basic="urn:com.microsoft.wc.thing.basic" xmlns:t="urn:com.microsoft.wc.thing.types" xmlns="http://www.w3.org/2001/XMLSchema" targetNamespace="urn:com.microsoft.wc.thing.basic"><import namespace="urn:com.microsoft.wc.thing.types" schemaLocation="base.xsd" /><annotation><documentation><type-id>bf516a61-5252-4c28-a979-27f45f62f78d</type-id><type-name>Basic Demographic Information</type-name><summary>
2
+ Defines a set of data about the health record that is
3
+ considered not to be personally-identifiable.
4
+ </summary><remarks>
5
+ Unlike the personal demographic information, this data
6
+ is consider to be less sensitive in nature.
7
+ </remarks><singleton /></documentation></annotation><element name="basic"><complexType><annotation><documentation><summary>
8
+ Defines a set of data about the health record that is
9
+ considered not to be personally-identifiable.
10
+ </summary><remarks>
11
+ Unlike the personal demographic information, this data
12
+ is consider to be less sensitive in nature.
13
+ </remarks><singleton /></documentation></annotation><sequence><element name="gender" minOccurs="0" maxOccurs="1"><simpleType><annotation><documentation><summary>
14
+ The person's gender.
15
+ </summary><remarks>
16
+ [m]ale or [f]emale
17
+ </remarks></documentation></annotation><restriction base="string"><enumeration value="m"><annotation><documentation><summary>
18
+ Value indicating a male.
19
+ </summary></documentation></annotation></enumeration><enumeration value="f"><annotation><documentation><summary>
20
+ Value indicating a female.
21
+ </summary></documentation></annotation></enumeration></restriction></simpleType></element><element name="birthyear" minOccurs="0" maxOccurs="1"><simpleType><annotation><documentation><summary>
22
+ The year the person was born.
23
+ </summary><remarks>
24
+ A year between 1000 and 3000.
25
+ </remarks></documentation></annotation><restriction base="int"><minInclusive value="1000" /><maxInclusive value="3000" /></restriction></simpleType></element><element name="country" minOccurs="0" maxOccurs="1"><simpleType><annotation><documentation><summary>
26
+ The country of residence as an ISO-3166
27
+ two character code.
28
+ </summary></documentation></annotation><restriction base="string"><pattern value="[a-zA-Z][a-zA-Z]" /></restriction></simpleType></element><element name="postcode" type="string" minOccurs="0" maxOccurs="1"><annotation><documentation><summary>
29
+ The country specific postal code.
30
+ </summary></documentation></annotation></element><element name="city" type="string" minOccurs="0" maxOccurs="1"><annotation><documentation><summary>
31
+ The city of residence.
32
+ </summary></documentation></annotation></element><element name="state" type="string" minOccurs="0" maxOccurs="1"><annotation><documentation><summary>
33
+ The state or province of residence.
34
+ </summary></documentation></annotation></element><element name="firstdow" minOccurs="0" maxOccurs="1"><simpleType><annotation><documentation><summary>
35
+ The users preferred first day of the week.
36
+ </summary><remarks>
37
+ The user can define which day of the week
38
+ they want calendars and weekly computations
39
+ to start with.
40
+ 1 = Sunday
41
+ 2 = Monday
42
+ 3 = Tuesday
43
+ 4 = Wednesday
44
+ 5 = Thursday
45
+ 6 = Friday
46
+ 7 = Saturday
47
+ </remarks></documentation></annotation><restriction base="int"><minInclusive value="1" /><maxInclusive value="7" /></restriction></simpleType></element><element name="language" type="t:language" minOccurs="0" maxOccurs="unbounded"><annotation><documentation><summary>
48
+ The language(s) a person speaks.
49
+ </summary></documentation></annotation></element></sequence></complexType></element></schema>
@@ -0,0 +1,28 @@
1
+ <schema xmlns:BloodGlucose="urn:com.microsoft.wc.thing.BloodGlucose" xmlns:t="urn:com.microsoft.wc.thing.types" xmlns:d="urn:com.microsoft.wc.dates" xmlns="http://www.w3.org/2001/XMLSchema" targetNamespace="urn:com.microsoft.wc.thing.BloodGlucose"><import namespace="urn:com.microsoft.wc.thing.types" schemaLocation="base.xsd" /><import namespace="urn:com.microsoft.wc.dates" schemaLocation="dates.xsd" /><annotation><documentation><type-id>879e7c04-4e8a-4707-9ad3-b054df467ce4</type-id><type-name>Blood Glucose Measurement</type-name><summary>
2
+ Defines a single blood glucose reading.
3
+ </summary><effective-date-element>when</effective-date-element></documentation></annotation><element name="blood-glucose"><complexType><annotation><documentation><summary>
4
+ Defines a single blood glucose reading.
5
+ </summary></documentation></annotation><sequence><element name="when" type="d:date-time"><annotation><documentation><summary>
6
+ The date and time the reading was taken.
7
+ </summary></documentation></annotation></element><element name="value" type="t:blood-glucose-value"><annotation><documentation><summary>
8
+ The value of the blood glucose measurement.
9
+ </summary></documentation></annotation></element><element name="glucose-measurement-type" type="t:codable-value"><annotation><documentation><summary>
10
+ An enumeration of the possible blood glucose measurement types, whole blood or plasma (serum).
11
+ </summary><preferred-vocabulary>glucose-measurement-type</preferred-vocabulary></documentation></annotation></element><element name="outside-operating-temp" type="boolean" minOccurs="0"><annotation><documentation><summary>
12
+ Indicates whether the reading is outside the operating temperature range of the device that made the reading.
13
+ </summary><remarks>
14
+ Indicates whether the reading is outside the operating temperature range of the device that made the reading.
15
+ </remarks></documentation></annotation></element><element name="is-control-test" type="boolean" minOccurs="0"><annotation><documentation><summary>
16
+ Indicates whether the reading was the result of a control test.
17
+ </summary><remarks>
18
+ Indicates whether the reading was the result of a control test.
19
+ </remarks></documentation></annotation></element><element name="normalcy" type="t:one-to-five" minOccurs="0"><annotation><documentation><summary>
20
+ A that indicates how the reading compares to normal blood glucose concentrations
21
+ (usually the same as the measurement range of the device that made the reading).
22
+ </summary><remarks>
23
+ The value ranges from one to five with 1 being much lower than a normal reading,
24
+ 2 being lower than a normal reading, 3 being equivalent to a normal reading,
25
+ 4 being higher than a normal reading and 5 being much higher than a normal reading.
26
+ </remarks></documentation></annotation></element><element name="measurement-context" type="t:codable-value" minOccurs="0"><annotation><documentation><summary>
27
+ An optional enumeration string that indicates contextual information about the reading.
28
+ </summary><preferred-vocabulary>glucose-measurement-context</preferred-vocabulary></documentation></annotation></element></sequence></complexType></element></schema>
@@ -0,0 +1,30 @@
1
+ <schema xmlns:BloodPressure="urn:com.microsoft.wc.thing.BloodPressure" xmlns:t="urn:com.microsoft.wc.thing.types" xmlns:d="urn:com.microsoft.wc.dates" xmlns="http://www.w3.org/2001/XMLSchema" targetNamespace="urn:com.microsoft.wc.thing.BloodPressure"><import namespace="urn:com.microsoft.wc.thing.types" schemaLocation="base.xsd" /><import namespace="urn:com.microsoft.wc.dates" schemaLocation="..\..\..\platform\web\xsd\dates.xsd" /><annotation><documentation><type-id>ca3c57f4-f4c1-4e15-be67-0a3caf5414ed</type-id><type-name>Blood Pressure Measurement</type-name><summary>
2
+ Defines a single blood pressure reading.
3
+ </summary><effective-date-element>when</effective-date-element></documentation></annotation><element name="blood-pressure"><complexType><annotation><documentation><summary>
4
+ Defines a single blood pressure reading.
5
+ </summary></documentation></annotation><sequence><element name="when" type="d:date-time"><annotation><documentation><summary>
6
+ The date and time the reading was taken.
7
+ </summary></documentation></annotation></element><element name="systolic" type="nonNegativeInteger"><annotation><documentation><summary>
8
+ The systolic pressure at the time of the
9
+ reading.
10
+ </summary><remarks>
11
+ The systolic pressure is the peak pressure
12
+ in the arteries during a cardiac cycle. It
13
+ is measured in millimeters of mercury (mmHg).
14
+ </remarks></documentation></annotation></element><element name="diastolic" type="nonNegativeInteger"><annotation><documentation><summary>
15
+ The diastolic pressure at the time of the
16
+ reading.
17
+ </summary><remarks>
18
+ The diastolic pressure is the lowest pressure
19
+ in the arteries during a cardiac cycle. It
20
+ is measured in millimeters of mercury (mmHg).
21
+ </remarks></documentation></annotation></element><element name="pulse" type="nonNegativeInteger" minOccurs="0"><annotation><documentation><summary>
22
+ The person's pulse rate at the time of the
23
+ reading.
24
+ </summary><remarks>
25
+ The pulse is measured in beats per minute.
26
+ </remarks></documentation></annotation></element><element name="irregular-heartbeat" type="boolean" minOccurs="0" maxOccurs="1"><annotation><documentation><summary>
27
+ Indicates whether an irregular heartbeat (arrhythmia) was detected when the measurement was taken.
28
+ </summary><remarks>
29
+ The irregular heartbeat is a boolean indicator.
30
+ </remarks></documentation></annotation></element></sequence></complexType></element></schema>
@@ -0,0 +1,80 @@
1
+ <schema xmlns:a="urn:com.microsoft.wc.thing.cardiac-profile" xmlns:t="urn:com.microsoft.wc.thing.types" xmlns:d="urn:com.microsoft.wc.dates" xmlns="http://www.w3.org/2001/XMLSchema" targetNamespace="urn:com.microsoft.wc.thing.cardiac-profile"><import namespace="urn:com.microsoft.wc.thing.types" schemaLocation="base.xsd" /><import namespace="urn:com.microsoft.wc.dates" schemaLocation="dates.xsd" /><annotation><documentation><type-id>adaf49ad-8e10-49f8-9783-174819e97051</type-id><type-name>Cardiac Profile</type-name><effective-date-element>when</effective-date-element><summary>
2
+ A summary of a person's cardiac condition.
3
+ </summary><remarks>
4
+ A person's cardiac profile is made up of a set of
5
+ answers to common questions and measurements that indicate the
6
+ cardiac condition of the person.
7
+ </remarks></documentation></annotation><element name="cardiac-profile"><complexType><annotation><documentation><summary>
8
+ A summary of a person's cardiac condition.
9
+ </summary><remarks>
10
+ A person's cardiac profile is made up of a set of
11
+ answers to common questions and measurements that indicate the
12
+ cardiac condition of the person.
13
+ </remarks></documentation></annotation><sequence><element name="when" minOccurs="1" maxOccurs="1" type="d:date-time"><annotation><documentation><summary>
14
+ The date/time when the cardiac profile
15
+ answers and measurements were taken.
16
+ </summary></documentation></annotation></element><element name="on-hypertension-diet" minOccurs="0" maxOccurs="1" type="boolean"><annotation><documentation><summary>
17
+ Whether the person is on a hypertension correcting
18
+ diet or not.
19
+ </summary><remarks>
20
+ True if the person is on a hypertension
21
+ correcting diet or false otherwise. This value,
22
+ along with on-hypertension-medication,
23
+ renal-failure-diagnosed, and diabetes-diagnosed
24
+ can be used to determine a person's blood
25
+ pressure zones.
26
+ </remarks></documentation></annotation></element><element name="on-hypertension-medication" minOccurs="0" maxOccurs="1" type="boolean"><annotation><documentation><summary>
27
+ Whether the person is on a hypertension correcting
28
+ medication or not.
29
+ </summary><remarks>
30
+ True if the person is on a hypertension
31
+ correcting medication or false otherwise. This value,
32
+ along with on-hypertension-diet,
33
+ renal-failure-diagnosed, and diabetes-diagnosed
34
+ can be used to determine a person's blood
35
+ pressure zones.
36
+ </remarks></documentation></annotation></element><element name="renal-failure-diagnosed" minOccurs="0" maxOccurs="1" type="boolean"><annotation><documentation><summary>
37
+ Whether the person has been diagnosed with
38
+ renal failure.
39
+ </summary><remarks>
40
+ True if the person has been diagnosed with
41
+ renal failure or false otherwise. This value,
42
+ along with on-hypertension-diet,
43
+ on-hypertension-medication, and diabetes-diagnosed
44
+ can be used to determine a person's blood
45
+ pressure zones.
46
+ </remarks></documentation></annotation></element><element name="diabetes-diagnosed" minOccurs="0" maxOccurs="1" type="boolean"><annotation><documentation><summary>
47
+ Whether the person has been diagnosed with
48
+ diabetes.
49
+ </summary><remarks>
50
+ True if the person has been diagnosed with
51
+ diabetes or false otherwise. This value,
52
+ along with on-hypertension-diet,
53
+ on-hypertension-medication, and
54
+ renal-failure-diagnosed can be used to
55
+ determine a person's blood pressure zones.
56
+ </remarks></documentation></annotation></element><element name="has-family-heart-disease-history" minOccurs="0" type="boolean"><annotation><documentation><summary>
57
+ Whether the person's family has a history of
58
+ heart disease.
59
+ </summary><remarks>
60
+ True if there has been heart disease diagnosed
61
+ for a family member, or false otherwise.
62
+ </remarks></documentation></annotation></element><element name="has-family-stroke-history" minOccurs="0" type="boolean"><annotation><documentation><summary>
63
+ Whether the person's family has a history of
64
+ stroke.
65
+ </summary><remarks>
66
+ True if there has been stroke diagnosed
67
+ for a family member, or false otherwise.
68
+ </remarks></documentation></annotation></element><element name="has-personal-heart-disease-history" minOccurs="0" type="boolean"><annotation><documentation><summary>
69
+ Whether the person has been diagnosed with
70
+ heart disease.
71
+ </summary><remarks>
72
+ True if the person has been diagnosed with
73
+ heart disease, or false otherwise.
74
+ </remarks></documentation></annotation></element><element name="has-person-stroke-history" minOccurs="0" type="boolean"><annotation><documentation><summary>
75
+ Whether the person has been diagnosed with a
76
+ stroke.
77
+ </summary><remarks>
78
+ True if the person has had a stroke, or
79
+ false otherwise.
80
+ </remarks></documentation></annotation></element></sequence></complexType></element></schema>
@@ -0,0 +1,38 @@
1
+ <schema xmlns:a="urn:com.microsoft.wc.thing.cholesterol-profile" xmlns:t="urn:com.microsoft.wc.thing.types" xmlns:d="urn:com.microsoft.wc.dates" xmlns="http://www.w3.org/2001/XMLSchema" targetNamespace="urn:com.microsoft.wc.thing.cholesterol-profile"><import namespace="urn:com.microsoft.wc.thing.types" schemaLocation="../../../platform/web/xsd/thing-types.xsd" /><import namespace="urn:com.microsoft.wc.dates" schemaLocation="dates.xsd" /><annotation><documentation><type-id>796C186F-B874-471c-8468-3EEFF73BF66E</type-id><type-name>Cholesterol Profile (Lipid Profile)</type-name><effective-date-element>when</effective-date-element><summary>
2
+ Cholesterol test results. Also referred to as lipid profile.
3
+ </summary><remarks>
4
+ Covers primary cholesterol/lipid profile test readings.
5
+ </remarks></documentation></annotation><element name="cholesterol-profile"><complexType><annotation><documentation><summary>
6
+ Cholesterol test results. Also referred to as lipid profile.
7
+ </summary><remarks>
8
+ Cholesterol profile is typically comprised of LDL (low-density
9
+ lipoprotein), HDL (high density lipoprotein) and Total Cholesterol.
10
+ This data type also in corporates currently-requested secondary tests
11
+ that may be applicable for cholesterol.
12
+ </remarks></documentation></annotation><sequence><element name="when" minOccurs="1" maxOccurs="1" type="d:date"><annotation><documentation><summary>
13
+ The date when the samples that led to this test result were taken.
14
+ </summary></documentation></annotation></element><element name="ldl" type="positiveInteger" minOccurs="0"><annotation><documentation><summary>
15
+ Low density lipoprotein.
16
+ </summary><remarks>
17
+ The LDL test measures how much low-density lipoprotein
18
+ (LDL) you have in your blood. LDL is a type of cholesterol.
19
+ Too much LDL in the blood can clog arteries. LDL is measured in mg/dL.
20
+ </remarks></documentation></annotation></element><element name="hdl" type="positiveInteger" minOccurs="0"><annotation><documentation><summary>
21
+ High density lipoprotein
22
+ </summary><remarks>
23
+ HDL stands for high density lipoprotein, a form of "good"
24
+ cholesterol. Lipoproteins are proteins in the blood that
25
+ move cholesterol, triglycerides, and other lipids to various tissues.
26
+ HDL is measured in mg/dL.
27
+ </remarks></documentation></annotation></element><element name="total-cholesterol" type="positiveInteger" minOccurs="0"><annotation><documentation><summary>
28
+ Total cholesterol.
29
+ </summary><remarks>
30
+ A total cholesterol test is a rough measure of all the cholesterol
31
+ and triglycerides in your blood. Total cholesterol is measured in mg/dL.
32
+ </remarks></documentation></annotation></element><element name="triglyceride" type="positiveInteger" minOccurs="0"><annotation><documentation><summary>
33
+ Triglyceride level.
34
+ </summary><remarks>
35
+ Triglycerides are a type of fat. Your body makes some
36
+ triglycerides. Triglycerides also come from the food you eat.
37
+ Triglycerides are measured in mg/dL.
38
+ </remarks></documentation></annotation></element></sequence></complexType></element></schema>
@@ -0,0 +1,17 @@
1
+ <schema xmlns:concern="urn:com.microsoft.wc.thing.concern" xmlns:t="urn:com.microsoft.wc.thing.types" xmlns="http://www.w3.org/2001/XMLSchema" targetNamespace="urn:com.microsoft.wc.thing.concern"><import namespace="urn:com.microsoft.wc.thing.types" schemaLocation="base.xsd" /><annotation><documentation><type-id>AEA2E8F2-11DD-4A7D-AB43-1D58764EBC19</type-id><type-name>Concern</type-name><summary>
2
+ A concern that a person has about a condition or life issue.
3
+ </summary><remarks>
4
+ Concerns are more general than conditions, and are about the person's feelings. Examples include
5
+ "concerned about managing a chronic condition", "family issues", "emotional issues", etc.
6
+ </remarks></documentation></annotation><element name="concern"><complexType><annotation><documentation><summary>
7
+ A concern that a person has about a condition or life issue.
8
+ </summary><remarks>
9
+ Concerns are more general than conditions, and are about the person's feelings. Examples include
10
+ "concerned about managing a chronic condition", "family issues", "emotional issues", etc.
11
+ </remarks></documentation></annotation><sequence><element name="description" type="t:codable-value"><annotation><documentation><summary>
12
+ Description of the concern.
13
+ </summary><preferred-vocabulary>concern-description</preferred-vocabulary></documentation></annotation></element><element name="status" type="t:codable-value" minOccurs="0"><annotation><documentation><summary>
14
+ The state of the concern.
15
+ </summary><remarks>
16
+ Examples include active or inactive.
17
+ </remarks><preferred-vocabulary>concern-status</preferred-vocabulary></documentation></annotation></element></sequence></complexType></element></schema>
@@ -0,0 +1,28 @@
1
+ <schema xmlns:c="urn:com.microsoft.wc.thing.condition" xmlns:t="urn:com.microsoft.wc.thing.types" xmlns:d="urn:com.microsoft.wc.dates" xmlns="http://www.w3.org/2001/XMLSchema" targetNamespace="urn:com.microsoft.wc.thing.condition"><import namespace="urn:com.microsoft.wc.thing.types" schemaLocation="base.xsd" /><import namespace="urn:com.microsoft.wc.dates" schemaLocation="dates.xsd" /><annotation><documentation><type-id>7ea7a1f9-880b-4bd4-b593-f5660f20eda8</type-id><type-name>Condition</type-name><summary>
2
+ Defines a single health or medical issue/problem.
3
+ </summary><remarks>
4
+ CCR qualifiers and other notes should go in the
5
+ common/note section of the thing.
6
+ </remarks></documentation></annotation><element name="condition"><complexType><annotation><documentation><summary>
7
+ Defines a single health or medical issue/problem.
8
+ </summary><remarks>
9
+ CCR qualifiers and other notes should go in the
10
+ common/note section of the thing.
11
+ </remarks></documentation></annotation><sequence><element name="name" minOccurs="1" maxOccurs="1" type="t:codable-value"><annotation><documentation><summary>
12
+ The name or description of the condition.
13
+ </summary><remarks>
14
+ Codes for the condition may be found in zero or
15
+ more of the Microsoft Health vocabularies.
16
+ </remarks></documentation></annotation></element><element name="onset-date" minOccurs="0" maxOccurs="1" type="d:approx-date-time"><annotation><documentation><summary>
17
+ The date of onset or the first diagnosis.
18
+ </summary></documentation></annotation></element><element name="status" minOccurs="0" maxOccurs="1" type="t:codable-value"><annotation><documentation><summary>
19
+ The description of the status.
20
+ </summary><remarks>
21
+ For example, 'acute' or 'chronic'.
22
+ </remarks></documentation></annotation></element><element name="stop-date" minOccurs="0" maxOccurs="1" type="d:approx-date-time"><annotation><documentation><summary>
23
+ The date the condition resolved (or for
24
+ multiple acute episodes, the last date the
25
+ condition resolved).
26
+ </summary></documentation></annotation></element><element name="stop-reason" minOccurs="0" maxOccurs="1" type="string"><annotation><documentation><summary>
27
+ A statement of how the condition was resolved.
28
+ </summary></documentation></annotation></element><!-- CCR qualifiers or other notes go into common/note --></sequence></complexType></element></schema>
@@ -0,0 +1,3 @@
1
+ <!-- edited with XMLSpy v2006 sp1 U (http://www.altova.com) by Steven Waldren (Personal) --><xs:schema xmlns="urn:astm-org:CCR" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:ccr="urn:astm-org:CCR" targetNamespace="urn:astm-org:CCR" elementFormDefault="qualified" attributeFormDefault="unqualified"><!--E2369-05, Standard Specification for the Continuity of Care (CCR) - Final Version 1.0 (V1.0) November 7, 2005, ASTM E31.28 CCR Subcommittee--><!--Copyright 2004-2005 ASTM, 100 Barr Harbor Drive, West Conshohocken, PA 19428-2959. All rights reserved.--><xs:element name="ContinuityOfCareRecord"><xs:complexType><xs:sequence><xs:element name="CCRDocumentObjectID" type="xs:string" /><xs:element name="Language" type="CodedDescriptionType" /><xs:element name="Version" type="xs:string" /><xs:element name="DateTime" type="DateTimeType" /><xs:element name="Patient" maxOccurs="2"><xs:complexType><xs:sequence><xs:element name="ActorID" type="xs:string" /></xs:sequence></xs:complexType></xs:element><xs:element name="From"><xs:complexType><xs:sequence><xs:element name="ActorLink" type="ActorReferenceType" maxOccurs="unbounded" /></xs:sequence></xs:complexType></xs:element><xs:element name="To" minOccurs="0"><xs:complexType><xs:sequence><xs:element name="ActorLink" type="ActorReferenceType" maxOccurs="unbounded" /></xs:sequence></xs:complexType></xs:element><xs:element name="Purpose" type="PurposeType" minOccurs="0" maxOccurs="unbounded" /><xs:element name="Body"><xs:complexType><xs:sequence><xs:element name="Payers" minOccurs="0"><xs:complexType><xs:sequence><xs:element name="Payer" type="InsuranceType" maxOccurs="unbounded" /></xs:sequence></xs:complexType></xs:element><xs:element name="AdvanceDirectives" minOccurs="0"><xs:complexType><xs:sequence><xs:element name="AdvanceDirective" type="CCRCodedDataObjectType" maxOccurs="unbounded" /></xs:sequence></xs:complexType></xs:element><xs:element name="Support" minOccurs="0"><xs:complexType><xs:sequence><xs:element name="SupportProvider" type="ActorReferenceType" maxOccurs="unbounded" /></xs:sequence></xs:complexType></xs:element><xs:element name="FunctionalStatus" minOccurs="0"><xs:complexType><xs:sequence><xs:element name="Function" type="FunctionType" maxOccurs="unbounded" /></xs:sequence></xs:complexType></xs:element><xs:element name="Problems" minOccurs="0"><xs:complexType><xs:sequence><xs:element name="Problem" type="ProblemType" maxOccurs="unbounded" /></xs:sequence></xs:complexType></xs:element><xs:element name="FamilyHistory" minOccurs="0"><xs:complexType><xs:sequence><xs:element name="FamilyProblemHistory" type="FamilyHistoryType" maxOccurs="unbounded" /></xs:sequence></xs:complexType></xs:element><xs:element name="SocialHistory" minOccurs="0"><xs:complexType><xs:sequence><xs:element name="SocialHistoryElement" type="SocialHistoryType" maxOccurs="unbounded" /></xs:sequence></xs:complexType></xs:element><xs:element name="Alerts" minOccurs="0"><xs:complexType><xs:sequence><xs:element name="Alert" type="AlertType" maxOccurs="unbounded" /></xs:sequence></xs:complexType></xs:element><xs:element name="Medications" minOccurs="0"><xs:complexType><xs:sequence><xs:element name="Medication" type="StructuredProductType" maxOccurs="unbounded" /></xs:sequence></xs:complexType></xs:element><xs:element name="MedicalEquipment" minOccurs="0"><xs:complexType><xs:sequence><xs:element name="Equipment" type="StructuredProductType" maxOccurs="unbounded" /></xs:sequence></xs:complexType></xs:element><xs:element name="Immunizations" minOccurs="0"><xs:complexType><xs:sequence><xs:element name="Immunization" type="StructuredProductType" maxOccurs="unbounded" /></xs:sequence></xs:complexType></xs:element><xs:element name="VitalSigns" minOccurs="0"><xs:complexType><xs:sequence><xs:element name="Result" type="ResultType" maxOccurs="unbounded" /></xs:sequence></xs:complexType></xs:element><xs:element name="Results" minOccurs="0"><xs:complexType><xs:sequence><xs:element name="Result" type="ResultType" maxOccurs="unbounded" /></xs:sequence></xs:complexType></xs:element><xs:element name="Procedures" minOccurs="0"><xs:complexType><xs:sequence><xs:element name="Procedure" type="ProcedureType" maxOccurs="unbounded" /></xs:sequence></xs:complexType></xs:element><xs:element name="Encounters" minOccurs="0"><xs:complexType><xs:sequence><xs:element name="Encounter" type="EncounterType" maxOccurs="unbounded" /></xs:sequence></xs:complexType></xs:element><xs:element name="PlanOfCare" minOccurs="0"><xs:complexType><xs:sequence><xs:element name="Plan" type="PlanType" maxOccurs="unbounded" /></xs:sequence></xs:complexType></xs:element><xs:element name="HealthCareProviders" minOccurs="0"><xs:complexType><xs:sequence><xs:element name="Provider" type="ActorReferenceType" maxOccurs="unbounded" /></xs:sequence></xs:complexType></xs:element></xs:sequence></xs:complexType></xs:element><xs:element name="Actors"><xs:complexType><xs:sequence><xs:element name="Actor" type="ActorType" maxOccurs="unbounded" /></xs:sequence></xs:complexType></xs:element><xs:element name="References" minOccurs="0"><xs:complexType><xs:sequence><xs:element name="Reference" type="ReferenceType" maxOccurs="unbounded" /></xs:sequence></xs:complexType></xs:element><xs:element name="Comments" minOccurs="0"><xs:complexType><xs:sequence><xs:element name="Comment" type="CommentType" maxOccurs="unbounded" /></xs:sequence></xs:complexType></xs:element><xs:element name="Signatures" minOccurs="0"><xs:complexType><xs:sequence><xs:element name="CCRSignature" type="SignatureType" maxOccurs="unbounded" /></xs:sequence></xs:complexType></xs:element></xs:sequence></xs:complexType></xs:element><!--Global CCR Data Types--><xs:complexType name="ActorType"><xs:sequence><xs:element name="ActorObjectID" type="xs:string" /><xs:choice minOccurs="1" maxOccurs="1"><xs:element name="Person" minOccurs="0"><xs:complexType><xs:sequence><xs:element name="Name" minOccurs="0"><xs:complexType><xs:sequence><xs:element name="BirthName" type="PersonNameType" minOccurs="0" /><xs:element name="AdditionalName" type="PersonNameType" minOccurs="0" maxOccurs="unbounded" /><xs:element name="CurrentName" type="PersonNameType" minOccurs="0" /><xs:element name="DisplayName" type="xs:string" minOccurs="0" /></xs:sequence></xs:complexType></xs:element><xs:element name="DateOfBirth" type="DateTimeType" minOccurs="0" /><xs:element name="Gender" type="CodedDescriptionType" minOccurs="0" /></xs:sequence></xs:complexType></xs:element><xs:element name="Organization" minOccurs="0"><xs:complexType><xs:sequence><xs:element name="Name" type="xs:string" /></xs:sequence></xs:complexType></xs:element><xs:element name="InformationSystem" minOccurs="0"><xs:complexType><xs:sequence><xs:element name="Name" type="xs:string" /><xs:element name="Type" type="xs:string" minOccurs="0" /><xs:element name="Version" type="xs:string" minOccurs="0" /></xs:sequence></xs:complexType></xs:element></xs:choice><xs:element name="IDs" type="IDType" minOccurs="0" maxOccurs="unbounded" /><xs:element name="Relation" type="CodedDescriptionType" minOccurs="0" maxOccurs="unbounded" /><xs:element name="Specialty" type="CodedDescriptionType" minOccurs="0" maxOccurs="unbounded" /><xs:element name="Address" minOccurs="0" maxOccurs="unbounded"><xs:complexType><xs:sequence><xs:element ref="Type" minOccurs="0" /><xs:element name="Line1" type="xs:string" minOccurs="0" /><xs:element name="Line2" type="xs:string" minOccurs="0" /><xs:element name="City" type="xs:string" minOccurs="0" /><xs:element name="County" type="xs:string" minOccurs="0" /><xs:element name="State" type="xs:string" minOccurs="0" /><xs:element name="Country" type="xs:string" minOccurs="0" /><xs:element name="PostalCode" type="xs:string" minOccurs="0" /><xs:element name="Priority" type="xs:string" minOccurs="0" /><xs:element ref="Status" minOccurs="0" /></xs:sequence><xs:attribute name="Preferred" type="xs:string" /></xs:complexType></xs:element><xs:element name="Telephone" type="CommunicationType" minOccurs="0" maxOccurs="unbounded" /><xs:element name="EMail" type="CommunicationType" minOccurs="0" maxOccurs="unbounded" /><xs:element name="URL" type="CommunicationType" minOccurs="0" maxOccurs="unbounded" /><xs:element ref="Status" minOccurs="0" /><xs:group ref="SLRCGroup" /></xs:sequence></xs:complexType><xs:complexType name="CCRCodedDataObjectType"><xs:sequence><xs:element name="CCRDataObjectID" type="xs:string" /><xs:element name="DateTime" type="DateTimeType" minOccurs="0" maxOccurs="unbounded" /><xs:element name="IDs" type="IDType" minOccurs="0" maxOccurs="unbounded" /><xs:element ref="Type" minOccurs="0" /><xs:element ref="Description" minOccurs="0" /><xs:element ref="Status" minOccurs="0" /><xs:group ref="SLRCGroup" /></xs:sequence></xs:complexType><xs:complexType name="CodedDescriptionType"><xs:sequence><xs:element name="Text" type="xs:string" minOccurs="0" /><xs:element name="ObjectAttribute" minOccurs="0" maxOccurs="unbounded"><xs:complexType><xs:sequence><xs:element name="Attribute" type="xs:string" /><xs:element name="AttributeValue" maxOccurs="unbounded"><xs:complexType><xs:sequence><xs:element name="Value" /><xs:element name="Code" type="CodeType" minOccurs="0" maxOccurs="unbounded" /></xs:sequence></xs:complexType></xs:element><xs:element name="Code" type="CodeType" minOccurs="0" maxOccurs="unbounded" /></xs:sequence></xs:complexType><xs:unique name="UniqueValues"><xs:selector xpath="./AttributeValue" /><xs:field xpath="Value" /></xs:unique></xs:element><xs:element name="Code" type="CodeType" minOccurs="0" maxOccurs="unbounded" /></xs:sequence></xs:complexType><xs:complexType name="CodeType"><xs:sequence><xs:element name="Value" type="xs:string" /><xs:element name="CodingSystem" type="xs:string" minOccurs="0" /><xs:element name="Version" type="xs:string" minOccurs="0" /></xs:sequence></xs:complexType><xs:complexType name="CommentType"><xs:sequence><xs:element name="CommentObjectID" type="xs:string" /><xs:element name="DateTime" type="DateTimeType" /><xs:element ref="Type" minOccurs="0" /><xs:element ref="Description" /><xs:element name="Source" type="ActorReferenceType" maxOccurs="unbounded" /><xs:element name="ReferenceID" type="xs:string" minOccurs="0" maxOccurs="unbounded" /></xs:sequence></xs:complexType><xs:complexType name="DateTimeType"><xs:sequence><xs:element ref="Type" minOccurs="0" /><xs:element name="ExactDateTime" type="xs:string" minOccurs="0" /><xs:element ref="Age" minOccurs="0" /><xs:element name="ApproximateDateTime" type="CodedDescriptionType" minOccurs="0" /><xs:element name="DateTimeRange" minOccurs="0" maxOccurs="unbounded"><xs:complexType><xs:sequence><xs:element name="BeginRange" minOccurs="0"><xs:complexType><xs:sequence><xs:element name="ExactDateTime" type="xs:string" minOccurs="0" /><xs:element ref="Age" minOccurs="0" /><xs:element name="ApproximateDateTime" type="CodedDescriptionType" minOccurs="0" /></xs:sequence></xs:complexType></xs:element><xs:element name="EndRange" minOccurs="0"><xs:complexType><xs:sequence><xs:element name="ExactDateTime" type="xs:string" minOccurs="0" /><xs:element ref="Age" minOccurs="0" /><xs:element name="ApproximateDateTime" type="CodedDescriptionType" minOccurs="0" /></xs:sequence></xs:complexType></xs:element></xs:sequence></xs:complexType></xs:element></xs:sequence></xs:complexType><xs:complexType name="IDType"><xs:sequence><xs:element name="DateTime" type="DateTimeType" minOccurs="0" maxOccurs="unbounded" /><xs:element ref="Type" minOccurs="0" /><xs:element name="ID" type="xs:string" /><xs:element name="IssuedBy" type="ActorReferenceType" minOccurs="0" /><xs:group ref="SLRCGroup" /></xs:sequence></xs:complexType><xs:complexType name="ReferenceType"><xs:sequence><xs:element name="ReferenceObjectID" type="xs:string" /><xs:element name="DateTime" type="DateTimeType" minOccurs="0" maxOccurs="unbounded" /><xs:element ref="Type" minOccurs="0" /><xs:element ref="Description" minOccurs="0" /><xs:element name="Source" type="ActorReferenceType" maxOccurs="unbounded" /><xs:element ref="Locations" minOccurs="0" /></xs:sequence></xs:complexType><xs:complexType name="SignatureType"><xs:sequence><xs:element name="SignatureObjectID" type="xs:string" /><xs:element name="ExactDateTime" type="xs:string" minOccurs="0" /><xs:element ref="Type" minOccurs="0" /><xs:element ref="IDs" minOccurs="0" maxOccurs="unbounded" /><xs:element name="Source" type="ActorReferenceType" minOccurs="0" /><xs:element name="Signature" /></xs:sequence></xs:complexType><!--Links--><xs:element name="Actor" type="ActorReferenceType" /><xs:complexType name="ActorReferenceType"><xs:sequence><xs:element name="ActorID" type="xs:string" minOccurs="0" /><xs:element name="ActorRole" type="CodedDescriptionType" minOccurs="0" maxOccurs="unbounded" /></xs:sequence></xs:complexType><xs:element name="InternalCCRLink"><xs:complexType><xs:sequence><xs:element name="LinkID" type="xs:string" /><xs:element name="LinkRelationship" type="xs:string" minOccurs="0" maxOccurs="unbounded" /><xs:element name="Source" minOccurs="0"><xs:complexType><xs:complexContent><xs:extension base="SourceType" /></xs:complexContent></xs:complexType></xs:element></xs:sequence></xs:complexType></xs:element><!-- Recurrent Global Elements --><xs:element name="Age" type="MeasureType" /><xs:element name="Description" type="CodedDescriptionType" /><xs:element name="Direction"><xs:complexType><xs:sequence><xs:element ref="Description" minOccurs="0" /><xs:element name="DoseIndicator" type="CodedDescriptionType" minOccurs="0" /><xs:element name="DeliveryMethod" type="CodedDescriptionType" minOccurs="0" /><xs:element name="Dose" minOccurs="0" maxOccurs="unbounded"><xs:complexType><xs:complexContent><xs:extension base="MeasureType"><xs:sequence><xs:element name="Rate" type="RateType" minOccurs="0" maxOccurs="unbounded" /><xs:element name="DoseSequencePosition" type="xs:integer" minOccurs="0" /><xs:element name="VariableDoseModifier" type="CodedDescriptionType" minOccurs="0" /></xs:sequence></xs:extension></xs:complexContent></xs:complexType></xs:element><xs:element name="DoseCalculation" minOccurs="0" maxOccurs="unbounded"><xs:complexType><xs:complexContent><xs:extension base="DoseCalculationType"><xs:sequence><xs:element name="Rate" type="RateType" minOccurs="0" maxOccurs="unbounded" /><xs:element name="CalculationSequencePosition" minOccurs="0"><xs:simpleType><xs:restriction base="xs:integer"><xs:minInclusive value="1" /></xs:restriction></xs:simpleType></xs:element><xs:element name="VariableCalculationModifier" type="CodedDescriptionType" minOccurs="0" /></xs:sequence></xs:extension></xs:complexContent></xs:complexType></xs:element><xs:element name="Vehicle" type="VehicleType" minOccurs="0" maxOccurs="unbounded" /><xs:element name="Route" minOccurs="0" maxOccurs="unbounded"><xs:complexType><xs:complexContent><xs:extension base="CodedDescriptionType"><xs:sequence><xs:element name="RouteSequencePosition" type="xs:integer" minOccurs="0" /><xs:element name="MultipleRouteModifier" type="CodedDescriptionType" minOccurs="0" /></xs:sequence></xs:extension></xs:complexContent></xs:complexType></xs:element><xs:element name="Site" type="SiteType" minOccurs="0" maxOccurs="unbounded" /><!--
2
+ <xs:group ref="FreqDurGroup"/>
3
+ --><xs:element name="AdministrationTiming" minOccurs="0" maxOccurs="unbounded"><xs:complexType><xs:complexContent><xs:extension base="DateTimeType"><xs:sequence><xs:element name="TimingSequencePosition" minOccurs="0"><xs:simpleType><xs:restriction base="xs:integer"><xs:minInclusive value="1" /></xs:restriction></xs:simpleType></xs:element><xs:element name="VariableTimingModifier" type="CodedDescriptionType" minOccurs="0" /></xs:sequence></xs:extension></xs:complexContent></xs:complexType></xs:element><xs:element name="Frequency" type="FrequencyType" minOccurs="0" maxOccurs="unbounded" /><xs:element name="Interval" type="IntervalType" minOccurs="0" maxOccurs="unbounded" /><xs:element name="Duration" type="DurationType" minOccurs="0" maxOccurs="unbounded" /><xs:element name="DoseRestriction" minOccurs="0" maxOccurs="unbounded"><xs:complexType><xs:complexContent><xs:extension base="DoseCalculationType"><xs:sequence><xs:element name="Rate" type="RateType" minOccurs="0" maxOccurs="unbounded" /><xs:element name="RestrictionSequencePosition" minOccurs="0"><xs:simpleType><xs:restriction base="xs:integer"><xs:minInclusive value="1" /></xs:restriction></xs:simpleType></xs:element><xs:element name="VariableRestrictionModifier" type="CodedDescriptionType" minOccurs="0" /></xs:sequence></xs:extension></xs:complexContent></xs:complexType></xs:element><xs:element name="Indication" type="IndicationType" minOccurs="0" maxOccurs="unbounded" /><xs:element name="StopIndicator" type="CodedDescriptionType" minOccurs="0" /><xs:element name="DirectionSequencePosition" type="xs:integer" minOccurs="0" /><xs:element name="MultipleDirectionModifier" type="CodedDescriptionType" minOccurs="0" /></xs:sequence></xs:complexType></xs:element><xs:element name="Directions"><xs:complexType><xs:sequence><xs:element ref="Direction" maxOccurs="unbounded" /></xs:sequence></xs:complexType></xs:element><xs:element name="Encounters"><xs:complexType><xs:sequence><xs:element name="Encounter" type="EncounterType" maxOccurs="unbounded" /></xs:sequence></xs:complexType></xs:element><xs:element name="Goals"><xs:complexType><xs:sequence><xs:element name="Goal" type="GoalType" maxOccurs="unbounded" /></xs:sequence></xs:complexType></xs:element><xs:element name="IDs" type="IDType" /><xs:element name="Immunizations"><xs:complexType><xs:sequence><xs:element name="Immunization" type="StructuredProductType" maxOccurs="unbounded" /></xs:sequence></xs:complexType></xs:element><xs:element name="Indications"><xs:complexType><xs:sequence><xs:element name="Indication" type="IndicationType" maxOccurs="unbounded" /></xs:sequence></xs:complexType></xs:element><xs:element name="Instructions"><xs:complexType><xs:sequence><xs:element name="Instruction" type="CodedDescriptionType" maxOccurs="unbounded" /></xs:sequence></xs:complexType></xs:element><xs:element name="Location"><xs:complexType><xs:sequence><xs:element ref="Description" minOccurs="0" /><xs:element name="Actor" type="ActorReferenceType" minOccurs="0" /></xs:sequence></xs:complexType></xs:element><xs:element name="Locations"><xs:complexType><xs:sequence><xs:element ref="Location" maxOccurs="unbounded" /></xs:sequence></xs:complexType></xs:element><xs:element name="Medications"><xs:complexType><xs:sequence><xs:element name="Medication" type="StructuredProductType" maxOccurs="unbounded" /></xs:sequence></xs:complexType></xs:element><xs:element name="Practitioners"><xs:complexType><xs:sequence><xs:element name="Practitioner" type="ActorReferenceType" maxOccurs="unbounded" /></xs:sequence></xs:complexType></xs:element><xs:element name="Procedures"><xs:complexType><xs:sequence><xs:element name="Procedure" type="ProcedureType" maxOccurs="unbounded" /></xs:sequence></xs:complexType></xs:element><xs:element name="Products"><xs:complexType><xs:sequence><xs:element name="Product" type="StructuredProductType" maxOccurs="unbounded" /></xs:sequence></xs:complexType></xs:element><xs:element name="Agent"><xs:complexType><xs:sequence><xs:element name="Products" minOccurs="0"><xs:complexType><xs:sequence><xs:element name="Product" type="StructuredProductType" maxOccurs="unbounded" /></xs:sequence></xs:complexType></xs:element><xs:element name="EnvironmentalAgents" minOccurs="0"><xs:complexType><xs:sequence><xs:element name="EnvironmentalAgent" type="CCRCodedDataObjectType" maxOccurs="unbounded" /></xs:sequence></xs:complexType></xs:element><xs:element name="Problems" minOccurs="0"><xs:complexType><xs:sequence><xs:element name="Problem" type="ProblemType" maxOccurs="unbounded" /></xs:sequence></xs:complexType></xs:element><xs:element ref="Procedures" minOccurs="0" /><xs:element name="Results" minOccurs="0"><xs:complexType><xs:sequence><xs:element name="Result" type="ResultType" maxOccurs="unbounded" /></xs:sequence></xs:complexType></xs:element></xs:sequence></xs:complexType></xs:element><xs:element name="Reaction"><xs:complexType><xs:sequence><xs:element ref="Description" minOccurs="0" /><xs:element ref="Status" minOccurs="0" /><xs:element name="Severity" type="CodedDescriptionType" minOccurs="0" /><xs:element name="Interventions" minOccurs="0"><xs:complexType><xs:sequence><xs:element name="Intervention" maxOccurs="unbounded"><xs:complexType><xs:sequence><xs:sequence><xs:element name="CCRDataObjectID" type="xs:string" /><xs:element name="DateTime" type="DateTimeType" minOccurs="0" maxOccurs="unbounded" /><xs:element ref="Type" minOccurs="0" /><xs:element ref="Description" minOccurs="0" /><xs:element ref="Status" minOccurs="0" /><xs:group ref="SLRCGroup" /></xs:sequence><xs:sequence><xs:element ref="Procedures" minOccurs="0" /><xs:element ref="Products" minOccurs="0" /><xs:element ref="Medications" minOccurs="0" /><xs:element ref="Immunizations" minOccurs="0" /><xs:element ref="Services" minOccurs="0" /><xs:element ref="Encounters" minOccurs="0" /></xs:sequence></xs:sequence></xs:complexType></xs:element></xs:sequence></xs:complexType></xs:element><xs:element name="ReactionSequencePosition" type="xs:integer" minOccurs="0" /><xs:element name="MultipleReactionModifier" type="CodedDescriptionType" minOccurs="0" /></xs:sequence></xs:complexType></xs:element><xs:element name="Services"><xs:complexType><xs:sequence><xs:element name="Service" type="EncounterType" maxOccurs="unbounded" /></xs:sequence></xs:complexType></xs:element><xs:element name="Status" type="CodedDescriptionType" /><xs:element name="Type" type="CodedDescriptionType" /><!--CCR Complex Types--><xs:complexType name="AlertType"><xs:complexContent><xs:extension base="CCRCodedDataObjectType"><xs:sequence><xs:element ref="Agent" minOccurs="0" maxOccurs="unbounded" /><xs:element ref="Reaction" minOccurs="0" maxOccurs="unbounded" /></xs:sequence></xs:extension></xs:complexContent></xs:complexType><xs:complexType name="AuthorizationType"><xs:complexContent><xs:extension base="CCRCodedDataObjectType"><xs:sequence><xs:element name="Purpose" type="PurposeType" minOccurs="0" maxOccurs="unbounded" /><xs:element ref="Practitioners" minOccurs="0" /><xs:element ref="Procedures" minOccurs="0" /><xs:element ref="Products" minOccurs="0" /><xs:element ref="Medications" minOccurs="0" /><xs:element name="Immunizations" minOccurs="0"><xs:complexType><xs:sequence><xs:element name="Immunization" type="StructuredProductType" maxOccurs="unbounded" /></xs:sequence></xs:complexType></xs:element><xs:element ref="Services" minOccurs="0" /><xs:element ref="Encounters" minOccurs="0" /></xs:sequence></xs:extension></xs:complexContent></xs:complexType><xs:complexType name="CommunicationType"><xs:sequence><xs:element name="Value" type="xs:string" /><xs:element ref="Type" minOccurs="0" /><xs:element name="Priority" type="xs:string" minOccurs="0" /><xs:element ref="Status" minOccurs="0" /></xs:sequence></xs:complexType><xs:complexType name="CurrentHealthStatusType"><xs:sequence><xs:element name="DateTime" type="DateTimeType" minOccurs="0" maxOccurs="unbounded" /><xs:element ref="Description" minOccurs="0" /><xs:element name="CauseOfDeath" type="xs:string" minOccurs="0" /><xs:group ref="SLRCGroup" /></xs:sequence></xs:complexType><xs:complexType name="DoseCalculationType"><xs:sequence><xs:element name="Dose" type="MeasureType" minOccurs="0" /><xs:element name="Variable" minOccurs="0" maxOccurs="unbounded"><xs:complexType><xs:complexContent><xs:extension base="MeasureType"><xs:sequence><xs:element name="VariableIdentifier" type="xs:string" /><xs:element name="VariableSequencePosition" minOccurs="0"><xs:simpleType><xs:restriction base="xs:integer"><xs:minInclusive value="1" /></xs:restriction></xs:simpleType></xs:element><xs:element name="VariableModifier" type="CodedDescriptionType" minOccurs="0" /></xs:sequence></xs:extension></xs:complexContent></xs:complexType></xs:element><xs:element name="CalculationEquation" minOccurs="0"><xs:complexType><xs:sequence><xs:element name="Value" type="xs:string" /><xs:element name="Code" type="CodeType" minOccurs="0" maxOccurs="unbounded" /></xs:sequence></xs:complexType></xs:element></xs:sequence></xs:complexType><xs:complexType name="DurationType"><xs:sequence><xs:element ref="Description" minOccurs="0" /><xs:element name="DateTime" type="DateTimeType" minOccurs="0" maxOccurs="unbounded" /><xs:group ref="MeasureGroup" /><xs:element name="DurationSequencePosition" minOccurs="0"><xs:simpleType><xs:restriction base="xs:integer"><xs:minInclusive value="1" /></xs:restriction></xs:simpleType></xs:element><xs:element name="VariableDurationModifier" type="CodedDescriptionType" minOccurs="0" /></xs:sequence></xs:complexType><xs:complexType name="EpisodeType"><xs:complexContent><xs:extension base="CCRCodedDataObjectType"><xs:sequence><xs:element name="Duration" type="DurationType" minOccurs="0" /></xs:sequence></xs:extension></xs:complexContent></xs:complexType><xs:complexType name="EpisodesType"><xs:sequence><xs:element name="Number" type="xs:string" minOccurs="0" /><xs:element name="Frequency" type="MeasureType" minOccurs="0" /><xs:element name="Episode" type="EpisodeType" minOccurs="0" maxOccurs="unbounded" /><xs:group ref="SLRCGroup" /></xs:sequence></xs:complexType><xs:complexType name="EncounterType"><xs:complexContent><xs:extension base="CCRCodedDataObjectType"><xs:sequence><xs:element ref="Locations" minOccurs="0" /><xs:element ref="Practitioners" minOccurs="0" /><xs:element name="Frequency" type="FrequencyType" minOccurs="0" maxOccurs="unbounded" /><xs:element name="Interval" type="IntervalType" minOccurs="0" maxOccurs="unbounded" /><xs:element name="Duration" type="DurationType" minOccurs="0" maxOccurs="unbounded" /><xs:element ref="Indications" minOccurs="0" maxOccurs="unbounded" /><xs:element ref="Instructions" minOccurs="0" /><xs:element name="Consent" type="CCRCodedDataObjectType" minOccurs="0" /></xs:sequence></xs:extension></xs:complexContent></xs:complexType><xs:complexType name="FamilyHistoryType"><xs:complexContent><xs:extension base="CCRCodedDataObjectType"><xs:sequence><xs:element name="FamilyMember" minOccurs="0" maxOccurs="unbounded"><xs:complexType><xs:complexContent><xs:extension base="ActorReferenceType"><xs:sequence><xs:element name="HealthStatus" type="CurrentHealthStatusType" minOccurs="0" /><xs:group ref="SLRCGroup" /></xs:sequence></xs:extension></xs:complexContent></xs:complexType></xs:element><xs:element name="Problem" minOccurs="0" maxOccurs="unbounded"><xs:complexType><xs:sequence><xs:element ref="Type" minOccurs="0" /><xs:element ref="Description" minOccurs="0" /><xs:element name="Episodes" type="EpisodesType" minOccurs="0" /><xs:group ref="SLRCGroup" /></xs:sequence></xs:complexType></xs:element></xs:sequence></xs:extension></xs:complexContent></xs:complexType><xs:complexType name="FrequencyType"><xs:sequence><xs:element ref="Description" minOccurs="0" /><xs:group ref="MeasureGroup" /><xs:element name="FrequencySequencePosition" type="xs:integer" minOccurs="0" /><xs:element name="VariableFrequencyModifier" type="CodedDescriptionType" minOccurs="0" /></xs:sequence></xs:complexType><xs:complexType name="FunctionType"><xs:complexContent><xs:extension base="CCRCodedDataObjectType"><xs:sequence><xs:element name="Problem" type="ProblemType" minOccurs="0" maxOccurs="unbounded" /><xs:element name="Test" type="ResultType" minOccurs="0" maxOccurs="unbounded" /></xs:sequence></xs:extension></xs:complexContent></xs:complexType><xs:complexType name="GoalType"><xs:complexContent><xs:extension base="EncounterType"><xs:sequence><xs:element name="Milestones" minOccurs="0"><xs:complexType><xs:sequence><xs:element name="Outcome" type="CCRCodedDataObjectType" maxOccurs="unbounded" /></xs:sequence></xs:complexType></xs:element></xs:sequence></xs:extension></xs:complexContent></xs:complexType><xs:complexType name="IndicationType"><xs:sequence><xs:element name="PRNFlag" type="CodedDescriptionType" minOccurs="0" /><xs:element ref="Description" minOccurs="0" maxOccurs="unbounded" /><xs:element name="Problem" type="ProblemType" minOccurs="0" maxOccurs="unbounded" /><xs:element name="PhysiologicalParameter" minOccurs="0" maxOccurs="unbounded"><xs:complexType><xs:complexContent><xs:extension base="MeasureType"><xs:sequence><xs:element name="ParameterSequencePosition" type="xs:integer" minOccurs="0" /><xs:element name="VariableParameterModifier" type="CodedDescriptionType" minOccurs="0" /></xs:sequence></xs:extension></xs:complexContent></xs:complexType></xs:element><xs:group ref="SLRCGroup" /><xs:element name="IndicationSequencePosition" type="xs:integer" minOccurs="0" /><xs:element name="MultipleIndicationModifier" type="CodedDescriptionType" minOccurs="0" /></xs:sequence></xs:complexType><xs:complexType name="InstructionType"><xs:complexContent><xs:extension base="CodedDescriptionType"><xs:sequence><xs:element name="instructionSequencePosition" type="xs:integer" minOccurs="0" /><xs:element name="MultipleInstructionModifier" type="CodedDescriptionType" minOccurs="0" /></xs:sequence></xs:extension></xs:complexContent></xs:complexType><xs:complexType name="InsuranceType"><xs:complexContent><xs:extension base="CCRCodedDataObjectType"><xs:sequence><xs:element name="PaymentProvider" type="ActorReferenceType" minOccurs="0" /><xs:element name="Subscriber" type="ActorReferenceType" minOccurs="0" /><xs:element name="Authorizations" minOccurs="0"><xs:complexType><xs:sequence><xs:element name="Authorization" type="AuthorizationType" minOccurs="0" maxOccurs="unbounded" /></xs:sequence></xs:complexType></xs:element></xs:sequence></xs:extension></xs:complexContent></xs:complexType><xs:complexType name="IntervalType"><xs:sequence><xs:element ref="Description" minOccurs="0" /><xs:group ref="MeasureGroup" /><xs:element name="IntervalSequencePosition" type="xs:integer" minOccurs="0" /><xs:element name="VariableIntervalModifier" type="CodedDescriptionType" minOccurs="0" /></xs:sequence></xs:complexType><xs:complexType name="InterventionType"><xs:complexContent><xs:extension base="CCRCodedDataObjectType"><xs:sequence><xs:element ref="Procedures" minOccurs="0" /><xs:element ref="Products" minOccurs="0" /><xs:element name="Medications" minOccurs="0"><xs:complexType><xs:sequence><xs:element name="Medication" type="StructuredProductType" maxOccurs="unbounded" /></xs:sequence></xs:complexType></xs:element><xs:element name="Immunizations" minOccurs="0"><xs:complexType><xs:sequence><xs:element name="Immunization" type="StructuredProductType" maxOccurs="unbounded" /></xs:sequence></xs:complexType></xs:element><xs:element ref="Services" minOccurs="0" /><xs:element ref="Encounters" minOccurs="0" /><xs:element name="Authorizatons" minOccurs="0"><xs:complexType><xs:sequence><xs:element name="Authorization" type="AuthorizationType" maxOccurs="unbounded" /></xs:sequence></xs:complexType></xs:element></xs:sequence></xs:extension></xs:complexContent></xs:complexType><xs:complexType name="MeasureType"><xs:sequence><xs:element name="Value" type="xs:string" /><xs:element name="Units" minOccurs="0"><xs:complexType><xs:sequence><xs:element name="Unit" type="xs:string" /><xs:element name="Code" type="CodeType" minOccurs="0" maxOccurs="unbounded" /></xs:sequence></xs:complexType></xs:element><xs:element name="Code" type="CodeType" minOccurs="0" maxOccurs="unbounded" /></xs:sequence></xs:complexType><xs:complexType name="MethodType"><xs:complexContent><xs:extension base="CodedDescriptionType"><xs:sequence><xs:element name="MethodSequencePosition" type="xs:integer" minOccurs="0" /><xs:element name="MultipleMethodModifier" type="CodedDescriptionType" minOccurs="0" /></xs:sequence></xs:extension></xs:complexContent></xs:complexType><xs:complexType name="NormalType"><xs:sequence><xs:element ref="Description" minOccurs="0" /><xs:element ref="Type" minOccurs="0" /><xs:group ref="MeasureGroup" /><xs:element name="ValueSequencePosition" type="xs:integer" minOccurs="0" /><xs:element name="VariableNormalModifier" type="CodedDescriptionType" minOccurs="0" /><xs:group ref="SLRCGroup" /></xs:sequence></xs:complexType><xs:complexType name="OrderRxHistoryType"><xs:complexContent><xs:extension base="CCRCodedDataObjectType"><xs:sequence><xs:element name="FulfillmentMethod" type="CodedDescriptionType" minOccurs="0" /><xs:element name="Provider" type="ActorReferenceType" minOccurs="0" /><xs:element name="Location" type="ActorReferenceType" minOccurs="0" /><xs:element ref="Reaction" minOccurs="0" maxOccurs="unbounded" /><xs:element name="ProductName" type="CodedDescriptionType" minOccurs="0" /><xs:element name="BrandName" type="xs:string" minOccurs="0" /><xs:element name="Manufacturer" type="ActorReferenceType" minOccurs="0" /><xs:element name="IDs" type="IDType" minOccurs="0" maxOccurs="unbounded" /><xs:element name="Strength" type="MeasureType" minOccurs="0" maxOccurs="unbounded" /><xs:element name="Form" type="CodedDescriptionType" minOccurs="0" maxOccurs="unbounded" /><xs:element name="Concentration" type="MeasureType" minOccurs="0" maxOccurs="unbounded" /><xs:element name="Quantity" type="MeasureType" minOccurs="0" maxOccurs="unbounded" /><xs:element name="LabelInstructions" type="InstructionType" minOccurs="0" maxOccurs="unbounded" /><xs:element name="SeriesNumber" type="xs:string" minOccurs="0" /></xs:sequence></xs:extension></xs:complexContent></xs:complexType><xs:complexType name="PatientKnowledgeType"><xs:sequence><xs:element name="PatientAware" type="xs:string" /><xs:element ref="Description" minOccurs="0" /><xs:group ref="SLRCGroup" /></xs:sequence></xs:complexType><xs:complexType name="PersonNameType"><xs:sequence><xs:element name="Given" type="xs:string" minOccurs="0" maxOccurs="unbounded" /><xs:element name="Middle" type="xs:string" minOccurs="0" maxOccurs="unbounded" /><xs:element name="Family" type="xs:string" minOccurs="0" maxOccurs="unbounded" /><xs:element name="Suffix" type="xs:string" minOccurs="0" maxOccurs="unbounded" /><xs:element name="Title" type="xs:string" minOccurs="0" maxOccurs="unbounded" /><xs:element name="NickName" minOccurs="0" maxOccurs="unbounded" /></xs:sequence></xs:complexType><xs:complexType name="PlanOfCareType"><xs:complexContent><xs:extension base="InterventionType"><xs:sequence><xs:element ref="Goals" minOccurs="0" /><xs:element name="OrderSequencePosition" type="xs:integer" minOccurs="0" /><xs:element name="MultipleOrderModifier" type="CodedDescriptionType" minOccurs="0" /></xs:sequence></xs:extension></xs:complexContent></xs:complexType><xs:complexType name="PlanType"><xs:complexContent><xs:extension base="CCRCodedDataObjectType"><xs:sequence><xs:element name="OrderRequest" type="PlanOfCareType" maxOccurs="unbounded" /></xs:sequence></xs:extension></xs:complexContent></xs:complexType><xs:complexType name="PositionType"><xs:complexContent><xs:extension base="CodedDescriptionType"><xs:sequence><xs:element name="PositionSequencePosition" type="xs:integer" minOccurs="0" /><xs:element name="MultiplePositionModifier" type="CodedDescriptionType" minOccurs="0" /></xs:sequence></xs:extension></xs:complexContent></xs:complexType><xs:complexType name="ProblemType"><xs:complexContent><xs:extension base="CCRCodedDataObjectType"><xs:sequence><xs:element name="Episodes" type="EpisodesType" minOccurs="0" /><xs:element name="HealthStatus" type="CurrentHealthStatusType" minOccurs="0" /><xs:element name="PatientKnowledge" type="PatientKnowledgeType" minOccurs="0" /></xs:sequence></xs:extension></xs:complexContent></xs:complexType><xs:complexType name="ProcedureType"><xs:sequence><xs:sequence><xs:element name="CCRDataObjectID" type="xs:string" /><xs:element name="DateTime" type="DateTimeType" minOccurs="0" maxOccurs="unbounded" /><xs:element name="IDs" type="IDType" minOccurs="0" /><xs:element ref="Type" minOccurs="0" /><xs:element ref="Description" minOccurs="0" /><xs:element ref="Status" minOccurs="0" /><xs:group ref="SLRCGroup" /></xs:sequence><xs:sequence><xs:element ref="Locations" minOccurs="0" /><xs:element ref="Practitioners" minOccurs="0" /><xs:element name="Frequency" type="FrequencyType" minOccurs="0" maxOccurs="unbounded" /><xs:element name="Interval" type="IntervalType" minOccurs="0" maxOccurs="unbounded" /><xs:element name="Duration" type="DurationType" minOccurs="0" maxOccurs="unbounded" /><xs:element ref="Indications" minOccurs="0" maxOccurs="unbounded" /><xs:element ref="Instructions" minOccurs="0" /><xs:element name="Consent" type="CCRCodedDataObjectType" minOccurs="0" /></xs:sequence><xs:sequence><xs:element name="Products" minOccurs="0"><xs:complexType><xs:sequence><xs:element name="Product" type="StructuredProductType" maxOccurs="unbounded" /></xs:sequence></xs:complexType></xs:element><xs:element name="Substance" type="CodedDescriptionType" minOccurs="0" /><xs:element name="Method" type="MethodType" minOccurs="0" maxOccurs="unbounded" /><xs:element name="Position" type="PositionType" minOccurs="0" maxOccurs="unbounded" /><xs:element name="Site" type="SiteType" minOccurs="0" maxOccurs="unbounded" /></xs:sequence></xs:sequence></xs:complexType><xs:complexType name="PurposeType"><xs:sequence><xs:element name="DateTime" type="DateTimeType" minOccurs="0" maxOccurs="unbounded" /><xs:element ref="Description" maxOccurs="unbounded" /><xs:element name="OrderRequest" type="PlanOfCareType" minOccurs="0" maxOccurs="unbounded" /><xs:element ref="Indications" minOccurs="0" maxOccurs="unbounded" /><xs:element name="ReferenceID" type="xs:string" minOccurs="0" maxOccurs="unbounded" /><xs:element name="CommentID" type="xs:string" minOccurs="0" maxOccurs="unbounded" /></xs:sequence></xs:complexType><xs:complexType name="QuantityType"><xs:complexContent><xs:extension base="MeasureType"><xs:sequence><xs:element name="QuantitySequencePosition" type="xs:integer" minOccurs="0" /><xs:element name="VariableQuantityModifier" type="CodedDescriptionType" minOccurs="0" /></xs:sequence></xs:extension></xs:complexContent></xs:complexType><xs:complexType name="RateType"><xs:sequence><xs:element ref="Description" minOccurs="0" /><xs:group ref="MeasureGroup" /><xs:element name="RateSequencePosition" type="xs:integer" minOccurs="0" /><xs:element name="VariableRateModifier" type="CodedDescriptionType" minOccurs="0" /></xs:sequence></xs:complexType><xs:complexType name="ResultType"><xs:complexContent><xs:extension base="CCRCodedDataObjectType"><xs:sequence><xs:element name="Procedure" type="ProcedureType" minOccurs="0" maxOccurs="unbounded" /><xs:element name="Substance" type="CodedDescriptionType" minOccurs="0" /><xs:element name="Test" type="TestType" minOccurs="0" maxOccurs="unbounded" /></xs:sequence></xs:extension></xs:complexContent></xs:complexType><xs:complexType name="SiteType"><xs:complexContent><xs:extension base="CodedDescriptionType"><xs:sequence><xs:element name="SiteSequencePosition" type="xs:integer" minOccurs="0" /><xs:element name="MultipleSiteModifier" type="CodedDescriptionType" minOccurs="0" /></xs:sequence></xs:extension></xs:complexContent></xs:complexType><xs:complexType name="SocialHistoryType"><xs:complexContent><xs:extension base="CCRCodedDataObjectType"><xs:sequence><xs:element name="Episodes" type="EpisodesType" minOccurs="0" /></xs:sequence></xs:extension></xs:complexContent></xs:complexType><xs:complexType name="SourceType"><xs:sequence><xs:element ref="Description" minOccurs="0" /><xs:element ref="Actor" minOccurs="0" maxOccurs="unbounded" /><xs:element name="DateTime" type="DateTimeType" minOccurs="0" /><xs:element name="ReferenceID" type="xs:string" minOccurs="0" maxOccurs="unbounded" /><xs:element name="CommentID" type="xs:string" minOccurs="0" maxOccurs="unbounded" /></xs:sequence></xs:complexType><xs:complexType name="StructuredProductType"><xs:complexContent><xs:extension base="CCRCodedDataObjectType"><xs:sequence><xs:element name="Product" maxOccurs="unbounded"><xs:complexType><xs:sequence><xs:element name="ProductName" type="CodedDescriptionType" /><xs:element name="BrandName" type="CodedDescriptionType" minOccurs="0" /><xs:element name="Strength" minOccurs="0" maxOccurs="unbounded"><xs:complexType><xs:complexContent><xs:extension base="MeasureType"><xs:sequence><xs:element name="StrengthSequencePosition" type="xs:integer" minOccurs="0" /><xs:element name="VariableStrengthModifier" type="CodedDescriptionType" minOccurs="0" /></xs:sequence></xs:extension></xs:complexContent></xs:complexType></xs:element><xs:element name="Form" minOccurs="0" maxOccurs="unbounded"><xs:complexType><xs:complexContent><xs:extension base="CodedDescriptionType"><xs:sequence><xs:element name="FormSequencePosition" type="xs:integer" minOccurs="0" /><xs:element name="MultipleFormModifier" type="CodedDescriptionType" minOccurs="0" /></xs:sequence></xs:extension></xs:complexContent></xs:complexType></xs:element><xs:element name="Concentration" minOccurs="0" maxOccurs="unbounded"><xs:complexType><xs:complexContent><xs:extension base="MeasureType"><xs:sequence><xs:element name="ConcentrationSequencePosition" type="xs:integer" minOccurs="0" /><xs:element name="VariableConcentrationModifier" type="CodedDescriptionType" minOccurs="0" /></xs:sequence></xs:extension></xs:complexContent></xs:complexType></xs:element><xs:element name="Size" minOccurs="0" maxOccurs="unbounded"><xs:complexType><xs:complexContent><xs:extension base="CodedDescriptionType"><xs:sequence><xs:element name="Dimensions" minOccurs="0"><xs:complexType><xs:sequence><xs:element name="Dimension" maxOccurs="unbounded"><xs:complexType><xs:complexContent><xs:extension base="MeasureType"><xs:sequence><xs:element ref="Description" /></xs:sequence></xs:extension></xs:complexContent></xs:complexType></xs:element></xs:sequence></xs:complexType></xs:element><xs:element name="SizeSequencePosition" type="xs:integer" minOccurs="0" /><xs:element name="VariableSizeModifier" type="CodedDescriptionType" minOccurs="0" /></xs:sequence></xs:extension></xs:complexContent></xs:complexType></xs:element><xs:element name="Manufacturer" type="ActorReferenceType" minOccurs="0" /><xs:element ref="IDs" minOccurs="0" maxOccurs="unbounded" /><xs:element name="ProductSequencePosition" type="xs:integer" minOccurs="0" /><xs:element name="MultipleProductModifier" type="CodedDescriptionType" minOccurs="0" /></xs:sequence></xs:complexType></xs:element><!-- Dosing/ordering information --><xs:element name="Quantity" type="QuantityType" minOccurs="0" maxOccurs="unbounded" /><xs:element ref="Directions" minOccurs="0" maxOccurs="unbounded" /><xs:element name="PatientInstructions" minOccurs="0"><xs:complexType><xs:sequence><xs:element name="Instruction" type="InstructionType" maxOccurs="unbounded" /></xs:sequence></xs:complexType></xs:element><xs:element name="FulfillmentInstructions" minOccurs="0"><xs:complexType><xs:sequence><xs:element name="Instruction" type="InstructionType" maxOccurs="unbounded" /></xs:sequence></xs:complexType></xs:element><xs:element name="Refills" minOccurs="0"><xs:complexType><xs:sequence><xs:element name="Refill" maxOccurs="unbounded"><xs:complexType><xs:sequence><xs:element name="Number" maxOccurs="unbounded"><xs:simpleType><xs:restriction base="xs:integer"><xs:minInclusive value="0" /></xs:restriction></xs:simpleType></xs:element><xs:element name="Quantity" type="QuantityType" minOccurs="0" maxOccurs="unbounded" /><xs:element ref="Status" minOccurs="0" /><xs:element name="DateTime" type="DateTimeType" minOccurs="0" maxOccurs="unbounded" /><xs:element name="Comment" type="CommentType" minOccurs="0" maxOccurs="unbounded" /></xs:sequence></xs:complexType></xs:element></xs:sequence></xs:complexType></xs:element><xs:element name="SeriesNumber" type="xs:string" minOccurs="0" /><xs:element name="Consent" type="CCRCodedDataObjectType" minOccurs="0" /><xs:element ref="Reaction" minOccurs="0" /><xs:element name="FulfillmentHistory" minOccurs="0"><xs:complexType><xs:sequence><xs:element name="Fulfillment" type="OrderRxHistoryType" minOccurs="0" maxOccurs="unbounded" /></xs:sequence></xs:complexType></xs:element></xs:sequence></xs:extension></xs:complexContent></xs:complexType><xs:complexType name="TestResultType"><xs:sequence><xs:group ref="MeasureGroup" /><xs:element ref="Description" minOccurs="0" maxOccurs="unbounded" /><xs:element name="ResultSequencePosition" type="xs:integer" minOccurs="0" /><xs:element name="VariableResultModifier" type="CodedDescriptionType" minOccurs="0" /></xs:sequence></xs:complexType><xs:complexType name="TestType"><xs:complexContent><xs:extension base="CCRCodedDataObjectType"><xs:sequence><xs:element name="Method" type="CodedDescriptionType" minOccurs="0" maxOccurs="unbounded" /><xs:element ref="Agent" minOccurs="0" maxOccurs="unbounded" /><xs:element name="TestResult" type="TestResultType" /><xs:element name="NormalResult" minOccurs="0"><xs:complexType><xs:sequence><xs:element name="Normal" type="NormalType" maxOccurs="unbounded" /></xs:sequence></xs:complexType></xs:element><xs:element name="Flag" type="CodedDescriptionType" minOccurs="0" maxOccurs="unbounded" /><xs:element name="ConfidenceValue" type="CodedDescriptionType" minOccurs="0" /></xs:sequence></xs:extension></xs:complexContent></xs:complexType><xs:complexType name="VehicleType"><xs:sequence><xs:element ref="Description" minOccurs="0" /><xs:element name="Product" minOccurs="0" maxOccurs="unbounded"><xs:complexType><xs:sequence><xs:element name="ProductName" type="CodedDescriptionType" /><xs:element name="BrandName" type="CodedDescriptionType" minOccurs="0" /><xs:element name="Strength" minOccurs="0" maxOccurs="unbounded"><xs:complexType><xs:complexContent><xs:extension base="MeasureType"><xs:sequence><xs:element name="StrengthSequencePosition" type="xs:integer" minOccurs="0" /><xs:element name="VariableStrengthModifier" type="CodedDescriptionType" minOccurs="0" /></xs:sequence></xs:extension></xs:complexContent></xs:complexType></xs:element><xs:element name="Form" minOccurs="0" maxOccurs="unbounded"><xs:complexType><xs:complexContent><xs:extension base="CodedDescriptionType"><xs:sequence><xs:element name="FormSequencePosition" type="xs:integer" minOccurs="0" /><xs:element name="MultipleFormModifier" type="CodedDescriptionType" minOccurs="0" /></xs:sequence></xs:extension></xs:complexContent></xs:complexType></xs:element><xs:element name="Concentration" minOccurs="0" maxOccurs="unbounded"><xs:complexType><xs:complexContent><xs:extension base="MeasureType"><xs:sequence><xs:element name="ConcentrationSequencePosition" type="xs:integer" minOccurs="0" /><xs:element name="VariableConcentrationModifier" type="CodedDescriptionType" minOccurs="0" /></xs:sequence></xs:extension></xs:complexContent></xs:complexType></xs:element><xs:element name="Size" minOccurs="0" maxOccurs="unbounded"><xs:complexType><xs:complexContent><xs:extension base="CodedDescriptionType"><xs:sequence><xs:element name="SizeSequencePosition" type="xs:integer" minOccurs="0" /><xs:element name="VariableSizeModifier" type="CodedDescriptionType" minOccurs="0" /></xs:sequence></xs:extension></xs:complexContent></xs:complexType></xs:element><xs:element name="ProductSequencePosition" type="xs:integer" minOccurs="0" /><xs:element name="MultipleProductModifier" type="CodedDescriptionType" minOccurs="0" /></xs:sequence></xs:complexType></xs:element><xs:element name="Manufacturer" type="ActorReferenceType" minOccurs="0" /><xs:element ref="IDs" minOccurs="0" /><xs:element name="Quantity" minOccurs="0" maxOccurs="unbounded"><xs:complexType><xs:complexContent><xs:extension base="MeasureType"><xs:sequence><xs:element name="QuantitySequencePosition" type="xs:integer" minOccurs="0" /><xs:element name="VariableQuantityModifier" type="CodedDescriptionType" minOccurs="0" /></xs:sequence></xs:extension></xs:complexContent></xs:complexType></xs:element><xs:element name="VehicleSequencePosition" type="xs:integer" minOccurs="0" /><xs:element name="MultipleVehicleModifier" type="CodedDescriptionType" minOccurs="0" /><xs:element ref="InternalCCRLink" minOccurs="0" /></xs:sequence></xs:complexType><!--Groups Used Repeatedly in the CCR--><xs:group name="SLRCGroup"><xs:sequence><xs:element name="Source" type="SourceType" maxOccurs="unbounded" /><xs:element ref="InternalCCRLink" minOccurs="0" maxOccurs="unbounded" /><xs:element name="ReferenceID" type="xs:string" minOccurs="0" maxOccurs="unbounded" /><xs:element name="CommentID" type="xs:string" minOccurs="0" maxOccurs="unbounded" /><xs:element name="Signature" minOccurs="0" maxOccurs="unbounded"><xs:complexType><xs:sequence><xs:element name="SignatureID" type="xs:string" /></xs:sequence></xs:complexType></xs:element></xs:sequence></xs:group><xs:group name="MeasureGroup"><!-- MeasureGroup is used where a measure is needed. The value must be present, and the units should be present. --><xs:sequence><xs:element name="Value" type="xs:string" minOccurs="0" /><xs:element name="Units" minOccurs="0"><xs:complexType><xs:sequence><xs:element name="Unit" type="xs:string" minOccurs="0" /><xs:element name="Code" type="CodeType" minOccurs="0" maxOccurs="unbounded" /></xs:sequence></xs:complexType></xs:element><xs:element name="Code" type="CodeType" minOccurs="0" maxOccurs="unbounded" /></xs:sequence></xs:group></xs:schema>
@@ -0,0 +1,27 @@
1
+ <schema xmlns:contraindication="urn:com.microsoft.wc.thing.contraindication" xmlns:t="urn:com.microsoft.wc.thing.types" xmlns:d="urn:com.microsoft.wc.dates" xmlns="http://www.w3.org/2001/XMLSchema" targetNamespace="urn:com.microsoft.wc.thing.contraindication"><import namespace="urn:com.microsoft.wc.thing.types" schemaLocation="base.xsd" /><import namespace="urn:com.microsoft.wc.dates" schemaLocation="dates.xsd" /><annotation><documentation><type-id>046d0ad7-6d7f-4bfd-afd4-4192ca2e913d</type-id><type-name>Contraindication</type-name><summary>
2
+ Information related to an contraindication.
3
+ </summary><remarks>
4
+ This thing type is used to store substances (such as food or drugs) that interacts badly with a
5
+ specific condition or drugs a patient is already taking.
6
+ </remarks><effective-date-element>documented-date</effective-date-element></documentation></annotation><element name="contraindication"><complexType><annotation><documentation><summary>
7
+ Information related to an contraindication.
8
+ </summary><remarks>
9
+ This thing type is used to store substances (such as food or drugs) that interacts badly with a
10
+ specific condition or drugs a patient is already taking.
11
+ </remarks></documentation></annotation><sequence><element name="substance" type="t:codable-value"><annotation><documentation><summary>
12
+ The substance that is contraindicated.
13
+ </summary></documentation></annotation></element><element name="status" type="t:codable-value"><annotation><documentation><summary>
14
+ The status of the contraindication.
15
+ </summary><remarks>
16
+ A contraindication can be inactive or active.
17
+ </remarks></documentation></annotation></element><element name="source" type="t:codable-value" minOccurs="0"><annotation><documentation><summary>
18
+ The source of the contraindication.
19
+ </summary><remarks>
20
+ For example, a contraindication against leafy green
21
+ vegetables might have as a source the blood thinner Warfarin, which would be coded here using
22
+ an appropriate medication vocabulary.
23
+ </remarks></documentation></annotation></element><element name="documenter" type="t:person" minOccurs="0"><annotation><documentation><summary>
24
+ The person who documented this issue (physician, pharmacist, etc.)
25
+ </summary></documentation></annotation></element><element name="documented-date" type="d:approx-date-time" minOccurs="0"><annotation><documentation><summary>
26
+ The date the contraindication was documented.
27
+ </summary></documentation></annotation></element></sequence></complexType></element></schema>
@@ -0,0 +1,51 @@
1
+ <schema xmlns:diet="urn:com.microsoft.wc.thing.dietary-intake-daily" xmlns:t="urn:com.microsoft.wc.thing.types" xmlns:d="urn:com.microsoft.wc.dates" xmlns="http://www.w3.org/2001/XMLSchema" targetNamespace="urn:com.microsoft.wc.thing.dietary-intake-daily"><import namespace="urn:com.microsoft.wc.thing.types" schemaLocation="base.xsd" /><import namespace="urn:com.microsoft.wc.dates" schemaLocation="dates.xsd" /><annotation><documentation><type-id>9c29c6b9-f40e-44ff-b24e-fba6f3074638</type-id><type-name>Daily Dietary Intake</type-name><summary>
2
+ The amount of dietary nutrients and minerals consumed
3
+ in a day.
4
+ </summary><effective-date-element>when</effective-date-element></documentation></annotation><element name="dietary-intake-daily"><complexType><annotation><documentation><summary>
5
+ The amount of dietary nutrients and minerals consumed
6
+ in a day.
7
+ </summary></documentation></annotation><sequence><element name="when" type="d:date"><annotation><documentation><summary>
8
+ The date of consumption.
9
+ </summary></documentation></annotation></element><element name="calories" type="positiveInteger" minOccurs="0"><annotation><documentation><summary>
10
+ The amount of calories consumed in the day.
11
+ </summary><remarks>
12
+ Calories are measured in kilocalories (kCal).
13
+ </remarks></documentation></annotation></element><element name="total-fat" type="t:weight-value" minOccurs="0"><annotation><documentation><summary>
14
+ The total amount of fat consumed in the day.
15
+ </summary><remarks>
16
+ Fat is usually measured in grams (g).
17
+ </remarks></documentation></annotation></element><element name="saturated-fat" type="t:weight-value" minOccurs="0"><annotation><documentation><summary>
18
+ The total amount of saturated fat consumed in the
19
+ day.
20
+ </summary><remarks>
21
+ Fat is usually measured in grams (g).
22
+ </remarks></documentation></annotation></element><element name="trans-fat" type="t:weight-value" minOccurs="0"><annotation><documentation><summary>
23
+ The total amount of trans fat consumed in the
24
+ day.
25
+ </summary><remarks>
26
+ Fat is usually measured in grams (g).
27
+ </remarks></documentation></annotation></element><element name="protein" type="t:weight-value" minOccurs="0"><annotation><documentation><summary>
28
+ The amount of protein consumed in the day.
29
+ </summary><remarks>
30
+ Protein is usually measured in grams (g).
31
+ </remarks></documentation></annotation></element><element name="total-carbohydrates" type="t:weight-value" minOccurs="0"><annotation><documentation><summary>
32
+ The amount of carbohydrates consumed in the day.
33
+ </summary><remarks>
34
+ Carbohydrates are usually measured in grams (g).
35
+ </remarks></documentation></annotation></element><element name="dietary-fiber" type="t:weight-value" minOccurs="0"><annotation><documentation><summary>
36
+ The amount of dietary fiber consumed in the day.
37
+ </summary><remarks>
38
+ Dietary fiber is usually measured in grams (g).
39
+ </remarks></documentation></annotation></element><element name="sugars" type="t:weight-value" minOccurs="0"><annotation><documentation><summary>
40
+ The amount of sugars consumed in the day.
41
+ </summary><remarks>
42
+ Sugar is usually measured in grams (g).
43
+ </remarks></documentation></annotation></element><element name="sodium" type="t:weight-value" minOccurs="0"><annotation><documentation><summary>
44
+ The amount of sodiam consumed in the day.
45
+ </summary><remarks>
46
+ Sodium is usually measured in milligrams (mg).
47
+ </remarks></documentation></annotation></element><element name="cholesterol" type="t:weight-value" minOccurs="0"><annotation><documentation><summary>
48
+ The amount of cholesterol consumed in the day.
49
+ </summary><remarks>
50
+ Cholesterol is usually measured in milligrams (mg).
51
+ </remarks></documentation></annotation></element></sequence></complexType></element></schema>
@@ -0,0 +1,41 @@
1
+ <schema xmlns:iu="urn:com.microsoft.wc.thing.daily-medication-usage" xmlns:t="urn:com.microsoft.wc.thing.types" xmlns:d="urn:com.microsoft.wc.dates" xmlns="http://www.w3.org/2001/XMLSchema" targetNamespace="urn:com.microsoft.wc.thing.daily-medication-usage"><import namespace="urn:com.microsoft.wc.thing.types" schemaLocation="base.xsd" /><import namespace="urn:com.microsoft.wc.dates" schemaLocation="dates.xsd" /><annotation><documentation><type-id>A9A76456-0357-493e-B840-598BBB9483FD</type-id><type-name>Daily Medication Usage</type-name><summary>
2
+ Record regular medication and dietary supplement usage.
3
+ </summary><remarks>
4
+ This health record item type enables a user to keep a record of the actual doses taken for prescription medications, over-the-counter drugs and regular dietary supplements.
5
+ </remarks><effective-date-element>when</effective-date-element></documentation></annotation><element name="daily-medication-usage"><complexType><annotation><documentation><summary>
6
+ Recording the act taking a medication.
7
+ </summary></documentation></annotation><sequence><element name="when" type="d:date"><annotation><documentation><summary>
8
+ Date on which the medication was taken.
9
+ </summary></documentation></annotation></element><element name="drug-name" type="t:codable-value"><annotation><documentation><summary>
10
+ Name of the medication, drug or supplement taken.
11
+ </summary><remarks>
12
+ For example, 'ventolin' or 'albuterol.' This element allows for completely free-text input of names.
13
+ </remarks></documentation></annotation></element><element name="number-doses-consumed-in-day" type="int"><annotation><documentation><summary>
14
+ Number of units of the medication taken.
15
+ </summary><remarks>
16
+ Ties to the 'single-dose-description' element to determine actual dosage taken.
17
+ </remarks></documentation></annotation></element><element name="purpose-of-use" type="t:codable-value" minOccurs="0"><annotation><documentation><summary>
18
+ Textual description of the purpose of use for this drug.
19
+ </summary><preferred-vocabulary>dose-purpose</preferred-vocabulary><remarks>
20
+ Examples include 'high blood pressure' or 'diabetes.' Users may select from the existing vocabulary or use their own descriptions.
21
+ </remarks></documentation></annotation></element><element name="number-doses-intended-in-day" type="int" minOccurs="0"><annotation><documentation><summary>
22
+ Number of units called for by prescription or intent for the drug.
23
+ </summary><remarks>
24
+ Intend for this to be used to ensure that patient is keeping track of their usage in comparison to the prescribed usage. Will enable an application to easily alert the user in instances where the patient has come short or is taking too much.
25
+ </remarks></documentation></annotation></element><element name="medication-usage-schedule" type="t:codable-value" minOccurs="0"><annotation><documentation><summary>
26
+ General schedule for the usage of the medication in quesiton.
27
+ </summary><preferred-vocabulary>usage-schedule</preferred-vocabulary><remarks>
28
+ This will be used to distinguish between drugs that are taken daily vs. those that are taken 'as needed.' User may select from the existing values or use their own.
29
+ </remarks></documentation></annotation></element><element name="drug-form" type="t:codable-value" minOccurs="0"><annotation><documentation><summary>
30
+ Form in which the drug is administered.
31
+ </summary><preferred-vocabulary>x12-de-1330</preferred-vocabulary><remarks>
32
+ For example, pill, powder, capsule, etc. User may select from the existing values or use their own.
33
+ </remarks></documentation></annotation></element><element name="prescription-type" type="t:codable-value" minOccurs="0"><annotation><documentation><summary>
34
+ Means through which the drug was determined to be needed.
35
+ </summary><preferred-vocabulary>prescription-type</preferred-vocabulary><remarks>
36
+ For example, Unknown, MedicallyPrescribed, or SelfChosen.
37
+ </remarks></documentation></annotation></element><element name="single-dose-description" type="t:codable-value" minOccurs="0"><annotation><documentation><summary>
38
+ Description that defines what a 'single dose' of the medication constitutes.
39
+ </summary><preferred-vocabulary>x12-d3-355</preferred-vocabulary><remarks>
40
+ This element qualifies the 'number-units-consumed' element. It allows control over the definition of a dosage. The intent is to allow for free-form text to enable the user or provider to have complete control over the definition of a 'unit' for a specific drug. Examples include '3 200mg tablets,' '1 Tablespoon full' or '2.5 tablets.' User may select from the existing values or use their own.
41
+ </remarks></documentation></annotation></element></sequence></complexType></element></schema>
@@ -0,0 +1,24 @@
1
+ <schema xmlns:device="urn:com.microsoft.wc.thing.equipment" xmlns:t="urn:com.microsoft.wc.thing.types" xmlns:d="urn:com.microsoft.wc.dates" xmlns="http://www.w3.org/2001/XMLSchema" targetNamespace="urn:com.microsoft.wc.thing.equipment"><import namespace="urn:com.microsoft.wc.thing.types" schemaLocation="base.xsd" /><import namespace="urn:com.microsoft.wc.dates" schemaLocation="dates.xsd" /><annotation><documentation><type-id>EF9CF8D5-6C0B-4292-997F-4047240BC7BE</type-id><type-name>Device</type-name><summary>
2
+ Information related to medical equipment.
3
+ </summary><remarks>
4
+ This thing type describes medical equipment a person has.
5
+ </remarks><effective-date-element>when</effective-date-element></documentation></annotation><element name="device"><complexType><annotation><documentation><summary>
6
+ Information related to medical equipment.
7
+ </summary><remarks>
8
+ This thing type describes medical equipment a person has.
9
+ </remarks></documentation></annotation><sequence><element name="when" type="d:date-time"><annotation><documentation><summary>
10
+ The date and time the report.
11
+ </summary></documentation></annotation></element><element name="device-name" type="string" minOccurs="0"><annotation><documentation><summary>
12
+ The name of the medical equipment.
13
+ </summary></documentation></annotation></element><element name="vendor" type="t:person" minOccurs="0"><annotation><documentation><summary>
14
+ The vendor of the medical equipment.
15
+ </summary></documentation></annotation></element><element name="model" type="string" minOccurs="0"><annotation><documentation><summary>
16
+ Free form model name of the medical equipment.
17
+ </summary></documentation></annotation></element><element name="serial-number" type="string" minOccurs="0"><annotation><documentation><summary>
18
+ Free form serial number of the medical equipment.
19
+ </summary></documentation></annotation></element><element name="anatomic-site" type="string" minOccurs="0"><annotation><documentation><summary>
20
+ The location on the body where the device
21
+ takes readings.
22
+ </summary></documentation></annotation></element><element name="description" type="string" minOccurs="0"><annotation><documentation><summary>
23
+ A free form description of the of the medical equipment.
24
+ </summary></documentation></annotation></element></sequence></complexType></element></schema>
@@ -0,0 +1,26 @@
1
+ <schema xmlns:iu="urn:com.microsoft.wc.thing.insulin-injection-use" xmlns:t="urn:com.microsoft.wc.thing.types" xmlns:d="urn:com.microsoft.wc.dates" xmlns="http://www.w3.org/2001/XMLSchema" targetNamespace="urn:com.microsoft.wc.thing.insulin-injection-use"><import namespace="urn:com.microsoft.wc.thing.types" schemaLocation="base.xsd" /><import namespace="urn:com.microsoft.wc.dates" schemaLocation="dates.xsd" /><annotation><documentation><type-id>184166BE-8ADB-4D9C-8162-C403040E31AD</type-id><type-name>Diabetes Insulin Injection Usage</type-name><summary>
2
+ A single use of an insulin-injection.
3
+ </summary><remarks>
4
+ Note, this may wrap more than one "dose" if multiple
5
+ injections per use are prescribed.
6
+ </remarks><effective-date-element>when</effective-date-element></documentation></annotation><element name="diabetes-insulin-injection-use"><complexType><annotation><documentation><summary>
7
+ A single use of an insulin-injection.
8
+ </summary><remarks>
9
+ Note, this may wrap more than one "dose" if multiple
10
+ injections per use are prescribed.
11
+ </remarks></documentation></annotation><sequence><element name="when" type="d:date-time"><annotation><documentation><summary>
12
+ The date and time when the insulin-injection was used.
13
+ </summary></documentation></annotation></element><element name="type" type="t:codable-value"><annotation><documentation><summary>
14
+ The type of the insulin used.
15
+ </summary><remarks>
16
+ For example, 'Analoga' or 'Normal'
17
+ </remarks><preferred-vocabulary>insulin-types</preferred-vocabulary></documentation></annotation></element><element name="amount" type="t:insulin-injection-value"><annotation><documentation><summary>
18
+ The amount of insulin injected.
19
+ </summary><remarks>
20
+ The typical range is 0.1-50IE. An IE unit is 1/100ml.
21
+ </remarks></documentation></annotation></element><element name="device-id" type="string" minOccurs="0"><annotation><documentation><summary>
22
+ The unique id or serial number for the insulin package.
23
+ </summary><remarks>
24
+ If available, this value can be used to
25
+ correlate results.
26
+ </remarks></documentation></annotation></element></sequence></complexType></element></schema>