{"swagger":"2.0","info":{"description":"Welcome to the MEDrecord API documentation. Here you can find technical information on how the MEDrecord API works","version":"0.0.1","title":"API documentation","license":{"name":"MIT License","url":"http://opensource.org/licenses/MIT"}},"host":"mhealthinx-backend.medvision360.org","basePath":"/","tags":[{"name":"Allergy / Intolerance","description":"Allergy Controller"},{"name":"Appointment","description":"Appointment Controller"},{"name":"Azure Communication","description":"Azure Communication Controller"},{"name":"Badges","description":"Badge Controller"},{"name":"Care Plan","description":"Care Plan Controller"},{"name":"Care Plan Goal","description":"Goal Controller"},{"name":"Companies (organizations)","description":"Network Organization Controller"},{"name":"Company's (organization's) participants","description":"Network Organization Participant Controller"},{"name":"Condition","description":"Condition Controller"},{"name":"Device Observation","description":"Device Observation Controller"},{"name":"Device services","description":"Device Controller"},{"name":"Diagnosis","description":"Diagnostic Report Controller"},{"name":"External Data","description":"Data Exchange Controller"},{"name":"Feedback Tool","description":"Feedback Controller"},{"name":"File (DocumentReference)","description":"Document Reference Controller"},{"name":"Immunization","description":"Immunization Controller"},{"name":"Level Thresholds","description":"Level Threshold Controller"},{"name":"Medication","description":"Medication Controller"},{"name":"Observation","description":"Active Minutes Observation Controller"},{"name":"Organization","description":"Medical Organization Controller"},{"name":"Payments plans management for administrators","description":"Payment Admin Controller"},{"name":"Payments with Stripe","description":"Payment Stripe Controller"},{"name":"Person","description":"Person Controller"},{"name":"Person address","description":"Person contact endpoints"},{"name":"Person contact","description":"Person contact endpoints"},{"name":"Person network","description":"Network Controller"},{"name":"Points Actions","description":"Points Action Controller"},{"name":"Practitioner","description":"Practitioner Controller"},{"name":"Public Translation","description":"Public Translation Controller"},{"name":"Public terminology","description":"Public Terminology Controller"},{"name":"Questionnaire","description":"Questionnaire Controller"},{"name":"Questionnaire Task","description":"Questionnaire Task Controller"},{"name":"Related Person","description":"Related Person Controller"},{"name":"Schedule","description":"Patient Schedule Controller"},{"name":"Settings","description":"Setting Controller"},{"name":"Slot","description":"Patient Slot Controller"},{"name":"Task","description":"Task Controller"},{"name":"Terminology services","description":"Terminology Controller"},{"name":"Translation","description":"Translation Controller"},{"name":"User Badges","description":"User Badge Controller"},{"name":"User Level","description":"User Level Controller"},{"name":"User Payments","description":"Payment User Controller"},{"name":"User Points","description":"User Points Controller"},{"name":"User's Group","description":"Group Controller"}],"schemes":["https"],"produces":["application/json"],"paths":{"/azure-communication/user/{userId}":{"post":{"tags":["Azure Communication"],"summary":"Create an Azure communication identity.","operationId":"createIdentityUsingPOST","consumes":["application/json"],"parameters":[{"name":"userId","in":"path","description":"Platform user id (UUID)","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"type":"string"}},"201":{"description":"Created"},"400":{"description":"Bad request"},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"Not Found"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false},"delete":{"tags":["Azure Communication"],"summary":"Delete an Azure communication identity.","operationId":"deleteIdentityUsingDELETE","parameters":[{"name":"userId","in":"path","description":"Platform user id (UUID)","required":true,"type":"string"}],"responses":{"200":{"description":"OK"},"204":{"description":"No Content"},"400":{"description":"Bad request"},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false}},"/azure-communication/user/{userId}/token":{"get":{"tags":["Azure Communication"],"summary":"Get a access token for an Azure Communication user with provided scope.","operationId":"getAccessTokenUsingGET","parameters":[{"name":"scope","in":"query","description":"List of scopes, i.e. Chat and/or Voip.","required":true,"type":"string","allowEmptyValue":false,"enum":["CHAT","VOIP"]},{"name":"userId","in":"path","description":"Platform user id (UUID)","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"type":"string"}},"400":{"description":"Bad request"},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"Not Found"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false},"delete":{"tags":["Azure Communication"],"summary":"Revoke an access to access token.","operationId":"revokeAccessTokensUsingDELETE","parameters":[{"name":"userId","in":"path","description":"Platform user id (UUID)","required":true,"type":"string"}],"responses":{"200":{"description":"OK"},"204":{"description":"No Content"},"400":{"description":"Bad request"},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false}},"/badge":{"get":{"tags":["Badges"],"summary":"${documentation.badge.list}","operationId":"listUsingGET_1","responses":{"200":{"description":"Resources are found and returned","schema":{"type":"array","items":{"$ref":"#/definitions/BadgePayload"}}},"400":{"description":"Parameters are invalid"},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"Specified user id not found"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false}},"/badge/{badgeId}":{"put":{"tags":["Badges"],"summary":"${documentation.badge.update}","operationId":"updateUsingPUT_3","consumes":["application/json"],"parameters":[{"name":"badgeId","in":"path","description":"${documentation.badge.param.badgeId}","required":true,"type":"integer","format":"int64"},{"name":"isActive","in":"query","description":"${documentation.badge.param.active}","required":true,"type":"boolean","allowEmptyValue":false}],"responses":{"200":{"description":"Resources are found and returned","schema":{"$ref":"#/definitions/BadgePayload"}},"201":{"description":"Created"},"400":{"description":"Parameters are invalid"},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"Specified user id not found"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false}},"/device":{"get":{"tags":["Device services"],"summary":"Get collection of the all devices","operationId":"searchGoalUsingGET","responses":{"200":{"description":"OK","schema":{"type":"array","items":{"$ref":"#/definitions/MedicalDeviceProductPayload"}}},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"No resources found for specified user id"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false},"post":{"tags":["Device services"],"summary":"Create device","operationId":"createGoalUsingPOST","consumes":["application/json"],"parameters":[{"in":"body","name":"payload","description":"Device's payload","required":true,"schema":{"$ref":"#/definitions/MedicalDeviceProductPayload"}}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ResourceCreateResponse"}},"201":{"description":"Created","schema":{"$ref":"#/definitions/ResourceCreateResponse"}},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"No resources found for specified user id"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false}},"/device/{deviceId}":{"get":{"tags":["Device services"],"summary":"Get device by id","operationId":"getGoalUsingGET","parameters":[{"name":"deviceId","in":"path","description":"Platform user id (UUID)","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/MedicalDeviceProductPayload"}},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"No resources found for specified user id"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false},"put":{"tags":["Device services"],"summary":"Update device with provided id","operationId":"updateGoalUsingPUT","consumes":["application/json"],"parameters":[{"name":"deviceId","in":"path","description":"Platform user id (UUID)","required":true,"type":"string"},{"in":"body","name":"payload","description":"Device's payload","required":true,"schema":{"$ref":"#/definitions/MedicalDeviceProductPayload"}}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ResponseEntity"}},"201":{"description":"Created"},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"No resources found for specified user id"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false},"delete":{"tags":["Device services"],"summary":"Delete device by id","operationId":"deleteGoalUsingDELETE","parameters":[{"name":"deviceId","in":"path","description":"Platform user id (UUID)","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ResponseEntity"}},"204":{"description":"No content","schema":{"$ref":"#/definitions/ResponseEntity"}},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"No resources found for specified user id"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false}},"/extdata/{userId}/careprovider":{"get":{"tags":["External Data"],"summary":"Get care provider list","operationId":"getCareProviderListUsingGET","parameters":[{"name":"address","in":"query","description":"${medsafe.patient.externaldata.param.searchAddress}","required":false,"type":"string","allowEmptyValue":false},{"name":"count","in":"query","description":"Number of records per page","required":false,"type":"integer","format":"int32","allowEmptyValue":false},{"name":"displayName","in":"query","description":"Display name of care provider","required":false,"type":"string","allowEmptyValue":false},{"name":"email","in":"query","description":"Filter by email address","required":false,"type":"string","allowEmptyValue":false},{"name":"phone","in":"query","description":"Filtyer by phone number","required":false,"type":"string","allowEmptyValue":false},{"name":"search","in":"query","description":"Filter by care provider name","required":false,"type":"string","allowEmptyValue":false},{"name":"speciality","in":"query","description":"Filter by speciality","required":false,"type":"string","allowEmptyValue":false},{"name":"startPage","in":"query","description":"Index of start page","required":false,"type":"integer","format":"int32","allowEmptyValue":false},{"name":"ura","in":"query","description":"Filter by URA identifier","required":false,"type":"string","allowEmptyValue":false},{"name":"userId","in":"path","description":"Platform user id (UUID)","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/GetCareProviderListResponsePayload"}},"400":{"description":"Bad request"},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"Not Found"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false}},"/extdata/{userId}/careprovider/auth/token":{"post":{"tags":["External Data"],"summary":"Create access token for specified care provider and data service","operationId":"createCareProviderAccessTokenUsingPOST","consumes":["application/json"],"parameters":[{"in":"body","name":"payload","description":"Redirect url and auth code for exchange access token","required":true,"schema":{"$ref":"#/definitions/ExternalDataCreateCareProviderAccessTokenRequestPayload"}},{"name":"userId","in":"path","description":"Platform user id (UUID)","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ResponseEntity"}},"201":{"description":"Created","schema":{"$ref":"#/definitions/ResponseEntity"}},"400":{"description":"Bad request"},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"Not Found"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false}},"/extdata/{userId}/careprovider/count":{"get":{"tags":["External Data"],"summary":"Get care provider count","operationId":"getCareProviderCountUsingGET","parameters":[{"name":"address","in":"query","description":"${medsafe.patient.externaldata.param.searchAddress}","required":false,"type":"string","allowEmptyValue":false},{"name":"displayName","in":"query","description":"Display name of care provider","required":false,"type":"string","allowEmptyValue":false},{"name":"email","in":"query","description":"Filter by email address","required":false,"type":"string","allowEmptyValue":false},{"name":"phone","in":"query","description":"Filtyer by phone number","required":false,"type":"string","allowEmptyValue":false},{"name":"search","in":"query","description":"Filter by care provider name","required":false,"type":"string","allowEmptyValue":false},{"name":"speciality","in":"query","description":"Filter by speciality","required":false,"type":"string","allowEmptyValue":false},{"name":"ura","in":"query","description":"Filter by URA identifier","required":false,"type":"string","allowEmptyValue":false},{"name":"userId","in":"path","description":"Platform user id (UUID)","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"type":"integer","format":"int32"}},"400":{"description":"Bad request"},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"Not Found"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false}},"/extdata/{userId}/careprovider/info/{careProviderId}":{"get":{"tags":["External Data"],"summary":"Refetches and returns updated care provider data for a single care provider","operationId":"getCareProviderDataUsingGET","parameters":[{"name":"careProviderId","in":"path","description":"care provider id","required":true,"type":"string"},{"name":"userId","in":"path","description":"Platform user id (UUID)","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/GetCareProviderPayload"}},"400":{"description":"Bad request"},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"Not Found"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false}},"/extdata/{userId}/careprovider/{careProviderId}":{"get":{"tags":["External Data"],"summary":"Get stored external data","operationId":"getUsingGET_4","parameters":[{"name":"careProviderId","in":"path","description":"care provider id","required":true,"type":"string"},{"name":"resourceKeys","in":"query","description":"list of resource keys, separated by comma","required":true,"type":"array","items":{"type":"string"},"collectionFormat":"multi","allowEmptyValue":false},{"name":"userId","in":"path","description":"Platform user id (UUID)","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ExternalDataGetResponsePayload"}},"400":{"description":"Bad request"},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"Not Found"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false},"post":{"tags":["External Data"],"summary":"Fetch external data","operationId":"fetchUsingPOST","consumes":["application/json"],"parameters":[{"name":"careProviderId","in":"path","description":"care provider id","required":true,"type":"string"},{"in":"body","name":"payload","description":"External data fields","required":true,"schema":{"$ref":"#/definitions/ExternalDataFetchRequestPayload"}},{"name":"userId","in":"path","description":"Platform user id (UUID)","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ExternalDataFetchResponsePayload"}},"201":{"description":"Created"},"400":{"description":"Bad request"},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"Not Found"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false}},"/extdata/{userId}/careprovider/{careProviderId}/auth/{dataServiceId}/url":{"post":{"tags":["External Data"],"summary":"Create authorization URL for user","operationId":"createAuthUrlUsingPOST","consumes":["application/json"],"parameters":[{"name":"careProviderId","in":"path","description":"care provider id","required":true,"type":"string"},{"name":"dataServiceId","in":"path","description":"data service id","required":true,"type":"string"},{"in":"body","name":"payload","description":"Redirect url request body param","required":true,"schema":{"$ref":"#/definitions/ExternalDataCreateCareProviderAuthUrlRequestPayload"}},{"name":"userId","in":"path","description":"Platform user id (UUID)","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ExternalDataCreateCareProviderAuthUrlResponsePayload"}},"201":{"description":"Created","schema":{"$ref":"#/definitions/ExternalDataCreateCareProviderAuthUrlResponsePayload"}},"400":{"description":"Bad request"},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"Not Found"},"410":{"description":"Data service exists but auth URL not found"},"451":{"description":"Careprovider URL didn't pass whitelist/DNSSEC check"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false}},"/extdata/{userId}/careprovider/{careProviderId}/count":{"get":{"tags":["External Data"],"summary":"Get count of stored external data","operationId":"countUsingGET_4","parameters":[{"name":"careProviderId","in":"path","description":"care provider id","required":true,"type":"string"},{"name":"resourceKeys","in":"query","description":"list of resource keys, separated by comma","required":true,"type":"array","items":{"type":"string"},"collectionFormat":"multi","allowEmptyValue":false},{"name":"userId","in":"path","description":"Platform user id (UUID)","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ExternalDataCountResponsePayload"}},"400":{"description":"Bad request"},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"Not Found"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false}},"/extdata/{userId}/careprovider/{careProviderId}/log":{"get":{"tags":["External Data"],"summary":"get list of performed fetch requests","operationId":"getFetchRequestsListUsingGET","parameters":[{"name":"careProviderId","in":"path","description":"care provider id","required":true,"type":"string"},{"name":"userId","in":"path","description":"Platform user id (UUID)","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"type":"array","items":{"$ref":"#/definitions/InternalDataFetchLogResponsePayload"}}},"400":{"description":"Bad request"},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"Not Found"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false}},"/extdata/{userId}/careprovider/{careProviderId}/measurement/share":{"post":{"tags":["External Data"],"summary":"Push self measurements","operationId":"pushSelfMeasurementsUsingPOST","consumes":["application/json"],"parameters":[{"name":"careProviderId","in":"path","description":"care provider id","required":true,"type":"string"},{"in":"body","name":"payload","description":"Internal data fields","required":true,"schema":{"$ref":"#/definitions/SelfMeasurementsPushRequestPayload"}},{"name":"userId","in":"path","description":"Platform user id (UUID)","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/InternalDataPushResponsePayload"}},"201":{"description":"Created"},"400":{"description":"Bad request"},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"Not Found"},"422":{"description":"Observations not found"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false}},"/extdata/{userId}/careprovider/{careProviderId}/questionnaire":{"post":{"tags":["External Data"],"summary":"Fetch external questionnaire","operationId":"fetchQuestionnaireUsingPOST","consumes":["application/json"],"parameters":[{"name":"careProviderId","in":"path","description":"care provider id","required":true,"type":"string"},{"in":"body","name":"payload","description":"External data fields for the fetching of questionnaire","required":true,"schema":{"$ref":"#/definitions/ExternalDataFetchQuestionnaireRequestPayload"}},{"name":"userId","in":"path","description":"Platform user id (UUID)","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ExternalDataFetchQuestionnaireResponsePayload"}},"201":{"description":"Created"},"400":{"description":"Bad request"},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"Not Found"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false}},"/extdata/{userId}/careprovider/{careProviderId}/questionnaire/share":{"post":{"tags":["External Data"],"summary":"Push questionnaire response","operationId":"pushQuestionnaireResponseUsingPOST","consumes":["application/json"],"parameters":[{"name":"careProviderId","in":"path","description":"care provider id","required":true,"type":"string"},{"in":"body","name":"payload","description":"Questionnaire response related data","required":true,"schema":{"$ref":"#/definitions/InternalDataPushQuestionnaireResponseRequestPayload"}},{"name":"userId","in":"path","description":"Platform user id (UUID)","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/InternalDataPushQuestionnaireResponseResponsePayload"}},"201":{"description":"Created"},"400":{"description":"Bad request"},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"Not Found"},"422":{"description":"Observations not found"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false}},"/extdata/{userId}/careprovider/{careProviderId}/share":{"post":{"tags":["External Data"],"summary":"Push internal data","operationId":"pushUsingPOST","consumes":["application/json"],"parameters":[{"name":"careProviderId","in":"path","description":"care provider id","required":true,"type":"string"},{"in":"body","name":"payload","description":"Internal data fields","required":true,"schema":{"$ref":"#/definitions/InternalDataPushRequestPayload"}},{"name":"userId","in":"path","description":"Platform user id (UUID)","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/InternalDataPushResponsePayload"}},"201":{"description":"Created"},"400":{"description":"Bad request"},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"Not Found"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false}},"/extdata/{userId}/careprovider/{careProviderId}/share/log":{"get":{"tags":["External Data"],"summary":"get list of performed push requests","operationId":"getPushRequestsListUsingGET","parameters":[{"name":"careProviderId","in":"path","description":"care provider id","required":true,"type":"string"},{"name":"userId","in":"path","description":"Platform user id (UUID)","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"type":"array","items":{"$ref":"#/definitions/InternalDataPushLogResponsePayload"}}},"400":{"description":"Bad request"},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"Not Found"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false}},"/extdata/{userId}/list/careproviders":{"post":{"tags":["External Data"],"summary":"Initiate list fetching","operationId":"fetchCareProviderListUsingPOST","consumes":["application/json"],"parameters":[{"name":"userId","in":"path","description":"Platform user id (UUID)","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ExternalDataFetchListResponsePayload"}},"201":{"description":"Created"},"400":{"description":"Bad request"},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"Not Found"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false}},"/extdata/{userId}/list/dataservices":{"post":{"tags":["External Data"],"summary":"Initiate list fetching","operationId":"fetchDataServiceListUsingPOST","consumes":["application/json"],"parameters":[{"name":"userId","in":"path","description":"Platform user id (UUID)","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ExternalDataFetchListResponsePayload"}},"201":{"description":"Created"},"400":{"description":"Bad request"},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"Not Found"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false}},"/extdata/{userId}/list/whitelist":{"post":{"tags":["External Data"],"summary":"Initiate list fetching","operationId":"fetchWhiteListUsingPOST","consumes":["application/json"],"parameters":[{"name":"userId","in":"path","description":"Platform user id (UUID)","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ExternalDataFetchListResponsePayload"}},"201":{"description":"Created"},"400":{"description":"Bad request"},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"Not Found"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false}},"/extdata/{userId}/medmij/maintenance":{"post":{"tags":["External Data"],"summary":"Create maintenance report for the platform","operationId":"createMaintenanceReportUsingPOST","consumes":["application/json"],"parameters":[{"in":"body","name":"payload","description":"Report request body","required":true,"schema":{"$ref":"#/definitions/MedMij Report Request"}},{"name":"userId","in":"path","description":"Platform user id (UUID)","required":true,"type":"string"}],"responses":{"200":{"description":"Created","schema":{"$ref":"#/definitions/Report Response"}},"201":{"description":"Created"},"400":{"description":"Bad request"},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"Not Found"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false}},"/extdata/{userId}/medmij/portability":{"post":{"tags":["External Data"],"summary":"Create portaility report for the user","operationId":"createPortabilityReportUsingPOST","consumes":["application/json"],"parameters":[{"in":"body","name":"payload","description":"Report request body","required":true,"schema":{"$ref":"#/definitions/MedMij Report Request"}},{"name":"userId","in":"path","description":"Platform user id (UUID)","required":true,"type":"string"}],"responses":{"200":{"description":"Created","schema":{"$ref":"#/definitions/Report Response"}},"201":{"description":"Created"},"400":{"description":"Bad request"},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"Not Found"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false}},"/extdata/{userId}/neurocenter/pdf":{"get":{"tags":["External Data"],"summary":"Fetch result PDF from Neurocenter and automatically create condition with the file","operationId":"fetchNeurocenterPdfAndCreateConditionUsingGET","parameters":[{"name":"careProviderAccessToken","in":"query","description":"Optional access token of care provider who uploaded a file with patient's data","required":false,"type":"string","allowEmptyValue":false},{"name":"fileName","in":"query","description":"Already uploaded input file with patinet's data to analyze","required":true,"type":"string","allowEmptyValue":false},{"name":"userId","in":"path","description":"Platform user id (UUID)","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/NeurocenterFetchPdfResultResponsePayload"}},"400":{"description":"Bad request"},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"Not Found"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false}},"/feedback":{"post":{"tags":["Feedback Tool"],"summary":"This endpoint is designed to create a new issue as user feedback","operationId":"createUsingPOST_16","consumes":["application/json"],"parameters":[{"in":"body","name":"payload","description":"User feedback fields","required":true,"schema":{"$ref":"#/definitions/FeedbackPayload"}}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ResponseEntity"}},"201":{"description":"Feedback was successfully created","schema":{"$ref":"#/definitions/ResponseEntity"}},"400":{"description":"Bad request"},"401":{"description":"Unauthorized"},"403":{"description":"Forbidden"},"404":{"description":"Not Found"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false}},"/group":{"get":{"tags":["User's Group"],"summary":"Get list of groups that the user added.","operationId":"listGroupsUsingGET","responses":{"200":{"description":"OK","schema":{"type":"array","items":{"$ref":"#/definitions/UserGroupPayload"}}},"201":{"description":"Created","schema":{"type":"array","items":{"$ref":"#/definitions/UserGroupPayload"}}},"400":{"description":"Bad request"},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"Not Found"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false}},"/group/file":{"post":{"tags":["User's Group"],"summary":"Create list of new patients.","operationId":"createUsersFromFileUsingPOST","consumes":["multipart/form-data"],"parameters":[{"name":"file","in":"formData","description":"Payload of a user to create","required":true,"type":"file"},{"name":"language","in":"query","description":"${medsafe.translation.platform.lang}","required":false,"type":"string","allowEmptyValue":false,"enum":["EN","NL","IT"]}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/UserGroupPayload"}},"201":{"description":"Created","schema":{"$ref":"#/definitions/UserGroupPayload"}},"400":{"description":"Bad request"},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"Not Found"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false}},"/group/user":{"post":{"tags":["User's Group"],"summary":"Create list of new patients.","operationId":"createUsersUsingPOST","consumes":["application/json"],"parameters":[{"name":"language","in":"query","description":"${medsafe.translation.platform.lang}","required":false,"type":"string","allowEmptyValue":false,"enum":["EN","NL","IT"]},{"in":"body","name":"payload","description":"Payload of a user to create","required":true,"schema":{"type":"array","items":{"$ref":"#/definitions/CreateUserPayload"}}}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/UserGroupPayload"}},"201":{"description":"Created","schema":{"$ref":"#/definitions/UserGroupPayload"}},"400":{"description":"Bad request"},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"Not Found"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false}},"/group/{groupId}/user":{"get":{"tags":["User's Group"],"summary":"Get list of users within a group that the user added.","operationId":"listUsersUsingGET","parameters":[{"name":"groupId","in":"path","description":"Group id","required":true,"type":"integer","format":"int64"},{"name":"roles","in":"query","description":"Role of a user within a group","required":false,"type":"array","items":{"type":"string","enum":["MEMBER","MANAGER"]},"collectionFormat":"multi","allowEmptyValue":false,"enum":["MEMBER","MANAGER"]}],"responses":{"200":{"description":"OK","schema":{"type":"array","items":{"$ref":"#/definitions/GroupUserPayload"}}},"201":{"description":"Created","schema":{"type":"array","items":{"$ref":"#/definitions/GroupUserPayload"}}},"400":{"description":"Bad request"},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"Not Found"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false},"post":{"tags":["User's Group"],"summary":"Add a user to the group.","operationId":"addUserUsingPOST","consumes":["application/json"],"parameters":[{"name":"groupId","in":"path","description":"Group id","required":true,"type":"integer","format":"int64"},{"in":"body","name":"user","description":"Payload of a user within a group","required":true,"schema":{"$ref":"#/definitions/GroupUserPayload"}}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/GroupUserPayload"}},"201":{"description":"Created","schema":{"$ref":"#/definitions/GroupUserPayload"}},"400":{"description":"Bad request"},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"Not Found"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false}},"/group/{groupId}/user/{userId}":{"delete":{"tags":["User's Group"],"summary":"Remove a user from the group.","operationId":"removeUserUsingDELETE","parameters":[{"name":"groupId","in":"path","description":"Group id","required":true,"type":"integer","format":"int64"},{"name":"userId","in":"path","description":"Platform user id (UUID)","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"type":"object"}},"201":{"description":"Created","schema":{"type":"object"}},"204":{"description":"No Content"},"400":{"description":"Bad request"},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false}},"/level-threshold":{"get":{"tags":["Level Thresholds"],"summary":"${documentation.level.list}","operationId":"listUsingGET_9","responses":{"200":{"description":"Resources are found and returned","schema":{"type":"array","items":{"$ref":"#/definitions/LevelThresholdPayload"}}},"400":{"description":"Parameters are invalid"},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"Specified user id not found"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false},"post":{"tags":["Level Thresholds"],"summary":"${documentation.level.create}","operationId":"createUsingPOST_21","consumes":["application/json"],"parameters":[{"in":"body","name":"payload","description":"${documentation.level.param.payload}","required":true,"schema":{"$ref":"#/definitions/LevelThresholdPayload"}}],"responses":{"200":{"description":"Resources are found and returned","schema":{"$ref":"#/definitions/LevelThresholdPayload"}},"201":{"description":"Created"},"400":{"description":"Parameters are invalid"},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"Specified user id not found"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false}},"/level-threshold/{levelId}":{"get":{"tags":["Level Thresholds"],"summary":"${documentation.level.get}","operationId":"getUsingGET_8","parameters":[{"name":"levelId","in":"path","description":"${documentation.level.param.levelId}","required":true,"type":"integer","format":"int64"}],"responses":{"200":{"description":"Resources are found and returned","schema":{"$ref":"#/definitions/LevelThresholdPayload"}},"400":{"description":"Parameters are invalid"},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"Specified user id not found"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false},"put":{"tags":["Level Thresholds"],"summary":"${documentation.level.update}","operationId":"updateUsingPUT_20","consumes":["application/json"],"parameters":[{"name":"levelId","in":"path","description":"${documentation.level.param.levelId}","required":true,"type":"integer","format":"int64"},{"in":"body","name":"payload","description":"${documentation.level.param.payload}","required":true,"schema":{"$ref":"#/definitions/LevelThresholdPayload"}}],"responses":{"200":{"description":"Resources are found and returned","schema":{"type":"object"}},"201":{"description":"Created"},"400":{"description":"Parameters are invalid"},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"Specified user id not found"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false},"delete":{"tags":["Level Thresholds"],"summary":"${documentation.level.delete}","operationId":"deleteUsingDELETE_6","parameters":[{"name":"levelId","in":"path","description":"${documentation.level.param.levelId}","required":true,"type":"integer","format":"int64"}],"responses":{"200":{"description":"Resources are found and returned","schema":{"type":"object"}},"204":{"description":"No Content"},"400":{"description":"Parameters are invalid"},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"Specified user id not found"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false}},"/network/organization":{"get":{"tags":["Companies (organizations)"],"summary":"This endpoint returns list of platform companies.","operationId":"listUsingGET_12","parameters":[{"name":"count","in":"query","description":"maximum number of results","required":false,"type":"integer","default":5,"format":"int32","allowEmptyValue":false,"x-example":5},{"name":"mode","in":"query","description":"Sorting mode (ASC, DESC)","required":false,"type":"string","allowEmptyValue":false,"enum":["ASC","DESC"]},{"name":"sort","in":"query","description":"Sorting field","required":false,"type":"string","allowEmptyValue":false,"enum":["NAME"]},{"name":"start","in":"query","description":"start index to return (0+)","required":false,"type":"integer","default":0,"format":"int32","allowEmptyValue":false,"x-example":0}],"responses":{"200":{"description":"OK","schema":{"type":"array","items":{"$ref":"#/definitions/NetworkOrganizationPayload"}}},"400":{"description":"Bad request"},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"Not Found"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false},"post":{"tags":["Companies (organizations)"],"summary":"This endpoint creates a new platform company.","operationId":"createUsingPOST_23","consumes":["application/json"],"parameters":[{"in":"body","name":"payload","description":"${medsafe.network.organization.param.payload}","required":true,"schema":{"$ref":"#/definitions/NetworkOrganizationPayload"}}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/NetworkOrganizationPayload"}},"201":{"description":"Resource was successfully created","schema":{"$ref":"#/definitions/NetworkOrganizationPayload"}},"400":{"description":"Parameters are invalid"},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"No resources found for specified user id"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false}},"/network/organization/count":{"get":{"tags":["Companies (organizations)"],"summary":"This endpoint returns number of platform companies.","operationId":"countUsingGET_7","responses":{"200":{"description":"OK","schema":{"type":"integer","format":"int32"}},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"Not Found"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false}},"/network/organization/user/{userId}":{"get":{"tags":["Companies (organizations)"],"summary":"This endpoint returns list of platform companies for specified user.","operationId":"listByUserUsingGET","parameters":[{"name":"count","in":"query","description":"maximum number of results","required":false,"type":"integer","default":5,"format":"int32","allowEmptyValue":false,"x-example":5},{"name":"start","in":"query","description":"start index to return (0+)","required":false,"type":"integer","default":0,"format":"int32","allowEmptyValue":false,"x-example":0},{"name":"userId","in":"path","description":"Platform user id (UUID)","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"type":"array","items":{"$ref":"#/definitions/NetworkOrganizationPractitionerOrganizationInfoPayload"}}},"400":{"description":"Bad request"},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"Not Found"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false}},"/network/organization/user/{userId}/count":{"get":{"tags":["Companies (organizations)"],"summary":"This endpoint returns number of platform companies for specified user.","operationId":"countByUserUsingGET","parameters":[{"name":"userId","in":"path","description":"Platform user id (UUID)","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"type":"integer","format":"int32"}},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"Not Found"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false}},"/network/organization/{id}":{"get":{"tags":["Companies (organizations)"],"summary":"This endpoint returns platform company data.","operationId":"getUsingGET_10","parameters":[{"name":"id","in":"path","description":"Company (organization) ID","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/NetworkOrganizationPayload"}},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"Specified organization not found"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false},"put":{"tags":["Companies (organizations)"],"summary":"This endpoint updates existing platform company.","operationId":"updateUsingPUT_22","consumes":["application/json"],"parameters":[{"name":"id","in":"path","description":"Company (organization) ID","required":true,"type":"string"},{"in":"body","name":"payload","description":"${medsafe.network.organization.param.payload}","required":true,"schema":{"$ref":"#/definitions/NetworkOrganizationPayload"}}],"responses":{"200":{"description":"Resource was successfully updated","schema":{"$ref":"#/definitions/NetworkOrganizationPayload"}},"201":{"description":"Created"},"400":{"description":"Parameters are invalid"},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"Specified user id or organization not found"},"405":{"description":"This organization can't be updated"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false},"delete":{"tags":["Companies (organizations)"],"summary":"This endpoint deletes existing platform company.","operationId":"deleteUsingDELETE_8","parameters":[{"name":"id","in":"path","description":"Company (organization) ID","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"type":"object"}},"204":{"description":"Resource was successfully deleted","schema":{"type":"object"}},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"Specified network organization not found"},"405":{"description":"This network organization can't be deleted"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false}},"/network/organization/{organizationId}/practitioner":{"get":{"tags":["Company's (organization's) participants"],"summary":"This endpoint returns list of the company's practitioners.","operationId":"listPractitionersUsingGET","parameters":[{"name":"organizationId","in":"path","description":"Company (organization) ID","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"type":"array","items":{"$ref":"#/definitions/NetworkOrganizationPractitionerInfoPayload"}}},"400":{"description":"Bad request"},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"Not Found"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false},"post":{"tags":["Company's (organization's) participants"],"summary":"This endpoint adds a new practitioner to the company.","operationId":"addPractitionerUsingPOST","consumes":["application/json"],"parameters":[{"name":"organizationId","in":"path","description":"Company (organization) ID","required":true,"type":"string"},{"in":"body","name":"payload","description":"Payload with practitioner data","required":true,"schema":{"$ref":"#/definitions/NetworkOrganizationPractitionerPayload"}}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/NetworkOrganizationPractitionerPayload"}},"201":{"description":"Practitioner was successfully created","schema":{"$ref":"#/definitions/NetworkOrganizationPractitionerPayload"}},"400":{"description":"Parameters are invalid"},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"No resources found for specified user id"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false}},"/network/organization/{organizationId}/practitioner/{id}":{"get":{"tags":["Company's (organization's) participants"],"summary":"This endpoint returns practitioner data in the company.","operationId":"getPractitionerUsingGET","parameters":[{"name":"id","in":"path","description":"Practitioner platform ID","required":true,"type":"string"},{"name":"organizationId","in":"path","description":"Company (organization) ID","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/NetworkOrganizationPractitionerInfoPayload"}},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"Specified organization or practitioner are not found"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false},"put":{"tags":["Company's (organization's) participants"],"summary":"This endpoint updates the practitioner's data in the company.","operationId":"updatePractitionerUsingPUT","consumes":["application/json"],"parameters":[{"name":"id","in":"path","description":"Practitioner platform ID","required":true,"type":"string"},{"name":"organizationId","in":"path","description":"Company (organization) ID","required":true,"type":"string"},{"in":"body","name":"payload","description":"Payload with practitioner data","required":true,"schema":{"$ref":"#/definitions/NetworkOrganizationPractitionerPayload"}}],"responses":{"200":{"description":"Resource was successfully updated","schema":{"$ref":"#/definitions/NetworkOrganizationPractitionerPayload"}},"201":{"description":"Created"},"400":{"description":"Parameters are invalid"},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"Specified organization or practitioner are not found"},"405":{"description":"This organization can't be updated"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false},"delete":{"tags":["Company's (organization's) participants"],"summary":"This endpoint deletes the practitioner from the company.","operationId":"deletePractitionerUsingDELETE","parameters":[{"name":"id","in":"path","description":"Practitioner platform ID","required":true,"type":"string"},{"name":"organizationId","in":"path","description":"Company (organization) ID","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"type":"object"}},"204":{"description":"Resource was successfully deleted","schema":{"type":"object"}},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"Specified network organization or practitioner not found"},"405":{"description":"This practitioner can't be deleted from organization"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false}},"/organization":{"get":{"tags":["Organization"],"summary":"List the organizations by page.","operationId":"listUsingGET_10","parameters":[{"name":"count","in":"query","description":"maximum number of results","required":false,"type":"integer","default":10,"format":"int32","allowEmptyValue":false,"x-example":10},{"name":"start","in":"query","description":"start index to return (0+)","required":false,"type":"integer","default":0,"format":"int32","allowEmptyValue":false,"x-example":0}],"responses":{"200":{"description":"OK","schema":{"type":"array","items":{"$ref":"#/definitions/NlCoreOrganizationPayload"}}},"400":{"description":"Bad request"},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"Not Found"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false}},"/organization/search":{"get":{"tags":["Organization"],"summary":"Look up for the organization by token.","operationId":"searchUsingGET","parameters":[{"name":"token","in":"query","description":"Search token.","required":false,"type":"string","allowEmptyValue":false}],"responses":{"200":{"description":"OK","schema":{"type":"array","items":{"$ref":"#/definitions/NlCoreOrganizationPayload"}}},"400":{"description":"Bad request"},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"Not Found"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false}},"/patient/{userId}/allergy":{"get":{"tags":["Allergy / Intolerance"],"summary":"This endpoint returns list of existing allergies of patient.","operationId":"countUsingGET_1","parameters":[{"name":"count","in":"query","description":"Max number of values to return","required":false,"type":"integer","format":"int32","allowEmptyValue":false},{"name":"mode","in":"query","description":"Sorting mode (ASC, DESC)","required":false,"type":"string","allowEmptyValue":false,"enum":["ASC","DESC"]},{"name":"sort","in":"query","description":"Sorting field","required":false,"type":"string","allowEmptyValue":false,"enum":["NAME","TYPE","CLINICAL_STATUS","VERIFICATION_STATUS","LAST_OCCURRENCE_DATE","TOTAL_REACTIONS_COUNT"]},{"name":"start","in":"query","description":"Start index to return","required":false,"type":"integer","format":"int32","allowEmptyValue":false},{"name":"userId","in":"path","description":"Platform user id (UUID)","required":true,"type":"string"}],"responses":{"200":{"description":"Resources are found and returned","schema":{"type":"array","items":{"$ref":"#/definitions/AllergyInfoPayload"}}},"400":{"description":"Parameters are invalid"},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"Specified user id not found"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false},"post":{"tags":["Allergy / Intolerance"],"summary":"This endpoint creates a new allergy of patient.","operationId":"createUsingPOST_1","consumes":["application/json"],"parameters":[{"in":"body","name":"payload","description":"Allergy payload","required":true,"schema":{"$ref":"#/definitions/AllergyPayload"}},{"name":"userId","in":"path","description":"Platform user id (UUID)","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/AllergyPayload"}},"201":{"description":"Resource was successfully created","schema":{"$ref":"#/definitions/AllergyPayload"}},"400":{"description":"Parameters are invalid"},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"No resources found for specified user id"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false}},"/patient/{userId}/allergy/count":{"get":{"tags":["Allergy / Intolerance"],"summary":"This endpoint returns number of existing allergies of patient.","operationId":"countUsingGET","parameters":[{"name":"userId","in":"path","description":"Platform user id (UUID)","required":true,"type":"string"}],"responses":{"200":{"description":"Number of resources returned","schema":{"type":"integer","format":"int32"}},"400":{"description":"Parameters are invalid"},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"Specified user id not found"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false}},"/patient/{userId}/allergy/{id}":{"get":{"tags":["Allergy / Intolerance"],"summary":"This endpoint returns existing allergy/intolerance of patient.","operationId":"getUsingGET","parameters":[{"name":"id","in":"path","description":"Allergy id","required":true,"type":"string"},{"name":"userId","in":"path","description":"Platform user id (UUID)","required":true,"type":"string"}],"responses":{"200":{"description":"Resource is found and returned","schema":{"$ref":"#/definitions/AllergyPayload"}},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"Specified user id or allergy not found"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false},"put":{"tags":["Allergy / Intolerance"],"summary":"This endpoint updates existing allergy of patient.","operationId":"updateUsingPUT_1","consumes":["application/json"],"parameters":[{"name":"id","in":"path","description":"Allergy id","required":true,"type":"string"},{"in":"body","name":"payload","description":"Allergy payload","required":true,"schema":{"$ref":"#/definitions/AllergyPayload"}},{"name":"userId","in":"path","description":"Platform user id (UUID)","required":true,"type":"string"}],"responses":{"200":{"description":"Resource was successfully updated","schema":{"$ref":"#/definitions/AllergyPayload"}},"201":{"description":"Created"},"400":{"description":"Parameters are invalid"},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"Specified user id or allergy not found"},"405":{"description":"This allergy can't be updated"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false},"delete":{"tags":["Allergy / Intolerance"],"summary":"This endpoint deletes existing allergy of patient.","operationId":"deleteUsingDELETE","parameters":[{"name":"id","in":"path","description":"Allergy id","required":true,"type":"string"},{"name":"userId","in":"path","description":"Platform user id (UUID)","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"type":"object"}},"204":{"description":"Resource was successfully deleted","schema":{"type":"object"}},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"Specified user id or allergy not found"},"405":{"description":"This allergy can't be deleted"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false}},"/patient/{userId}/appointment":{"get":{"tags":["Appointment"],"summary":"${medsafe.appointment.list}","operationId":"listUsingGET_13","parameters":[{"name":"count","in":"query","description":"${medsafe.appointment.param.count}","required":false,"type":"integer","format":"int32","allowEmptyValue":false},{"name":"mode","in":"query","description":"${medsafe.appointment.param.sortmode}","required":false,"type":"string","allowEmptyValue":false,"enum":["ASC","DESC"]},{"name":"sort","in":"query","description":"${medsafe.appointment.param.sort}","required":false,"type":"string","allowEmptyValue":false,"enum":["TITLE"]},{"name":"start","in":"query","description":"${medsafe.appointment.param.start}","required":false,"type":"integer","format":"int32","allowEmptyValue":false},{"name":"status","in":"query","description":"${medsafe.appointment.param.status}","required":false,"type":"string","allowEmptyValue":false,"enum":["PROPOSED","PENDING","BOOKED","ARRIVED","FULFILLED","CANCELLED","NOSHOW","DELETED"]},{"name":"userId","in":"path","description":"${medsafe.appointment.param.userid}","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"type":"array","items":{"$ref":"#/definitions/AppointmentPayload"}}},"400":{"description":"Parameters are invalid"},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"Specified user id not found"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false},"post":{"tags":["Appointment"],"summary":"${medsafe.appointment.create}","operationId":"saveUsingPOST_1","consumes":["application/json"],"parameters":[{"in":"body","name":"appointment","description":"${medsafe.appointment.param.payload}","required":true,"schema":{"$ref":"#/definitions/AppointmentPayload"}},{"name":"userId","in":"path","description":"${medsafe.appointment.param.userid}","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/AppointmentPayload"}},"201":{"description":"Created"},"400":{"description":"Parameters are invalid"},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"Specified user id not found"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false}},"/patient/{userId}/appointment/count":{"get":{"tags":["Appointment"],"summary":"Count existing questionnaires.","operationId":"countUsingGET_8","parameters":[{"name":"status","in":"query","description":"${medsafe.appointment.param.status}","required":false,"type":"string","allowEmptyValue":false,"enum":["PROPOSED","PENDING","BOOKED","ARRIVED","FULFILLED","CANCELLED","NOSHOW","DELETED"]},{"name":"userId","in":"path","description":"${medsafe.appointment.task.param.owner}","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"type":"integer","format":"int32"}},"400":{"description":"Parameters are invalid"},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"Specified user id not found"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false}},"/patient/{userId}/appointment/{appointmentId}":{"get":{"tags":["Appointment"],"summary":"${medsafe.appointment.get}","operationId":"getUsingGET_11","parameters":[{"name":"appointmentId","in":"path","description":"${medsafe.appointment.param.id}","required":true,"type":"string"},{"name":"userId","in":"path","description":"${medsafe.appointment.param.userid}","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/AppointmentPayload"}},"400":{"description":"Parameters are invalid"},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"Specified user id not found"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false},"put":{"tags":["Appointment"],"summary":"${medsafe.appointment.update}","operationId":"updateUsingPUT_24","consumes":["application/json"],"parameters":[{"in":"body","name":"appointment","description":"${medsafe.appointment.param.payload}","required":true,"schema":{"$ref":"#/definitions/AppointmentPayload"}},{"name":"appointmentId","in":"path","description":"${medsafe.appointment.param.id}","required":true,"type":"string"},{"name":"userId","in":"path","description":"${medsafe.appointment.param.userid}","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/AppointmentPayload"}},"201":{"description":"Created"},"400":{"description":"Parameters are invalid"},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"Specified user id not found"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false},"delete":{"tags":["Appointment"],"summary":"${medsafe.appointment.delete}","operationId":"deleteUsingDELETE_10","parameters":[{"name":"appointmentId","in":"path","description":"${medsafe.appointment.param.id}","required":true,"type":"string"},{"name":"userId","in":"path","description":"${medsafe.appointment.param.userid}","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"type":"object"}},"204":{"description":"No Content"},"400":{"description":"Parameters are invalid"},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"Specified user id not found"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false}},"/patient/{userId}/careplan":{"get":{"tags":["Care Plan"],"summary":"This endpoint is designed to get collection of existing patient CarePlan's main data.","operationId":"listUsingGET_2","parameters":[{"name":"count","in":"query","description":"maximum number of results","required":false,"type":"integer","format":"int32","allowEmptyValue":false,"x-example":10},{"name":"start","in":"query","description":"start index to return (0+)","required":false,"type":"integer","default":0,"format":"int32","allowEmptyValue":false,"x-example":0},{"name":"status","in":"query","description":"status for filtering - ACTIVE or COMPLETED","required":false,"type":"string","allowEmptyValue":false},{"name":"userId","in":"path","description":"Platform user id (UUID)","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"type":"array","items":{"$ref":"#/definitions/CarePlanPayload"}}},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"No resources found for specified user id"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false},"post":{"tags":["Care Plan"],"summary":"This endpoint is designed to create a new patient CarePlan.","operationId":"createUsingPOST_10","consumes":["application/json"],"parameters":[{"in":"body","name":"payload","description":"Care plan payload","required":true,"schema":{"$ref":"#/definitions/CarePlanPayload"}},{"name":"userId","in":"path","description":"Platform user id (UUID)","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ResourceCreateResponse"}},"201":{"description":"Resource was successfully created","schema":{"$ref":"#/definitions/ResourceCreateResponse"}},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"No resources found for specified user id"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false}},"/patient/{userId}/careplan/count":{"get":{"tags":["Care Plan"],"summary":"This endpoint is designed to count patient CarePlans, identified by user id.","operationId":"countUsingGET_3","parameters":[{"name":"status","in":"query","description":"status for filtering - ACTIVE or COMPLETED","required":false,"type":"string","allowEmptyValue":false},{"name":"userId","in":"path","description":"Platform user id (UUID)","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/CountPayload"}},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"No resources found for specified user id"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false}},"/patient/{userId}/careplan/recreate-default":{"post":{"tags":["Care Plan"],"summary":"This endpoint is designed to recreate the default CarePlans for the patient.","operationId":"recreateDefaultCarePlansUsingPOST","consumes":["application/json"],"parameters":[{"name":"language","in":"query","description":"Translations language.","required":false,"type":"string","allowEmptyValue":false,"enum":["EN","NL","IT"]},{"name":"userId","in":"path","description":"Platform user id (UUID)","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"type":"object"}},"201":{"description":"Created"},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"No resources found for specified user id"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false}},"/patient/{userId}/careplan/{carePlanId}/goal":{"get":{"tags":["Care Plan Goal"],"summary":"This endpoint is designed to get a collection of the goals from CarePlan.","operationId":"searchGoalUsingGET_1","parameters":[{"name":"carePlanId","in":"path","description":"Care Plan ID","required":true,"type":"string"},{"name":"status","in":"query","description":"status for filtering - ACTIVE or COMPLETED","required":false,"type":"string","allowEmptyValue":false},{"name":"userId","in":"path","description":"Platform user id (UUID)","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"type":"array","items":{"$ref":"#/definitions/GoalPayload"}}},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"No resources found for specified user id"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false},"post":{"tags":["Care Plan Goal"],"summary":"This endpoint is designed to create a new goal for CarePlan.","operationId":"createGoalUsingPOST_1","consumes":["application/json"],"parameters":[{"name":"carePlanId","in":"path","description":"Care Plan ID","required":true,"type":"string"},{"in":"body","name":"payload","description":"Care plan goal payload","required":true,"schema":{"$ref":"#/definitions/GoalPayload"}},{"name":"userId","in":"path","description":"Platform user id (UUID)","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ResourceCreateResponse"}},"201":{"description":"Created","schema":{"$ref":"#/definitions/ResourceCreateResponse"}},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"No resources found for specified user id"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false}},"/patient/{userId}/careplan/{carePlanId}/goal/{goalId}":{"get":{"tags":["Care Plan Goal"],"summary":"This endpoint is designed to get a goal from CarePlan.","operationId":"getGoalUsingGET_1","parameters":[{"name":"carePlanId","in":"path","description":"Care Plan ID","required":true,"type":"string"},{"name":"goalId","in":"path","description":"Goal ID","required":true,"type":"string"},{"name":"userId","in":"path","description":"Platform user id (UUID)","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/GoalPayload"}},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"No resources found for specified user id"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false},"put":{"tags":["Care Plan Goal"],"summary":"This endpoint is designed to update a goal from CarePlan.","operationId":"updateGoalUsingPUT_1","consumes":["application/json"],"parameters":[{"name":"carePlanId","in":"path","description":"Care Plan ID","required":true,"type":"string"},{"name":"goalId","in":"path","description":"Goal ID","required":true,"type":"string"},{"in":"body","name":"payload","description":"Care plan goal payload","required":true,"schema":{"$ref":"#/definitions/GoalPayload"}},{"name":"userId","in":"path","description":"Platform user id (UUID)","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ResponseEntity"}},"201":{"description":"Created"},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"No resources found for specified user id"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false},"delete":{"tags":["Care Plan Goal"],"summary":"This endpoint is designed to delete a goal from CarePlan.","operationId":"deleteGoalUsingDELETE_1","parameters":[{"name":"carePlanId","in":"path","description":"Care Plan ID","required":true,"type":"string"},{"name":"goalId","in":"path","description":"Goal ID","required":true,"type":"string"},{"name":"userId","in":"path","description":"Platform user id (UUID)","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ResponseEntity"}},"204":{"description":"No content","schema":{"$ref":"#/definitions/ResponseEntity"}},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"No resources found for specified user id"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false}},"/patient/{userId}/careplan/{carePlanId}/goal/{goalId}/task":{"get":{"tags":["Task"],"summary":"This endpoint is designed to get a collection of the tasks.","operationId":"listUsingGET_22","parameters":[{"name":"carePlanId","in":"path","description":"Care Plan ID","required":true,"type":"string"},{"name":"count","in":"query","description":"maximum number of results","required":false,"type":"integer","format":"int32","allowEmptyValue":false,"x-example":10},{"name":"goalId","in":"path","description":"Goal ID","required":true,"type":"string"},{"name":"start","in":"query","description":"start index to return (0+)","required":false,"type":"integer","default":0,"format":"int32","allowEmptyValue":false,"x-example":0},{"name":"userId","in":"path","description":"Platform user id (UUID)","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"type":"array","items":{"$ref":"#/definitions/TaskPayload"}}},"400":{"description":"Bad request"},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"No resources found for specified user id"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false},"post":{"tags":["Task"],"summary":"This endpoint is designed to create a new task for goal.","operationId":"createUsingPOST_33","consumes":["application/json"],"parameters":[{"name":"carePlanId","in":"path","description":"Care Plan ID","required":true,"type":"string"},{"name":"goalId","in":"path","description":"Goal ID","required":true,"type":"string"},{"in":"body","name":"payload","description":"Care plan task payload","required":true,"schema":{"$ref":"#/definitions/TaskPayload"}},{"name":"userId","in":"path","description":"Platform user id (UUID)","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ResourceCreateResponse"}},"201":{"description":"Resource was successfully created","schema":{"$ref":"#/definitions/ResourceCreateResponse"}},"400":{"description":"Bad request"},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"No resources found for specified user id"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false}},"/patient/{userId}/careplan/{carePlanId}/goal/{goalId}/task/count":{"get":{"tags":["Task"],"summary":"This endpoint is designed to get a collection of the tasks.","operationId":"countUsingGET_16","parameters":[{"name":"carePlanId","in":"path","description":"Care Plan ID","required":true,"type":"string"},{"name":"goalId","in":"path","description":"Goal ID","required":true,"type":"string"},{"name":"userId","in":"path","description":"Platform user id (UUID)","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/CountPayload"}},"400":{"description":"Bad request"},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"No resources found for specified user id"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false}},"/patient/{userId}/careplan/{carePlanId}/goal/{goalId}/task/{taskId}":{"get":{"tags":["Task"],"summary":"This endpoint is designed to get an existing task.","operationId":"getUsingGET_21","parameters":[{"name":"carePlanId","in":"path","description":"Care Plan ID","required":true,"type":"string"},{"name":"goalId","in":"path","description":"Goal ID","required":true,"type":"string"},{"name":"taskId","in":"path","description":"Task ID","required":true,"type":"string"},{"name":"userId","in":"path","description":"Platform user id (UUID)","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/TaskPayload"}},"400":{"description":"Bad request"},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"No resources found for specified user id"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false},"put":{"tags":["Task"],"summary":"This endpoint is designed to update an existing task.","operationId":"updateUsingPUT_34","consumes":["application/json"],"parameters":[{"name":"carePlanId","in":"path","description":"Care Plan ID","required":true,"type":"string"},{"name":"goalId","in":"path","description":"Goal ID","required":true,"type":"string"},{"in":"body","name":"payload","description":"Care plan task payload","required":true,"schema":{"$ref":"#/definitions/TaskPayload"}},{"name":"taskId","in":"path","description":"Task ID","required":true,"type":"string"},{"name":"userId","in":"path","description":"Platform user id (UUID)","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ResponseEntity"}},"201":{"description":"Created"},"400":{"description":"Bad request"},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"No resources found for specified user id"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false},"delete":{"tags":["Task"],"summary":"This endpoint is designed to delete an existing task.","operationId":"deleteUsingDELETE_15","parameters":[{"name":"carePlanId","in":"path","description":"Care Plan ID","required":true,"type":"string"},{"name":"goalId","in":"path","description":"Goal ID","required":true,"type":"string"},{"name":"taskId","in":"path","description":"Task ID","required":true,"type":"string"},{"name":"userId","in":"path","description":"Platform user id (UUID)","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ResponseEntity"}},"204":{"description":"No content","schema":{"$ref":"#/definitions/ResponseEntity"}},"400":{"description":"Bad request"},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"No resources found for specified user id"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false}},"/patient/{userId}/careplan/{carePlanId}/participant":{"get":{"tags":["Care Plan"],"summary":"${medsafe.patient.careteam.list}","operationId":"listCarePlanParticipantUsingGET","parameters":[{"name":"carePlanId","in":"path","description":"Care Plan ID","required":true,"type":"string"},{"name":"userId","in":"path","description":"Platform user id (UUID)","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"type":"array","items":{"$ref":"#/definitions/ParticipantPayload"}}},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"No resources found for specified user id"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false},"post":{"tags":["Care Plan"],"summary":"Add user to the care team of care plan.","operationId":"addCarePlanParticipantUsingPOST","consumes":["application/json"],"parameters":[{"name":"carePlanId","in":"path","description":"Care Plan ID","required":true,"type":"string"},{"in":"body","name":"payload","description":"Care Team payload","required":true,"schema":{"$ref":"#/definitions/AddCarePlanParticipantPayload"}},{"name":"userId","in":"path","description":"Platform user id (UUID)","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ResponseEntity"}},"201":{"description":"Resource was successfully created","schema":{"$ref":"#/definitions/ResponseEntity"}},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"No resources found for specified user id"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false}},"/patient/{userId}/careplan/{carePlanId}/participant/fhir/{resourceType}/{resourceId}":{"put":{"tags":["Care Plan"],"summary":"Update care team member's data.","operationId":"updateCarePlanParticipantByFhirIdUsingPUT","consumes":["application/json"],"parameters":[{"name":"carePlanId","in":"path","description":"Care Plan ID","required":true,"type":"string"},{"in":"body","name":"payload","description":"Role payload","required":true,"schema":{"$ref":"#/definitions/RolePayload"}},{"name":"resourceId","in":"path","description":"fhir resource id","required":true,"type":"string"},{"name":"resourceType","in":"path","description":"fhir resource type, e.g. Patient, Practitioner or RelatedPerson","required":true,"type":"string"},{"name":"userId","in":"path","description":"Platform user id (UUID)","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ResponseEntity"}},"201":{"description":"Created"},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"No resources found for specified user id"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false},"delete":{"tags":["Care Plan"],"summary":"Update care team member's data.","operationId":"deleteCarePlanParticipantByFhirIdUsingDELETE","parameters":[{"name":"carePlanId","in":"path","description":"Care Plan ID","required":true,"type":"string"},{"name":"resourceId","in":"path","description":"fhir resource id","required":true,"type":"string"},{"name":"resourceType","in":"path","description":"fhir resource type, e.g. Patient, Practitioner or RelatedPerson","required":true,"type":"string"},{"name":"userId","in":"path","description":"Platform user id (UUID)","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ResponseEntity"}},"204":{"description":"No content","schema":{"$ref":"#/definitions/ResponseEntity"}},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"No resources found for specified user id"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false}},"/patient/{userId}/careplan/{carePlanId}/participant/user/{medrecordUserId}":{"delete":{"tags":["Care Plan"],"summary":"Delete care team member's data.","operationId":"deleteCarePlanParticipantByUserIdUsingDELETE","parameters":[{"name":"carePlanId","in":"path","description":"Care Plan ID","required":true,"type":"string"},{"name":"medrecordUserId","in":"path","description":"medrecord user id if user is a Patient or Doctor in the Network of Patient","required":true,"type":"string"},{"name":"userId","in":"path","description":"Platform user id (UUID)","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ResponseEntity"}},"204":{"description":"No content","schema":{"$ref":"#/definitions/ResponseEntity"}},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"No resources found for specified user id"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false}},"/patient/{userId}/careplan/{carePlanId}/participant/user/{platformUserId}":{"put":{"tags":["Care Plan"],"summary":"Update care team member's data.","operationId":"updateCarePlanParticipantByUserIdUsingPUT","consumes":["application/json"],"parameters":[{"name":"carePlanId","in":"path","description":"Care Plan ID","required":true,"type":"string"},{"in":"body","name":"payload","description":"Role payload","required":true,"schema":{"$ref":"#/definitions/RolePayload"}},{"name":"platformUserId","in":"path","description":"medrecord user id if user is a Patient or Doctor in the Network of Patient","required":true,"type":"string"},{"name":"userId","in":"path","description":"Platform user id (UUID)","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ResponseEntity"}},"201":{"description":"Created"},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"No resources found for specified user id"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false}},"/patient/{userId}/careplan/{id}":{"get":{"tags":["Care Plan"],"summary":"This endpoint is designed to get existing CarePlan's main data by Patient - subject of CarePlan - and other Patients mentioned in CareTeam field of a CarePlan (CareTeam will contain list of patients allowed to see this CarePlan)","operationId":"getUsingGET_2","parameters":[{"name":"id","in":"path","description":"Care Plan ID","required":true,"type":"string","x-example":"1"},{"name":"userId","in":"path","description":"Platform user id (UUID)","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/CarePlanPayload"}},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"No resources found for specified user id"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false},"put":{"tags":["Care Plan"],"summary":"This endpoint is designed to update an existing patient CarePlan.","operationId":"updateUsingPUT_11","consumes":["application/json"],"parameters":[{"name":"id","in":"path","description":"Care Plan ID","required":true,"type":"string","x-example":"1"},{"in":"body","name":"payload","description":"Care plan payload","required":true,"schema":{"$ref":"#/definitions/CarePlanPayload"}},{"name":"userId","in":"path","description":"Platform user id (UUID)","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ResponseEntity"}},"201":{"description":"Created"},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"No resources found for specified user id"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false},"delete":{"tags":["Care Plan"],"summary":"This endpoint is designed to delete an existing patient CarePlan.","operationId":"deleteUsingDELETE_2","parameters":[{"name":"id","in":"path","description":"Care Plan ID","required":true,"type":"string","x-example":"1"},{"name":"userId","in":"path","description":"Platform user id (UUID)","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ResponseEntity"}},"204":{"description":"No Content"},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"No resources found for specified user id"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false}},"/patient/{userId}/condition":{"get":{"tags":["Condition"],"summary":"This endpoint returns list of existing conditions of patient.","operationId":"listUsingGET_4","parameters":[{"name":"count","in":"query","description":"Max number of values to return","required":false,"type":"integer","format":"int32","allowEmptyValue":false},{"name":"mode","in":"query","description":"Sorting mode (ASC, DESC)","required":false,"type":"string","allowEmptyValue":false,"enum":["ASC","DESC"]},{"name":"sort","in":"query","description":"Sorting field","required":false,"type":"string","allowEmptyValue":false,"enum":["NAME","STATUS","TYPE","START_DATE","END_DATE"]},{"name":"start","in":"query","description":"Start index to return","required":false,"type":"integer","format":"int32","allowEmptyValue":false},{"name":"userId","in":"path","description":"Platform user id (UUID)","required":true,"type":"string"}],"responses":{"200":{"description":"Resources are found and returned","schema":{"type":"array","items":{"$ref":"#/definitions/ConditionInfoPayload"}}},"400":{"description":"Parameters are invalid"},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"Specified user id not found"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false},"post":{"tags":["Condition"],"summary":"This endpoint creates a new condition of patient.","operationId":"createUsingPOST_11","consumes":["application/json"],"parameters":[{"in":"body","name":"payload","description":"Condition payload","required":true,"schema":{"$ref":"#/definitions/ConditionPayload"}},{"name":"userId","in":"path","description":"Platform user id (UUID)","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ConditionPayload"}},"201":{"description":"Resource was successfully created","schema":{"$ref":"#/definitions/ConditionPayload"}},"400":{"description":"Parameters are invalid"},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"No resources found for specified user id"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false}},"/patient/{userId}/condition/count":{"get":{"tags":["Condition"],"summary":"This endpoint returns number of existing conditions of patient.","operationId":"listUsingGET_3","parameters":[{"name":"userId","in":"path","description":"Platform user id (UUID)","required":true,"type":"string"}],"responses":{"200":{"description":"Number of resources returned","schema":{"type":"integer","format":"int32"}},"400":{"description":"Parameters are invalid"},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"Specified user id not found"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false}},"/patient/{userId}/condition/{id}":{"get":{"tags":["Condition"],"summary":"This endpoint returns existing condition of patient.","operationId":"getUsingGET_3","parameters":[{"name":"id","in":"path","description":"Condition id","required":true,"type":"string"},{"name":"userId","in":"path","description":"Platform user id (UUID)","required":true,"type":"string"}],"responses":{"200":{"description":"Resource is found and returned","schema":{"$ref":"#/definitions/ConditionPayload"}},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"Specified user id or condition not found"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false},"put":{"tags":["Condition"],"summary":"This endpoint updates existing condition of patient.","operationId":"updateUsingPUT_12","consumes":["application/json"],"parameters":[{"name":"id","in":"path","description":"Condition id","required":true,"type":"string"},{"in":"body","name":"payload","description":"Condition payload","required":true,"schema":{"$ref":"#/definitions/ConditionPayload"}},{"name":"userId","in":"path","description":"Platform user id (UUID)","required":true,"type":"string"}],"responses":{"200":{"description":"Resource was successfully updated","schema":{"$ref":"#/definitions/ConditionPayload"}},"201":{"description":"Created"},"400":{"description":"Parameters are invalid"},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"Specified user id or condition not found"},"405":{"description":"This condition can't be updated"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false},"delete":{"tags":["Condition"],"summary":"This endpoint deletes existing condition of patient.","operationId":"deleteUsingDELETE_3","parameters":[{"name":"id","in":"path","description":"Condition id","required":true,"type":"string"},{"name":"userId","in":"path","description":"Platform user id (UUID)","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"type":"object"}},"204":{"description":"Resource was successfully deleted","schema":{"type":"object"}},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"Specified user id or condition not found"},"405":{"description":"This condition can't be deleted"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false}},"/patient/{userId}/device":{"get":{"tags":["Device Observation"],"summary":"${medsafe.patient.observation.device.list}","operationId":"listUsingGET_5","parameters":[{"name":"observationType","in":"query","description":"${medsafe.patient.observation.type}","required":true,"type":"string","allowEmptyValue":false,"enum":["BLOOD_PRESSURE","BODY_WEIGHT","BODY_HEIGHT","BODY_TEMPERATURE","HEART_RATE","PULSE_RATE","OXYGEN_SATURATION","BLOOD_GLUCOSE","ALCOHOL_USE","TOBACCO_USE","DRUG_USE","LIVING_SITUATION","FAMILY_SITUATION","PARTICIPATION_IN_SOCIETY","FUNCTIONAL_OR_MENTAL_STATUS","LABORATORY_TEST_RESULT","WAIST_CIRCUMFERENCE","HEMOGLOBIN","WAIST_HEIGHT_RATIO","BODY_MASS_INDEX","ECG","GP_JOURNAL_ENTRY","GENERIC","C_PEPTIDE","RESPIRATORY_RATE","STEP_COUNTER","HEART_MINUTES","SLEEPING","BODY_FAT_PERCENTAGE","BASAL_METABOLIC_RATE","ACTIVE_MINUTES","QUANTITY","SIX_MINUTES_WALKING","TIMED_UP_AND_GO","COGNITIVE_MOTOR","GAIT_SPEED","BALANCE","EXECUTIVE_FUNCTION","PROCESSING_SPEED","ATTENTION","WORKING_MEMORY","EPISODIC_MEMORY","LONG_TERM_STRESS","SHORT_TERM_STRESS","HBA1C"]},{"name":"searchText","in":"query","description":"${medsafe.patient.observation.device.text}","required":false,"type":"string","allowEmptyValue":false},{"name":"userId","in":"path","description":"Platform user id (UUID)","required":true,"type":"string"}],"responses":{"200":{"description":"Resources are found and returned","schema":{"type":"array","items":{"$ref":"#/definitions/DeviceObservationPayload"}}},"400":{"description":"Parameters are invalid"},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"No resources found for specified user id"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false}},"/patient/{userId}/diagnosis":{"get":{"tags":["Diagnosis"],"summary":"${medsafe.patient.diagnosis.getList}","operationId":"listUsingGET_6","parameters":[{"name":"count","in":"query","description":"Count of items per page","required":false,"type":"integer","default":50,"format":"int32","allowEmptyValue":false},{"name":"start","in":"query","description":"Start index","required":false,"type":"integer","default":0,"format":"int32","allowEmptyValue":false},{"name":"userId","in":"path","description":"userId","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/TableResponsePayload"}},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"No resources found for specified id"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false},"post":{"tags":["Diagnosis"],"summary":"{medsafe.patient.diagnosis.create}","operationId":"createUsingPOST_13","consumes":["application/json"],"parameters":[{"in":"body","name":"payload","description":"payload","required":true,"schema":{"$ref":"#/definitions/DiagnosticReportPayload"}},{"name":"userId","in":"path","description":"userId","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ResourceCreateResponse"}},"201":{"description":"Created","schema":{"$ref":"#/definitions/ResourceCreateResponse"}},"400":{"description":"Bad request"},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"No resources found for specified user id"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false}},"/patient/{userId}/diagnosis/{diagnosticReportId}":{"get":{"tags":["Diagnosis"],"summary":"${medsafe.patient.diagnosis.get}","operationId":"getUsingGET_5","parameters":[{"name":"diagnosticReportId","in":"path","description":"diagnosticReportId","required":true,"type":"string"},{"name":"userId","in":"path","description":"userId","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/DiagnosticReportPayload"}},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"No resources found for specified id"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false},"put":{"tags":["Diagnosis"],"summary":"{medsafe.patient.diagnosis.update","operationId":"updateUsingPUT_14","consumes":["application/json"],"parameters":[{"name":"diagnosticReportId","in":"path","description":"diagnosticReportId","required":true,"type":"string"},{"in":"body","name":"payload","description":"payload","required":true,"schema":{"$ref":"#/definitions/DiagnosticReportPayload"}},{"name":"userId","in":"path","description":"userId","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ResponseEntity"}},"201":{"description":"Created"},"204":{"description":"No content","schema":{"$ref":"#/definitions/ResponseEntity"}},"400":{"description":"Bad request"},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"No resources found for specified user id"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false}},"/patient/{userId}/goal":{"get":{"tags":["Care Plan Goal"],"summary":"This endpoint is designed to get a collection of the goals from CarePlan.","operationId":"searchAllGoalsUsingGET","parameters":[{"name":"status","in":"query","description":"status for filtering - ACTIVE or COMPLETED","required":false,"type":"string","allowEmptyValue":false},{"name":"userId","in":"path","description":"Platform user id (UUID)","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"type":"array","items":{"$ref":"#/definitions/GoalPayload"}}},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"No resources found for specified user id"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false}},"/patient/{userId}/immunization":{"get":{"tags":["Immunization"],"summary":"This endpoint returns list of existing immunizations of patient.","operationId":"listUsingGET_8","parameters":[{"name":"count","in":"query","description":"Max number of values to return","required":false,"type":"integer","format":"int32","allowEmptyValue":false},{"name":"mode","in":"query","description":"Sorting mode (ASC, DESC)","required":false,"type":"string","allowEmptyValue":false,"enum":["ASC","DESC"]},{"name":"sort","in":"query","description":"Sorting field","required":false,"type":"string","allowEmptyValue":false,"enum":["NAME","TYPE","DATE","REVACCINATIONDATE","DOSESCOUNT","TOTALREACTIONSCOUNT"]},{"name":"start","in":"query","description":"Start index to return","required":false,"type":"integer","format":"int32","allowEmptyValue":false},{"name":"userId","in":"path","description":"Platform user id (UUID)","required":true,"type":"string"}],"responses":{"200":{"description":"Resources are found and returned","schema":{"type":"array","items":{"$ref":"#/definitions/ImmunizationInfoPayload"}}},"400":{"description":"Parameters are invalid"},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"Specified user id not found"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false},"post":{"tags":["Immunization"],"summary":"This endpoint creates a new immunization of patient.","operationId":"createUsingPOST_20","consumes":["application/json"],"parameters":[{"in":"body","name":"payload","description":"Immunization payload","required":true,"schema":{"$ref":"#/definitions/ImmunizationPayload"}},{"name":"userId","in":"path","description":"Platform user id (UUID)","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ImmunizationPayload"}},"201":{"description":"Resource was successfully created","schema":{"$ref":"#/definitions/ImmunizationPayload"}},"400":{"description":"Parameters are invalid"},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"No resources found for specified user id"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false}},"/patient/{userId}/immunization/count":{"get":{"tags":["Immunization"],"summary":"This endpoint returns number of existing immunizations of patient.","operationId":"countUsingGET_5","parameters":[{"name":"userId","in":"path","description":"Platform user id (UUID)","required":true,"type":"string"}],"responses":{"200":{"description":"Number of resources returned","schema":{"type":"integer","format":"int32"}},"400":{"description":"Parameters are invalid"},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"Specified user id not found"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false}},"/patient/{userId}/immunization/location":{"get":{"tags":["Immunization"],"summary":"This endpoint returns list of unique locations used by a patient in immunizations.","operationId":"getLocationsUsingGET","parameters":[{"name":"userId","in":"path","description":"Platform user id (UUID)","required":true,"type":"string"}],"responses":{"200":{"description":"Locations were returned","schema":{"type":"array","items":{"$ref":"#/definitions/ImmunizationLocationPayload"}}},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"Specified user id not found"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false}},"/patient/{userId}/immunization/{id}":{"get":{"tags":["Immunization"],"summary":"This endpoint returns existing immunization of patient.","operationId":"getUsingGET_7","parameters":[{"name":"id","in":"path","description":"Immunization id","required":true,"type":"string"},{"name":"userId","in":"path","description":"Platform user id (UUID)","required":true,"type":"string"}],"responses":{"200":{"description":"Resource is found and returned","schema":{"$ref":"#/definitions/ImmunizationPayload"}},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"Specified user id or immunization not found"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false},"put":{"tags":["Immunization"],"summary":"This endpoint updates existing immunization of patient.","operationId":"updateUsingPUT_19","consumes":["application/json"],"parameters":[{"name":"id","in":"path","description":"Immunization id","required":true,"type":"string"},{"in":"body","name":"payload","description":"Immunization payload","required":true,"schema":{"$ref":"#/definitions/ImmunizationPayload"}},{"name":"userId","in":"path","description":"Platform user id (UUID)","required":true,"type":"string"}],"responses":{"200":{"description":"Resource was successfully updated","schema":{"$ref":"#/definitions/ImmunizationPayload"}},"201":{"description":"Created"},"400":{"description":"Parameters are invalid"},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"Specified user id or immunization not found"},"405":{"description":"This immunization can't be updated"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false},"delete":{"tags":["Immunization"],"summary":"This endpoint deletes existing immunization of patient.","operationId":"deleteUsingDELETE_5","parameters":[{"name":"id","in":"path","description":"Immunization id","required":true,"type":"string"},{"name":"userId","in":"path","description":"Platform user id (UUID)","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"type":"object"}},"204":{"description":"Resource was successfully deleted","schema":{"type":"object"}},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"Specified user id or immunization not found"},"405":{"description":"This immunization can't be deleted"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false}},"/patient/{userId}/medication":{"get":{"tags":["Medication"],"summary":"This endpoint returns list of existing medications of patient.","operationId":"listUsingGET_11","parameters":[{"name":"count","in":"query","description":"Max number of values to return","required":false,"type":"integer","format":"int32","allowEmptyValue":false},{"name":"mode","in":"query","description":"Sorting mode (ASC, DESC)","required":false,"type":"string","allowEmptyValue":false,"enum":["ASC","DESC"]},{"name":"sort","in":"query","description":"Sorting field","required":false,"type":"string","allowEmptyValue":false,"enum":["NAME","FORM","DOSAGE_INSTRUCTION","STATUS_PERIOD","CONDITION_COUNT"]},{"name":"start","in":"query","description":"Start index to return","required":false,"type":"integer","format":"int32","allowEmptyValue":false},{"name":"userId","in":"path","description":"Platform user id (UUID)","required":true,"type":"string"}],"responses":{"200":{"description":"Resources are found and returned","schema":{"type":"array","items":{"$ref":"#/definitions/MedicationInfoPayload"}}},"400":{"description":"Parameters are invalid"},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"Specified user id not found"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false},"post":{"tags":["Medication"],"summary":"This endpoint creates a new medication of patient.","operationId":"createUsingPOST_22","consumes":["application/json"],"parameters":[{"in":"body","name":"payload","description":"Medication payload","required":true,"schema":{"$ref":"#/definitions/MedicationPayload"}},{"name":"userId","in":"path","description":"Platform user id (UUID)","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/MedicationPayload"}},"201":{"description":"Resource was successfully created","schema":{"$ref":"#/definitions/MedicationPayload"}},"400":{"description":"Parameters are invalid"},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"No resources found for specified user id"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false}},"/patient/{userId}/medication/count":{"get":{"tags":["Medication"],"summary":"This endpoint returns number of existing medications of patient.","operationId":"countUsingGET_6","parameters":[{"name":"userId","in":"path","description":"Platform user id (UUID)","required":true,"type":"string"}],"responses":{"200":{"description":"Number of resources returned","schema":{"type":"integer","format":"int32"}},"400":{"description":"Parameters are invalid"},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"Specified user id not found"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false}},"/patient/{userId}/medication/{id}":{"get":{"tags":["Medication"],"summary":"This endpoint returns existing medication of patient.","operationId":"getUsingGET_9","parameters":[{"name":"id","in":"path","description":"Medication id","required":true,"type":"string"},{"name":"userId","in":"path","description":"Platform user id (UUID)","required":true,"type":"string"}],"responses":{"200":{"description":"Resource is found and returned","schema":{"$ref":"#/definitions/MedicationPayload"}},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"Specified user id or medication not found"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false},"put":{"tags":["Medication"],"summary":"This endpoint updates existing medication of patient.","operationId":"updateUsingPUT_21","consumes":["application/json"],"parameters":[{"name":"id","in":"path","description":"Medication id","required":true,"type":"string"},{"in":"body","name":"payload","description":"Medication payload","required":true,"schema":{"$ref":"#/definitions/MedicationPayload"}},{"name":"userId","in":"path","description":"Platform user id (UUID)","required":true,"type":"string"}],"responses":{"200":{"description":"Resource was successfully updated","schema":{"$ref":"#/definitions/MedicationPayload"}},"201":{"description":"Created"},"400":{"description":"Parameters are invalid"},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"Specified user id or medication not found"},"405":{"description":"This medication can't be updated"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false},"delete":{"tags":["Medication"],"summary":"This endpoint deletes existing medication of patient.","operationId":"deleteUsingDELETE_7","parameters":[{"name":"id","in":"path","description":"Medication id","required":true,"type":"string"},{"name":"userId","in":"path","description":"Platform user id (UUID)","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"type":"object"}},"204":{"description":"Resource was successfully deleted","schema":{"type":"object"}},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"Specified user id or medication not found"},"405":{"description":"This medication can't be deleted"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false}},"/patient/{userId}/observation/activeMinutes":{"get":{"tags":["Observation"],"summary":"${medsafe.observation.active.minutes.list}","description":"${medsafe.observation.active.minutes.list.notes}","operationId":"loadListUsingGET","parameters":[{"name":"count","in":"query","description":"maximum number of results","required":false,"type":"integer","default":10,"format":"int32","allowEmptyValue":false,"x-example":10},{"name":"periodEnd","in":"query","description":"The end period of filtering","required":false,"type":"string","format":"date-time","allowEmptyValue":false},{"name":"periodStart","in":"query","description":"The start period of filtering","required":false,"type":"string","format":"date-time","allowEmptyValue":false},{"name":"start","in":"query","description":"start index to return (0+)","required":false,"type":"integer","default":0,"format":"int32","allowEmptyValue":false,"x-example":0},{"name":"userId","in":"path","description":"Platform user id (UUID)","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"type":"array","items":{"$ref":"#/definitions/ActiveMinutesObservationPayload"}}},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"No resources found for specified id"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false},"post":{"tags":["Observation"],"summary":"${medsafe.observation.active.minutes.create}","description":"${medsafe.observation.active.minutes.create.notes}","operationId":"createUsingPOST","consumes":["application/json"],"parameters":[{"in":"body","name":"request","description":"${medsafe.observation.active.minutes.request}","required":true,"schema":{"$ref":"#/definitions/ActiveMinutesObservationRequest"}},{"name":"userId","in":"path","description":"Platform user id (UUID)","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ResourceCreateResponse"}},"201":{"description":"Created","schema":{"$ref":"#/definitions/ResourceCreateResponse"}},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"No resources found for specified id"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false}},"/patient/{userId}/observation/activeMinutes/careplan/{carePlanId}":{"get":{"tags":["Observation"],"summary":"${medsafe.observation.active.minutes.careplan.list}","description":"${medsafe.observation.active.minutes.careplan.list.notes}","operationId":"loadCarePlanListUsingGET","parameters":[{"name":"carePlanId","in":"path","description":"Care Plan ID","required":true,"type":"string"},{"name":"count","in":"query","description":"maximum number of results","required":false,"type":"integer","default":10,"format":"int32","allowEmptyValue":false,"x-example":10},{"name":"periodEnd","in":"query","description":"The end period of filtering","required":false,"type":"string","format":"date-time","allowEmptyValue":false},{"name":"periodStart","in":"query","description":"The start period of filtering","required":false,"type":"string","format":"date-time","allowEmptyValue":false},{"name":"start","in":"query","description":"start index to return (0+)","required":false,"type":"integer","default":0,"format":"int32","allowEmptyValue":false,"x-example":0},{"name":"userId","in":"path","description":"Platform user id (UUID)","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"type":"array","items":{"$ref":"#/definitions/ActiveMinutesObservationPayload"}}},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"No resources found for specified id"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false}},"/patient/{userId}/observation/activeMinutes/careplan/{carePlanId}/":{"post":{"tags":["Observation"],"summary":"${medsafe.observation.active.minutes.careplan.link.all}","operationId":"linkToCarePlanUsingPOST","consumes":["application/json"],"parameters":[{"name":"carePlanId","in":"path","description":"Care Plan ID","required":true,"type":"string"},{"name":"userId","in":"path","description":"Platform user id (UUID)","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ResponseEntity"}},"201":{"description":"Created"},"204":{"description":"No content","schema":{"$ref":"#/definitions/ResponseEntity"}},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"No resources found for specified id"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false},"delete":{"tags":["Observation"],"summary":"${medsafe.observation.active.minutes.careplan.unlink.all}","operationId":"unlinkToCarePlanUsingDELETE","parameters":[{"name":"carePlanId","in":"path","description":"Care Plan ID","required":true,"type":"string"},{"name":"userId","in":"path","description":"Platform user id (UUID)","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ResponseEntity"}},"204":{"description":"No content","schema":{"$ref":"#/definitions/ResponseEntity"}},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"No resources found for specified id"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false}},"/patient/{userId}/observation/activeMinutes/careplan/{carePlanId}/count":{"get":{"tags":["Observation"],"summary":"${medsafe.observation.active.minutes.careplan.count}","description":"${medsafe.observation.active.minutes.careplan.count.notes}","operationId":"getCarePlanObservationsCountUsingGET","parameters":[{"name":"carePlanId","in":"path","description":"Care Plan ID","required":true,"type":"string"},{"name":"periodEnd","in":"query","description":"The end period of filtering","required":false,"type":"string","format":"date-time","allowEmptyValue":false},{"name":"periodStart","in":"query","description":"The start period of filtering","required":false,"type":"string","format":"date-time","allowEmptyValue":false},{"name":"userId","in":"path","description":"Platform user id (UUID)","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/CountPayload"}},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"No resources found for specified id"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false}},"/patient/{userId}/observation/activeMinutes/count":{"get":{"tags":["Observation"],"summary":"${medsafe.observation.active.minutes.count}","description":"${medsafe.observation.active.minutes.count.notes}","operationId":"getCountUsingGET","parameters":[{"name":"periodEnd","in":"query","description":"The end period of filtering","required":false,"type":"string","format":"date-time","allowEmptyValue":false},{"name":"periodStart","in":"query","description":"The start period of filtering","required":false,"type":"string","format":"date-time","allowEmptyValue":false},{"name":"userId","in":"path","description":"Platform user id (UUID)","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/CountPayload"}},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"No resources found for specified id"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false}},"/patient/{userId}/observation/basalMetabolicRate":{"get":{"tags":["Observation"],"summary":"${medsafe.observation.basal.metabolic.rate.list}","description":"${medsafe.observation.basal.metabolic.rate.list.notes}","operationId":"loadListUsingGET_1","parameters":[{"name":"count","in":"query","description":"maximum number of results","required":false,"type":"integer","default":10,"format":"int32","allowEmptyValue":false,"x-example":10},{"name":"periodEnd","in":"query","description":"The end period of filtering","required":false,"type":"string","format":"date-time","allowEmptyValue":false},{"name":"periodStart","in":"query","description":"The start period of filtering","required":false,"type":"string","format":"date-time","allowEmptyValue":false},{"name":"start","in":"query","description":"start index to return (0+)","required":false,"type":"integer","default":0,"format":"int32","allowEmptyValue":false,"x-example":0},{"name":"userId","in":"path","description":"Platform user id (UUID)","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"type":"array","items":{"$ref":"#/definitions/BasalMetabolicRateObservationPayload"}}},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"No resources found for specified id"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false},"post":{"tags":["Observation"],"summary":"${medsafe.observation.basal.metabolic.rate.create}","description":"${medsafe.observation.basal.metabolic.rate.create.notes}","operationId":"createUsingPOST_2","consumes":["application/json"],"parameters":[{"in":"body","name":"request","description":"${medsafe.observation.basal.metabolic.rate.request}","required":true,"schema":{"$ref":"#/definitions/BasalMetabolicRateObservationRequest"}},{"name":"userId","in":"path","description":"Platform user id (UUID)","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ResourceCreateResponse"}},"201":{"description":"Created","schema":{"$ref":"#/definitions/ResourceCreateResponse"}},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"No resources found for specified id"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false}},"/patient/{userId}/observation/basalMetabolicRate/careplan/{carePlanId}":{"get":{"tags":["Observation"],"summary":"${medsafe.observation.basal.metabolic.rate.careplan.list}","description":"${medsafe.observation.basal.metabolic.rate.careplan.list.notes}","operationId":"loadCarePlanListUsingGET_1","parameters":[{"name":"carePlanId","in":"path","description":"Care Plan ID","required":true,"type":"string"},{"name":"count","in":"query","description":"maximum number of results","required":false,"type":"integer","default":10,"format":"int32","allowEmptyValue":false,"x-example":10},{"name":"periodEnd","in":"query","description":"The end period of filtering","required":false,"type":"string","format":"date-time","allowEmptyValue":false},{"name":"periodStart","in":"query","description":"The start period of filtering","required":false,"type":"string","format":"date-time","allowEmptyValue":false},{"name":"start","in":"query","description":"start index to return (0+)","required":false,"type":"integer","default":0,"format":"int32","allowEmptyValue":false,"x-example":0},{"name":"userId","in":"path","description":"Platform user id (UUID)","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"type":"array","items":{"$ref":"#/definitions/BasalMetabolicRateObservationPayload"}}},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"No resources found for specified id"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false}},"/patient/{userId}/observation/basalMetabolicRate/careplan/{carePlanId}/":{"post":{"tags":["Observation"],"summary":"${medsafe.observation.basal.metabolic.rate.careplan.link.all}","operationId":"linkToCarePlanUsingPOST_1","consumes":["application/json"],"parameters":[{"name":"carePlanId","in":"path","description":"Care Plan ID","required":true,"type":"string"},{"name":"userId","in":"path","description":"Platform user id (UUID)","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ResponseEntity"}},"201":{"description":"Created"},"204":{"description":"No content","schema":{"$ref":"#/definitions/ResponseEntity"}},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"No resources found for specified id"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false},"delete":{"tags":["Observation"],"summary":"${medsafe.observation.basal.metabolic.rate.careplan.unlink.all}","operationId":"unlinkToCarePlanUsingDELETE_1","parameters":[{"name":"carePlanId","in":"path","description":"Care Plan ID","required":true,"type":"string"},{"name":"userId","in":"path","description":"Platform user id (UUID)","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ResponseEntity"}},"204":{"description":"No content","schema":{"$ref":"#/definitions/ResponseEntity"}},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"No resources found for specified id"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false}},"/patient/{userId}/observation/basalMetabolicRate/careplan/{carePlanId}/count":{"get":{"tags":["Observation"],"summary":"${medsafe.observation.basal.metabolic.rate.careplan.count}","description":"${medsafe.observation.basal.metabolic.rate.careplan.count.notes}","operationId":"getCarePlanObservationsCountUsingGET_1","parameters":[{"name":"carePlanId","in":"path","description":"Care Plan ID","required":true,"type":"string"},{"name":"periodEnd","in":"query","description":"The end period of filtering","required":false,"type":"string","format":"date-time","allowEmptyValue":false},{"name":"periodStart","in":"query","description":"The start period of filtering","required":false,"type":"string","format":"date-time","allowEmptyValue":false},{"name":"userId","in":"path","description":"Platform user id (UUID)","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/CountPayload"}},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"No resources found for specified id"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false}},"/patient/{userId}/observation/basalMetabolicRate/count":{"get":{"tags":["Observation"],"summary":"${medsafe.observation.basal.metabolic.rate.count}","description":"${medsafe.observation.basal.metabolic.rate.count.notes}","operationId":"getCountUsingGET_1","parameters":[{"name":"periodEnd","in":"query","description":"The end period of filtering","required":false,"type":"string","format":"date-time","allowEmptyValue":false},{"name":"periodStart","in":"query","description":"The start period of filtering","required":false,"type":"string","format":"date-time","allowEmptyValue":false},{"name":"userId","in":"path","description":"Platform user id (UUID)","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/CountPayload"}},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"No resources found for specified id"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false}},"/patient/{userId}/observation/bloodGlucose":{"get":{"tags":["Observation"],"summary":"Retrive a list with optional pagination of BloodGlucose Vital Signs for provided user","description":"The server will check is there access to load a list of observations. The owner of observation can be a patient or person. Peopele of the same care team can fetch a list of observations. The user with MANAGE_ACCOUNT can fetch a list of observations which are own by person why garantied access for it to user.","operationId":"loadListUsingGET_2","parameters":[{"name":"count","in":"query","description":"maximum number of results","required":false,"type":"integer","default":10,"format":"int32","allowEmptyValue":false,"x-example":10},{"name":"periodEnd","in":"query","description":"The end period of filtering","required":false,"type":"string","format":"date-time","allowEmptyValue":false},{"name":"periodStart","in":"query","description":"The start period of filtering","required":false,"type":"string","format":"date-time","allowEmptyValue":false},{"name":"start","in":"query","description":"start index to return (0+)","required":false,"type":"integer","default":0,"format":"int32","allowEmptyValue":false,"x-example":0},{"name":"userId","in":"path","description":"Platform user id (UUID)","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"type":"array","items":{"$ref":"#/definitions/BloodGlucoseObservationPayload"}}},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"No resources found for specified id"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false},"post":{"tags":["Observation"],"summary":"Create an BloodGlucose Vital Sign and link one to provided user","description":"The server will check is there access to create an observation and link it to provided user. The owner of observation can be a patient or person. Peopele of the same care team can create an observation and link it to provided user. The user with MANAGE_ACCOUNT can create an observation and link it to provided user why garantied access for it to user.","operationId":"createUsingPOST_3","consumes":["application/json"],"parameters":[{"in":"body","name":"request","description":"The request payload for create or update BloodGlucose Vital Sign. The validation rules will be applied on the server","required":true,"schema":{"$ref":"#/definitions/BloodGlucoseObservationRequest"}},{"name":"userId","in":"path","description":"Platform user id (UUID)","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ResourceCreateResponse"}},"201":{"description":"Created","schema":{"$ref":"#/definitions/ResourceCreateResponse"}},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"No resources found for specified id"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false}},"/patient/{userId}/observation/bloodGlucose/careplan/{carePlanId}":{"get":{"tags":["Observation"],"summary":"Retrive a list with optional pagination of BloodGlucose Vital Signs for provided user and which are related to provided care plan.","description":"The server will check is there access to load a list of observations which are related to provided care plan. The owner of observation can be a patient or person. Peopele of the same care team can fetch a list of observations. The user with MANAGE_ACCOUNT can fetch a list of observations which are own by person why garantied access for it to user.","operationId":"loadCarePlanListUsingGET_2","parameters":[{"name":"carePlanId","in":"path","description":"Care Plan ID","required":true,"type":"string"},{"name":"count","in":"query","description":"maximum number of results","required":false,"type":"integer","default":10,"format":"int32","allowEmptyValue":false,"x-example":10},{"name":"periodEnd","in":"query","description":"The end period of filtering","required":false,"type":"string","format":"date-time","allowEmptyValue":false},{"name":"periodStart","in":"query","description":"The start period of filtering","required":false,"type":"string","format":"date-time","allowEmptyValue":false},{"name":"start","in":"query","description":"start index to return (0+)","required":false,"type":"integer","default":0,"format":"int32","allowEmptyValue":false,"x-example":0},{"name":"userId","in":"path","description":"Platform user id (UUID)","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"type":"array","items":{"$ref":"#/definitions/BloodGlucoseObservationPayload"}}},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"No resources found for specified id"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false}},"/patient/{userId}/observation/bloodGlucose/careplan/{carePlanId}/":{"post":{"tags":["Observation"],"summary":"Link all BloodGlucose Vital Sign for provided user which are related to certain care plan","operationId":"linkToCarePlanUsingPOST_2","consumes":["application/json"],"parameters":[{"name":"carePlanId","in":"path","description":"Care Plan ID","required":true,"type":"string"},{"name":"userId","in":"path","description":"Platform user id (UUID)","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ResponseEntity"}},"201":{"description":"Created"},"204":{"description":"No content","schema":{"$ref":"#/definitions/ResponseEntity"}},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"No resources found for specified id"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false},"delete":{"tags":["Observation"],"summary":"Unlink all BloodGlucose Vital Sign for provided user which are related to certain care plan","operationId":"unlinkToCarePlanUsingDELETE_2","parameters":[{"name":"carePlanId","in":"path","description":"Care Plan ID","required":true,"type":"string"},{"name":"userId","in":"path","description":"Platform user id (UUID)","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ResponseEntity"}},"204":{"description":"No content","schema":{"$ref":"#/definitions/ResponseEntity"}},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"No resources found for specified id"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false}},"/patient/{userId}/observation/bloodGlucose/careplan/{carePlanId}/count":{"get":{"tags":["Observation"],"summary":"Retrive a count of all BloodGlucose Vital Sign for provided user which are related to certain care plan","description":"The server will check is there access to load count of observations which are related to certain care plan. The owner of observation can be a patient or person. Peopele of the same care team can fetch count of observations. The user with MANAGE_ACCOUNT can fetch the count observations which are own by person why garantied access for it to user.","operationId":"getCarePlanObservationsCountUsingGET_2","parameters":[{"name":"carePlanId","in":"path","description":"Care Plan ID","required":true,"type":"string"},{"name":"periodEnd","in":"query","description":"The end period of filtering","required":false,"type":"string","format":"date-time","allowEmptyValue":false},{"name":"periodStart","in":"query","description":"The start period of filtering","required":false,"type":"string","format":"date-time","allowEmptyValue":false},{"name":"userId","in":"path","description":"Platform user id (UUID)","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/CountPayload"}},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"No resources found for specified id"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false}},"/patient/{userId}/observation/bloodGlucose/count":{"get":{"tags":["Observation"],"summary":"Retrive a count of all BloodGlucose Vital Sign for provided user","description":"The server will check is there access to load count of observations. The owner of observation can be a patient or person. Peopele of the same care team can fetch count of observations. The user with MANAGE_ACCOUNT can fetch the count observations which are own by person why garantied access for it to user.","operationId":"getCountUsingGET_2","parameters":[{"name":"periodEnd","in":"query","description":"The end period of filtering","required":false,"type":"string","format":"date-time","allowEmptyValue":false},{"name":"periodStart","in":"query","description":"The start period of filtering","required":false,"type":"string","format":"date-time","allowEmptyValue":false},{"name":"userId","in":"path","description":"Platform user id (UUID)","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/CountPayload"}},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"No resources found for specified id"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false}},"/patient/{userId}/observation/bloodPressure":{"get":{"tags":["Observation"],"summary":"Retrive a list with optional pagination of BloodPressure Vital Signs for provided user","description":"The server will check is there access to load a list of observations. The owner of observation can be a patient or person. Peopele of the same care team can fetch a list of observations. The user with MANAGE_ACCOUNT can fetch a list of observations which are own by person why garantied access for it to user.","operationId":"loadListUsingGET_3","parameters":[{"name":"count","in":"query","description":"maximum number of results","required":false,"type":"integer","default":10,"format":"int32","allowEmptyValue":false,"x-example":10},{"name":"periodEnd","in":"query","description":"The end period of filtering","required":false,"type":"string","format":"date-time","allowEmptyValue":false},{"name":"periodStart","in":"query","description":"The start period of filtering","required":false,"type":"string","format":"date-time","allowEmptyValue":false},{"name":"start","in":"query","description":"start index to return (0+)","required":false,"type":"integer","default":0,"format":"int32","allowEmptyValue":false,"x-example":0},{"name":"userId","in":"path","description":"Platform user id (UUID)","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"type":"array","items":{"$ref":"#/definitions/BloodPressureObservationPayload"}}},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"No resources found for specified id"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false},"post":{"tags":["Observation"],"summary":"Create an BloodPressure Vital Sign and link one to provided user","description":"The server will check is there access to create an observation and link it to provided user. The owner of observation can be a patient or person. Peopele of the same care team can create an observation and link it to provided user. The user with MANAGE_ACCOUNT can create an observation and link it to provided user why garantied access for it to user.","operationId":"createUsingPOST_4","consumes":["application/json"],"parameters":[{"in":"body","name":"request","description":"The request payload for create or update BloodPressure Vital Sign. The validation rules will be applied on the server","required":true,"schema":{"$ref":"#/definitions/BloodPressureObservationRequest"}},{"name":"userId","in":"path","description":"Platform user id (UUID)","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ResourceCreateResponse"}},"201":{"description":"Created","schema":{"$ref":"#/definitions/ResourceCreateResponse"}},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"No resources found for specified id"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false}},"/patient/{userId}/observation/bloodPressure/careplan/{carePlanId}":{"get":{"tags":["Observation"],"summary":"Retrive a list with optional pagination of BloodPressure Vital Signs for provided user and which are related to provided care plan.","description":"The server will check is there access to load a list of observations which are related to provided care plan. The owner of observation can be a patient or person. Peopele of the same care team can fetch a list of observations. The user with MANAGE_ACCOUNT can fetch a list of observations which are own by person why garantied access for it to user.","operationId":"loadCarePlanListUsingGET_3","parameters":[{"name":"carePlanId","in":"path","description":"Care Plan ID","required":true,"type":"string"},{"name":"count","in":"query","description":"maximum number of results","required":false,"type":"integer","default":10,"format":"int32","allowEmptyValue":false,"x-example":10},{"name":"periodEnd","in":"query","description":"The end period of filtering","required":false,"type":"string","format":"date-time","allowEmptyValue":false},{"name":"periodStart","in":"query","description":"The start period of filtering","required":false,"type":"string","format":"date-time","allowEmptyValue":false},{"name":"start","in":"query","description":"start index to return (0+)","required":false,"type":"integer","default":0,"format":"int32","allowEmptyValue":false,"x-example":0},{"name":"userId","in":"path","description":"Platform user id (UUID)","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"type":"array","items":{"$ref":"#/definitions/BloodPressureObservationPayload"}}},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"No resources found for specified id"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false}},"/patient/{userId}/observation/bloodPressure/careplan/{carePlanId}/":{"post":{"tags":["Observation"],"summary":"Link all BloodPressure Vital Sign for provided user which are related to certain care plan","operationId":"linkToCarePlanUsingPOST_3","consumes":["application/json"],"parameters":[{"name":"carePlanId","in":"path","description":"Care Plan ID","required":true,"type":"string"},{"name":"userId","in":"path","description":"Platform user id (UUID)","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ResponseEntity"}},"201":{"description":"Created"},"204":{"description":"No content","schema":{"$ref":"#/definitions/ResponseEntity"}},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"No resources found for specified id"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false},"delete":{"tags":["Observation"],"summary":"Unlink all BloodPressure Vital Sign for provided user which are related to certain care plan","operationId":"unlinkToCarePlanUsingDELETE_3","parameters":[{"name":"carePlanId","in":"path","description":"Care Plan ID","required":true,"type":"string"},{"name":"userId","in":"path","description":"Platform user id (UUID)","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ResponseEntity"}},"204":{"description":"No content","schema":{"$ref":"#/definitions/ResponseEntity"}},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"No resources found for specified id"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false}},"/patient/{userId}/observation/bloodPressure/careplan/{carePlanId}/count":{"get":{"tags":["Observation"],"summary":"Retrive a count of all BloodPressure Vital Sign for provided user which are related to certain care plan","description":"The server will check is there access to load count of observations which are related to certain care plan. The owner of observation can be a patient or person. Peopele of the same care team can fetch count of observations. The user with MANAGE_ACCOUNT can fetch the count observations which are own by person why garantied access for it to user.","operationId":"getCarePlanObservationsCountUsingGET_3","parameters":[{"name":"carePlanId","in":"path","description":"Care Plan ID","required":true,"type":"string"},{"name":"periodEnd","in":"query","description":"The end period of filtering","required":false,"type":"string","format":"date-time","allowEmptyValue":false},{"name":"periodStart","in":"query","description":"The start period of filtering","required":false,"type":"string","format":"date-time","allowEmptyValue":false},{"name":"userId","in":"path","description":"Platform user id (UUID)","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/CountPayload"}},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"No resources found for specified id"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false}},"/patient/{userId}/observation/bloodPressure/count":{"get":{"tags":["Observation"],"summary":"Retrive a count of all BloodPressure Vital Sign for provided user","description":"The server will check is there access to load count of observations. The owner of observation can be a patient or person. Peopele of the same care team can fetch count of observations. The user with MANAGE_ACCOUNT can fetch the count observations which are own by person why garantied access for it to user.","operationId":"getCountUsingGET_3","parameters":[{"name":"periodEnd","in":"query","description":"The end period of filtering","required":false,"type":"string","format":"date-time","allowEmptyValue":false},{"name":"periodStart","in":"query","description":"The start period of filtering","required":false,"type":"string","format":"date-time","allowEmptyValue":false},{"name":"userId","in":"path","description":"Platform user id (UUID)","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/CountPayload"}},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"No resources found for specified id"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false}},"/patient/{userId}/observation/bodyFatPercentage":{"get":{"tags":["Observation"],"summary":"${medsafe.observation.body.fat.percentage.list}","description":"${medsafe.observation.body.fat.percentage.list.notes}","operationId":"loadListUsingGET_4","parameters":[{"name":"count","in":"query","description":"maximum number of results","required":false,"type":"integer","default":10,"format":"int32","allowEmptyValue":false,"x-example":10},{"name":"periodEnd","in":"query","description":"The end period of filtering","required":false,"type":"string","format":"date-time","allowEmptyValue":false},{"name":"periodStart","in":"query","description":"The start period of filtering","required":false,"type":"string","format":"date-time","allowEmptyValue":false},{"name":"start","in":"query","description":"start index to return (0+)","required":false,"type":"integer","default":0,"format":"int32","allowEmptyValue":false,"x-example":0},{"name":"userId","in":"path","description":"Platform user id (UUID)","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"type":"array","items":{"$ref":"#/definitions/BodyFatPercentageObservationPayload"}}},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"No resources found for specified id"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false},"post":{"tags":["Observation"],"summary":"${medsafe.observation.body.fat.percentage.create}","description":"${medsafe.observation.body.fat.percentage.create.notes}","operationId":"createUsingPOST_5","consumes":["application/json"],"parameters":[{"in":"body","name":"request","description":"${medsafe.observation.body.fat.percentage.request}","required":true,"schema":{"$ref":"#/definitions/BodyFatPercentageObservationRequest"}},{"name":"userId","in":"path","description":"Platform user id (UUID)","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ResourceCreateResponse"}},"201":{"description":"Created","schema":{"$ref":"#/definitions/ResourceCreateResponse"}},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"No resources found for specified id"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false}},"/patient/{userId}/observation/bodyFatPercentage/careplan/{carePlanId}":{"get":{"tags":["Observation"],"summary":"${medsafe.observation.body.fat.percentage.careplan.list}","description":"${medsafe.observation.body.fat.percentage.careplan.list.notes}","operationId":"loadCarePlanListUsingGET_4","parameters":[{"name":"carePlanId","in":"path","description":"Care Plan ID","required":true,"type":"string"},{"name":"count","in":"query","description":"maximum number of results","required":false,"type":"integer","default":10,"format":"int32","allowEmptyValue":false,"x-example":10},{"name":"periodEnd","in":"query","description":"The end period of filtering","required":false,"type":"string","format":"date-time","allowEmptyValue":false},{"name":"periodStart","in":"query","description":"The start period of filtering","required":false,"type":"string","format":"date-time","allowEmptyValue":false},{"name":"start","in":"query","description":"start index to return (0+)","required":false,"type":"integer","default":0,"format":"int32","allowEmptyValue":false,"x-example":0},{"name":"userId","in":"path","description":"Platform user id (UUID)","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"type":"array","items":{"$ref":"#/definitions/BodyFatPercentageObservationPayload"}}},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"No resources found for specified id"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false}},"/patient/{userId}/observation/bodyFatPercentage/careplan/{carePlanId}/":{"post":{"tags":["Observation"],"summary":"${medsafe.observation.body.fat.percentage.careplan.link.all}","operationId":"linkToCarePlanUsingPOST_4","consumes":["application/json"],"parameters":[{"name":"carePlanId","in":"path","description":"Care Plan ID","required":true,"type":"string"},{"name":"userId","in":"path","description":"Platform user id (UUID)","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ResponseEntity"}},"201":{"description":"Created"},"204":{"description":"No content","schema":{"$ref":"#/definitions/ResponseEntity"}},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"No resources found for specified id"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false},"delete":{"tags":["Observation"],"summary":"${medsafe.observation.body.fat.percentage.careplan.unlink.all}","operationId":"unlinkToCarePlanUsingDELETE_4","parameters":[{"name":"carePlanId","in":"path","description":"Care Plan ID","required":true,"type":"string"},{"name":"userId","in":"path","description":"Platform user id (UUID)","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ResponseEntity"}},"204":{"description":"No content","schema":{"$ref":"#/definitions/ResponseEntity"}},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"No resources found for specified id"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false}},"/patient/{userId}/observation/bodyFatPercentage/careplan/{carePlanId}/count":{"get":{"tags":["Observation"],"summary":"${medsafe.observation.body.fat.percentage.careplan.count}","description":"${medsafe.observation.body.fat.percentage.careplan.count.notes}","operationId":"getCarePlanObservationsCountUsingGET_4","parameters":[{"name":"carePlanId","in":"path","description":"Care Plan ID","required":true,"type":"string"},{"name":"periodEnd","in":"query","description":"The end period of filtering","required":false,"type":"string","format":"date-time","allowEmptyValue":false},{"name":"periodStart","in":"query","description":"The start period of filtering","required":false,"type":"string","format":"date-time","allowEmptyValue":false},{"name":"userId","in":"path","description":"Platform user id (UUID)","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/CountPayload"}},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"No resources found for specified id"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false}},"/patient/{userId}/observation/bodyFatPercentage/count":{"get":{"tags":["Observation"],"summary":"${medsafe.observation.body.fat.percentage.count}","description":"${medsafe.observation.body.fat.percentage.count.notes}","operationId":"getCountUsingGET_4","parameters":[{"name":"periodEnd","in":"query","description":"The end period of filtering","required":false,"type":"string","format":"date-time","allowEmptyValue":false},{"name":"periodStart","in":"query","description":"The start period of filtering","required":false,"type":"string","format":"date-time","allowEmptyValue":false},{"name":"userId","in":"path","description":"Platform user id (UUID)","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/CountPayload"}},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"No resources found for specified id"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false}},"/patient/{userId}/observation/bodyHeight":{"get":{"tags":["Observation"],"summary":"Retrive a list with optional pagination of BodyHeight Vital Signs for provided user","description":"The server will check is there access to load a list of observations. The owner of observation can be a patient or person. Peopele of the same care team can fetch a list of observations. The user with MANAGE_ACCOUNT can fetch a list of observations which are own by person why garantied access for it to user.","operationId":"loadListUsingGET_5","parameters":[{"name":"count","in":"query","description":"maximum number of results","required":false,"type":"integer","default":10,"format":"int32","allowEmptyValue":false,"x-example":10},{"name":"periodEnd","in":"query","description":"The end period of filtering","required":false,"type":"string","format":"date-time","allowEmptyValue":false},{"name":"periodStart","in":"query","description":"The start period of filtering","required":false,"type":"string","format":"date-time","allowEmptyValue":false},{"name":"start","in":"query","description":"start index to return (0+)","required":false,"type":"integer","default":0,"format":"int32","allowEmptyValue":false,"x-example":0},{"name":"userId","in":"path","description":"Platform user id (UUID)","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"type":"array","items":{"$ref":"#/definitions/BodyHeightObservationPayload"}}},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"No resources found for specified id"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false},"post":{"tags":["Observation"],"summary":"Create an BodyHeight Vital Sign and link one to provided user","description":"The server will check is there access to create an observation and link it to provided user. The owner of observation can be a patient or person. Peopele of the same care team can create an observation and link it to provided user. The user with MANAGE_ACCOUNT can create an observation and link it to provided user why garantied access for it to user.","operationId":"createUsingPOST_6","consumes":["application/json"],"parameters":[{"in":"body","name":"request","description":"The request payload for create or update BodyHeight Vital Sign. The validation rules will be applied on the server","required":true,"schema":{"$ref":"#/definitions/BodyHeightObservationRequest"}},{"name":"userId","in":"path","description":"Platform user id (UUID)","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ResourceCreateResponse"}},"201":{"description":"Created","schema":{"$ref":"#/definitions/ResourceCreateResponse"}},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"No resources found for specified id"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false}},"/patient/{userId}/observation/bodyHeight/careplan/{carePlanId}":{"get":{"tags":["Observation"],"summary":"Retrive a list with optional pagination of BodyHeight Vital Signs for provided user and which are related to provided care plan.","description":"The server will check is there access to load a list of observations which are related to provided care plan. The owner of observation can be a patient or person. Peopele of the same care team can fetch a list of observations. The user with MANAGE_ACCOUNT can fetch a list of observations which are own by person why garantied access for it to user.","operationId":"loadCarePlanListUsingGET_5","parameters":[{"name":"carePlanId","in":"path","description":"Care Plan ID","required":true,"type":"string"},{"name":"count","in":"query","description":"maximum number of results","required":false,"type":"integer","default":10,"format":"int32","allowEmptyValue":false,"x-example":10},{"name":"periodEnd","in":"query","description":"The end period of filtering","required":false,"type":"string","format":"date-time","allowEmptyValue":false},{"name":"periodStart","in":"query","description":"The start period of filtering","required":false,"type":"string","format":"date-time","allowEmptyValue":false},{"name":"start","in":"query","description":"start index to return (0+)","required":false,"type":"integer","default":0,"format":"int32","allowEmptyValue":false,"x-example":0},{"name":"userId","in":"path","description":"Platform user id (UUID)","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"type":"array","items":{"$ref":"#/definitions/BodyHeightObservationPayload"}}},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"No resources found for specified id"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false}},"/patient/{userId}/observation/bodyHeight/careplan/{carePlanId}/":{"post":{"tags":["Observation"],"summary":"Link all BodyHeight Vital Sign for provided user which are related to certain care plan","operationId":"linkToCarePlanUsingPOST_5","consumes":["application/json"],"parameters":[{"name":"carePlanId","in":"path","description":"Care Plan ID","required":true,"type":"string"},{"name":"userId","in":"path","description":"Platform user id (UUID)","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ResponseEntity"}},"201":{"description":"Created"},"204":{"description":"No content","schema":{"$ref":"#/definitions/ResponseEntity"}},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"No resources found for specified id"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false},"delete":{"tags":["Observation"],"summary":"Unlink all BodyHeight Vital Sign for provided user which are related to certain care plan","operationId":"unlinkToCarePlanUsingDELETE_5","parameters":[{"name":"carePlanId","in":"path","description":"Care Plan ID","required":true,"type":"string"},{"name":"userId","in":"path","description":"Platform user id (UUID)","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ResponseEntity"}},"204":{"description":"No content","schema":{"$ref":"#/definitions/ResponseEntity"}},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"No resources found for specified id"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false}},"/patient/{userId}/observation/bodyHeight/careplan/{carePlanId}/count":{"get":{"tags":["Observation"],"summary":"Retrive a count of all BodyHeight Vital Sign for provided user which are related to certain care plan","description":"The server will check is there access to load count of observations which are related to certain care plan. The owner of observation can be a patient or person. Peopele of the same care team can fetch count of observations. The user with MANAGE_ACCOUNT can fetch the count observations which are own by person why garantied access for it to user.","operationId":"getCarePlanObservationsCountUsingGET_5","parameters":[{"name":"carePlanId","in":"path","description":"Care Plan ID","required":true,"type":"string"},{"name":"periodEnd","in":"query","description":"The end period of filtering","required":false,"type":"string","format":"date-time","allowEmptyValue":false},{"name":"periodStart","in":"query","description":"The start period of filtering","required":false,"type":"string","format":"date-time","allowEmptyValue":false},{"name":"userId","in":"path","description":"Platform user id (UUID)","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/CountPayload"}},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"No resources found for specified id"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false}},"/patient/{userId}/observation/bodyHeight/count":{"get":{"tags":["Observation"],"summary":"Retrive a count of all BodyHeight Vital Sign for provided user","description":"The server will check is there access to load count of observations. The owner of observation can be a patient or person. Peopele of the same care team can fetch count of observations. The user with MANAGE_ACCOUNT can fetch the count observations which are own by person why garantied access for it to user.","operationId":"getCountUsingGET_5","parameters":[{"name":"periodEnd","in":"query","description":"The end period of filtering","required":false,"type":"string","format":"date-time","allowEmptyValue":false},{"name":"periodStart","in":"query","description":"The start period of filtering","required":false,"type":"string","format":"date-time","allowEmptyValue":false},{"name":"userId","in":"path","description":"Platform user id (UUID)","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/CountPayload"}},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"No resources found for specified id"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false}},"/patient/{userId}/observation/bodyMassIndex":{"get":{"tags":["Observation"],"summary":"Retrive a list with optional pagination of BodyMassIndex Vital Signs for provided user","description":"The server will check is there access to load a list of observations. The owner of observation can be a patient or person. Peopele of the same care team can fetch a list of observations. The user with MANAGE_ACCOUNT can fetch a list of observations which are own by person why garantied access for it to user.","operationId":"loadListUsingGET_6","parameters":[{"name":"count","in":"query","description":"maximum number of results","required":false,"type":"integer","default":10,"format":"int32","allowEmptyValue":false,"x-example":10},{"name":"periodEnd","in":"query","description":"The end period of filtering","required":false,"type":"string","format":"date-time","allowEmptyValue":false},{"name":"periodStart","in":"query","description":"The start period of filtering","required":false,"type":"string","format":"date-time","allowEmptyValue":false},{"name":"start","in":"query","description":"start index to return (0+)","required":false,"type":"integer","default":0,"format":"int32","allowEmptyValue":false,"x-example":0},{"name":"userId","in":"path","description":"Platform user id (UUID)","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"type":"array","items":{"$ref":"#/definitions/BodyMassIndexObservationPayload"}}},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"No resources found for specified id"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false},"post":{"tags":["Observation"],"summary":"Create an BodyMassIndex Vital Sign and link one to provided user","description":"The server will check is there access to create an observation and link it to provided user. The owner of observation can be a patient or person. Peopele of the same care team can create an observation and link it to provided user. The user with MANAGE_ACCOUNT can create an observation and link it to provided user why garantied access for it to user.","operationId":"createUsingPOST_7","consumes":["application/json"],"parameters":[{"in":"body","name":"request","description":"The request payload for create or update BodyMassIndex Vital Sign. The validation rules will be applied on the server","required":true,"schema":{"$ref":"#/definitions/BodyMassIndexObservationRequest"}},{"name":"userId","in":"path","description":"Platform user id (UUID)","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ResourceCreateResponse"}},"201":{"description":"Created","schema":{"$ref":"#/definitions/ResourceCreateResponse"}},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"No resources found for specified id"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false}},"/patient/{userId}/observation/bodyMassIndex/careplan/{carePlanId}":{"get":{"tags":["Observation"],"summary":"Retrive a list with optional pagination of BodyMassIndex Vital Signs for provided user and which are related to provided care plan.","description":"The server will check is there access to load a list of observations which are related to provided care plan. The owner of observation can be a patient or person. Peopele of the same care team can fetch a list of observations. The user with MANAGE_ACCOUNT can fetch a list of observations which are own by person why garantied access for it to user.","operationId":"loadCarePlanListUsingGET_6","parameters":[{"name":"carePlanId","in":"path","description":"Care Plan ID","required":true,"type":"string"},{"name":"count","in":"query","description":"maximum number of results","required":false,"type":"integer","default":10,"format":"int32","allowEmptyValue":false,"x-example":10},{"name":"periodEnd","in":"query","description":"The end period of filtering","required":false,"type":"string","format":"date-time","allowEmptyValue":false},{"name":"periodStart","in":"query","description":"The start period of filtering","required":false,"type":"string","format":"date-time","allowEmptyValue":false},{"name":"start","in":"query","description":"start index to return (0+)","required":false,"type":"integer","default":0,"format":"int32","allowEmptyValue":false,"x-example":0},{"name":"userId","in":"path","description":"Platform user id (UUID)","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"type":"array","items":{"$ref":"#/definitions/BodyMassIndexObservationPayload"}}},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"No resources found for specified id"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false}},"/patient/{userId}/observation/bodyMassIndex/careplan/{carePlanId}/":{"post":{"tags":["Observation"],"summary":"Link all BodyMassIndex Vital Sign for provided user which are related to certain care plan","operationId":"linkToCarePlanUsingPOST_6","consumes":["application/json"],"parameters":[{"name":"carePlanId","in":"path","description":"Care Plan ID","required":true,"type":"string"},{"name":"userId","in":"path","description":"Platform user id (UUID)","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ResponseEntity"}},"201":{"description":"Created"},"204":{"description":"No content","schema":{"$ref":"#/definitions/ResponseEntity"}},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"No resources found for specified id"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false},"delete":{"tags":["Observation"],"summary":"Unlink all BodyMassIndex Vital Sign for provided user which are related to certain care plan","operationId":"unlinkToCarePlanUsingDELETE_6","parameters":[{"name":"carePlanId","in":"path","description":"Care Plan ID","required":true,"type":"string"},{"name":"userId","in":"path","description":"Platform user id (UUID)","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ResponseEntity"}},"204":{"description":"No content","schema":{"$ref":"#/definitions/ResponseEntity"}},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"No resources found for specified id"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false}},"/patient/{userId}/observation/bodyMassIndex/careplan/{carePlanId}/count":{"get":{"tags":["Observation"],"summary":"Retrive a count of all BodyMassIndex Vital Sign for provided user which are related to certain care plan","description":"The server will check is there access to load count of observations which are related to certain care plan. The owner of observation can be a patient or person. Peopele of the same care team can fetch count of observations. The user with MANAGE_ACCOUNT can fetch the count observations which are own by person why garantied access for it to user.","operationId":"getCarePlanObservationsCountUsingGET_6","parameters":[{"name":"carePlanId","in":"path","description":"Care Plan ID","required":true,"type":"string"},{"name":"periodEnd","in":"query","description":"The end period of filtering","required":false,"type":"string","format":"date-time","allowEmptyValue":false},{"name":"periodStart","in":"query","description":"The start period of filtering","required":false,"type":"string","format":"date-time","allowEmptyValue":false},{"name":"userId","in":"path","description":"Platform user id (UUID)","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/CountPayload"}},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"No resources found for specified id"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false}},"/patient/{userId}/observation/bodyMassIndex/count":{"get":{"tags":["Observation"],"summary":"Retrive a count of all BodyMassIndex Vital Sign for provided user","description":"The server will check is there access to load count of observations. The owner of observation can be a patient or person. Peopele of the same care team can fetch count of observations. The user with MANAGE_ACCOUNT can fetch the count observations which are own by person why garantied access for it to user.","operationId":"getCountUsingGET_6","parameters":[{"name":"periodEnd","in":"query","description":"The end period of filtering","required":false,"type":"string","format":"date-time","allowEmptyValue":false},{"name":"periodStart","in":"query","description":"The start period of filtering","required":false,"type":"string","format":"date-time","allowEmptyValue":false},{"name":"userId","in":"path","description":"Platform user id (UUID)","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/CountPayload"}},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"No resources found for specified id"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false}},"/patient/{userId}/observation/bodyTemperature":{"get":{"tags":["Observation"],"summary":"Retrive a list with optional pagination of BodyTemperature Vital Signs for provided user","description":"The server will check is there access to load a list of observations. The owner of observation can be a patient or person. Peopele of the same care team can fetch a list of observations. The user with MANAGE_ACCOUNT can fetch a list of observations which are own by person why garantied access for it to user.","operationId":"loadListUsingGET_7","parameters":[{"name":"count","in":"query","description":"maximum number of results","required":false,"type":"integer","default":10,"format":"int32","allowEmptyValue":false,"x-example":10},{"name":"periodEnd","in":"query","description":"The end period of filtering","required":false,"type":"string","format":"date-time","allowEmptyValue":false},{"name":"periodStart","in":"query","description":"The start period of filtering","required":false,"type":"string","format":"date-time","allowEmptyValue":false},{"name":"start","in":"query","description":"start index to return (0+)","required":false,"type":"integer","default":0,"format":"int32","allowEmptyValue":false,"x-example":0},{"name":"userId","in":"path","description":"Platform user id (UUID)","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"type":"array","items":{"$ref":"#/definitions/BodyTemperatureObservationPayload"}}},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"No resources found for specified id"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false},"post":{"tags":["Observation"],"summary":"Create an BodyTemperature Vital Sign and link one to provided user","description":"The server will check is there access to create an observation and link it to provided user. The owner of observation can be a patient or person. Peopele of the same care team can create an observation and link it to provided user. The user with MANAGE_ACCOUNT can create an observation and link it to provided user why garantied access for it to user.","operationId":"createUsingPOST_8","consumes":["application/json"],"parameters":[{"in":"body","name":"request","description":"The request payload for create or update BodyTemperature Vital Sign. The validation rules will be applied on the server","required":true,"schema":{"$ref":"#/definitions/BodyTemperatureObservationRequest"}},{"name":"userId","in":"path","description":"Platform user id (UUID)","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ResourceCreateResponse"}},"201":{"description":"Created","schema":{"$ref":"#/definitions/ResourceCreateResponse"}},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"No resources found for specified id"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false}},"/patient/{userId}/observation/bodyTemperature/careplan/{carePlanId}":{"get":{"tags":["Observation"],"summary":"Retrive a list with optional pagination of BodyTemperature Vital Signs for provided user and which are related to provided care plan.","description":"The server will check is there access to load a list of observations which are related to provided care plan. The owner of observation can be a patient or person. Peopele of the same care team can fetch a list of observations. The user with MANAGE_ACCOUNT can fetch a list of observations which are own by person why garantied access for it to user.","operationId":"loadCarePlanListUsingGET_7","parameters":[{"name":"carePlanId","in":"path","description":"Care Plan ID","required":true,"type":"string"},{"name":"count","in":"query","description":"maximum number of results","required":false,"type":"integer","default":10,"format":"int32","allowEmptyValue":false,"x-example":10},{"name":"periodEnd","in":"query","description":"The end period of filtering","required":false,"type":"string","format":"date-time","allowEmptyValue":false},{"name":"periodStart","in":"query","description":"The start period of filtering","required":false,"type":"string","format":"date-time","allowEmptyValue":false},{"name":"start","in":"query","description":"start index to return (0+)","required":false,"type":"integer","default":0,"format":"int32","allowEmptyValue":false,"x-example":0},{"name":"userId","in":"path","description":"Platform user id (UUID)","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"type":"array","items":{"$ref":"#/definitions/BodyTemperatureObservationPayload"}}},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"No resources found for specified id"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false}},"/patient/{userId}/observation/bodyTemperature/careplan/{carePlanId}/":{"post":{"tags":["Observation"],"summary":"Link all BodyTemperature Vital Sign for provided user which are related to certain care plan","operationId":"linkToCarePlanUsingPOST_7","consumes":["application/json"],"parameters":[{"name":"carePlanId","in":"path","description":"Care Plan ID","required":true,"type":"string"},{"name":"userId","in":"path","description":"Platform user id (UUID)","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ResponseEntity"}},"201":{"description":"Created"},"204":{"description":"No content","schema":{"$ref":"#/definitions/ResponseEntity"}},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"No resources found for specified id"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false},"delete":{"tags":["Observation"],"summary":"Unlink all BodyTemperature Vital Sign for provided user which are related to certain care plan","operationId":"unlinkToCarePlanUsingDELETE_7","parameters":[{"name":"carePlanId","in":"path","description":"Care Plan ID","required":true,"type":"string"},{"name":"userId","in":"path","description":"Platform user id (UUID)","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ResponseEntity"}},"204":{"description":"No content","schema":{"$ref":"#/definitions/ResponseEntity"}},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"No resources found for specified id"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false}},"/patient/{userId}/observation/bodyTemperature/careplan/{carePlanId}/count":{"get":{"tags":["Observation"],"summary":"Retrive a count of all BodyTemperature Vital Sign for provided user which are related to certain care plan","description":"The server will check is there access to load count of observations which are related to certain care plan. The owner of observation can be a patient or person. Peopele of the same care team can fetch count of observations. The user with MANAGE_ACCOUNT can fetch the count observations which are own by person why garantied access for it to user.","operationId":"getCarePlanObservationsCountUsingGET_7","parameters":[{"name":"carePlanId","in":"path","description":"Care Plan ID","required":true,"type":"string"},{"name":"periodEnd","in":"query","description":"The end period of filtering","required":false,"type":"string","format":"date-time","allowEmptyValue":false},{"name":"periodStart","in":"query","description":"The start period of filtering","required":false,"type":"string","format":"date-time","allowEmptyValue":false},{"name":"userId","in":"path","description":"Platform user id (UUID)","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/CountPayload"}},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"No resources found for specified id"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false}},"/patient/{userId}/observation/bodyTemperature/count":{"get":{"tags":["Observation"],"summary":"Retrive a count of all BodyTemperature Vital Sign for provided user","description":"The server will check is there access to load count of observations. The owner of observation can be a patient or person. Peopele of the same care team can fetch count of observations. The user with MANAGE_ACCOUNT can fetch the count observations which are own by person why garantied access for it to user.","operationId":"getCountUsingGET_7","parameters":[{"name":"periodEnd","in":"query","description":"The end period of filtering","required":false,"type":"string","format":"date-time","allowEmptyValue":false},{"name":"periodStart","in":"query","description":"The start period of filtering","required":false,"type":"string","format":"date-time","allowEmptyValue":false},{"name":"userId","in":"path","description":"Platform user id (UUID)","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/CountPayload"}},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"No resources found for specified id"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false}},"/patient/{userId}/observation/bodyWeight":{"get":{"tags":["Observation"],"summary":"Retrive a list with optional pagination of BodyWeight Vital Signs for provided user","description":"The server will check is there access to load a list of observations. The owner of observation can be a patient or person. Peopele of the same care team can fetch a list of observations. The user with MANAGE_ACCOUNT can fetch a list of observations which are own by person why garantied access for it to user.","operationId":"loadListUsingGET_8","parameters":[{"name":"count","in":"query","description":"maximum number of results","required":false,"type":"integer","default":10,"format":"int32","allowEmptyValue":false,"x-example":10},{"name":"periodEnd","in":"query","description":"The end period of filtering","required":false,"type":"string","format":"date-time","allowEmptyValue":false},{"name":"periodStart","in":"query","description":"The start period of filtering","required":false,"type":"string","format":"date-time","allowEmptyValue":false},{"name":"start","in":"query","description":"start index to return (0+)","required":false,"type":"integer","default":0,"format":"int32","allowEmptyValue":false,"x-example":0},{"name":"userId","in":"path","description":"Platform user id (UUID)","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"type":"array","items":{"$ref":"#/definitions/BodyWeightObservationPayload"}}},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"No resources found for specified id"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false},"post":{"tags":["Observation"],"summary":"Create an BodyWeight Vital Sign and link one to provided user","description":"The server will check is there access to create an observation and link it to provided user. The owner of observation can be a patient or person. Peopele of the same care team can create an observation and link it to provided user. The user with MANAGE_ACCOUNT can create an observation and link it to provided user why garantied access for it to user.","operationId":"createUsingPOST_9","consumes":["application/json"],"parameters":[{"in":"body","name":"request","description":"The request payload for create or update BodyWeight Vital Sign. The validation rules will be applied on the server","required":true,"schema":{"$ref":"#/definitions/BodyWeightObservationRequest"}},{"name":"userId","in":"path","description":"Platform user id (UUID)","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ResourceCreateResponse"}},"201":{"description":"Created","schema":{"$ref":"#/definitions/ResourceCreateResponse"}},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"No resources found for specified id"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false}},"/patient/{userId}/observation/bodyWeight/careplan/{carePlanId}":{"get":{"tags":["Observation"],"summary":"Retrive a list with optional pagination of BodyWeight Vital Signs for provided user and which are related to provided care plan.","description":"The server will check is there access to load a list of observations which are related to provided care plan. The owner of observation can be a patient or person. Peopele of the same care team can fetch a list of observations. The user with MANAGE_ACCOUNT can fetch a list of observations which are own by person why garantied access for it to user.","operationId":"loadCarePlanListUsingGET_8","parameters":[{"name":"carePlanId","in":"path","description":"Care Plan ID","required":true,"type":"string"},{"name":"count","in":"query","description":"maximum number of results","required":false,"type":"integer","default":10,"format":"int32","allowEmptyValue":false,"x-example":10},{"name":"periodEnd","in":"query","description":"The end period of filtering","required":false,"type":"string","format":"date-time","allowEmptyValue":false},{"name":"periodStart","in":"query","description":"The start period of filtering","required":false,"type":"string","format":"date-time","allowEmptyValue":false},{"name":"start","in":"query","description":"start index to return (0+)","required":false,"type":"integer","default":0,"format":"int32","allowEmptyValue":false,"x-example":0},{"name":"userId","in":"path","description":"Platform user id (UUID)","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"type":"array","items":{"$ref":"#/definitions/BodyWeightObservationPayload"}}},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"No resources found for specified id"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false}},"/patient/{userId}/observation/bodyWeight/careplan/{carePlanId}/":{"post":{"tags":["Observation"],"summary":"Link all BodyWeight Vital Sign for provided user which are related to certain care plan","operationId":"linkToCarePlanUsingPOST_8","consumes":["application/json"],"parameters":[{"name":"carePlanId","in":"path","description":"Care Plan ID","required":true,"type":"string"},{"name":"userId","in":"path","description":"Platform user id (UUID)","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ResponseEntity"}},"201":{"description":"Created"},"204":{"description":"No content","schema":{"$ref":"#/definitions/ResponseEntity"}},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"No resources found for specified id"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false},"delete":{"tags":["Observation"],"summary":"Unlink all BodyWeight Vital Sign for provided user which are related to certain care plan","operationId":"unlinkToCarePlanUsingDELETE_8","parameters":[{"name":"carePlanId","in":"path","description":"Care Plan ID","required":true,"type":"string"},{"name":"userId","in":"path","description":"Platform user id (UUID)","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ResponseEntity"}},"204":{"description":"No content","schema":{"$ref":"#/definitions/ResponseEntity"}},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"No resources found for specified id"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false}},"/patient/{userId}/observation/bodyWeight/careplan/{carePlanId}/count":{"get":{"tags":["Observation"],"summary":"Retrive a count of all BodyWeight Vital Sign for provided user which are related to certain care plan","description":"The server will check is there access to load count of observations which are related to certain care plan. The owner of observation can be a patient or person. Peopele of the same care team can fetch count of observations. The user with MANAGE_ACCOUNT can fetch the count observations which are own by person why garantied access for it to user.","operationId":"getCarePlanObservationsCountUsingGET_8","parameters":[{"name":"carePlanId","in":"path","description":"Care Plan ID","required":true,"type":"string"},{"name":"periodEnd","in":"query","description":"The end period of filtering","required":false,"type":"string","format":"date-time","allowEmptyValue":false},{"name":"periodStart","in":"query","description":"The start period of filtering","required":false,"type":"string","format":"date-time","allowEmptyValue":false},{"name":"userId","in":"path","description":"Platform user id (UUID)","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/CountPayload"}},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"No resources found for specified id"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false}},"/patient/{userId}/observation/bodyWeight/count":{"get":{"tags":["Observation"],"summary":"Retrive a count of all BodyWeight Vital Sign for provided user","description":"The server will check is there access to load count of observations. The owner of observation can be a patient or person. Peopele of the same care team can fetch count of observations. The user with MANAGE_ACCOUNT can fetch the count observations which are own by person why garantied access for it to user.","operationId":"getCountUsingGET_8","parameters":[{"name":"periodEnd","in":"query","description":"The end period of filtering","required":false,"type":"string","format":"date-time","allowEmptyValue":false},{"name":"periodStart","in":"query","description":"The start period of filtering","required":false,"type":"string","format":"date-time","allowEmptyValue":false},{"name":"userId","in":"path","description":"Platform user id (UUID)","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/CountPayload"}},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"No resources found for specified id"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false}},"/patient/{userId}/observation/cpeptide":{"get":{"tags":["Observation"],"summary":"Retrive a list with optional pagination of C-Peptide Laboratory Result observation for provided user.","description":"The server will check is there access to load a list of observations. The owner of observation can be a patient or person. Peopele of the same care team can fetch a list of observations. The user with MANAGE_ACCOUNT can fetch a list of observations which are own by person why garantied access for it to user.","operationId":"loadListUsingGET_9","parameters":[{"name":"count","in":"query","description":"maximum number of results","required":false,"type":"integer","default":10,"format":"int32","allowEmptyValue":false,"x-example":10},{"name":"periodEnd","in":"query","description":"The end period of filtering","required":false,"type":"string","format":"date-time","allowEmptyValue":false},{"name":"periodStart","in":"query","description":"The start period of filtering","required":false,"type":"string","format":"date-time","allowEmptyValue":false},{"name":"start","in":"query","description":"start index to return (0+)","required":false,"type":"integer","default":0,"format":"int32","allowEmptyValue":false,"x-example":0},{"name":"userId","in":"path","description":"Platform user id (UUID)","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"type":"array","items":{"$ref":"#/definitions/BloodGlucoseObservationPayload"}}},"400":{"description":"Bad request"},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"No resources found for specified id"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false},"post":{"tags":["Observation"],"summary":"Create a C-Peptide Laboratiry Result observation and link to provided user.","description":"The server will check is there access to load this observation. The owner of observation can be a patient or person. Peopele of the same care team can fetch this observation. The user with MANAGE_ACCOUNT can fetch the observation with is own by person why garantied access for it to user.","operationId":"createUsingPOST_12","consumes":["application/json"],"parameters":[{"in":"body","name":"request","description":"The request to create or update the C-Peptide Laboratiry result observation. The validation will be applied on the server.","required":true,"schema":{"$ref":"#/definitions/CpeptideObservationRequest"}},{"name":"userId","in":"path","description":"Platform user id (UUID)","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ResourceCreateResponse"}},"201":{"description":"Created","schema":{"$ref":"#/definitions/ResourceCreateResponse"}},"400":{"description":"Bad Request"},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"No resources found for specified id"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false}},"/patient/{userId}/observation/cpeptide/careplan/{carePlanId}":{"get":{"tags":["Observation"],"summary":"Retrive a list with optional pagination of C-Peptide Laboratory Result observation for provided user and which are related to provided care plan.","description":"The server will check is there access to load a list of observations which are related to provided care plan. The owner of observation can be a patient or person. Peopele of the same care team can fetch a list of observations. The user with MANAGE_ACCOUNT can fetch a list of observations which are own by person why garantied access for it to user.","operationId":"loadCarePlanListUsingGET_9","parameters":[{"name":"carePlanId","in":"path","description":"Care Plan ID","required":true,"type":"string"},{"name":"count","in":"query","description":"maximum number of results","required":false,"type":"integer","default":10,"format":"int32","allowEmptyValue":false,"x-example":10},{"name":"periodEnd","in":"query","description":"The end period of filtering","required":false,"type":"string","format":"date-time","allowEmptyValue":false},{"name":"periodStart","in":"query","description":"The start period of filtering","required":false,"type":"string","format":"date-time","allowEmptyValue":false},{"name":"start","in":"query","description":"start index to return (0+)","required":false,"type":"integer","default":0,"format":"int32","allowEmptyValue":false,"x-example":0},{"name":"userId","in":"path","description":"Platform user id (UUID)","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"type":"array","items":{"$ref":"#/definitions/BloodGlucoseObservationPayload"}}},"400":{"description":"Bad Request"},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"No resources found for specified id"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false}},"/patient/{userId}/observation/cpeptide/careplan/{carePlanId}/":{"post":{"tags":["Observation"],"summary":"Link all C-Peptide Laboratory Result observation for provided user which are related to certain care plan","operationId":"linkToCarePlanUsingPOST_9","consumes":["application/json"],"parameters":[{"name":"carePlanId","in":"path","description":"Care Plan ID","required":true,"type":"string"},{"name":"userId","in":"path","description":"Platform user id (UUID)","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ResponseEntity"}},"201":{"description":"Created"},"204":{"description":"No content","schema":{"$ref":"#/definitions/ResponseEntity"}},"400":{"description":"Bad request"},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"No resources found for specified id"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false},"delete":{"tags":["Observation"],"summary":"Unlink all C-Peptide Laboratory Result observation for provided user which are related to certain care plan","operationId":"unlinkToCarePlanUsingDELETE_9","parameters":[{"name":"carePlanId","in":"path","description":"Care Plan ID","required":true,"type":"string"},{"name":"userId","in":"path","description":"Platform user id (UUID)","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ResponseEntity"}},"204":{"description":"No content","schema":{"$ref":"#/definitions/ResponseEntity"}},"400":{"description":"Bad request"},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"No resources found for specified id"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false}},"/patient/{userId}/observation/cpeptide/careplan/{carePlanId}/count":{"get":{"tags":["Observation"],"summary":"Retrive a count of all C-Peptide Laboratory Result observation for provided user which are related to certain care plan","description":"The server will check is there access to load count of observations which are related to certain care plan. The owner of observation can be a patient or person. Peopele of the same care team can fetch count of observations. The user with MANAGE_ACCOUNT can fetch the count observations which are own by person why garantied access for it to user.","operationId":"getCarePlanObservationsCountUsingGET_9","parameters":[{"name":"carePlanId","in":"path","description":"Care Plan ID","required":true,"type":"string"},{"name":"periodEnd","in":"query","description":"The end period of filtering","required":false,"type":"string","format":"date-time","allowEmptyValue":false},{"name":"periodStart","in":"query","description":"The start period of filtering","required":false,"type":"string","format":"date-time","allowEmptyValue":false},{"name":"userId","in":"path","description":"Platform user id (UUID)","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/CountPayload"}},"400":{"description":"Bad request"},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"No resources found for specified id"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false}},"/patient/{userId}/observation/cpeptide/count":{"get":{"tags":["Observation"],"summary":"Retrive a count of all C-Peptide laboratory results for provided user","description":"The server will check is there access to load count of observations. The owner of observation can be a patient or person. Peopele of the same care team can fetch count of observations. The user with MANAGE_ACCOUNT can fetch the count observations which are own by person why garantied access for it to user.","operationId":"getCountUsingGET_9","parameters":[{"name":"periodEnd","in":"query","description":"The end period of filtering","required":false,"type":"string","format":"date-time","allowEmptyValue":false},{"name":"periodStart","in":"query","description":"The start period of filtering","required":false,"type":"string","format":"date-time","allowEmptyValue":false},{"name":"userId","in":"path","description":"Platform user id (UUID)","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/CountPayload"}},"400":{"description":"Bad Request"},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"No resources found for specified id"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false}},"/patient/{userId}/observation/ecg":{"get":{"tags":["Observation"],"summary":"Retrive a list with optional pagination of ECG procedure for provided user","description":"The server will check is there access to load a list of observations. The owner of observation can be a patient or person. Peopele of the same care team can fetch a list of observations. The user with MANAGE_ACCOUNT can fetch a list of observations which are own by person why garantied access for it to user.","operationId":"loadListUsingGET_10","parameters":[{"name":"count","in":"query","description":"maximum number of results","required":false,"type":"integer","default":10,"format":"int32","allowEmptyValue":false,"x-example":10},{"name":"periodEnd","in":"query","description":"The end period of filtering","required":false,"type":"string","format":"date-time","allowEmptyValue":false},{"name":"periodStart","in":"query","description":"The start period of filtering","required":false,"type":"string","format":"date-time","allowEmptyValue":false},{"name":"start","in":"query","description":"start index to return (0+)","required":false,"type":"integer","default":0,"format":"int32","allowEmptyValue":false,"x-example":0},{"name":"userId","in":"path","description":"Platform user id (UUID)","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"type":"array","items":{"$ref":"#/definitions/EcgObservationPayload"}}},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"No resources found for specified id"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false},"post":{"tags":["Observation"],"summary":"Create an ECG Observation and link one to provided user","description":"The server will check is there access to create an observation and link it to provided user. The owner of observation can be a patient or person. People of the same care team can create an observation and link it to provided user. The user with MANAGE_ACCOUNT can create an observation and link it to provided user.","operationId":"createUsingPOST_15","consumes":["application/json"],"parameters":[{"in":"body","name":"request","description":"The request payload for create or update ECG Observation. The validation rules will be applied on the server","required":true,"schema":{"$ref":"#/definitions/EcgObservationRequest"}},{"name":"userId","in":"path","description":"Platform user id (UUID)","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ResourceCreateResponse"}},"201":{"description":"Created","schema":{"$ref":"#/definitions/ResourceCreateResponse"}},"400":{"description":"Bad request"},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"No resources found for specified id"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false}},"/patient/{userId}/observation/ecg/careplan/{carePlanId}":{"get":{"tags":["Observation"],"summary":"Retrive a list with optional pagination of ECG procedure for provided user and which are related to provided care plan.","description":"The server will check is there access to load a list of observations which are related to provided care plan. The owner of observation can be a patient or person. Peopele of the same care team can fetch a list of observations. The user with MANAGE_ACCOUNT can fetch a list of observations which are own by person why garantied access for it to user.","operationId":"loadCarePlanListUsingGET_10","parameters":[{"name":"carePlanId","in":"path","description":"Care Plan ID","required":true,"type":"string"},{"name":"count","in":"query","description":"maximum number of results","required":false,"type":"integer","default":10,"format":"int32","allowEmptyValue":false,"x-example":10},{"name":"periodEnd","in":"query","description":"The end period of filtering","required":false,"type":"string","format":"date-time","allowEmptyValue":false},{"name":"periodStart","in":"query","description":"The start period of filtering","required":false,"type":"string","format":"date-time","allowEmptyValue":false},{"name":"start","in":"query","description":"start index to return (0+)","required":false,"type":"integer","default":0,"format":"int32","allowEmptyValue":false,"x-example":0},{"name":"userId","in":"path","description":"Platform user id (UUID)","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"type":"array","items":{"$ref":"#/definitions/EcgObservationPayload"}}},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"No resources found for specified id"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false},"post":{"tags":["Observation"],"summary":"Link all ECG procedure for provided user which are related to certain care plan","operationId":"linkToCarePlanUsingPOST_10","consumes":["application/json"],"parameters":[{"name":"carePlanId","in":"path","description":"Care Plan ID","required":true,"type":"string"},{"name":"userId","in":"path","description":"Platform user id (UUID)","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ResponseEntity"}},"201":{"description":"Created"},"204":{"description":"No content","schema":{"$ref":"#/definitions/ResponseEntity"}},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"No resources found for specified id"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false}},"/patient/{userId}/observation/ecg/careplan/{carePlanId}/":{"delete":{"tags":["Observation"],"summary":"Unlink all ECG procedure for provided user which are related to certain care plan","operationId":"unlinkToCarePlanUsingDELETE_10","parameters":[{"name":"carePlanId","in":"path","description":"Care Plan ID","required":true,"type":"string"},{"name":"userId","in":"path","description":"Platform user id (UUID)","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ResponseEntity"}},"204":{"description":"No content","schema":{"$ref":"#/definitions/ResponseEntity"}},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"No resources found for specified id"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false}},"/patient/{userId}/observation/ecg/careplan/{carePlanId}/count":{"get":{"tags":["Observation"],"summary":"Retrive a count of all ECG procedure for provided user which are related to certain care plan","description":"The server will check is there access to load count of observations which are related to certain care plan. The owner of observation can be a patient or person. Peopele of the same care team can fetch count of observations. The user with MANAGE_ACCOUNT can fetch the count observations which are own by person why garantied access for it to user.","operationId":"getCarePlanObservationsCountUsingGET_10","parameters":[{"name":"carePlanId","in":"path","description":"Care Plan ID","required":true,"type":"string"},{"name":"periodEnd","in":"query","description":"The end period of filtering","required":false,"type":"string","format":"date-time","allowEmptyValue":false},{"name":"periodStart","in":"query","description":"The start period of filtering","required":false,"type":"string","format":"date-time","allowEmptyValue":false},{"name":"userId","in":"path","description":"Platform user id (UUID)","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/CountPayload"}},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"No resources found for specified id"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false}},"/patient/{userId}/observation/ecg/count":{"get":{"tags":["Observation"],"summary":"Retrive a count of all ECG procedure for provided user","description":"The server will check is there access to load count of observations. The owner of observation can be a patient or person. Peopele of the same care team can fetch count of observations. The user with MANAGE_ACCOUNT can fetch the count observations which are own by person why garantied access for it to user.","operationId":"getCountUsingGET_10","parameters":[{"name":"periodEnd","in":"query","description":"The end period of filtering","required":false,"type":"string","format":"date-time","allowEmptyValue":false},{"name":"periodStart","in":"query","description":"The start period of filtering","required":false,"type":"string","format":"date-time","allowEmptyValue":false},{"name":"userId","in":"path","description":"Platform user id (UUID)","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/CountPayload"}},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"No resources found for specified id"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false}},"/patient/{userId}/observation/heartMinutes":{"get":{"tags":["Observation"],"summary":"${medsafe.observation.heart.point.list}","description":"${medsafe.observation.heart.point.list.notes}","operationId":"loadListUsingGET_11","parameters":[{"name":"count","in":"query","description":"maximum number of results","required":false,"type":"integer","default":10,"format":"int32","allowEmptyValue":false,"x-example":10},{"name":"periodEnd","in":"query","description":"The end period of filtering","required":false,"type":"string","format":"date-time","allowEmptyValue":false},{"name":"periodStart","in":"query","description":"The start period of filtering","required":false,"type":"string","format":"date-time","allowEmptyValue":false},{"name":"start","in":"query","description":"start index to return (0+)","required":false,"type":"integer","default":0,"format":"int32","allowEmptyValue":false,"x-example":0},{"name":"userId","in":"path","description":"Platform user id (UUID)","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"type":"array","items":{"$ref":"#/definitions/HeartPointObservationPayload"}}},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"No resources found for specified id"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false},"post":{"tags":["Observation"],"summary":"${medsafe.observation.heart.point.create}","description":"${medsafe.observation.heart.point.create.notes}","operationId":"createUsingPOST_17","consumes":["application/json"],"parameters":[{"in":"body","name":"request","description":"${medsafe.observation.heart.point.request}","required":true,"schema":{"$ref":"#/definitions/HeartPointObservationRequest"}},{"name":"userId","in":"path","description":"Platform user id (UUID)","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ResourceCreateResponse"}},"201":{"description":"Created","schema":{"$ref":"#/definitions/ResourceCreateResponse"}},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"No resources found for specified id"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false}},"/patient/{userId}/observation/heartMinutes/careplan/{carePlanId}":{"get":{"tags":["Observation"],"summary":"${medsafe.observation.heart.point.careplan.list}","description":"${medsafe.observation.heart.point.careplan.list.notes}","operationId":"loadCarePlanListUsingGET_11","parameters":[{"name":"carePlanId","in":"path","description":"Care Plan ID","required":true,"type":"string"},{"name":"count","in":"query","description":"maximum number of results","required":false,"type":"integer","default":10,"format":"int32","allowEmptyValue":false,"x-example":10},{"name":"periodEnd","in":"query","description":"The end period of filtering","required":false,"type":"string","format":"date-time","allowEmptyValue":false},{"name":"periodStart","in":"query","description":"The start period of filtering","required":false,"type":"string","format":"date-time","allowEmptyValue":false},{"name":"start","in":"query","description":"start index to return (0+)","required":false,"type":"integer","default":0,"format":"int32","allowEmptyValue":false,"x-example":0},{"name":"userId","in":"path","description":"Platform user id (UUID)","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"type":"array","items":{"$ref":"#/definitions/HeartPointObservationPayload"}}},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"No resources found for specified id"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false}},"/patient/{userId}/observation/heartMinutes/careplan/{carePlanId}/":{"post":{"tags":["Observation"],"summary":"${medsafe.observation.heart.point.careplan.link.all}","operationId":"linkToCarePlanUsingPOST_11","consumes":["application/json"],"parameters":[{"name":"carePlanId","in":"path","description":"Care Plan ID","required":true,"type":"string"},{"name":"userId","in":"path","description":"Platform user id (UUID)","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ResponseEntity"}},"201":{"description":"Created"},"204":{"description":"No content","schema":{"$ref":"#/definitions/ResponseEntity"}},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"No resources found for specified id"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false},"delete":{"tags":["Observation"],"summary":"${medsafe.observation.heart.point.careplan.unlink.all}","operationId":"unlinkToCarePlanUsingDELETE_11","parameters":[{"name":"carePlanId","in":"path","description":"Care Plan ID","required":true,"type":"string"},{"name":"userId","in":"path","description":"Platform user id (UUID)","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ResponseEntity"}},"204":{"description":"No content","schema":{"$ref":"#/definitions/ResponseEntity"}},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"No resources found for specified id"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false}},"/patient/{userId}/observation/heartMinutes/careplan/{carePlanId}/count":{"get":{"tags":["Observation"],"summary":"${medsafe.observation.heart.point.careplan.count}","description":"${medsafe.observation.heart.point.careplan.count.notes}","operationId":"getCarePlanObservationsCountUsingGET_11","parameters":[{"name":"carePlanId","in":"path","description":"Care Plan ID","required":true,"type":"string"},{"name":"periodEnd","in":"query","description":"The end period of filtering","required":false,"type":"string","format":"date-time","allowEmptyValue":false},{"name":"periodStart","in":"query","description":"The start period of filtering","required":false,"type":"string","format":"date-time","allowEmptyValue":false},{"name":"userId","in":"path","description":"Platform user id (UUID)","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/CountPayload"}},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"No resources found for specified id"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false}},"/patient/{userId}/observation/heartMinutes/count":{"get":{"tags":["Observation"],"summary":"${medsafe.observation.heart.point.count}","description":"${medsafe.observation.heart.point.count.notes}","operationId":"getCountUsingGET_11","parameters":[{"name":"periodEnd","in":"query","description":"The end period of filtering","required":false,"type":"string","format":"date-time","allowEmptyValue":false},{"name":"periodStart","in":"query","description":"The start period of filtering","required":false,"type":"string","format":"date-time","allowEmptyValue":false},{"name":"userId","in":"path","description":"Platform user id (UUID)","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/CountPayload"}},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"No resources found for specified id"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false}},"/patient/{userId}/observation/heartRate":{"get":{"tags":["Observation"],"summary":"Retrive a list with optional pagination of HeartRate Vital Signs for provided user","description":"The server will check is there access to load a list of observations. The owner of observation can be a patient or person. Peopele of the same care team can fetch a list of observations. The user with MANAGE_ACCOUNT can fetch a list of observations which are own by person why garantied access for it to user.","operationId":"loadListUsingGET_12","parameters":[{"name":"count","in":"query","description":"maximum number of results","required":false,"type":"integer","default":10,"format":"int32","allowEmptyValue":false,"x-example":10},{"name":"periodEnd","in":"query","description":"The end period of filtering","required":false,"type":"string","format":"date-time","allowEmptyValue":false},{"name":"periodStart","in":"query","description":"The start period of filtering","required":false,"type":"string","format":"date-time","allowEmptyValue":false},{"name":"start","in":"query","description":"start index to return (0+)","required":false,"type":"integer","default":0,"format":"int32","allowEmptyValue":false,"x-example":0},{"name":"userId","in":"path","description":"Platform user id (UUID)","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"type":"array","items":{"$ref":"#/definitions/HeartRateObservationPayload"}}},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"No resources found for specified id"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false},"post":{"tags":["Observation"],"summary":"Create an HeartRate Vital Sign and link one to provided user","description":"The server will check is there access to create an observation and link it to provided user. The owner of observation can be a patient or person. Peopele of the same care team can create an observation and link it to provided user. The user with MANAGE_ACCOUNT can create an observation and link it to provided user why garantied access for it to user.","operationId":"createUsingPOST_18","consumes":["application/json"],"parameters":[{"in":"body","name":"request","description":"The request payload for create or update HeartRate Vital Sign. The validation rules will be applied on the server","required":true,"schema":{"$ref":"#/definitions/HeartRateObservationRequest"}},{"name":"userId","in":"path","description":"Platform user id (UUID)","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ResourceCreateResponse"}},"201":{"description":"Created","schema":{"$ref":"#/definitions/ResourceCreateResponse"}},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"No resources found for specified id"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false}},"/patient/{userId}/observation/heartRate/careplan/{carePlanId}":{"get":{"tags":["Observation"],"summary":"Retrive a list with optional pagination of HeartRate Vital Signs for provided user and which are related to provided care plan.","description":"The server will check is there access to load a list of observations which are related to provided care plan. The owner of observation can be a patient or person. Peopele of the same care team can fetch a list of observations. The user with MANAGE_ACCOUNT can fetch a list of observations which are own by person why garantied access for it to user.","operationId":"loadCarePlanListUsingGET_12","parameters":[{"name":"carePlanId","in":"path","description":"Care Plan ID","required":true,"type":"string"},{"name":"count","in":"query","description":"maximum number of results","required":false,"type":"integer","default":10,"format":"int32","allowEmptyValue":false,"x-example":10},{"name":"periodEnd","in":"query","description":"The end period of filtering","required":false,"type":"string","format":"date-time","allowEmptyValue":false},{"name":"periodStart","in":"query","description":"The start period of filtering","required":false,"type":"string","format":"date-time","allowEmptyValue":false},{"name":"start","in":"query","description":"start index to return (0+)","required":false,"type":"integer","default":0,"format":"int32","allowEmptyValue":false,"x-example":0},{"name":"userId","in":"path","description":"Platform user id (UUID)","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"type":"array","items":{"$ref":"#/definitions/HeartRateObservationPayload"}}},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"No resources found for specified id"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false}},"/patient/{userId}/observation/heartRate/careplan/{carePlanId}/":{"post":{"tags":["Observation"],"summary":"Link all HeartRate Vital Sign for provided user which are related to certain care plan","operationId":"linkToCarePlanUsingPOST_12","consumes":["application/json"],"parameters":[{"name":"carePlanId","in":"path","description":"Care Plan ID","required":true,"type":"string"},{"name":"userId","in":"path","description":"Platform user id (UUID)","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ResponseEntity"}},"201":{"description":"Created"},"204":{"description":"No content","schema":{"$ref":"#/definitions/ResponseEntity"}},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"No resources found for specified id"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false},"delete":{"tags":["Observation"],"summary":"Unlink all HeartRate Vital Sign for provided user which are related to certain care plan","operationId":"unlinkToCarePlanUsingDELETE_12","parameters":[{"name":"carePlanId","in":"path","description":"Care Plan ID","required":true,"type":"string"},{"name":"userId","in":"path","description":"Platform user id (UUID)","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ResponseEntity"}},"204":{"description":"No content","schema":{"$ref":"#/definitions/ResponseEntity"}},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"No resources found for specified id"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false}},"/patient/{userId}/observation/heartRate/careplan/{carePlanId}/count":{"get":{"tags":["Observation"],"summary":"Retrive a count of all HeartRate Vital Sign for provided user which are related to certain care plan","description":"The server will check is there access to load count of observations which are related to certain care plan. The owner of observation can be a patient or person. Peopele of the same care team can fetch count of observations. The user with MANAGE_ACCOUNT can fetch the count observations which are own by person why garantied access for it to user.","operationId":"getCarePlanObservationsCountUsingGET_12","parameters":[{"name":"carePlanId","in":"path","description":"Care Plan ID","required":true,"type":"string"},{"name":"periodEnd","in":"query","description":"The end period of filtering","required":false,"type":"string","format":"date-time","allowEmptyValue":false},{"name":"periodStart","in":"query","description":"The start period of filtering","required":false,"type":"string","format":"date-time","allowEmptyValue":false},{"name":"userId","in":"path","description":"Platform user id (UUID)","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/CountPayload"}},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"No resources found for specified id"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false}},"/patient/{userId}/observation/heartRate/count":{"get":{"tags":["Observation"],"summary":"Retrive a count of all HeartRate Vital Sign for provided user","description":"The server will check is there access to load count of observations. The owner of observation can be a patient or person. Peopele of the same care team can fetch count of observations. The user with MANAGE_ACCOUNT can fetch the count observations which are own by person why garantied access for it to user.","operationId":"getCountUsingGET_12","parameters":[{"name":"periodEnd","in":"query","description":"The end period of filtering","required":false,"type":"string","format":"date-time","allowEmptyValue":false},{"name":"periodStart","in":"query","description":"The start period of filtering","required":false,"type":"string","format":"date-time","allowEmptyValue":false},{"name":"userId","in":"path","description":"Platform user id (UUID)","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/CountPayload"}},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"No resources found for specified id"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false}},"/patient/{userId}/observation/hemoglobin":{"get":{"tags":["Observation"],"summary":"Retrive a list with optional pagination of Hemoglobin Vital Signs for provided user","description":"The server will check is there access to load a list of observations. The owner of observation can be a patient or person. Peopele of the same care team can fetch a list of observations. The user with MANAGE_ACCOUNT can fetch a list of observations which are own by person why garantied access for it to user.","operationId":"loadListUsingGET_13","parameters":[{"name":"count","in":"query","description":"maximum number of results","required":false,"type":"integer","default":10,"format":"int32","allowEmptyValue":false,"x-example":10},{"name":"periodEnd","in":"query","description":"The end period of filtering","required":false,"type":"string","format":"date-time","allowEmptyValue":false},{"name":"periodStart","in":"query","description":"The start period of filtering","required":false,"type":"string","format":"date-time","allowEmptyValue":false},{"name":"start","in":"query","description":"start index to return (0+)","required":false,"type":"integer","default":0,"format":"int32","allowEmptyValue":false,"x-example":0},{"name":"userId","in":"path","description":"Platform user id (UUID)","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"type":"array","items":{"$ref":"#/definitions/HemoglobinObservationPayload"}}},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"No resources found for specified id"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false},"post":{"tags":["Observation"],"summary":"Create an Hemoglobin Vital Sign and link one to provided user","description":"The server will check is there access to create an observation and link it to provided user. The owner of observation can be a patient or person. Peopele of the same care team can create an observation and link it to provided user. The user with MANAGE_ACCOUNT can create an observation and link it to provided user why garantied access for it to user.","operationId":"createUsingPOST_19","consumes":["application/json"],"parameters":[{"in":"body","name":"request","description":"The request payload for create or update Hemoglobin Vital Sign. The validation rules will be applied on the server","required":true,"schema":{"$ref":"#/definitions/HemoglobinObservationRequest"}},{"name":"userId","in":"path","description":"Platform user id (UUID)","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ResourceCreateResponse"}},"201":{"description":"Created","schema":{"$ref":"#/definitions/ResourceCreateResponse"}},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"No resources found for specified id"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false}},"/patient/{userId}/observation/hemoglobin/careplan/{carePlanId}":{"get":{"tags":["Observation"],"summary":"Retrive a list with optional pagination of Hemoglobin Vital Signs for provided user and which are related to provided care plan.","description":"The server will check is there access to load a list of observations which are related to provided care plan. The owner of observation can be a patient or person. Peopele of the same care team can fetch a list of observations. The user with MANAGE_ACCOUNT can fetch a list of observations which are own by person why garantied access for it to user.","operationId":"loadCarePlanListUsingGET_13","parameters":[{"name":"carePlanId","in":"path","description":"Care Plan ID","required":true,"type":"string"},{"name":"count","in":"query","description":"maximum number of results","required":false,"type":"integer","default":10,"format":"int32","allowEmptyValue":false,"x-example":10},{"name":"periodEnd","in":"query","description":"The end period of filtering","required":false,"type":"string","format":"date-time","allowEmptyValue":false},{"name":"periodStart","in":"query","description":"The start period of filtering","required":false,"type":"string","format":"date-time","allowEmptyValue":false},{"name":"start","in":"query","description":"start index to return (0+)","required":false,"type":"integer","default":0,"format":"int32","allowEmptyValue":false,"x-example":0},{"name":"userId","in":"path","description":"Platform user id (UUID)","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"type":"array","items":{"$ref":"#/definitions/HemoglobinObservationPayload"}}},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"No resources found for specified id"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false}},"/patient/{userId}/observation/hemoglobin/careplan/{carePlanId}/":{"post":{"tags":["Observation"],"summary":"Link all Hemoglobin Vital Sign for provided user which are related to certain care plan","operationId":"linkToCarePlanUsingPOST_13","consumes":["application/json"],"parameters":[{"name":"carePlanId","in":"path","description":"Care Plan ID","required":true,"type":"string"},{"name":"userId","in":"path","description":"Platform user id (UUID)","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ResponseEntity"}},"201":{"description":"Created"},"204":{"description":"No content","schema":{"$ref":"#/definitions/ResponseEntity"}},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"No resources found for specified id"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false},"delete":{"tags":["Observation"],"summary":"Unlink all Hemoglobin Vital Sign for provided user which are related to certain care plan","operationId":"unlinkToCarePlanUsingDELETE_13","parameters":[{"name":"carePlanId","in":"path","description":"Care Plan ID","required":true,"type":"string"},{"name":"userId","in":"path","description":"Platform user id (UUID)","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ResponseEntity"}},"204":{"description":"No content","schema":{"$ref":"#/definitions/ResponseEntity"}},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"No resources found for specified id"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false}},"/patient/{userId}/observation/hemoglobin/careplan/{carePlanId}/count":{"get":{"tags":["Observation"],"summary":"Retrive a count of all Hemoglobin Vital Sign for provided user which are related to certain care plan","description":"The server will check is there access to load count of observations which are related to certain care plan. The owner of observation can be a patient or person. Peopele of the same care team can fetch count of observations. The user with MANAGE_ACCOUNT can fetch the count observations which are own by person why garantied access for it to user.","operationId":"getCarePlanObservationsCountUsingGET_13","parameters":[{"name":"carePlanId","in":"path","description":"Care Plan ID","required":true,"type":"string"},{"name":"periodEnd","in":"query","description":"The end period of filtering","required":false,"type":"string","format":"date-time","allowEmptyValue":false},{"name":"periodStart","in":"query","description":"The start period of filtering","required":false,"type":"string","format":"date-time","allowEmptyValue":false},{"name":"userId","in":"path","description":"Platform user id (UUID)","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/CountPayload"}},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"No resources found for specified id"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false}},"/patient/{userId}/observation/hemoglobin/count":{"get":{"tags":["Observation"],"summary":"Retrive a count of all Hemoglobin Vital Sign for provided user","description":"The server will check is there access to load count of observations. The owner of observation can be a patient or person. Peopele of the same care team can fetch count of observations. The user with MANAGE_ACCOUNT can fetch the count observations which are own by person why garantied access for it to user.","operationId":"getCountUsingGET_13","parameters":[{"name":"periodEnd","in":"query","description":"The end period of filtering","required":false,"type":"string","format":"date-time","allowEmptyValue":false},{"name":"periodStart","in":"query","description":"The start period of filtering","required":false,"type":"string","format":"date-time","allowEmptyValue":false},{"name":"userId","in":"path","description":"Platform user id (UUID)","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/CountPayload"}},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"No resources found for specified id"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false}},"/patient/{userId}/observation/oxygenSaturation":{"get":{"tags":["Observation"],"summary":"Retrive a list with optional pagination of OxygenSaturation Vital Signs for provided user","description":"The server will check is there access to load a list of observations. The owner of observation can be a patient or person. Peopele of the same care team can fetch a list of observations. The user with MANAGE_ACCOUNT can fetch a list of observations which are own by person why garantied access for it to user.","operationId":"loadListUsingGET_14","parameters":[{"name":"count","in":"query","description":"maximum number of results","required":false,"type":"integer","default":10,"format":"int32","allowEmptyValue":false,"x-example":10},{"name":"periodEnd","in":"query","description":"The end period of filtering","required":false,"type":"string","format":"date-time","allowEmptyValue":false},{"name":"periodStart","in":"query","description":"The start period of filtering","required":false,"type":"string","format":"date-time","allowEmptyValue":false},{"name":"start","in":"query","description":"start index to return (0+)","required":false,"type":"integer","default":0,"format":"int32","allowEmptyValue":false,"x-example":0},{"name":"userId","in":"path","description":"Platform user id (UUID)","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"type":"array","items":{"$ref":"#/definitions/OxygenSaturationObservationPayload"}}},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"No resources found for specified id"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false},"post":{"tags":["Observation"],"summary":"Create an OxygenSaturation Vital Sign and link one to provided user","description":"The server will check is there access to create an observation and link it to provided user. The owner of observation can be a patient or person. Peopele of the same care team can create an observation and link it to provided user. The user with MANAGE_ACCOUNT can create an observation and link it to provided user why garantied access for it to user.","operationId":"createUsingPOST_24","consumes":["application/json"],"parameters":[{"in":"body","name":"request","description":"The request payload for create or update OxygenSaturation Vital Sign. The validation rules will be applied on the server","required":true,"schema":{"$ref":"#/definitions/OxygenSaturationObservationRequest"}},{"name":"userId","in":"path","description":"Platform user id (UUID)","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ResourceCreateResponse"}},"201":{"description":"Created","schema":{"$ref":"#/definitions/ResourceCreateResponse"}},"400":{"description":"Bad request"},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"No resources found for specified id"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false}},"/patient/{userId}/observation/oxygenSaturation/careplan/{carePlanId}":{"get":{"tags":["Observation"],"summary":"Retrive a list with optional pagination of OxygenSaturation Vital Signs for provided user and which are related to provided care plan.","description":"The server will check is there access to load a list of observations which are related to provided care plan. The owner of observation can be a patient or person. Peopele of the same care team can fetch a list of observations. The user with MANAGE_ACCOUNT can fetch a list of observations which are own by person why garantied access for it to user.","operationId":"loadCarePlanListUsingGET_14","parameters":[{"name":"carePlanId","in":"path","description":"Care Plan ID","required":true,"type":"string"},{"name":"count","in":"query","description":"maximum number of results","required":false,"type":"integer","default":10,"format":"int32","allowEmptyValue":false,"x-example":10},{"name":"periodEnd","in":"query","description":"The end period of filtering","required":false,"type":"string","format":"date-time","allowEmptyValue":false},{"name":"periodStart","in":"query","description":"The start period of filtering","required":false,"type":"string","format":"date-time","allowEmptyValue":false},{"name":"start","in":"query","description":"start index to return (0+)","required":false,"type":"integer","default":0,"format":"int32","allowEmptyValue":false,"x-example":0},{"name":"userId","in":"path","description":"Platform user id (UUID)","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"type":"array","items":{"$ref":"#/definitions/OxygenSaturationObservationPayload"}}},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"No resources found for specified id"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false}},"/patient/{userId}/observation/oxygenSaturation/careplan/{carePlanId}/":{"post":{"tags":["Observation"],"summary":"Link all OxygenSaturation Vital Sign for provided user which are related to certain care plan","operationId":"linkToCarePlanUsingPOST_15","consumes":["application/json"],"parameters":[{"name":"carePlanId","in":"path","description":"Care Plan ID","required":true,"type":"string"},{"name":"userId","in":"path","description":"Platform user id (UUID)","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ResponseEntity"}},"201":{"description":"Created"},"204":{"description":"No content","schema":{"$ref":"#/definitions/ResponseEntity"}},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"No resources found for specified id"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false},"delete":{"tags":["Observation"],"summary":"Unlink all OxygenSaturation Vital Sign for provided user which are related to certain care plan","operationId":"unlinkToCarePlanUsingDELETE_15","parameters":[{"name":"carePlanId","in":"path","description":"Care Plan ID","required":true,"type":"string"},{"name":"userId","in":"path","description":"Platform user id (UUID)","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ResponseEntity"}},"204":{"description":"No content","schema":{"$ref":"#/definitions/ResponseEntity"}},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"No resources found for specified id"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false}},"/patient/{userId}/observation/oxygenSaturation/careplan/{carePlanId}/count":{"get":{"tags":["Observation"],"summary":"Retrive a count of all OxygenSaturation Vital Sign for provided user which are related to certain care plan","description":"The server will check is there access to load count of observations which are related to certain care plan. The owner of observation can be a patient or person. Peopele of the same care team can fetch count of observations. The user with MANAGE_ACCOUNT can fetch the count observations which are own by person why garantied access for it to user.","operationId":"getCarePlanObservationsCountUsingGET_14","parameters":[{"name":"carePlanId","in":"path","description":"Care Plan ID","required":true,"type":"string"},{"name":"periodEnd","in":"query","description":"The end period of filtering","required":false,"type":"string","format":"date-time","allowEmptyValue":false},{"name":"periodStart","in":"query","description":"The start period of filtering","required":false,"type":"string","format":"date-time","allowEmptyValue":false},{"name":"userId","in":"path","description":"Platform user id (UUID)","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/CountPayload"}},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"No resources found for specified id"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false}},"/patient/{userId}/observation/oxygenSaturation/count":{"get":{"tags":["Observation"],"summary":"Retrive a count of all OxygenSaturation Vital Sign for provided user","description":"The server will check is there access to load count of observations. The owner of observation can be a patient or person. Peopele of the same care team can fetch count of observations. The user with MANAGE_ACCOUNT can fetch the count observations which are own by person why garantied access for it to user.","operationId":"getCountUsingGET_14","parameters":[{"name":"periodEnd","in":"query","description":"The end period of filtering","required":false,"type":"string","format":"date-time","allowEmptyValue":false},{"name":"periodStart","in":"query","description":"The start period of filtering","required":false,"type":"string","format":"date-time","allowEmptyValue":false},{"name":"userId","in":"path","description":"Platform user id (UUID)","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/CountPayload"}},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"No resources found for specified id"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false}},"/patient/{userId}/observation/pulseRate":{"get":{"tags":["Observation"],"summary":"Retrive a list with optional pagination of PulseRate Vital Signs for provided user","description":"The server will check is there access to load a list of observations. The owner of observation can be a patient or person. Peopele of the same care team can fetch a list of observations. The user with MANAGE_ACCOUNT can fetch a list of observations which are own by person why garantied access for it to user.","operationId":"loadListUsingGET_15","parameters":[{"name":"count","in":"query","description":"maximum number of results","required":false,"type":"integer","default":10,"format":"int32","allowEmptyValue":false,"x-example":10},{"name":"periodEnd","in":"query","description":"The end period of filtering","required":false,"type":"string","format":"date-time","allowEmptyValue":false},{"name":"periodStart","in":"query","description":"The start period of filtering","required":false,"type":"string","format":"date-time","allowEmptyValue":false},{"name":"start","in":"query","description":"start index to return (0+)","required":false,"type":"integer","default":0,"format":"int32","allowEmptyValue":false,"x-example":0},{"name":"userId","in":"path","description":"Platform user id (UUID)","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"type":"array","items":{"$ref":"#/definitions/PulseRateObservationPayload"}}},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"No resources found for specified id"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false},"post":{"tags":["Observation"],"summary":"Create an PulseRate Vital Sign and link one to provided user","description":"The server will check is there access to create an observation and link it to provided user. The owner of observation can be a patient or person. Peopele of the same care team can create an observation and link it to provided user. The user with MANAGE_ACCOUNT can create an observation and link it to provided user why garantied access for it to user.","operationId":"createUsingPOST_27","consumes":["application/json"],"parameters":[{"in":"body","name":"request","description":"The request payload for create or update PulseRate Vital Sign. The validation rules will be applied on the server","required":true,"schema":{"$ref":"#/definitions/PulseRateObservationRequest"}},{"name":"userId","in":"path","description":"Platform user id (UUID)","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ResourceCreateResponse"}},"201":{"description":"Created","schema":{"$ref":"#/definitions/ResourceCreateResponse"}},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"No resources found for specified id"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false}},"/patient/{userId}/observation/pulseRate/careplan/{carePlanId}":{"get":{"tags":["Observation"],"summary":"Retrive a list with optional pagination of PulseRate Vital Signs for provided user and which are related to provided care plan.","description":"${medsafe.observation.oxygen.pulse.rate.list.notes}","operationId":"loadCarePlanListUsingGET_15","parameters":[{"name":"carePlanId","in":"path","description":"Care Plan ID","required":true,"type":"string"},{"name":"count","in":"query","description":"maximum number of results","required":false,"type":"integer","default":10,"format":"int32","allowEmptyValue":false,"x-example":10},{"name":"periodEnd","in":"query","description":"The end period of filtering","required":false,"type":"string","format":"date-time","allowEmptyValue":false},{"name":"periodStart","in":"query","description":"The start period of filtering","required":false,"type":"string","format":"date-time","allowEmptyValue":false},{"name":"start","in":"query","description":"start index to return (0+)","required":false,"type":"integer","default":0,"format":"int32","allowEmptyValue":false,"x-example":0},{"name":"userId","in":"path","description":"Platform user id (UUID)","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"type":"array","items":{"$ref":"#/definitions/PulseRateObservationPayload"}}},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"No resources found for specified id"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false}},"/patient/{userId}/observation/pulseRate/careplan/{carePlanId}/":{"post":{"tags":["Observation"],"summary":"Link all PulseRate Vital Sign for provided user which are related to certain care plan","operationId":"linkToCarePlanUsingPOST_16","consumes":["application/json"],"parameters":[{"name":"carePlanId","in":"path","description":"Care Plan ID","required":true,"type":"string"},{"name":"userId","in":"path","description":"Platform user id (UUID)","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ResponseEntity"}},"201":{"description":"Created"},"204":{"description":"No content","schema":{"$ref":"#/definitions/ResponseEntity"}},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"No resources found for specified id"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false},"delete":{"tags":["Observation"],"summary":"Unlink all PulseRate Vital Sign for provided user which are related to certain care plan","operationId":"unlinkToCarePlanUsingDELETE_16","parameters":[{"name":"carePlanId","in":"path","description":"Care Plan ID","required":true,"type":"string"},{"name":"userId","in":"path","description":"Platform user id (UUID)","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ResponseEntity"}},"204":{"description":"No content","schema":{"$ref":"#/definitions/ResponseEntity"}},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"No resources found for specified id"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false}},"/patient/{userId}/observation/pulseRate/careplan/{carePlanId}/count":{"get":{"tags":["Observation"],"summary":"Retrive a count of all PulseRate Vital Sign for provided user which are related to certain care plan","description":"The server will check is there access to load count of observations which are related to certain care plan. The owner of observation can be a patient or person. Peopele of the same care team can fetch count of observations. The user with MANAGE_ACCOUNT can fetch the count observations which are own by person why garantied access for it to user.","operationId":"getCarePlanObservationsCountUsingGET_15","parameters":[{"name":"carePlanId","in":"path","description":"Care Plan ID","required":true,"type":"string"},{"name":"periodEnd","in":"query","description":"The end period of filtering","required":false,"type":"string","format":"date-time","allowEmptyValue":false},{"name":"periodStart","in":"query","description":"The start period of filtering","required":false,"type":"string","format":"date-time","allowEmptyValue":false},{"name":"userId","in":"path","description":"Platform user id (UUID)","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/CountPayload"}},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"No resources found for specified id"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false}},"/patient/{userId}/observation/pulseRate/count":{"get":{"tags":["Observation"],"summary":"Retrive a count of all PulseRate Vital Sign for provided user","description":"The server will check is there access to load count of observations. The owner of observation can be a patient or person. Peopele of the same care team can fetch count of observations. The user with MANAGE_ACCOUNT can fetch the count observations which are own by person why garantied access for it to user.","operationId":"getCountUsingGET_15","parameters":[{"name":"periodEnd","in":"query","description":"The end period of filtering","required":false,"type":"string","format":"date-time","allowEmptyValue":false},{"name":"periodStart","in":"query","description":"The start period of filtering","required":false,"type":"string","format":"date-time","allowEmptyValue":false},{"name":"userId","in":"path","description":"Platform user id (UUID)","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/CountPayload"}},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"No resources found for specified id"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false}},"/patient/{userId}/observation/quantity":{"post":{"tags":["Observation"],"summary":"Create an Quantity Observation and link one to provided user","description":"The server will check is there access to create an observation and link it to provided user. The owner of observation can be a patient or person. Peopele of the same care team can create an observation and link it to provided user. The user with MANAGE_ACCOUNT can create an observation and link it to provided user why garantied access for it to user.","operationId":"createUsingPOST_28","consumes":["application/json"],"parameters":[{"in":"body","name":"request","description":"The request payload for create or update Quantity Observation. The validation rules will be applied on the server","required":true,"schema":{"$ref":"#/definitions/QuantityObservationRequest"}},{"name":"userId","in":"path","description":"Platform user id (UUID)","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ResourceCreateResponse"}},"201":{"description":"Created","schema":{"$ref":"#/definitions/ResourceCreateResponse"}},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"No resources found for specified id"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false}},"/patient/{userId}/observation/quantity/{observationType}":{"get":{"tags":["Observation"],"summary":"Retrive a list with optional pagination of Quantity Observation for provided user","description":"The server will check is there access to load a list of observations. The owner of observation can be a patient or person. Peopele of the same care team can fetch a list of observations. The user with MANAGE_ACCOUNT can fetch a list of observations which are own by person why garantied access for it to user.","operationId":"loadListUsingGET_16","parameters":[{"name":"count","in":"query","description":"maximum number of results","required":false,"type":"integer","default":10,"format":"int32","allowEmptyValue":false,"x-example":10},{"name":"observationType","in":"path","description":"Type of Quantity Observation","required":false,"type":"string","enum":["SIX_MINUTES_WALKING","TIMED_UP_AND_GO","COGNITIVE_MOTOR","GAIT_SPEED","BALANCE","EXECUTIVE_FUNCTION","PROCESSING_SPEED","ATTENTION","WORKING_MEMORY","EPISODIC_MEMORY","LONG_TERM_STRESS","SHORT_TERM_STRESS","HBA1C"]},{"name":"periodEnd","in":"query","description":"The end period of filtering","required":false,"type":"string","format":"date-time","allowEmptyValue":false},{"name":"periodStart","in":"query","description":"The start period of filtering","required":false,"type":"string","format":"date-time","allowEmptyValue":false},{"name":"start","in":"query","description":"start index to return (0+)","required":false,"type":"integer","default":0,"format":"int32","allowEmptyValue":false,"x-example":0},{"name":"userId","in":"path","description":"Platform user id (UUID)","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"type":"array","items":{"$ref":"#/definitions/QuantityObservationPayload"}}},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"No resources found for specified id"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false}},"/patient/{userId}/observation/quantity/{observationType}/count":{"get":{"tags":["Observation"],"summary":"Retrive a count of all Quantity Observations for provided user","description":"The server will check is there access to load count of observations. The owner of observation can be a patient or person. Peopele of the same care team can fetch count of observations. The user with MANAGE_ACCOUNT can fetch the count observations which are own by person why garantied access for it to user.","operationId":"getCountUsingGET_16","parameters":[{"name":"observationType","in":"path","description":"Type of Quantity Observation","required":false,"type":"string","enum":["SIX_MINUTES_WALKING","TIMED_UP_AND_GO","COGNITIVE_MOTOR","GAIT_SPEED","BALANCE","EXECUTIVE_FUNCTION","PROCESSING_SPEED","ATTENTION","WORKING_MEMORY","EPISODIC_MEMORY","LONG_TERM_STRESS","SHORT_TERM_STRESS","HBA1C"]},{"name":"periodEnd","in":"query","description":"The end period of filtering","required":false,"type":"string","format":"date-time","allowEmptyValue":false},{"name":"periodStart","in":"query","description":"The start period of filtering","required":false,"type":"string","format":"date-time","allowEmptyValue":false},{"name":"userId","in":"path","description":"Platform user id (UUID)","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/CountPayload"}},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"No resources found for specified id"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false}},"/patient/{userId}/observation/respiratoryRate":{"get":{"tags":["Observation"],"summary":"${medsafe.observation.respiratory.rate.list}","description":"${medsafe.observation.respiratory.rate.list.notes}","operationId":"loadListUsingGET_17","parameters":[{"name":"count","in":"query","description":"maximum number of results","required":false,"type":"integer","default":10,"format":"int32","allowEmptyValue":false,"x-example":10},{"name":"periodEnd","in":"query","description":"The end period of filtering","required":false,"type":"string","format":"date-time","allowEmptyValue":false},{"name":"periodStart","in":"query","description":"The start period of filtering","required":false,"type":"string","format":"date-time","allowEmptyValue":false},{"name":"start","in":"query","description":"start index to return (0+)","required":false,"type":"integer","default":0,"format":"int32","allowEmptyValue":false,"x-example":0},{"name":"userId","in":"path","description":"Platform user id (UUID)","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"type":"array","items":{"$ref":"#/definitions/RespiratoryRateObservationPayload"}}},"400":{"description":"Bad request"},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"No resources found for specified id"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false},"post":{"tags":["Observation"],"summary":"${medsafe.observation.respiratory.rate.create}","description":"${medsafe.observation.respiratory.rate.create.notes}","operationId":"createUsingPOST_29","consumes":["application/json"],"parameters":[{"in":"body","name":"request","description":"${medsafe.observation.respiratory.rate.request}","required":true,"schema":{"$ref":"#/definitions/RespiratoryRateObservationRequest"}},{"name":"userId","in":"path","description":"Platform user id (UUID)","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ResourceCreateResponse"}},"201":{"description":"Created","schema":{"$ref":"#/definitions/ResourceCreateResponse"}},"400":{"description":"Bad Request"},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"No resources found for specified id"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false}},"/patient/{userId}/observation/respiratoryRate/careplan/{carePlanId}":{"get":{"tags":["Observation"],"summary":"${medsafe.observation.respiratory.rate.careplan.list}","description":"${medsafe.observation.respiratory.rate.careplan.list.notes}","operationId":"loadCarePlanListUsingGET_16","parameters":[{"name":"carePlanId","in":"path","description":"Care Plan ID","required":true,"type":"string"},{"name":"count","in":"query","description":"maximum number of results","required":false,"type":"integer","default":10,"format":"int32","allowEmptyValue":false,"x-example":10},{"name":"periodEnd","in":"query","description":"The end period of filtering","required":false,"type":"string","format":"date-time","allowEmptyValue":false},{"name":"periodStart","in":"query","description":"The start period of filtering","required":false,"type":"string","format":"date-time","allowEmptyValue":false},{"name":"start","in":"query","description":"start index to return (0+)","required":false,"type":"integer","default":0,"format":"int32","allowEmptyValue":false,"x-example":0},{"name":"userId","in":"path","description":"Platform user id (UUID)","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"type":"array","items":{"$ref":"#/definitions/RespiratoryRateObservationPayload"}}},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"No resources found for specified id"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false}},"/patient/{userId}/observation/respiratoryRate/careplan/{carePlanId}/":{"post":{"tags":["Observation"],"summary":"${medsafe.observation.respiratory.rate.careplan.link.all}","operationId":"linkToCarePlanUsingPOST_17","consumes":["application/json"],"parameters":[{"name":"carePlanId","in":"path","description":"Care Plan ID","required":true,"type":"string"},{"name":"userId","in":"path","description":"Platform user id (UUID)","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ResponseEntity"}},"201":{"description":"Created"},"204":{"description":"No content","schema":{"$ref":"#/definitions/ResponseEntity"}},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"No resources found for specified id"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false},"delete":{"tags":["Observation"],"summary":"${medsafe.observation.respiratory.rate.careplan.unlink.all}","operationId":"unlinkToCarePlanUsingDELETE_17","parameters":[{"name":"carePlanId","in":"path","description":"Care Plan ID","required":true,"type":"string"},{"name":"userId","in":"path","description":"Platform user id (UUID)","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ResponseEntity"}},"204":{"description":"No content","schema":{"$ref":"#/definitions/ResponseEntity"}},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"No resources found for specified id"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false}},"/patient/{userId}/observation/respiratoryRate/careplan/{carePlanId}/count":{"get":{"tags":["Observation"],"summary":"${medsafe.observation.respiratory.rate.careplan.count}","description":"${medsafe.observation.respiratory.rate.count.notes}","operationId":"getCarePlanObservationsCountUsingGET_16","parameters":[{"name":"carePlanId","in":"path","description":"Care Plan ID","required":true,"type":"string"},{"name":"periodEnd","in":"query","description":"The end period of filtering","required":false,"type":"string","format":"date-time","allowEmptyValue":false},{"name":"periodStart","in":"query","description":"The start period of filtering","required":false,"type":"string","format":"date-time","allowEmptyValue":false},{"name":"userId","in":"path","description":"Platform user id (UUID)","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/CountPayload"}},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"No resources found for specified id"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false}},"/patient/{userId}/observation/respiratoryRate/count":{"get":{"tags":["Observation"],"summary":"${medsafe.observation.respiratory.rate.count}","description":"${medsafe.observation.respiratory.rate.count.notes}","operationId":"getCountUsingGET_17","parameters":[{"name":"periodEnd","in":"query","description":"The end period of filtering","required":false,"type":"string","format":"date-time","allowEmptyValue":false},{"name":"periodStart","in":"query","description":"The start period of filtering","required":false,"type":"string","format":"date-time","allowEmptyValue":false},{"name":"userId","in":"path","description":"Platform user id (UUID)","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/CountPayload"}},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"No resources found for specified id"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false}},"/patient/{userId}/observation/sleeping":{"get":{"tags":["Observation"],"summary":"${medsafe.observation.sleeping.list}","description":"${medsafe.observation.sleeping.list.notes}","operationId":"loadListUsingGET_18","parameters":[{"name":"count","in":"query","description":"maximum number of results","required":false,"type":"integer","default":10,"format":"int32","allowEmptyValue":false,"x-example":10},{"name":"periodEnd","in":"query","description":"The end period of filtering","required":false,"type":"string","format":"date-time","allowEmptyValue":false},{"name":"periodStart","in":"query","description":"The start period of filtering","required":false,"type":"string","format":"date-time","allowEmptyValue":false},{"name":"start","in":"query","description":"start index to return (0+)","required":false,"type":"integer","default":0,"format":"int32","allowEmptyValue":false,"x-example":0},{"name":"userId","in":"path","description":"Platform user id (UUID)","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"type":"array","items":{"$ref":"#/definitions/SleepingObservationPayload"}}},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"No resources found for specified id"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false},"post":{"tags":["Observation"],"summary":"${medsafe.observation.sleeping.create}","description":"${medsafe.observation.sleeping.create.notes}","operationId":"createUsingPOST_31","consumes":["application/json"],"parameters":[{"in":"body","name":"request","description":"${medsafe.observation.sleeping.request}","required":true,"schema":{"$ref":"#/definitions/SleepingObservationRequest"}},{"name":"userId","in":"path","description":"Platform user id (UUID)","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ResourceCreateResponse"}},"201":{"description":"Created","schema":{"$ref":"#/definitions/ResourceCreateResponse"}},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"No resources found for specified id"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false}},"/patient/{userId}/observation/sleeping/careplan/{carePlanId}":{"get":{"tags":["Observation"],"summary":"${medsafe.observation.sleeping.careplan.list}","description":"${medsafe.observation.sleeping.careplan.list.notes}","operationId":"loadCarePlanListUsingGET_17","parameters":[{"name":"carePlanId","in":"path","description":"Care Plan ID","required":true,"type":"string"},{"name":"count","in":"query","description":"maximum number of results","required":false,"type":"integer","default":10,"format":"int32","allowEmptyValue":false,"x-example":10},{"name":"periodEnd","in":"query","description":"The end period of filtering","required":false,"type":"string","format":"date-time","allowEmptyValue":false},{"name":"periodStart","in":"query","description":"The start period of filtering","required":false,"type":"string","format":"date-time","allowEmptyValue":false},{"name":"start","in":"query","description":"start index to return (0+)","required":false,"type":"integer","default":0,"format":"int32","allowEmptyValue":false,"x-example":0},{"name":"userId","in":"path","description":"Platform user id (UUID)","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"type":"array","items":{"$ref":"#/definitions/SleepingObservationPayload"}}},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"No resources found for specified id"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false}},"/patient/{userId}/observation/sleeping/careplan/{carePlanId}/":{"post":{"tags":["Observation"],"summary":"${medsafe.observation.sleeping.careplan.link.all}","operationId":"linkToCarePlanUsingPOST_18","consumes":["application/json"],"parameters":[{"name":"carePlanId","in":"path","description":"Care Plan ID","required":true,"type":"string"},{"name":"userId","in":"path","description":"Platform user id (UUID)","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ResponseEntity"}},"201":{"description":"Created"},"204":{"description":"No content","schema":{"$ref":"#/definitions/ResponseEntity"}},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"No resources found for specified id"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false},"delete":{"tags":["Observation"],"summary":"${medsafe.observation.sleeping.careplan.unlink.all}","operationId":"unlinkToCarePlanUsingDELETE_18","parameters":[{"name":"carePlanId","in":"path","description":"Care Plan ID","required":true,"type":"string"},{"name":"userId","in":"path","description":"Platform user id (UUID)","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ResponseEntity"}},"204":{"description":"No content","schema":{"$ref":"#/definitions/ResponseEntity"}},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"No resources found for specified id"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false}},"/patient/{userId}/observation/sleeping/careplan/{carePlanId}/count":{"get":{"tags":["Observation"],"summary":"${medsafe.observation.sleeping.careplan.count}","description":"${medsafe.observation.sleeping.careplan.count.notes}","operationId":"getCarePlanObservationsCountUsingGET_17","parameters":[{"name":"carePlanId","in":"path","description":"Care Plan ID","required":true,"type":"string"},{"name":"periodEnd","in":"query","description":"The end period of filtering","required":false,"type":"string","format":"date-time","allowEmptyValue":false},{"name":"periodStart","in":"query","description":"The start period of filtering","required":false,"type":"string","format":"date-time","allowEmptyValue":false},{"name":"userId","in":"path","description":"Platform user id (UUID)","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/CountPayload"}},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"No resources found for specified id"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false}},"/patient/{userId}/observation/sleeping/count":{"get":{"tags":["Observation"],"summary":"${medsafe.observation.sleeping.count}","description":"${medsafe.observation.sleeping.count.notes}","operationId":"getCountUsingGET_18","parameters":[{"name":"periodEnd","in":"query","description":"The end period of filtering","required":false,"type":"string","format":"date-time","allowEmptyValue":false},{"name":"periodStart","in":"query","description":"The start period of filtering","required":false,"type":"string","format":"date-time","allowEmptyValue":false},{"name":"userId","in":"path","description":"Platform user id (UUID)","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/CountPayload"}},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"No resources found for specified id"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false}},"/patient/{userId}/observation/stepCounter":{"get":{"tags":["Observation"],"summary":"${medsafe.observation.step.counter.list}","description":"${medsafe.observation.step.counter.list.notes}","operationId":"loadListUsingGET_19","parameters":[{"name":"count","in":"query","description":"maximum number of results","required":false,"type":"integer","default":10,"format":"int32","allowEmptyValue":false,"x-example":10},{"name":"periodEnd","in":"query","description":"The end period of filtering","required":false,"type":"string","format":"date-time","allowEmptyValue":false},{"name":"periodStart","in":"query","description":"The start period of filtering","required":false,"type":"string","format":"date-time","allowEmptyValue":false},{"name":"start","in":"query","description":"start index to return (0+)","required":false,"type":"integer","default":0,"format":"int32","allowEmptyValue":false,"x-example":0},{"name":"userId","in":"path","description":"Platform user id (UUID)","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"type":"array","items":{"$ref":"#/definitions/StepCounterObservationPayload"}}},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"No resources found for specified id"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false},"post":{"tags":["Observation"],"summary":"${medsafe.observation.step.counter.create}","description":"${medsafe.observation.step.counter.create.notes}","operationId":"createUsingPOST_32","consumes":["application/json"],"parameters":[{"in":"body","name":"request","description":"${medsafe.observation.step.counter.request}","required":true,"schema":{"$ref":"#/definitions/StepCounterObservationRequest"}},{"name":"userId","in":"path","description":"Platform user id (UUID)","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ResourceCreateResponse"}},"201":{"description":"Created","schema":{"$ref":"#/definitions/ResourceCreateResponse"}},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"No resources found for specified id"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false}},"/patient/{userId}/observation/stepCounter/careplan/{carePlanId}":{"get":{"tags":["Observation"],"summary":"${medsafe.observation.step.counter.careplan.list}","description":"${medsafe.observation.step.counter.careplan.list.notes}","operationId":"loadCarePlanListUsingGET_18","parameters":[{"name":"carePlanId","in":"path","description":"Care Plan ID","required":true,"type":"string"},{"name":"count","in":"query","description":"maximum number of results","required":false,"type":"integer","default":10,"format":"int32","allowEmptyValue":false,"x-example":10},{"name":"periodEnd","in":"query","description":"The end period of filtering","required":false,"type":"string","format":"date-time","allowEmptyValue":false},{"name":"periodStart","in":"query","description":"The start period of filtering","required":false,"type":"string","format":"date-time","allowEmptyValue":false},{"name":"start","in":"query","description":"start index to return (0+)","required":false,"type":"integer","default":0,"format":"int32","allowEmptyValue":false,"x-example":0},{"name":"userId","in":"path","description":"Platform user id (UUID)","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"type":"array","items":{"$ref":"#/definitions/StepCounterObservationPayload"}}},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"No resources found for specified id"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false}},"/patient/{userId}/observation/stepCounter/careplan/{carePlanId}/":{"post":{"tags":["Observation"],"summary":"${medsafe.observation.step.counter.careplan.link.all}","operationId":"linkToCarePlanUsingPOST_19","consumes":["application/json"],"parameters":[{"name":"carePlanId","in":"path","description":"Care Plan ID","required":true,"type":"string"},{"name":"userId","in":"path","description":"Platform user id (UUID)","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ResponseEntity"}},"201":{"description":"Created"},"204":{"description":"No content","schema":{"$ref":"#/definitions/ResponseEntity"}},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"No resources found for specified id"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false},"delete":{"tags":["Observation"],"summary":"${medsafe.observation.step.counter.careplan.unlink.all}","operationId":"unlinkToCarePlanUsingDELETE_19","parameters":[{"name":"carePlanId","in":"path","description":"Care Plan ID","required":true,"type":"string"},{"name":"userId","in":"path","description":"Platform user id (UUID)","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ResponseEntity"}},"204":{"description":"No content","schema":{"$ref":"#/definitions/ResponseEntity"}},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"No resources found for specified id"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false}},"/patient/{userId}/observation/stepCounter/careplan/{carePlanId}/count":{"get":{"tags":["Observation"],"summary":"${medsafe.observation.step.counter.careplan.count}","description":"${medsafe.observation.step.counter.careplan.count.notes}","operationId":"getCarePlanObservationsCountUsingGET_18","parameters":[{"name":"carePlanId","in":"path","description":"Care Plan ID","required":true,"type":"string"},{"name":"periodEnd","in":"query","description":"The end period of filtering","required":false,"type":"string","format":"date-time","allowEmptyValue":false},{"name":"periodStart","in":"query","description":"The start period of filtering","required":false,"type":"string","format":"date-time","allowEmptyValue":false},{"name":"userId","in":"path","description":"Platform user id (UUID)","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/CountPayload"}},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"No resources found for specified id"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false}},"/patient/{userId}/observation/stepCounter/count":{"get":{"tags":["Observation"],"summary":"${medsafe.observation.step.counter.count}","description":"${medsafe.observation.step.counter.count.notes}","operationId":"getCountUsingGET_19","parameters":[{"name":"periodEnd","in":"query","description":"The end period of filtering","required":false,"type":"string","format":"date-time","allowEmptyValue":false},{"name":"periodStart","in":"query","description":"The start period of filtering","required":false,"type":"string","format":"date-time","allowEmptyValue":false},{"name":"userId","in":"path","description":"Platform user id (UUID)","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/CountPayload"}},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"No resources found for specified id"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false}},"/patient/{userId}/observation/thresholds":{"get":{"tags":["Observation"],"summary":"${medsafe.observation.get.thresholds}","operationId":"getThresholdStatisticsUsingGET","parameters":[{"name":"observationTypes","in":"query","description":"observation type","required":false,"type":"array","items":{"type":"string"},"collectionFormat":"multi","allowEmptyValue":false},{"name":"userId","in":"path","description":"Platform user id (UUID)","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ObservationStatisticPayload"}},"400":{"description":"Bad request"},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"Not Found"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false}},"/patient/{userId}/observation/waistCircumference":{"get":{"tags":["Observation"],"summary":"Retrive a list with optional pagination of WaistCircumference Vital Signs for provided user","description":"The server will check is there access to load a list of observations. The owner of observation can be a patient or person. Peopele of the same care team can fetch a list of observations. The user with MANAGE_ACCOUNT can fetch a list of observations which are own by person why garantied access for it to user.","operationId":"loadListUsingGET_20","parameters":[{"name":"count","in":"query","description":"maximum number of results","required":false,"type":"integer","default":10,"format":"int32","allowEmptyValue":false,"x-example":10},{"name":"periodEnd","in":"query","description":"The end period of filtering","required":false,"type":"string","format":"date-time","allowEmptyValue":false},{"name":"periodStart","in":"query","description":"The start period of filtering","required":false,"type":"string","format":"date-time","allowEmptyValue":false},{"name":"start","in":"query","description":"start index to return (0+)","required":false,"type":"integer","default":0,"format":"int32","allowEmptyValue":false,"x-example":0},{"name":"userId","in":"path","description":"Platform user id (UUID)","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"type":"array","items":{"$ref":"#/definitions/WaistCircumferenceObservationPayload"}}},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"No resources found for specified id"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false},"post":{"tags":["Observation"],"summary":"Create an WaistCircumference Vital Sign and link one to provided user","description":"The server will check is there access to create an observation and link it to provided user. The owner of observation can be a patient or person. Peopele of the same care team can create an observation and link it to provided user. The user with MANAGE_ACCOUNT can create an observation and link it to provided user why garantied access for it to user.","operationId":"createUsingPOST_35","consumes":["application/json"],"parameters":[{"in":"body","name":"request","description":"The request payload for create or update WaistCircumference Vital Sign. The validation rules will be applied on the server","required":true,"schema":{"$ref":"#/definitions/WaistCircumferenceObservationRequest"}},{"name":"userId","in":"path","description":"Platform user id (UUID)","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ResourceCreateResponse"}},"201":{"description":"Created","schema":{"$ref":"#/definitions/ResourceCreateResponse"}},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"No resources found for specified id"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false}},"/patient/{userId}/observation/waistCircumference/careplan/{carePlanId}":{"get":{"tags":["Observation"],"summary":"Retrive a list with optional pagination of WaistCircumference Vital Signs for provided user and which are related to provided care plan.","description":"The server will check is there access to load a list of observations which are related to provided care plan. The owner of observation can be a patient or person. Peopele of the same care team can fetch a list of observations. The user with MANAGE_ACCOUNT can fetch a list of observations which are own by person why garantied access for it to user.","operationId":"loadCarePlanListUsingGET_19","parameters":[{"name":"carePlanId","in":"path","description":"Care Plan ID","required":true,"type":"string"},{"name":"count","in":"query","description":"maximum number of results","required":false,"type":"integer","default":10,"format":"int32","allowEmptyValue":false,"x-example":10},{"name":"periodEnd","in":"query","description":"The end period of filtering","required":false,"type":"string","format":"date-time","allowEmptyValue":false},{"name":"periodStart","in":"query","description":"The start period of filtering","required":false,"type":"string","format":"date-time","allowEmptyValue":false},{"name":"start","in":"query","description":"start index to return (0+)","required":false,"type":"integer","default":0,"format":"int32","allowEmptyValue":false,"x-example":0},{"name":"userId","in":"path","description":"Platform user id (UUID)","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"type":"array","items":{"$ref":"#/definitions/WaistCircumferenceObservationPayload"}}},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"No resources found for specified id"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false}},"/patient/{userId}/observation/waistCircumference/careplan/{carePlanId}/":{"post":{"tags":["Observation"],"summary":"Link all WaistCircumference Vital Sign for provided user which are related to certain care plan","operationId":"linkToCarePlanUsingPOST_20","consumes":["application/json"],"parameters":[{"name":"carePlanId","in":"path","description":"Care Plan ID","required":true,"type":"string"},{"name":"userId","in":"path","description":"Platform user id (UUID)","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ResponseEntity"}},"201":{"description":"Created"},"204":{"description":"No content","schema":{"$ref":"#/definitions/ResponseEntity"}},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"No resources found for specified id"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false},"delete":{"tags":["Observation"],"summary":"Unlink all WaistCircumference Vital Sign for provided user which are related to certain care plan","operationId":"unlinkToCarePlanUsingDELETE_20","parameters":[{"name":"carePlanId","in":"path","description":"Care Plan ID","required":true,"type":"string"},{"name":"userId","in":"path","description":"Platform user id (UUID)","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ResponseEntity"}},"204":{"description":"No content","schema":{"$ref":"#/definitions/ResponseEntity"}},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"No resources found for specified id"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false}},"/patient/{userId}/observation/waistCircumference/careplan/{carePlanId}/count":{"get":{"tags":["Observation"],"summary":"Retrive a count of all WaistCircumference Vital Sign for provided user which are related to certain care plan","description":"The server will check is there access to load count of observations which are related to certain care plan. The owner of observation can be a patient or person. Peopele of the same care team can fetch count of observations. The user with MANAGE_ACCOUNT can fetch the count observations which are own by person why garantied access for it to user.","operationId":"getCarePlanObservationsCountUsingGET_19","parameters":[{"name":"carePlanId","in":"path","description":"Care Plan ID","required":true,"type":"string"},{"name":"periodEnd","in":"query","description":"The end period of filtering","required":false,"type":"string","format":"date-time","allowEmptyValue":false},{"name":"periodStart","in":"query","description":"The start period of filtering","required":false,"type":"string","format":"date-time","allowEmptyValue":false},{"name":"userId","in":"path","description":"Platform user id (UUID)","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/CountPayload"}},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"No resources found for specified id"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false}},"/patient/{userId}/observation/waistCircumference/count":{"get":{"tags":["Observation"],"summary":"Retrive a count of all WaistCircumference Vital Sign for provided user","description":"The server will check is there access to load count of observations. The owner of observation can be a patient or person. Peopele of the same care team can fetch count of observations. The user with MANAGE_ACCOUNT can fetch the count observations which are own by person why garantied access for it to user.","operationId":"getCountUsingGET_20","parameters":[{"name":"periodEnd","in":"query","description":"The end period of filtering","required":false,"type":"string","format":"date-time","allowEmptyValue":false},{"name":"periodStart","in":"query","description":"The start period of filtering","required":false,"type":"string","format":"date-time","allowEmptyValue":false},{"name":"userId","in":"path","description":"Platform user id (UUID)","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/CountPayload"}},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"No resources found for specified id"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false}},"/patient/{userId}/observation/waistHeightRatio":{"get":{"tags":["Observation"],"summary":"Retrive a list with optional pagination of WaistHeightRatio Vital Signs for provided user","description":"The server will check is there access to load a list of observations. The owner of observation can be a patient or person. Peopele of the same care team can fetch a list of observations. The user with MANAGE_ACCOUNT can fetch a list of observations which are own by person why garantied access for it to user.","operationId":"loadListUsingGET_21","parameters":[{"name":"count","in":"query","description":"maximum number of results","required":false,"type":"integer","default":10,"format":"int32","allowEmptyValue":false,"x-example":10},{"name":"periodEnd","in":"query","description":"The end period of filtering","required":false,"type":"string","format":"date-time","allowEmptyValue":false},{"name":"periodStart","in":"query","description":"The start period of filtering","required":false,"type":"string","format":"date-time","allowEmptyValue":false},{"name":"start","in":"query","description":"start index to return (0+)","required":false,"type":"integer","default":0,"format":"int32","allowEmptyValue":false,"x-example":0},{"name":"userId","in":"path","description":"Platform user id (UUID)","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"type":"array","items":{"$ref":"#/definitions/WaistHeightRatioObservationPayload"}}},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"No resources found for specified id"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false},"post":{"tags":["Observation"],"summary":"Create an WaistHeightRatio Vital Sign and link one to provided user","description":"The server will check is there access to create an observation and link it to provided user. The owner of observation can be a patient or person. Peopele of the same care team can create an observation and link it to provided user. The user with MANAGE_ACCOUNT can create an observation and link it to provided user why garantied access for it to user.","operationId":"createUsingPOST_36","consumes":["application/json"],"parameters":[{"in":"body","name":"request","description":"The request payload for create or update WaistHeightRatio Vital Sign. The validation rules will be applied on the server","required":true,"schema":{"$ref":"#/definitions/WaistHeightRatioObservationRequest"}},{"name":"userId","in":"path","description":"Platform user id (UUID)","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ResourceCreateResponse"}},"201":{"description":"Created","schema":{"$ref":"#/definitions/ResourceCreateResponse"}},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"No resources found for specified id"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false}},"/patient/{userId}/observation/waistHeightRatio/careplan/{carePlanId}":{"get":{"tags":["Observation"],"summary":"Retrive a list with optional pagination of WaistHeightRatio Vital Signs for provided user and which are related to provided care plan.","description":"The server will check is there access to load a list of observations which are related to provided care plan. The owner of observation can be a patient or person. Peopele of the same care team can fetch a list of observations. The user with MANAGE_ACCOUNT can fetch a list of observations which are own by person why garantied access for it to user.","operationId":"loadCarePlanListUsingGET_20","parameters":[{"name":"carePlanId","in":"path","description":"Care Plan ID","required":true,"type":"string"},{"name":"count","in":"query","description":"maximum number of results","required":false,"type":"integer","default":10,"format":"int32","allowEmptyValue":false,"x-example":10},{"name":"periodEnd","in":"query","description":"The end period of filtering","required":false,"type":"string","format":"date-time","allowEmptyValue":false},{"name":"periodStart","in":"query","description":"The start period of filtering","required":false,"type":"string","format":"date-time","allowEmptyValue":false},{"name":"start","in":"query","description":"start index to return (0+)","required":false,"type":"integer","default":0,"format":"int32","allowEmptyValue":false,"x-example":0},{"name":"userId","in":"path","description":"Platform user id (UUID)","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"type":"array","items":{"$ref":"#/definitions/WaistHeightRatioObservationPayload"}}},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"No resources found for specified id"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false}},"/patient/{userId}/observation/waistHeightRatio/careplan/{carePlanId}/":{"post":{"tags":["Observation"],"summary":"Link all WaistHeightRatio Vital Sign for provided user which are related to certain care plan","operationId":"linkToCarePlanUsingPOST_21","consumes":["application/json"],"parameters":[{"name":"carePlanId","in":"path","description":"Care Plan ID","required":true,"type":"string"},{"name":"userId","in":"path","description":"Platform user id (UUID)","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ResponseEntity"}},"201":{"description":"Created"},"204":{"description":"No content","schema":{"$ref":"#/definitions/ResponseEntity"}},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"No resources found for specified id"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false},"delete":{"tags":["Observation"],"summary":"Unlink all WaistHeightRatio Vital Sign for provided user which are related to certain care plan","operationId":"unlinkToCarePlanUsingDELETE_21","parameters":[{"name":"carePlanId","in":"path","description":"Care Plan ID","required":true,"type":"string"},{"name":"userId","in":"path","description":"Platform user id (UUID)","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ResponseEntity"}},"204":{"description":"No content","schema":{"$ref":"#/definitions/ResponseEntity"}},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"No resources found for specified id"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false}},"/patient/{userId}/observation/waistHeightRatio/careplan/{carePlanId}/count":{"get":{"tags":["Observation"],"summary":"Retrive a count of all WaistHeightRatio Vital Sign for provided user which are related to certain care plan","description":"The server will check is there access to load count of observations which are related to certain care plan. The owner of observation can be a patient or person. Peopele of the same care team can fetch count of observations. The user with MANAGE_ACCOUNT can fetch the count observations which are own by person why garantied access for it to user.","operationId":"getCarePlanObservationsCountUsingGET_20","parameters":[{"name":"carePlanId","in":"path","description":"Care Plan ID","required":true,"type":"string"},{"name":"periodEnd","in":"query","description":"The end period of filtering","required":false,"type":"string","format":"date-time","allowEmptyValue":false},{"name":"periodStart","in":"query","description":"The start period of filtering","required":false,"type":"string","format":"date-time","allowEmptyValue":false},{"name":"userId","in":"path","description":"Platform user id (UUID)","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/CountPayload"}},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"No resources found for specified id"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false}},"/patient/{userId}/observation/waistHeightRatio/count":{"get":{"tags":["Observation"],"summary":"Retrive a count of all WaistHeightRatio Vital Sign for provided user","description":"The server will check is there access to load count of observations. The owner of observation can be a patient or person. Peopele of the same care team can fetch count of observations. The user with MANAGE_ACCOUNT can fetch the count observations which are own by person why garantied access for it to user.","operationId":"getCountUsingGET_21","parameters":[{"name":"periodEnd","in":"query","description":"The end period of filtering","required":false,"type":"string","format":"date-time","allowEmptyValue":false},{"name":"periodStart","in":"query","description":"The start period of filtering","required":false,"type":"string","format":"date-time","allowEmptyValue":false},{"name":"userId","in":"path","description":"Platform user id (UUID)","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/CountPayload"}},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"No resources found for specified id"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false}},"/patient/{userId}/observation/{observationId}":{"delete":{"tags":["Observation"],"summary":"Delete observation by specified id","operationId":"deleteUsingDELETE_9","parameters":[{"name":"observationId","in":"path","description":"observation id","required":true,"type":"string"},{"name":"userId","in":"path","description":"Platform user id (UUID)","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ResponseEntity"}},"204":{"description":"No content","schema":{"$ref":"#/definitions/ResponseEntity"}},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"No resources found for specified id"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false}},"/patient/{userId}/observation/{observationId}/activeMinutes":{"get":{"tags":["Observation"],"summary":"${medsafe.observation.active.minutes.get}","description":"${medsafe.observation.active.minutes.get.notes}","operationId":"loadByIdUsingGET","parameters":[{"name":"observationId","in":"path","description":"observation id","required":true,"type":"string"},{"name":"userId","in":"path","description":"Platform user id (UUID)","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ActiveMinutesObservationPayload"}},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"No resources found for specified id"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false},"put":{"tags":["Observation"],"summary":"${medsafe.observation.active.minutes.update}","description":"${medsafe.observation.active.minutes.update.notes}","operationId":"updateUsingPUT","consumes":["application/json"],"parameters":[{"name":"observationId","in":"path","description":"observation id","required":true,"type":"string"},{"in":"body","name":"request","description":"${medsafe.observation.active.minutes.request}","required":true,"schema":{"$ref":"#/definitions/ActiveMinutesObservationRequest"}},{"name":"userId","in":"path","description":"Platform user id (UUID)","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ResponseEntity"}},"201":{"description":"Created"},"204":{"description":"No content","schema":{"$ref":"#/definitions/ResponseEntity"}},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"No resources found for specified id"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false}},"/patient/{userId}/observation/{observationId}/basalMetabolicRate":{"get":{"tags":["Observation"],"summary":"${medsafe.observation.basal.metabolic.rate.get}","description":"${medsafe.observation.basal.metabolic.rate.get.notes}","operationId":"loadByIdUsingGET_1","parameters":[{"name":"observationId","in":"path","description":"observation id","required":true,"type":"string"},{"name":"userId","in":"path","description":"Platform user id (UUID)","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/BasalMetabolicRateObservationPayload"}},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"No resources found for specified id"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false}},"/patient/{userId}/observation/{observationId}/bloodGlucose":{"get":{"tags":["Observation"],"summary":"Retrive an BloodGlucose Vital Sign by id for provided user","description":"The server will check is there access to load this observation. The owner of observation can be a patient or person. Peopele of the same care team can fetch this observation. The user with MANAGE_ACCOUNT can fetch the observation with is own by person why garantied access for it to user.","operationId":"loadByIdUsingGET_2","parameters":[{"name":"observationId","in":"path","description":"observation id","required":true,"type":"string"},{"name":"userId","in":"path","description":"Platform user id (UUID)","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/BloodGlucoseObservationPayload"}},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"No resources found for specified id"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false},"put":{"tags":["Observation"],"summary":"Update an BloodGlucose Vital Sign by id for provided user","description":"The server will check is there access to update an observation. The owner of observation can be a patient or person. Peopele of the same care team can update an observation . The user with MANAGE_ACCOUNT can update an observation which is own by provided user why garantied access for it to user.","operationId":"updateUsingPUT_4","consumes":["application/json"],"parameters":[{"name":"observationId","in":"path","description":"observation id","required":true,"type":"string"},{"in":"body","name":"request","description":"The request payload for create or update BloodGlucose Vital Sign. The validation rules will be applied on the server","required":true,"schema":{"$ref":"#/definitions/BloodGlucoseObservationRequest"}},{"name":"userId","in":"path","description":"Platform user id (UUID)","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ResponseEntity"}},"201":{"description":"Created"},"204":{"description":"No content","schema":{"$ref":"#/definitions/ResponseEntity"}},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"No resources found for specified id"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false}},"/patient/{userId}/observation/{observationId}/bloodPressure":{"get":{"tags":["Observation"],"summary":"Retrive an BloodPressure Vital Sign by id for provided user","description":"The server will check is there access to load this observation. The owner of observation can be a patient or person. Peopele of the same care team can fetch this observation. The user with MANAGE_ACCOUNT can fetch the observation with is own by person why garantied access for it to user.","operationId":"loadByIdUsingGET_3","parameters":[{"name":"observationId","in":"path","description":"observation id","required":true,"type":"string"},{"name":"userId","in":"path","description":"Platform user id (UUID)","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/BloodPressureObservationPayload"}},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"No resources found for specified id"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false},"put":{"tags":["Observation"],"summary":"Update an BloodPressure Vital Sign by id for provided user","description":"The server will check is there access to update an observation. The owner of observation can be a patient or person. Peopele of the same care team can update an observation . The user with MANAGE_ACCOUNT can update an observation which is own by provided user why garantied access for it to user.","operationId":"updateUsingPUT_5","consumes":["application/json"],"parameters":[{"name":"observationId","in":"path","description":"observation id","required":true,"type":"string"},{"in":"body","name":"request","description":"The request payload for create or update BloodPressure Vital Sign. The validation rules will be applied on the server","required":true,"schema":{"$ref":"#/definitions/BloodPressureObservationRequest"}},{"name":"userId","in":"path","description":"Platform user id (UUID)","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ResponseEntity"}},"201":{"description":"Created"},"204":{"description":"No content","schema":{"$ref":"#/definitions/ResponseEntity"}},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"No resources found for specified id"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false}},"/patient/{userId}/observation/{observationId}/bodyFatPercentage":{"get":{"tags":["Observation"],"summary":"${medsafe.observation.body.fat.percentage.get}","description":"${medsafe.observation.body.fat.percentage.get.notes}","operationId":"loadByIdUsingGET_4","parameters":[{"name":"observationId","in":"path","description":"observation id","required":true,"type":"string"},{"name":"userId","in":"path","description":"Platform user id (UUID)","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/BodyFatPercentageObservationPayload"}},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"No resources found for specified id"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false},"put":{"tags":["Observation"],"summary":"${medsafe.observation.body.fat.percentage.update}","description":"${medsafe.observation.body.fat.percentage.update.notes}","operationId":"updateUsingPUT_6","consumes":["application/json"],"parameters":[{"name":"observationId","in":"path","description":"observation id","required":true,"type":"string"},{"in":"body","name":"request","description":"${medsafe.observation.body.fat.percentage.request}","required":true,"schema":{"$ref":"#/definitions/BodyFatPercentageObservationRequest"}},{"name":"userId","in":"path","description":"Platform user id (UUID)","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ResponseEntity"}},"201":{"description":"Created"},"204":{"description":"No content","schema":{"$ref":"#/definitions/ResponseEntity"}},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"No resources found for specified id"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false}},"/patient/{userId}/observation/{observationId}/bodyHeight":{"get":{"tags":["Observation"],"summary":"Retrive an BodyHeight Vital Sign by id for provided user","description":"The server will check is there access to load this observation. The owner of observation can be a patient or person. Peopele of the same care team can fetch this observation. The user with MANAGE_ACCOUNT can fetch the observation with is own by person why garantied access for it to user.","operationId":"loadByIdUsingGET_5","parameters":[{"name":"observationId","in":"path","description":"observation id","required":true,"type":"string"},{"name":"userId","in":"path","description":"Platform user id (UUID)","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/BodyHeightObservationPayload"}},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"No resources found for specified id"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false},"put":{"tags":["Observation"],"summary":"Update an BodyHeight Vital Sign by id for provided user","description":"The server will check is there access to update an observation. The owner of observation can be a patient or person. Peopele of the same care team can update an observation . The user with MANAGE_ACCOUNT can update an observation which is own by provided user why garantied access for it to user.","operationId":"updateUsingPUT_7","consumes":["application/json"],"parameters":[{"name":"observationId","in":"path","description":"observation id","required":true,"type":"string"},{"in":"body","name":"request","description":"The request payload for create or update BodyHeight Vital Sign. The validation rules will be applied on the server","required":true,"schema":{"$ref":"#/definitions/BodyHeightObservationRequest"}},{"name":"userId","in":"path","description":"Platform user id (UUID)","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ResponseEntity"}},"201":{"description":"Created"},"204":{"description":"No content","schema":{"$ref":"#/definitions/ResponseEntity"}},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"No resources found for specified id"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false}},"/patient/{userId}/observation/{observationId}/bodyMassIndex":{"get":{"tags":["Observation"],"summary":"Retrive an BodyMassIndex Vital Sign by id for provided user","description":"The server will check is there access to load this observation. The owner of observation can be a patient or person. Peopele of the same care team can fetch this observation. The user with MANAGE_ACCOUNT can fetch the observation with is own by person why garantied access for it to user.","operationId":"loadByIdUsingGET_6","parameters":[{"name":"observationId","in":"path","description":"observation id","required":true,"type":"string"},{"name":"userId","in":"path","description":"Platform user id (UUID)","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/BodyMassIndexObservationPayload"}},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"No resources found for specified id"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false},"put":{"tags":["Observation"],"summary":"Update an BodyMassIndex Vital Sign by id for provided user","description":"The server will check is there access to update an observation. The owner of observation can be a patient or person. Peopele of the same care team can update an observation . The user with MANAGE_ACCOUNT can update an observation which is own by provided user why garantied access for it to user.","operationId":"updateUsingPUT_8","consumes":["application/json"],"parameters":[{"name":"observationId","in":"path","description":"observation id","required":true,"type":"string"},{"in":"body","name":"request","description":"The request payload for create or update BodyMassIndex Vital Sign. The validation rules will be applied on the server","required":true,"schema":{"$ref":"#/definitions/BodyMassIndexObservationRequest"}},{"name":"userId","in":"path","description":"Platform user id (UUID)","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ResponseEntity"}},"201":{"description":"Created"},"204":{"description":"No content","schema":{"$ref":"#/definitions/ResponseEntity"}},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"No resources found for specified id"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false}},"/patient/{userId}/observation/{observationId}/bodyTemperature":{"get":{"tags":["Observation"],"summary":"Retrive an BodyTemperature Vital Sign by id for provided user","description":"The server will check is there access to load this observation. The owner of observation can be a patient or person. Peopele of the same care team can fetch this observation. The user with MANAGE_ACCOUNT can fetch the observation with is own by person why garantied access for it to user.","operationId":"loadByIdUsingGET_7","parameters":[{"name":"observationId","in":"path","description":"observation id","required":true,"type":"string"},{"name":"userId","in":"path","description":"Platform user id (UUID)","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/BodyTemperatureObservationPayload"}},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"No resources found for specified id"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false},"put":{"tags":["Observation"],"summary":"Update an BodyTemperature Vital Sign by id for provided user","description":"The server will check is there access to update an observation. The owner of observation can be a patient or person. Peopele of the same care team can update an observation . The user with MANAGE_ACCOUNT can update an observation which is own by provided user why garantied access for it to user.","operationId":"updateUsingPUT_9","consumes":["application/json"],"parameters":[{"name":"observationId","in":"path","description":"observation id","required":true,"type":"string"},{"in":"body","name":"request","description":"The request payload for create or update BodyTemperature Vital Sign. The validation rules will be applied on the server","required":true,"schema":{"$ref":"#/definitions/BodyTemperatureObservationRequest"}},{"name":"userId","in":"path","description":"Platform user id (UUID)","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ResponseEntity"}},"201":{"description":"Created"},"204":{"description":"No content","schema":{"$ref":"#/definitions/ResponseEntity"}},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"No resources found for specified id"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false}},"/patient/{userId}/observation/{observationId}/bodyWeight":{"get":{"tags":["Observation"],"summary":"Retrive an BodyWeight Vital Sign by id for provided user","description":"The server will check is there access to load this observation. The owner of observation can be a patient or person. Peopele of the same care team can fetch this observation. The user with MANAGE_ACCOUNT can fetch the observation with is own by person why garantied access for it to user.","operationId":"loadByIdUsingGET_8","parameters":[{"name":"observationId","in":"path","description":"observation id","required":true,"type":"string"},{"name":"userId","in":"path","description":"Platform user id (UUID)","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/BodyWeightObservationPayload"}},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"No resources found for specified id"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false},"put":{"tags":["Observation"],"summary":"Update an BodyWeight Vital Sign by id for provided user","description":"The server will check is there access to update an observation. The owner of observation can be a patient or person. Peopele of the same care team can update an observation . The user with MANAGE_ACCOUNT can update an observation which is own by provided user why garantied access for it to user.","operationId":"updateUsingPUT_10","consumes":["application/json"],"parameters":[{"name":"observationId","in":"path","description":"observation id","required":true,"type":"string"},{"in":"body","name":"request","description":"The request payload for create or update BodyWeight Vital Sign. The validation rules will be applied on the server","required":true,"schema":{"$ref":"#/definitions/BodyWeightObservationRequest"}},{"name":"userId","in":"path","description":"Platform user id (UUID)","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ResponseEntity"}},"201":{"description":"Created"},"204":{"description":"No content","schema":{"$ref":"#/definitions/ResponseEntity"}},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"No resources found for specified id"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false}},"/patient/{userId}/observation/{observationId}/careplan/{carePlanId}":{"post":{"tags":["Observation"],"summary":"Link observation to care plan","operationId":"linkToCarePlanUsingPOST_14","consumes":["application/json"],"parameters":[{"name":"carePlanId","in":"path","description":"Care Plan ID","required":true,"type":"string"},{"name":"observationId","in":"path","description":"observation id","required":true,"type":"string"},{"name":"userId","in":"path","description":"Platform user id (UUID)","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ResponseEntity"}},"201":{"description":"Created"},"204":{"description":"No content","schema":{"$ref":"#/definitions/ResponseEntity"}},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"No resources found for specified id"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false},"delete":{"tags":["Observation"],"summary":"Unlink observation from care plan","operationId":"unlinkToCarePlanUsingDELETE_14","parameters":[{"name":"carePlanId","in":"path","description":"Care Plan ID","required":true,"type":"string"},{"name":"observationId","in":"path","description":"observation id","required":true,"type":"string"},{"name":"userId","in":"path","description":"Platform user id (UUID)","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ResponseEntity"}},"204":{"description":"No content","schema":{"$ref":"#/definitions/ResponseEntity"}},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"No resources found for specified id"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false}},"/patient/{userId}/observation/{observationId}/cpeptide":{"get":{"tags":["Observation"],"summary":"Get a C-Peptide Laboratory Result observation using user identifier.","description":"The server will check is there access to load this observation. The owner of observation can be a patient or person. Peopele of the same care team can fetch this observation. The user with MANAGE_ACCOUNT can fetch the observation with its own by person why garantied access for it to user.","operationId":"loadByIdUsingGET_9","parameters":[{"name":"observationId","in":"path","description":"observation id","required":true,"type":"string"},{"name":"userId","in":"path","description":"Platform user id (UUID)","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/BloodGlucoseObservationPayload"}},"400":{"description":"Bad request"},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"No resources found for specified id"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false},"put":{"tags":["Observation"],"summary":"Update an C-Peptide Laboratory Result observation by id for provided user","description":"The server will check is there access to update an observation. The owner of observation can be a patient or person. Peopele of the same care team can update an observation. The user with MANAGE_ACCOUNT can update an observation which is own by provided user why garantied access for it to user.","operationId":"updateUsingPUT_13","consumes":["application/json"],"parameters":[{"name":"observationId","in":"path","description":"observation id","required":true,"type":"string"},{"in":"body","name":"request","description":"The request to create or update the C-Peptide Laboratiry result observation. The validation will be applied on the server.","required":true,"schema":{"$ref":"#/definitions/CpeptideObservationRequest"}},{"name":"userId","in":"path","description":"Platform user id (UUID)","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ResponseEntity"}},"201":{"description":"Created"},"204":{"description":"No content","schema":{"$ref":"#/definitions/ResponseEntity"}},"400":{"description":"Bad Request"},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"No resources found for specified id"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false}},"/patient/{userId}/observation/{observationId}/ecg":{"get":{"tags":["Observation"],"summary":"Retrive an ECG procedure by id for provided user","description":"The server will check is there access to load this observation. The owner of observation can be a patient or person. Peopele of the same care team can fetch this observation. The user with MANAGE_ACCOUNT can fetch the observation with is own by person why garantied access for it to user.","operationId":"loadByIdUsingGET_10","parameters":[{"name":"observationId","in":"path","description":"observation id","required":true,"type":"string"},{"name":"userId","in":"path","description":"Platform user id (UUID)","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/EcgObservationPayload"}},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"No resources found for specified id"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false},"put":{"tags":["Observation"],"summary":"Update an exiting ECG Observation by id for provided user","description":"The server will check is there access to update an observation. The owner of observation can be a patient or person. People of the same care team can create an observation and link it to provided user. The user with MANAGE_ACCOUNT can create an observation and link it to provided user.","operationId":"updateUsingPUT_15","consumes":["application/json"],"parameters":[{"name":"observationId","in":"path","description":"observation id","required":true,"type":"string"},{"in":"body","name":"request","description":"The request payload for create or update ECG Observation. The validation rules will be applied on the server","required":true,"schema":{"$ref":"#/definitions/EcgObservationRequest"}},{"name":"userId","in":"path","description":"Platform user id (UUID)","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"type":"object"}},"201":{"description":"Created"},"204":{"description":"No content","schema":{"type":"object"}},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"No resources found for specified id"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false}},"/patient/{userId}/observation/{observationId}/heartMinutes":{"get":{"tags":["Observation"],"summary":"${medsafe.observation.heart.point.get}","description":"${medsafe.observation.heart.point.get.notes}","operationId":"loadByIdUsingGET_11","parameters":[{"name":"observationId","in":"path","description":"observation id","required":true,"type":"string"},{"name":"userId","in":"path","description":"Platform user id (UUID)","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/HeartPointObservationPayload"}},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"No resources found for specified id"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false},"put":{"tags":["Observation"],"summary":"${medsafe.observation.heart.point.update}","description":"${medsafe.observation.heart.point.update.notes}","operationId":"updateUsingPUT_16","consumes":["application/json"],"parameters":[{"name":"observationId","in":"path","description":"observation id","required":true,"type":"string"},{"in":"body","name":"request","description":"${medsafe.observation.heart.point.request}","required":true,"schema":{"$ref":"#/definitions/HeartPointObservationRequest"}},{"name":"userId","in":"path","description":"Platform user id (UUID)","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ResponseEntity"}},"201":{"description":"Created"},"204":{"description":"No content","schema":{"$ref":"#/definitions/ResponseEntity"}},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"No resources found for specified id"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false}},"/patient/{userId}/observation/{observationId}/heartRate":{"get":{"tags":["Observation"],"summary":"Retrive an HeartRate Vital Sign by id for provided user","description":"The server will check is there access to load this observation. The owner of observation can be a patient or person. Peopele of the same care team can fetch this observation. The user with MANAGE_ACCOUNT can fetch the observation with is own by person why garantied access for it to user.","operationId":"loadByIdUsingGET_12","parameters":[{"name":"observationId","in":"path","description":"observation id","required":true,"type":"string"},{"name":"userId","in":"path","description":"Platform user id (UUID)","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/HeartRateObservationPayload"}},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"No resources found for specified id"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false},"put":{"tags":["Observation"],"summary":"Update an HeartRate Vital Sign by id for provided user","description":"The server will check is there access to update an observation. The owner of observation can be a patient or person. Peopele of the same care team can update an observation . The user with MANAGE_ACCOUNT can update an observation which is own by provided user why garantied access for it to user.","operationId":"updateUsingPUT_17","consumes":["application/json"],"parameters":[{"name":"observationId","in":"path","description":"observation id","required":true,"type":"string"},{"in":"body","name":"request","description":"The request payload for create or update HeartRate Vital Sign. The validation rules will be applied on the server","required":true,"schema":{"$ref":"#/definitions/HeartRateObservationRequest"}},{"name":"userId","in":"path","description":"Platform user id (UUID)","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ResponseEntity"}},"201":{"description":"Created"},"204":{"description":"No content","schema":{"$ref":"#/definitions/ResponseEntity"}},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"No resources found for specified id"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false}},"/patient/{userId}/observation/{observationId}/hemoglobin":{"get":{"tags":["Observation"],"summary":"Retrive an Hemoglobin Vital Sign by id for provided user","description":"The server will check is there access to load this observation. The owner of observation can be a patient or person. Peopele of the same care team can fetch this observation. The user with MANAGE_ACCOUNT can fetch the observation with is own by person why garantied access for it to user.","operationId":"loadByIdUsingGET_13","parameters":[{"name":"observationId","in":"path","description":"observation id","required":true,"type":"string"},{"name":"userId","in":"path","description":"Platform user id (UUID)","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/HemoglobinObservationPayload"}},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"No resources found for specified id"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false},"put":{"tags":["Observation"],"summary":"Update an Hemoglobin Vital Sign by id for provided user","description":"The server will check is there access to update an observation. The owner of observation can be a patient or person. Peopele of the same care team can update an observation . The user with MANAGE_ACCOUNT can update an observation which is own by provided user why garantied access for it to user.","operationId":"updateUsingPUT_18","consumes":["application/json"],"parameters":[{"name":"observationId","in":"path","description":"observation id","required":true,"type":"string"},{"in":"body","name":"request","description":"The request payload for create or update Hemoglobin Vital Sign. The validation rules will be applied on the server","required":true,"schema":{"$ref":"#/definitions/HemoglobinObservationRequest"}},{"name":"userId","in":"path","description":"Platform user id (UUID)","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ResponseEntity"}},"201":{"description":"Created"},"204":{"description":"No content","schema":{"$ref":"#/definitions/ResponseEntity"}},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"No resources found for specified id"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false}},"/patient/{userId}/observation/{observationId}/oxygenSaturation":{"get":{"tags":["Observation"],"summary":"Retrive an OxygenSaturation Vital Sign by id for provided user","description":"The server will check is there access to load this observation. The owner of observation can be a patient or person. Peopele of the same care team can fetch this observation. The user with MANAGE_ACCOUNT can fetch the observation with is own by person why garantied access for it to user.","operationId":"loadByIdUsingGET_14","parameters":[{"name":"observationId","in":"path","description":"observation id","required":true,"type":"string"},{"name":"userId","in":"path","description":"Platform user id (UUID)","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/OxygenSaturationObservationPayload"}},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"No resources found for specified id"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false},"put":{"tags":["Observation"],"summary":"Update an OxygenSaturation Vital Sign by id for provided user","description":"The server will check is there access to update an observation. The owner of observation can be a patient or person. Peopele of the same care team can update an observation . The user with MANAGE_ACCOUNT can update an observation which is own by provided user why garantied access for it to user.","operationId":"updateUsingPUT_23","consumes":["application/json"],"parameters":[{"name":"observationId","in":"path","description":"observation id","required":true,"type":"string"},{"in":"body","name":"request","description":"The request payload for create or update OxygenSaturation Vital Sign. The validation rules will be applied on the server","required":true,"schema":{"$ref":"#/definitions/OxygenSaturationObservationRequest"}},{"name":"userId","in":"path","description":"Platform user id (UUID)","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ResponseEntity"}},"201":{"description":"Created"},"204":{"description":"No content","schema":{"$ref":"#/definitions/ResponseEntity"}},"400":{"description":"Bad request"},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"No resources found for specified id"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false}},"/patient/{userId}/observation/{observationId}/pulseRate":{"get":{"tags":["Observation"],"summary":"Retrive an PulseRate Vital Sign by id for provided user","description":"The server will check is there access to load this observation. The owner of observation can be a patient or person. Peopele of the same care team can fetch this observation. The user with MANAGE_ACCOUNT can fetch the observation with is own by person why garantied access for it to user.","operationId":"loadByIdUsingGET_15","parameters":[{"name":"observationId","in":"path","description":"observation id","required":true,"type":"string"},{"name":"userId","in":"path","description":"Platform user id (UUID)","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/PulseRateObservationPayload"}},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"No resources found for specified id"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false},"put":{"tags":["Observation"],"summary":"Update an PulseRate Vital Sign by id for provided user","description":"The server will check is there access to update an observation. The owner of observation can be a patient or person. Peopele of the same care team can update an observation . The user with MANAGE_ACCOUNT can update an observation which is own by provided user why garantied access for it to user.","operationId":"updateUsingPUT_27","consumes":["application/json"],"parameters":[{"name":"observationId","in":"path","description":"observation id","required":true,"type":"string"},{"in":"body","name":"request","description":"The request payload for create or update PulseRate Vital Sign. The validation rules will be applied on the server","required":true,"schema":{"$ref":"#/definitions/PulseRateObservationRequest"}},{"name":"userId","in":"path","description":"Platform user id (UUID)","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ResponseEntity"}},"201":{"description":"Created"},"204":{"description":"No content","schema":{"$ref":"#/definitions/ResponseEntity"}},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"No resources found for specified id"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false}},"/patient/{userId}/observation/{observationId}/quantity":{"put":{"tags":["Observation"],"summary":"${medsafe.observation.generic.update}","description":"${medsafe.observation.generic.update.notes}","operationId":"updateUsingPUT_28","consumes":["application/json"],"parameters":[{"name":"observationId","in":"path","description":"observation id","required":true,"type":"string"},{"in":"body","name":"request","description":"${medsafe.observation.generic.request}","required":true,"schema":{"$ref":"#/definitions/QuantityObservationRequest"}},{"name":"userId","in":"path","description":"Platform user id (UUID)","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ResponseEntity"}},"201":{"description":"Created"},"204":{"description":"No content","schema":{"$ref":"#/definitions/ResponseEntity"}},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"No resources found for specified id"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false}},"/patient/{userId}/observation/{observationId}/quantity/{observationType}":{"get":{"tags":["Observation"],"summary":"Retrive a Quantity observation by id for provided user","description":"The server will check is there access to load this observation. The owner of observation can be a patient or person. Peopele of the same care team can fetch this observation. The user with MANAGE_ACCOUNT can fetch the observation with is own by person why garantied access for it to user.","operationId":"loadByIdUsingGET_16","parameters":[{"name":"observationId","in":"path","description":"observation id","required":true,"type":"string"},{"name":"observationType","in":"path","description":"Type of Quantity Observation","required":false,"type":"string","enum":["SIX_MINUTES_WALKING","TIMED_UP_AND_GO","COGNITIVE_MOTOR","GAIT_SPEED","BALANCE","EXECUTIVE_FUNCTION","PROCESSING_SPEED","ATTENTION","WORKING_MEMORY","EPISODIC_MEMORY","LONG_TERM_STRESS","SHORT_TERM_STRESS","HBA1C"]},{"name":"userId","in":"path","description":"Platform user id (UUID)","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/QuantityObservationPayload"}},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"No resources found for specified id"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false}},"/patient/{userId}/observation/{observationId}/respiratoryRate":{"get":{"tags":["Observation"],"summary":"${medsafe.observation.respiratory.rate.get}","description":"${medsafe.observation.respiratory.rate.get.notes}","operationId":"loadByIdUsingGET_17","parameters":[{"name":"observationId","in":"path","description":"observation id","required":true,"type":"string"},{"name":"userId","in":"path","description":"Platform user id (UUID)","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/RespiratoryRateObservationPayload"}},"400":{"description":"Bad request"},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"No resources found for specified id"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false}},"/patient/{userId}/observation/{observationId}/sleeping":{"get":{"tags":["Observation"],"summary":"${medsafe.observation.sleeping.get}","description":"${medsafe.observation.sleeping.get.notes}","operationId":"loadByIdUsingGET_18","parameters":[{"name":"observationId","in":"path","description":"observation id","required":true,"type":"string"},{"name":"userId","in":"path","description":"Platform user id (UUID)","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/SleepingObservationPayload"}},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"No resources found for specified id"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false},"put":{"tags":["Observation"],"summary":"${medsafe.observation.sleeping.update}","description":"${medsafe.observation.sleeping.update.notes}","operationId":"updateUsingPUT_31","consumes":["application/json"],"parameters":[{"name":"observationId","in":"path","description":"observation id","required":true,"type":"string"},{"in":"body","name":"request","description":"${medsafe.observation.sleeping.request}","required":true,"schema":{"$ref":"#/definitions/SleepingObservationRequest"}},{"name":"userId","in":"path","description":"Platform user id (UUID)","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ResponseEntity"}},"201":{"description":"Created"},"204":{"description":"No content","schema":{"$ref":"#/definitions/ResponseEntity"}},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"No resources found for specified id"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false}},"/patient/{userId}/observation/{observationId}/stepCounter":{"get":{"tags":["Observation"],"summary":"${medsafe.observation.step.counter.get}","description":"${medsafe.observation.step.counter.get.notes}","operationId":"loadByIdUsingGET_19","parameters":[{"name":"observationId","in":"path","description":"observation id","required":true,"type":"string"},{"name":"userId","in":"path","description":"Platform user id (UUID)","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/StepCounterObservationPayload"}},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"No resources found for specified id"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false},"put":{"tags":["Observation"],"summary":"${medsafe.observation.step.counter.update}","description":"${medsafe.observation.step.counter.update.notes}","operationId":"updateUsingPUT_33","consumes":["application/json"],"parameters":[{"name":"observationId","in":"path","description":"observation id","required":true,"type":"string"},{"in":"body","name":"request","description":"${medsafe.observation.step.counter.request}","required":true,"schema":{"$ref":"#/definitions/StepCounterObservationRequest"}},{"name":"userId","in":"path","description":"Platform user id (UUID)","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ResponseEntity"}},"201":{"description":"Created"},"204":{"description":"No content","schema":{"$ref":"#/definitions/ResponseEntity"}},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"No resources found for specified id"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false}},"/patient/{userId}/observation/{observationId}/waistCircumference":{"get":{"tags":["Observation"],"summary":"Retrive an WaistCircumference Vital Sign by id for provided user","description":"The server will check is there access to load this observation. The owner of observation can be a patient or person. Peopele of the same care team can fetch this observation. The user with MANAGE_ACCOUNT can fetch the observation with is own by person why garantied access for it to user.","operationId":"loadByIdUsingGET_20","parameters":[{"name":"observationId","in":"path","description":"observation id","required":true,"type":"string"},{"name":"userId","in":"path","description":"Platform user id (UUID)","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/WaistCircumferenceObservationPayload"}},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"No resources found for specified id"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false},"put":{"tags":["Observation"],"summary":"Update an WaistCircumference Vital Sign by id for provided user","description":"The server will check is there access to update an observation. The owner of observation can be a patient or person. Peopele of the same care team can update an observation . The user with MANAGE_ACCOUNT can update an observation which is own by provided user why garantied access for it to user.","operationId":"updateUsingPUT_36","consumes":["application/json"],"parameters":[{"name":"observationId","in":"path","description":"observation id","required":true,"type":"string"},{"in":"body","name":"request","description":"The request payload for create or update WaistCircumference Vital Sign. The validation rules will be applied on the server","required":true,"schema":{"$ref":"#/definitions/WaistCircumferenceObservationRequest"}},{"name":"userId","in":"path","description":"Platform user id (UUID)","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ResponseEntity"}},"201":{"description":"Created"},"204":{"description":"No content","schema":{"$ref":"#/definitions/ResponseEntity"}},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"No resources found for specified id"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false}},"/patient/{userId}/observation/{observationId}/waistHeightRatio":{"get":{"tags":["Observation"],"summary":"Retrive an WaistHeightRatio Vital Sign by id for provided user","description":"The server will check is there access to load this observation. The owner of observation can be a patient or person. Peopele of the same care team can fetch this observation. The user with MANAGE_ACCOUNT can fetch the observation with is own by person why garantied access for it to user.","operationId":"loadByIdUsingGET_21","parameters":[{"name":"observationId","in":"path","description":"observation id","required":true,"type":"string"},{"name":"userId","in":"path","description":"Platform user id (UUID)","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/WaistHeightRatioObservationPayload"}},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"No resources found for specified id"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false},"put":{"tags":["Observation"],"summary":"Update an WaistHeightRatio Vital Sign by id for provided user","description":"The server will check is there access to update an observation. The owner of observation can be a patient or person. Peopele of the same care team can update an observation . The user with MANAGE_ACCOUNT can update an observation which is own by provided user why garantied access for it to user.","operationId":"updateUsingPUT_37","consumes":["application/json"],"parameters":[{"name":"observationId","in":"path","description":"observation id","required":true,"type":"string"},{"in":"body","name":"request","description":"The request payload for create or update WaistHeightRatio Vital Sign. The validation rules will be applied on the server","required":true,"schema":{"$ref":"#/definitions/WaistHeightRatioObservationRequest"}},{"name":"userId","in":"path","description":"Platform user id (UUID)","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ResponseEntity"}},"201":{"description":"Created"},"204":{"description":"No content","schema":{"$ref":"#/definitions/ResponseEntity"}},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"No resources found for specified id"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false}},"/patient/{userId}/questionnaire":{"get":{"tags":["Questionnaire"],"summary":"Search list of existing questionnaires.","operationId":"listUsingGET_18","parameters":[{"name":"count","in":"query","description":"Max number of values to return. If start or count are provided, both need to be provided","required":false,"type":"integer","format":"int32","allowEmptyValue":false},{"name":"language","in":"query","description":"Language version of questionnaire (EN, NL, DE, IT)","required":false,"type":"string","allowEmptyValue":false,"enum":["EN","NL","DE","IT"]},{"name":"mode","in":"query","description":"Sorting mode (ASC, DESC)","required":false,"type":"string","allowEmptyValue":false,"enum":["ASC","DESC"]},{"name":"name","in":"query","description":"Questionaire computer-friendly name (exact match)","required":false,"type":"string","allowEmptyValue":false},{"name":"sort","in":"query","description":"Sorting field","required":false,"type":"string","allowEmptyValue":false,"enum":["TITLE"]},{"name":"start","in":"query","description":"Start index to return. If start or count are provided, both need to be provided","required":false,"type":"integer","format":"int32","allowEmptyValue":false},{"name":"title","in":"query","description":"Questionnaire title","required":false,"type":"string","allowEmptyValue":false},{"name":"userId","in":"path","description":"Id of a person who fills the Questionnaire","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"type":"array","items":{"$ref":"#/definitions/QuestionnaireListItemPayload"}}},"400":{"description":"Parameters are invalid"},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"Specified user id not found"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false}},"/patient/{userId}/questionnaire-task":{"get":{"tags":["Questionnaire Task"],"summary":"Search list of existing questionnaire tasks.","operationId":"getQuestionnaireTasksByOwnerUsingGET","parameters":[{"name":"count","in":"query","description":"Max number of values to return. If start or count are provided, both need to be provided","required":false,"type":"integer","format":"int32","allowEmptyValue":false},{"name":"mode","in":"query","description":"Sorting mode (ASC, DESC)","required":false,"type":"string","allowEmptyValue":false,"enum":["ASC","DESC"]},{"name":"sort","in":"query","description":"Sorting field","required":false,"type":"string","allowEmptyValue":false,"enum":["STATUS"]},{"name":"start","in":"query","description":"Start index to return. If start or count are provided, both need to be provided","required":false,"type":"integer","format":"int32","allowEmptyValue":false},{"name":"status","in":"query","description":"List of task statuses. When created (REQUESTED), when questionnaire reference is unavailable (FAILED), when questionnaire is submitted (COMPLETED), when task is deleted (DELETED), set through the api endpoint (REJECTED, IN_PROGRESS)","required":false,"type":"array","items":{"type":"string","enum":["REQUESTED","FAILED","REJECTED","IN_PROGRESS","COMPLETED","DELETED"]},"collectionFormat":"multi","allowEmptyValue":false,"enum":["REQUESTED","FAILED","REJECTED","IN_PROGRESS","COMPLETED","DELETED"]},{"name":"userId","in":"path","description":"Id of a person who fills the Questionnaire","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"type":"array","items":{"$ref":"#/definitions/QuestionnaireTaskBasePayload"}}},"400":{"description":"Parameters are invalid"},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"Specified user id not found"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false},"post":{"tags":["Questionnaire Task"],"summary":"Schedules a questionnaire. Creates a task for each time questionnaire has to be filled.","operationId":"scheduleUsingPOST","consumes":["application/json"],"parameters":[{"in":"body","name":"request","description":"Questionnaire Task scheduling request","required":true,"schema":{"$ref":"#/definitions/QuestionnaireTaskRequest"}},{"name":"userId","in":"path","description":"Id of a person who fills the Questionnaire","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"type":"object"}},"201":{"description":"Created"},"400":{"description":"Parameters are invalid"},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"Specified user id not found"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false}},"/patient/{userId}/questionnaire-task/count":{"get":{"tags":["Questionnaire Task"],"summary":"Count existing questionnaire tasks.","operationId":"countQuestionnaireTasksByOwnerUsingGET","parameters":[{"name":"status","in":"query","description":"List of task statuses. When created (REQUESTED), when questionnaire reference is unavailable (FAILED), when questionnaire is submitted (COMPLETED), when task is deleted (DELETED), set through the api endpoint (REJECTED, IN_PROGRESS)","required":false,"type":"array","items":{"type":"string","enum":["REQUESTED","FAILED","REJECTED","IN_PROGRESS","COMPLETED","DELETED"]},"collectionFormat":"multi","allowEmptyValue":false,"enum":["REQUESTED","FAILED","REJECTED","IN_PROGRESS","COMPLETED","DELETED"]},{"name":"userId","in":"path","description":"Id of a person who fills the Questionnaire","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"type":"integer","format":"int32"}},"400":{"description":"Parameters are invalid"},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"Specified user id not found"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false}},"/patient/{userId}/questionnaire-task/requester":{"get":{"tags":["Questionnaire Task"],"summary":"Search list of existing questionnaire tasks.","operationId":"getQuestionnaireTasksByRequesterUsingGET","parameters":[{"name":"count","in":"query","description":"Max number of values to return. If start or count are provided, both need to be provided","required":false,"type":"integer","format":"int32","allowEmptyValue":false},{"name":"mode","in":"query","description":"Sorting mode (ASC, DESC)","required":false,"type":"string","allowEmptyValue":false,"enum":["ASC","DESC"]},{"name":"sort","in":"query","description":"Sorting field","required":false,"type":"string","allowEmptyValue":false,"enum":["STATUS"]},{"name":"start","in":"query","description":"Start index to return. If start or count are provided, both need to be provided","required":false,"type":"integer","format":"int32","allowEmptyValue":false},{"name":"status","in":"query","description":"List of task statuses. When created (REQUESTED), when questionnaire reference is unavailable (FAILED), when questionnaire is submitted (COMPLETED), when task is deleted (DELETED), set through the api endpoint (REJECTED, IN_PROGRESS)","required":false,"type":"array","items":{"type":"string","enum":["REQUESTED","FAILED","REJECTED","IN_PROGRESS","COMPLETED","DELETED"]},"collectionFormat":"multi","allowEmptyValue":false,"enum":["REQUESTED","FAILED","REJECTED","IN_PROGRESS","COMPLETED","DELETED"]},{"name":"userId","in":"path","description":"Id of a person who requested the Questionnaire to be filled in","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"type":"array","items":{"$ref":"#/definitions/QuestionnaireTaskBasePayload"}}},"400":{"description":"Parameters are invalid"},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"Specified user id not found"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false}},"/patient/{userId}/questionnaire-task/requester/count":{"get":{"tags":["Questionnaire Task"],"summary":"Count existing questionnaire tasks.","operationId":"countQuestionnaireTasksByRequesterUsingGET","parameters":[{"name":"status","in":"query","description":"List of task statuses. When created (REQUESTED), when questionnaire reference is unavailable (FAILED), when questionnaire is submitted (COMPLETED), when task is deleted (DELETED), set through the api endpoint (REJECTED, IN_PROGRESS)","required":false,"type":"array","items":{"type":"string","enum":["REQUESTED","FAILED","REJECTED","IN_PROGRESS","COMPLETED","DELETED"]},"collectionFormat":"multi","allowEmptyValue":false,"enum":["REQUESTED","FAILED","REJECTED","IN_PROGRESS","COMPLETED","DELETED"]},{"name":"userId","in":"path","description":"Id of a person who requested the Questionnaire to be filled in","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"type":"integer","format":"int32"}},"400":{"description":"Parameters are invalid"},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"Specified user id not found"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false}},"/patient/{userId}/questionnaire-task/{taskId}":{"get":{"tags":["Questionnaire Task"],"summary":"Get specific questionnaire task.","operationId":"getScheduledQuestionnaireUsingGET","parameters":[{"name":"taskId","in":"path","description":"Task id","required":true,"type":"string"},{"name":"userId","in":"path","description":"Id of a person who fills the Questionnaire","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/QuestionnaireTaskPayload"}},"400":{"description":"Parameters are invalid"},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"Specified user id not found"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false},"post":{"tags":["Questionnaire Task"],"summary":"Create response.","operationId":"saveResponseUsingPOST","consumes":["application/json"],"parameters":[{"in":"body","name":"request","description":"Same object as for MedMij Questionnaire Response","required":true,"schema":{"$ref":"#/definitions/QuestionnaireResponsePayload"}},{"name":"taskId","in":"path","description":"Task id","required":true,"type":"string"},{"name":"userId","in":"path","description":"Id of a person who fills the Questionnaire","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"type":"object"}},"201":{"description":"Created"},"400":{"description":"Parameters are invalid"},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"Specified user id not found"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false}},"/patient/{userId}/questionnaire-task/{taskId}/pause":{"post":{"tags":["Questionnaire Task"],"summary":"Pauses questionnaire completion.","operationId":"pauseQuestionnaireUsingPOST","consumes":["application/json"],"parameters":[{"in":"body","name":"request","description":"Same object as for MedMij Questionnaire Response","required":true,"schema":{"$ref":"#/definitions/QuestionnaireResponsePayload"}},{"name":"taskId","in":"path","description":"Task id","required":true,"type":"string"},{"name":"userId","in":"path","description":"Id of a person who fills the Questionnaire","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"type":"object"}},"201":{"description":"Created"},"400":{"description":"Parameters are invalid"},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"Specified user id not found"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false}},"/patient/{userId}/questionnaire-task/{taskId}/response":{"get":{"tags":["Questionnaire Task"],"summary":"Get response of a specific questionnaire task.","operationId":"getQuestionnaireResponseUsingGET","parameters":[{"name":"taskId","in":"path","description":"Task id","required":true,"type":"string"},{"name":"userId","in":"path","description":"Id of a person who fills the Questionnaire","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/QuestionnaireResponsePayload"}},"400":{"description":"Parameters are invalid"},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"Specified user id not found"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false}},"/patient/{userId}/questionnaire-task/{taskId}/score":{"get":{"tags":["Questionnaire Task"],"summary":"Search list of scores related to the task that the provided task is part of.","operationId":"getScoresUsingGET_2","parameters":[{"name":"taskId","in":"path","description":"Task id","required":true,"type":"string"},{"name":"userId","in":"path","description":"Id of a person who fills the Questionnaire","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"type":"array","items":{"$ref":"#/definitions/QuestionnaireScorePayload"}}},"400":{"description":"Parameters are invalid"},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"Specified user id not found"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false}},"/patient/{userId}/questionnaire-task/{taskId}/{selection}":{"put":{"tags":["Questionnaire Task"],"summary":"Update specific questionnaire task/s.","operationId":"updateScheduledQuestionnaireUsingPUT","consumes":["application/json"],"parameters":[{"in":"body","name":"request","description":"Questionnaire Task scheduling request","required":true,"schema":{"$ref":"#/definitions/QuestionnaireTaskRequest"}},{"name":"selection","in":"path","description":"Schedule selection option","required":false,"type":"string","enum":["SINGLE","FOLLOWING","ALL"]},{"name":"taskId","in":"path","description":"Task id","required":true,"type":"string"},{"name":"userId","in":"path","description":"Id of a person who fills the Questionnaire","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"type":"object"}},"201":{"description":"Created"},"400":{"description":"Parameters are invalid"},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"Specified user id not found"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false},"delete":{"tags":["Questionnaire Task"],"summary":"Remove specific questionnaire task/s.","operationId":"deleteScheduledQuestionnaireUsingDELETE","parameters":[{"name":"selection","in":"path","description":"Schedule selection option","required":false,"type":"string","enum":["SINGLE","FOLLOWING","ALL"]},{"name":"taskId","in":"path","description":"Task id","required":true,"type":"string"},{"name":"userId","in":"path","description":"Id of a person who fills the Questionnaire","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"type":"object"}},"204":{"description":"No Content"},"400":{"description":"Parameters are invalid"},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"Specified user id not found"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false}},"/patient/{userId}/questionnaire/count":{"get":{"tags":["Questionnaire"],"summary":"Count existing questionnaires.","operationId":"countUsingGET_12","parameters":[{"name":"language","in":"query","description":"Language version of questionnaire (EN, NL, DE, IT)","required":false,"type":"string","allowEmptyValue":false,"enum":["EN","NL","DE","IT"]},{"name":"name","in":"query","description":"Questionaire computer-friendly name (exact match)","required":false,"type":"string","allowEmptyValue":false},{"name":"title","in":"query","description":"Questionnaire title","required":false,"type":"string","allowEmptyValue":false},{"name":"userId","in":"path","description":"Id of a person who fills the Questionnaire","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"type":"integer","format":"int32"}},"400":{"description":"Parameters are invalid"},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"Specified user id not found"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false}},"/patient/{userId}/questionnaire/scores/name":{"get":{"tags":["Questionnaire"],"summary":"Get scores of specific questionnaires identified by their names","operationId":"getScoresUsingGET","parameters":[{"name":"count","in":"query","description":"Max number of scores for each questionnaire found by name","required":true,"type":"integer","default":1,"format":"int32","allowEmptyValue":false},{"name":"questionnaires","in":"query","description":"List of questionnaire names","required":true,"type":"array","items":{"type":"string"},"collectionFormat":"multi","allowEmptyValue":false},{"name":"userId","in":"path","description":"Id of a person who fills the Questionnaire","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"type":"array","items":{"$ref":"#/definitions/QuestionnaireScoreListPayload"}}},"400":{"description":"Parameters are invalid"},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"Specified user id not found"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false}},"/patient/{userId}/questionnaire/{questionnaireId}":{"get":{"tags":["Questionnaire"],"summary":"Get specific questionnaire.","operationId":"getUsingGET_16","parameters":[{"name":"questionnaireId","in":"path","description":"Questionnaire id","required":true,"type":"string"},{"name":"userId","in":"path","description":"Id of a person who fills the Questionnaire","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/QuestionnairePayload"}},"400":{"description":"Parameters are invalid"},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"Specified user id not found"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false}},"/patient/{userId}/relatedperson":{"get":{"tags":["Related Person"],"summary":"Get collection of related person resources","operationId":"listRelatedPersonUsingGET","parameters":[{"name":"userId","in":"path","description":"Platform user id (UUID)","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"type":"array","items":{"$ref":"#/definitions/RelatedPersonPayload"}}},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"No resources found for specified user id"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false},"post":{"tags":["Related Person"],"summary":"Create related person resource","operationId":"createRelatedPersonUsingPOST","consumes":["application/json"],"parameters":[{"in":"body","name":"payload","description":"Fields to create related person.","required":true,"schema":{"$ref":"#/definitions/RelatedPersonPayload"}},{"name":"userId","in":"path","description":"Platform user id (UUID)","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ResourceCreateResponse"}},"201":{"description":"Created","schema":{"$ref":"#/definitions/ResourceCreateResponse"}},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"No resources found for specified user id"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false}},"/patient/{userId}/relatedperson/{relatedPersonId}":{"get":{"tags":["Related Person"],"summary":"Get related person resource","operationId":"getRelatedPersonUsingGET","parameters":[{"name":"relatedPersonId","in":"path","description":"${medsafe.platform.param.relatedPersonId}","required":true,"type":"string"},{"name":"userId","in":"path","description":"Platform user id (UUID)","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/RelatedPersonPayload"}},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"No resources found for specified user id"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false},"put":{"tags":["Related Person"],"summary":"Update related person resource","operationId":"updateRelatedPersonUsingPUT","consumes":["application/json"],"parameters":[{"in":"body","name":"payload","description":"Fields to create related person.","required":true,"schema":{"$ref":"#/definitions/RelatedPersonPayload"}},{"name":"relatedPersonId","in":"path","description":"${medsafe.platform.param.relatedPersonId}","required":true,"type":"string"},{"name":"userId","in":"path","description":"Platform user id (UUID)","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ResponseEntity"}},"201":{"description":"Created"},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"No resources found for specified user id"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false},"delete":{"tags":["Related Person"],"summary":"Delete related person resource","operationId":"deleteRelatedPersonUsingDELETE","parameters":[{"name":"relatedPersonId","in":"path","description":"${medsafe.platform.param.relatedPersonId}","required":true,"type":"string"},{"name":"userId","in":"path","description":"Platform user id (UUID)","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ResponseEntity"}},"204":{"description":"No content","schema":{"$ref":"#/definitions/ResponseEntity"}},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"No resources found for specified user id"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false}},"/patient/{userId}/schedule":{"get":{"tags":["Schedule"],"summary":"${medsafe.schedule.list}","operationId":"listUsingGET_14","parameters":[{"name":"count","in":"query","description":"${medsafe.schedule.param.count}","required":false,"type":"integer","format":"int32","allowEmptyValue":false},{"name":"mode","in":"query","description":"${medsafe.schedule.param.sortmode}","required":false,"type":"string","allowEmptyValue":false,"enum":["ASC","DESC"]},{"name":"practitionerId","in":"query","description":"${medsafe.schedule.param.practitionerid}","required":false,"type":"string","allowEmptyValue":false},{"name":"sort","in":"query","description":"${medsafe.schedule.param.sort}","required":false,"type":"string","allowEmptyValue":false,"enum":["TITLE"]},{"name":"start","in":"query","description":"${medsafe.schedule.param.start}","required":false,"type":"integer","format":"int32","allowEmptyValue":false},{"name":"userId","in":"path","description":"${medsafe.schedule.param.userid}","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"type":"array","items":{"$ref":"#/definitions/SchedulePayload"}}},"400":{"description":"Parameters are invalid"},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"Specified user id not found"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false}},"/patient/{userId}/schedule/count":{"get":{"tags":["Schedule"],"summary":"${medsafe.schedule.count}","operationId":"countUsingGET_9","parameters":[{"name":"practitionerId","in":"query","description":"${medsafe.schedule.param.practitionerid}","required":false,"type":"string","allowEmptyValue":false},{"name":"userId","in":"path","description":"${medsafe.schedule.param.userid}","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"type":"integer","format":"int32"}},"400":{"description":"Parameters are invalid"},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"Specified user id not found"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false}},"/patient/{userId}/schedule/{scheduleId}":{"get":{"tags":["Schedule"],"summary":"${medsafe.schedule.get}","operationId":"getUsingGET_12","parameters":[{"name":"practitionerId","in":"query","description":"${medsafe.schedule.param.practitionerid}","required":false,"type":"string","allowEmptyValue":false},{"name":"scheduleId","in":"path","description":"${medsafe.schedule.param.id}","required":true,"type":"string"},{"name":"userId","in":"path","description":"${medsafe.schedule.param.userid}","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/SchedulePayload"}},"400":{"description":"Parameters are invalid"},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"Specified user id not found"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false}},"/patient/{userId}/settings":{"get":{"tags":["Settings"],"summary":"get settings for patient","operationId":"getUsingGET_19","parameters":[{"name":"userId","in":"path","description":"Platform user id (UUID)","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/PatientSettingPayload"}},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"Not Found"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false},"post":{"tags":["Settings"],"summary":"create settings for patient","operationId":"createUsingPOST_30","consumes":["application/json"],"parameters":[{"in":"body","name":"payload","description":"patient settings data","required":true,"schema":{"$ref":"#/definitions/PatientSettingPayload"}},{"name":"userId","in":"path","description":"Platform user id (UUID)","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ResponseEntity"}},"201":{"description":"Created","schema":{"$ref":"#/definitions/ResponseEntity"}},"400":{"description":"Bad request"},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"Not Found"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false},"put":{"tags":["Settings"],"summary":"${medsafe.patient.settings.save}","operationId":"updateUsingPUT_30","consumes":["application/json"],"parameters":[{"in":"body","name":"payload","description":"patient settings data","required":true,"schema":{"$ref":"#/definitions/PatientSettingPayload"}},{"name":"userId","in":"path","description":"Platform user id (UUID)","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ResponseEntity"}},"201":{"description":"Created"},"204":{"description":"No content","schema":{"$ref":"#/definitions/ResponseEntity"}},"400":{"description":"Bad request"},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"Not Found"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false}},"/patient/{userId}/slot/count/schedule/{scheduleId}":{"get":{"tags":["Slot"],"summary":"${medsafe.slot.count}","operationId":"countUsingGET_10","parameters":[{"name":"afterStartDate","in":"query","description":"${medsafe.slot.param.count}","required":false,"type":"string","format":"date-time","allowEmptyValue":false},{"name":"practitionerId","in":"query","description":"${medsafe.schedule.param.practitionerid}","required":false,"type":"string","allowEmptyValue":false},{"name":"scheduleId","in":"path","description":"${medsafe.schedule.param.id}","required":true,"type":"string"},{"name":"status","in":"query","description":"${medsafe.slot.param.status}","required":false,"type":"string","allowEmptyValue":false,"enum":["BUSY","FREE","BUSY_UNAVAILABLE","BUSY_TENTATIVE","DELETED"]},{"name":"userId","in":"path","description":"${medsafe.slot.task.param.owner}","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"type":"integer","format":"int32"}},"400":{"description":"Parameters are invalid"},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"Specified user id not found"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false}},"/patient/{userId}/slot/schedule/{scheduleId}":{"get":{"tags":["Slot"],"summary":"${medsafe.slot.list}","operationId":"listUsingGET_15","parameters":[{"name":"afterStartDate","in":"query","description":"${medsafe.slot.param.count}","required":false,"type":"string","format":"date-time","allowEmptyValue":false},{"name":"count","in":"query","description":"${medsafe.slot.param.count}","required":false,"type":"integer","format":"int32","allowEmptyValue":false},{"name":"mode","in":"query","description":"${medsafe.slot.param.sortmode}","required":false,"type":"string","allowEmptyValue":false,"enum":["ASC","DESC"]},{"name":"practitionerId","in":"query","description":"${medsafe.schedule.param.practitionerid}","required":false,"type":"string","allowEmptyValue":false},{"name":"scheduleId","in":"path","description":"${medsafe.schedule.param.id}","required":true,"type":"string"},{"name":"sort","in":"query","description":"${medsafe.slot.param.sort}","required":false,"type":"string","allowEmptyValue":false,"enum":["TITLE"]},{"name":"start","in":"query","description":"${medsafe.slot.param.start}","required":false,"type":"integer","format":"int32","allowEmptyValue":false},{"name":"status","in":"query","description":"${medsafe.slot.param.status}","required":false,"type":"string","allowEmptyValue":false,"enum":["BUSY","FREE","BUSY_UNAVAILABLE","BUSY_TENTATIVE","DELETED"]},{"name":"userId","in":"path","description":"${medsafe.slot.param.userid}","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"type":"array","items":{"$ref":"#/definitions/SlotPayload"}}},"400":{"description":"Parameters are invalid"},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"Specified user id not found"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false}},"/patient/{userId}/slot/{slotId}":{"get":{"tags":["Slot"],"summary":"${medsafe.slot.get}","operationId":"getUsingGET_13","parameters":[{"name":"practitionerId","in":"query","description":"${medsafe.schedule.param.practitionerid}","required":false,"type":"string","allowEmptyValue":false},{"name":"slotId","in":"path","description":"${medsafe.slot.param.id}","required":true,"type":"string"},{"name":"userId","in":"path","description":"${medsafe.slot.param.userid}","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/SlotPayload"}},"400":{"description":"Parameters are invalid"},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"Specified user id not found"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false}},"/payment/plan":{"post":{"tags":["Payments plans management for administrators"],"summary":"Create a new payment plan","operationId":"createUsingPOST_25","consumes":["application/json"],"parameters":[{"in":"body","name":"payload","description":"Payload with payment plan details","required":true,"schema":{"$ref":"#/definitions/PaymentPlanPayload"}}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/PaymentPlanPayload"}},"201":{"description":"Resource was successfully created","schema":{"$ref":"#/definitions/PaymentPlanPayload"}},"400":{"description":"Parameters are invalid"},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"No resources found"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false}},"/payment/plan/list":{"get":{"tags":["Payments plans management for administrators"],"summary":"Get list of all payment plans for administrator","operationId":"getAllPaymentPlansUsingGET","responses":{"200":{"description":"OK","schema":{"type":"array","items":{"$ref":"#/definitions/PaymentPlanPayload"}}},"400":{"description":"Bad request"},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"Not Found"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false}},"/payment/plan/{id}":{"get":{"tags":["Payments plans management for administrators"],"summary":"Get payment plan details","operationId":"getUsingGET_14","parameters":[{"name":"id","in":"path","description":"Payment plan identifier","required":true,"type":"integer","format":"int64"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/PaymentPlanPayload"}},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"Specified resource not found"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false},"put":{"tags":["Payments plans management for administrators"],"summary":"Edit payment plan details","operationId":"updateUsingPUT_25","consumes":["application/json"],"parameters":[{"name":"id","in":"path","description":"Payment plan identifier","required":true,"type":"integer","format":"int64"},{"in":"body","name":"payload","description":"Payload with payment plan details","required":true,"schema":{"$ref":"#/definitions/PaymentPlanPayload"}}],"responses":{"200":{"description":"Resource was successfully updated","schema":{"$ref":"#/definitions/PaymentPlanPayload"}},"201":{"description":"Created"},"400":{"description":"Parameters are invalid"},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"Specified resource not found"},"405":{"description":"This resource can't be updated"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false},"delete":{"tags":["Payments plans management for administrators"],"summary":"Mark payment plan as archived (deleted)","operationId":"deleteUsingDELETE_11","parameters":[{"name":"id","in":"path","description":"Payment plan identifier","required":true,"type":"integer","format":"int64"}],"responses":{"200":{"description":"OK","schema":{"type":"object"}},"204":{"description":"Resource was successfully deleted","schema":{"type":"object"}},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"Specified resource not found"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false}},"/payment/stripe/{userId}/checkout":{"post":{"tags":["Payments with Stripe"],"summary":"${medsafe.payment.stripe.checkout}","operationId":"checkoutUsingPOST","consumes":["application/json"],"parameters":[{"in":"body","name":"payload","description":"${medsafe.network.organization.param.payload}","required":true,"schema":{"$ref":"#/definitions/PaymentCheckoutRequestPayload"}},{"name":"userId","in":"path","description":"Platform user id (UUID)","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/PaymentCheckoutResponsePayload"}},"201":{"description":"Created"},"400":{"description":"Bad request"},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"Not Found"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false}},"/payment/user/{userId}":{"get":{"tags":["User Payments"],"summary":"Get list of active (paid) payment plans of the user","operationId":"getActivePaymentPlansUsingGET","parameters":[{"name":"userId","in":"path","description":"Platform user id (UUID)","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"type":"array","items":{"$ref":"#/definitions/PaymentPaidPlanPayload"}}},"400":{"description":"Bad request"},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"No resources found for specified user id"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false}},"/payment/user/{userId}/available":{"get":{"tags":["User Payments"],"summary":"Get list of available payment plans for the user","operationId":"getAvailablePaymentPlansUsingGET","parameters":[{"name":"userId","in":"path","description":"Platform user id (UUID)","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"type":"array","items":{"$ref":"#/definitions/PaymentPlanPayload"}}},"400":{"description":"Bad request"},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"No resources found for specified user id"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false}},"/payment/user/{userId}/plan/{id}":{"post":{"tags":["Payments plans management for administrators"],"summary":"Activate selected payment plan for user without payment","operationId":"activatePaymentPlanForUserUsingPOST","consumes":["application/json"],"parameters":[{"name":"id","in":"path","description":"Payment plan identifier","required":true,"type":"integer","format":"int64"},{"name":"userId","in":"path","description":"User Id","required":true,"type":"string"}],"responses":{"200":{"description":"OK"},"201":{"description":"Plan was successfully activated"},"400":{"description":"Parameters are invalid"},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"No resources found"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false}},"/person":{"post":{"tags":["Person"],"summary":"Create a new person.","operationId":"createUsingPOST_26","consumes":["application/json"],"parameters":[{"name":"language","in":"query","description":"person full name","required":false,"type":"string","allowEmptyValue":false,"enum":["EN","NL","IT"]},{"in":"body","name":"payload","description":"Person data","required":true,"schema":{"$ref":"#/definitions/NlCorePersonPayload"}}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ResourceCreateResponse"}},"201":{"description":"Created","schema":{"$ref":"#/definitions/ResourceCreateResponse"}},"400":{"description":"Bad request"},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"Not Found"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false}},"/person/count":{"get":{"tags":["Person"],"summary":"Count all platform users","operationId":"countUsingGET_11","parameters":[{"name":"search","in":"query","description":"Search value","required":false,"type":"string","allowEmptyValue":false}],"responses":{"200":{"description":"Ok","schema":{"type":"integer","format":"int32"}},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"Not Found"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false}},"/person/list":{"get":{"tags":["Person"],"summary":"List all platform users and related fHIR person profiles if user is onboarded","operationId":"listUsingGET_16","parameters":[{"name":"count","in":"query","description":"maximum number of results","required":false,"type":"integer","default":20,"format":"int32","allowEmptyValue":false,"x-example":20},{"name":"search","in":"query","description":"Search value","required":false,"type":"string","allowEmptyValue":false},{"name":"start","in":"query","description":"start index to return (0+)","required":false,"type":"integer","default":0,"format":"int32","allowEmptyValue":false,"x-example":40}],"responses":{"200":{"description":"Ok","schema":{"type":"array","items":{"$ref":"#/definitions/UserPersonDataPayload"}}},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"Not Found"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false}},"/person/{userId}":{"get":{"tags":["Person"],"summary":"Retrieve the person and connected practitioner or patient.","operationId":"getUsingGET_15","parameters":[{"name":"userId","in":"path","description":"Platform user id (UUID)","required":true,"type":"string"}],"responses":{"200":{"description":"Ok","schema":{"$ref":"#/definitions/NlCorePersonPayload"}},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"Not found"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false},"post":{"tags":["Person"],"summary":"Create a new person.","operationId":"createPersonUsingPOST","consumes":["application/json"],"parameters":[{"name":"language","in":"query","description":"person full name","required":false,"type":"string","allowEmptyValue":false,"enum":["EN","NL","IT"]},{"in":"body","name":"payload","description":"Person data","required":true,"schema":{"$ref":"#/definitions/NlCorePersonPayload"}},{"name":"userId","in":"path","description":"Platform user id (UUID)","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ResourceCreateResponse"}},"201":{"description":"Created","schema":{"$ref":"#/definitions/ResourceCreateResponse"}},"400":{"description":"Bad request"},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"Not Found"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false},"delete":{"tags":["Person"],"summary":"Deletes account and data of user to let remove information according to GDPR.","operationId":"deleteUsingDELETE_12","parameters":[{"name":"userId","in":"path","description":"Platform user id (UUID)","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ResponseEntity"}},"204":{"description":"Deleted","schema":{"$ref":"#/definitions/ResponseEntity"}},"400":{"description":"Bad request"},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false},"patch":{"tags":["Person"],"summary":"Update person data and get updated information.","operationId":"updateUsingPATCH","consumes":["application/json"],"parameters":[{"in":"body","name":"updateParams","description":"Person update data","required":true,"schema":{"$ref":"#/definitions/NlCorePersonPayload"}},{"name":"userId","in":"path","description":"Platform user id (UUID)","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ResponseEntity"}},"204":{"description":"No Content"},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"Not found"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false}},"/person/{userId}/addresses":{"get":{"tags":["Person address"],"summary":"Retrieve the person addresses.","operationId":"getAddressesUsingGET","parameters":[{"name":"userId","in":"path","description":"Platform user id (UUID)","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"type":"array","items":{"$ref":"#/definitions/AddressPayload"}}},"401":{"description":"Token is invalid"},"403":{"description":"Access denied"},"404":{"description":"No resources found for specified user id"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false},"put":{"tags":["Person address"],"summary":"Retrieve and update the person addresses.","operationId":"updateAddressesUsingPUT","consumes":["application/json"],"parameters":[{"in":"body","name":"addressPayloads","description":"Address payload","required":true,"schema":{"type":"array","items":{"$ref":"#/definitions/AddressPayload"}}},{"name":"userId","in":"path","description":"Platform user id (UUID)","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ResponseEntity"}},"201":{"description":"Created"},"401":{"description":"Token is invalid"},"403":{"description":"Access denied"},"404":{"description":"No resources found for specified user id"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false},"delete":{"tags":["Person address"],"summary":"Remove the person addresses.","operationId":"deleteAddressesUsingDELETE","parameters":[{"name":"userId","in":"path","description":"Platform user id (UUID)","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ResponseEntity"}},"204":{"description":"No Content"},"401":{"description":"Token is invalid"},"403":{"description":"Access denied"},"404":{"description":"No resources found for specified user id"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false}},"/person/{userId}/badge":{"get":{"tags":["User Badges"],"summary":"${documentation.userBadge.list}","operationId":"listUsingGET_23","parameters":[{"name":"userId","in":"path","description":"${documentation.param.userId}","required":true,"type":"string"}],"responses":{"200":{"description":"Resources are found and returned","schema":{"type":"array","items":{"$ref":"#/definitions/UserBadgePayload"}}},"400":{"description":"Parameters are invalid"},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"Specified user id not found"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false}},"/person/{userId}/badge/{badgeId}":{"get":{"tags":["User Badges"],"summary":"${documentation.userBadge.get}","operationId":"getUsingGET_22","parameters":[{"name":"badgeId","in":"path","description":"${documentation.userBadge.param.badgeId}","required":true,"type":"integer","format":"int64"},{"name":"userId","in":"path","description":"${documentation.param.userId}","required":true,"type":"string"}],"responses":{"200":{"description":"Resources are found and returned","schema":{"$ref":"#/definitions/UserBadgePayload"}},"400":{"description":"Parameters are invalid"},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"Specified user id not found"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false}},"/person/{userId}/buddy":{"get":{"tags":["Person"],"summary":"List of platform buddies and their permissions in the Network of the user","operationId":"listBuddiesUsingGET","parameters":[{"name":"userId","in":"path","description":"Platform user id (UUID)","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"type":"array","items":{"$ref":"#/definitions/PersonBuddyPayload"}}},"400":{"description":"Bad request"},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"Not Found"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false}},"/person/{userId}/contacts":{"get":{"tags":["Person contact"],"summary":"Retrieve the person contacts.","operationId":"getContactsUsingGET","parameters":[{"name":"userId","in":"path","description":"Platform user id (UUID)","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"type":"array","items":{"$ref":"#/definitions/ContactPointPayload"}}},"401":{"description":"Token is invalid"},"403":{"description":"Access denied"},"404":{"description":"No resources found for specified user id"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false},"put":{"tags":["Person contact"],"summary":"Retrieve and update a person’s contacts. If a person has the role of a patient or a practitioner, his contacts will also be updated.","operationId":"updateContactsUsingPUT","consumes":["application/json"],"parameters":[{"in":"body","name":"contactPointPayloads","description":"Contact point payload","required":true,"schema":{"type":"array","items":{"$ref":"#/definitions/ContactPointPayload"}}},{"name":"userId","in":"path","description":"Platform user id (UUID)","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ResponseEntity"}},"201":{"description":"Created"},"401":{"description":"Token is invalid"},"403":{"description":"Access denied"},"404":{"description":"No resources found for specified user id"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false},"delete":{"tags":["Person contact"],"summary":"Remove the person contacts.","operationId":"deleteContactsUsingDELETE","parameters":[{"name":"userId","in":"path","description":"Platform user id (UUID)","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ResponseEntity"}},"204":{"description":"No Content"},"401":{"description":"Token is invalid"},"403":{"description":"Access denied"},"404":{"description":"No resources found for specified user id"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false}},"/person/{userId}/credentials":{"put":{"tags":["Person"],"summary":"Update email and roles of a platform user.","operationId":"updateCredentialsUsingPUT","consumes":["application/json"],"parameters":[{"in":"body","name":"userCreatePayload","description":"Credentials update payload","required":true,"schema":{"$ref":"#/definitions/UserCreatePayload"}},{"name":"userId","in":"path","description":"Platform user id (UUID)","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ResponseEntity"}},"201":{"description":"Created"},"400":{"description":"Bad request"},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"Not Found"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false}},"/person/{userId}/documentreference":{"get":{"tags":["File (DocumentReference)"],"summary":"Get List of DocumentReference as payload","operationId":"listUsingGET_7","parameters":[{"name":"userId","in":"path","description":"Platform user id (UUID)","required":true,"type":"string"}],"responses":{"200":{"description":"Resource is found and returned","schema":{"type":"array","items":{"$ref":"#/definitions/DocumentReferenceListPayload"}}},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"Specified user id or resource not found"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false},"post":{"tags":["File (DocumentReference)"],"summary":"Create DocumentReference in FHIR storage","operationId":"createUsingPOST_14","consumes":["application/json"],"parameters":[{"in":"body","name":"payload","description":"${medsafe.person.documentreference.param.payload}","required":true,"schema":{"$ref":"#/definitions/DocumentReferencePayload"}},{"name":"userId","in":"path","description":"Platform user id (UUID)","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ResourceCreateResponse"}},"201":{"description":"Resource was successfully created","schema":{"$ref":"#/definitions/ResourceCreateResponse"}},"400":{"description":"Parameters are invalid"},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"No resources found for specified user id"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false}},"/person/{userId}/documentreference/{id}":{"get":{"tags":["File (DocumentReference)"],"summary":"Get DocumentReference as payload","operationId":"getUsingGET_6","parameters":[{"name":"id","in":"path","description":"ID of DocumentReference resource","required":true,"type":"string"},{"name":"userId","in":"path","description":"Platform user id (UUID)","required":true,"type":"string"}],"responses":{"200":{"description":"Resource is found and returned","schema":{"$ref":"#/definitions/DocumentReferencePayload"}},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"Specified user id or resource not found"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false},"delete":{"tags":["File (DocumentReference)"],"summary":"Delete DocumentReference in FHIR storage","operationId":"deleteUsingDELETE_4","parameters":[{"name":"id","in":"path","description":"ID of DocumentReference resource","required":true,"type":"string"},{"name":"userId","in":"path","description":"Platform user id (UUID)","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"type":"object"}},"204":{"description":"Resource was successfully deleted","schema":{"type":"object"}},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"Specified user id or resource not found"},"405":{"description":"This resource can't be deleted"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false}},"/person/{userId}/level":{"get":{"tags":["User Level"],"summary":"${documentation.userLevel.get}","operationId":"getUsingGET_23","parameters":[{"name":"userId","in":"path","description":"${documentation.param.userId}","required":true,"type":"string"}],"responses":{"200":{"description":"Resources are found and returned","schema":{"$ref":"#/definitions/UserLevelPayload"}},"400":{"description":"Parameters are invalid"},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"Specified user id not found"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false}},"/person/{userId}/network":{"get":{"tags":["Person network"],"summary":"Get list of the platform users and related persons included to the network.","operationId":"getNetworkListUsingGET","parameters":[{"name":"userId","in":"path","description":"Platform user id (UUID)","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"type":"array","items":{"$ref":"#/definitions/NetworkUserInfoPayload"}}},"401":{"description":"Wrong token"},"403":{"description":"Access Denied"},"404":{"description":"Not Found"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false}},"/person/{userId}/network/fhir":{"post":{"tags":["Person network"],"summary":"Add user to person network. If person doesn't have the network - create new network.","operationId":"addRelatedPersonToNetworkUsingPOST","consumes":["application/json"],"parameters":[{"in":"body","name":"payload","description":"Add related person to the network.","required":true,"schema":{"$ref":"#/definitions/NetworkRelatedPersonAddPayload"}},{"name":"userId","in":"path","description":"Platform user id (UUID)","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ResponseEntity"}},"201":{"description":"Created","schema":{"$ref":"#/definitions/ResponseEntity"}},"400":{"description":"Bad Request"},"401":{"description":"Wrong token"},"403":{"description":"Access Denied"},"404":{"description":"Not Found"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false}},"/person/{userId}/network/fhir/{resourceType}/{resourceId}":{"put":{"tags":["Person network"],"summary":"Update related person in the Network.","operationId":"updateRelatedPersonInTheNetworkUsingPUT","consumes":["application/json"],"parameters":[{"in":"body","name":"payload","description":"Update related person in the network.","required":true,"schema":{"$ref":"#/definitions/NetworkRelatedPersonUpdatePayload"}},{"name":"resourceId","in":"path","description":"fhir resource id","required":true,"type":"string"},{"name":"resourceType","in":"path","description":"fhir resource type, e.g. Patient, Practitioner or RelatedPerson","required":true,"type":"string"},{"name":"userId","in":"path","description":"Platform user id (UUID)","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ResponseEntity"}},"201":{"description":"Created"},"400":{"description":"Bad Request"},"401":{"description":"Wrong token"},"403":{"description":"Access Denied"},"404":{"description":"Not Found"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false},"delete":{"tags":["Person network"],"summary":"Update related person in the Network.","operationId":"deleteRelatedPersonInTheNetworkUsingDELETE","parameters":[{"name":"resourceId","in":"path","description":"fhir resource id","required":true,"type":"string"},{"name":"resourceType","in":"path","description":"fhir resource type, e.g. Patient, Practitioner or RelatedPerson","required":true,"type":"string"},{"name":"userId","in":"path","description":"Platform user id (UUID)","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ResponseEntity"}},"204":{"description":"No content","schema":{"$ref":"#/definitions/ResponseEntity"}},"400":{"description":"Bad Request"},"401":{"description":"Wrong token"},"403":{"description":"Access Denied"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false}},"/person/{userId}/network/organization":{"post":{"tags":["Person network"],"summary":"${medsafe.person.network.organization.add}","operationId":"addOrganizationToNetworkUsingPOST","consumes":["application/json"],"parameters":[{"in":"body","name":"payload","description":"${medsafe.person.network.organizationPayload}","required":true,"schema":{"$ref":"#/definitions/NetworkParticipantAddPayload"}},{"name":"userId","in":"path","description":"Platform user id (UUID)","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ResponseEntity"}},"201":{"description":"Created","schema":{"$ref":"#/definitions/ResponseEntity"}},"400":{"description":"Bad Request"},"401":{"description":"Wrong token"},"403":{"description":"Access Denied"},"404":{"description":"Not Found"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false}},"/person/{userId}/network/organization/{resourceId}":{"put":{"tags":["Person network"],"summary":"${medsafe.person.network.organization.update}","operationId":"updateOrganizationInTheNetworkUsingPUT","consumes":["application/json"],"parameters":[{"in":"body","name":"payload","description":"${medsafe.person.network.organizationPayload}","required":true,"schema":{"$ref":"#/definitions/NetworkParticipantUpdatePayload"}},{"name":"resourceId","in":"path","description":"fhir resource id","required":true,"type":"string"},{"name":"userId","in":"path","description":"Platform user id (UUID)","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ResponseEntity"}},"201":{"description":"Created"},"400":{"description":"Bad Request"},"401":{"description":"Wrong token"},"403":{"description":"Access Denied"},"404":{"description":"Not Found"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false},"delete":{"tags":["Person network"],"summary":"${medsafe.person.network.organization.delete}","operationId":"deleteOrganizationInTheNetworkUsingDELETE","parameters":[{"name":"resourceId","in":"path","description":"fhir resource id","required":true,"type":"string"},{"name":"userId","in":"path","description":"Platform user id (UUID)","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ResponseEntity"}},"204":{"description":"No content","schema":{"$ref":"#/definitions/ResponseEntity"}},"400":{"description":"Bad Request"},"401":{"description":"Wrong token"},"403":{"description":"Access Denied"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false}},"/person/{userId}/network/other":{"get":{"tags":["Person network"],"summary":"Get list of the platform users who added specified user to their network","operationId":"getOtherNetworkListUsingGET","parameters":[{"name":"userId","in":"path","description":"Platform user id (UUID)","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"type":"array","items":{"$ref":"#/definitions/NetworkUserInfoPayload"}}},"401":{"description":"Wrong token"},"403":{"description":"Access Denied"},"404":{"description":"Not Found"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false}},"/person/{userId}/network/user":{"post":{"tags":["Person network"],"summary":"Add user to person network. If person doesn't have the network - create new network.","operationId":"addUserToNetworkUsingPOST","consumes":["application/json"],"parameters":[{"in":"body","name":"payload","description":"Params for adding user to network","required":true,"schema":{"$ref":"#/definitions/NetworkParticipantAddPayload"}},{"name":"userId","in":"path","description":"Platform user id (UUID)","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ResponseEntity"}},"201":{"description":"Created","schema":{"$ref":"#/definitions/ResponseEntity"}},"400":{"description":"Bad Request"},"401":{"description":"Wrong token"},"403":{"description":"Access Denied"},"404":{"description":"Not Found"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false}},"/person/{userId}/network/user/{medrecordUserId}":{"put":{"tags":["Person network"],"summary":"Update user person in the Network.","operationId":"updateUserInTheNetworkUsingPUT","consumes":["application/json"],"parameters":[{"name":"medrecordUserId","in":"path","description":"${medsafe.platform.param.medrecordUserId}","required":true,"type":"string"},{"in":"body","name":"payload","description":"Update related person in the network.","required":true,"schema":{"$ref":"#/definitions/NetworkParticipantUpdatePayload"}},{"name":"userId","in":"path","description":"Platform user id (UUID)","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ResponseEntity"}},"201":{"description":"Created"},"400":{"description":"Bad Request"},"401":{"description":"Wrong token"},"403":{"description":"Access Denied"},"404":{"description":"Not Found"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false},"delete":{"tags":["Person network"],"summary":"Update user person in the Network.","operationId":"deleteUserInTheNetworkUsingDELETE","parameters":[{"name":"medrecordUserId","in":"path","description":"${medsafe.platform.param.medrecordUserId}","required":true,"type":"string"},{"name":"userId","in":"path","description":"Platform user id (UUID)","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ResponseEntity"}},"204":{"description":"No content","schema":{"$ref":"#/definitions/ResponseEntity"}},"400":{"description":"Bad Request"},"401":{"description":"Wrong token"},"403":{"description":"Access Denied"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false}},"/person/{userId}/points":{"get":{"tags":["User Points"],"summary":"${documentation.userPoints.list}","operationId":"listUsingGET_24","parameters":[{"name":"userId","in":"path","description":"${documentation.param.userId}","required":true,"type":"string"}],"responses":{"200":{"description":"Resources are found and returned","schema":{"type":"array","items":{"$ref":"#/definitions/UserPointsPayload"}}},"400":{"description":"Parameters are invalid"},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"Specified user id not found"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false}},"/person/{userId}/questionnaire":{"get":{"tags":["Questionnaire"],"summary":"Search list of existing questionnaires.","operationId":"listUsingGET_19","parameters":[{"name":"count","in":"query","description":"Max number of values to return. If start or count are provided, both need to be provided","required":false,"type":"integer","format":"int32","allowEmptyValue":false},{"name":"language","in":"query","description":"Language version of questionnaire (EN, NL, DE, IT)","required":false,"type":"string","allowEmptyValue":false,"enum":["EN","NL","DE","IT"]},{"name":"mode","in":"query","description":"Sorting mode (ASC, DESC)","required":false,"type":"string","allowEmptyValue":false,"enum":["ASC","DESC"]},{"name":"name","in":"query","description":"Questionaire computer-friendly name (exact match)","required":false,"type":"string","allowEmptyValue":false},{"name":"sort","in":"query","description":"Sorting field","required":false,"type":"string","allowEmptyValue":false,"enum":["TITLE"]},{"name":"start","in":"query","description":"Start index to return. If start or count are provided, both need to be provided","required":false,"type":"integer","format":"int32","allowEmptyValue":false},{"name":"title","in":"query","description":"Questionnaire title","required":false,"type":"string","allowEmptyValue":false},{"name":"userId","in":"path","description":"Id of a person who fills the Questionnaire","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"type":"array","items":{"$ref":"#/definitions/QuestionnaireListItemPayload"}}},"400":{"description":"Parameters are invalid"},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"Specified user id not found"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false}},"/person/{userId}/questionnaire-task":{"get":{"tags":["Questionnaire Task"],"summary":"Search list of existing questionnaire tasks.","operationId":"getQuestionnaireTasksByOwnerUsingGET_1","parameters":[{"name":"count","in":"query","description":"Max number of values to return. If start or count are provided, both need to be provided","required":false,"type":"integer","format":"int32","allowEmptyValue":false},{"name":"mode","in":"query","description":"Sorting mode (ASC, DESC)","required":false,"type":"string","allowEmptyValue":false,"enum":["ASC","DESC"]},{"name":"sort","in":"query","description":"Sorting field","required":false,"type":"string","allowEmptyValue":false,"enum":["STATUS"]},{"name":"start","in":"query","description":"Start index to return. If start or count are provided, both need to be provided","required":false,"type":"integer","format":"int32","allowEmptyValue":false},{"name":"status","in":"query","description":"List of task statuses. When created (REQUESTED), when questionnaire reference is unavailable (FAILED), when questionnaire is submitted (COMPLETED), when task is deleted (DELETED), set through the api endpoint (REJECTED, IN_PROGRESS)","required":false,"type":"array","items":{"type":"string","enum":["REQUESTED","FAILED","REJECTED","IN_PROGRESS","COMPLETED","DELETED"]},"collectionFormat":"multi","allowEmptyValue":false,"enum":["REQUESTED","FAILED","REJECTED","IN_PROGRESS","COMPLETED","DELETED"]},{"name":"userId","in":"path","description":"Id of a person who fills the Questionnaire","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"type":"array","items":{"$ref":"#/definitions/QuestionnaireTaskBasePayload"}}},"400":{"description":"Parameters are invalid"},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"Specified user id not found"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false},"post":{"tags":["Questionnaire Task"],"summary":"Schedules a questionnaire. Creates a task for each time questionnaire has to be filled.","operationId":"scheduleUsingPOST_1","consumes":["application/json"],"parameters":[{"in":"body","name":"request","description":"Questionnaire Task scheduling request","required":true,"schema":{"$ref":"#/definitions/QuestionnaireTaskRequest"}},{"name":"userId","in":"path","description":"Id of a person who fills the Questionnaire","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"type":"object"}},"201":{"description":"Created"},"400":{"description":"Parameters are invalid"},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"Specified user id not found"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false}},"/person/{userId}/questionnaire-task/count":{"get":{"tags":["Questionnaire Task"],"summary":"Count existing questionnaire tasks.","operationId":"countQuestionnaireTasksByOwnerUsingGET_1","parameters":[{"name":"status","in":"query","description":"List of task statuses. When created (REQUESTED), when questionnaire reference is unavailable (FAILED), when questionnaire is submitted (COMPLETED), when task is deleted (DELETED), set through the api endpoint (REJECTED, IN_PROGRESS)","required":false,"type":"array","items":{"type":"string","enum":["REQUESTED","FAILED","REJECTED","IN_PROGRESS","COMPLETED","DELETED"]},"collectionFormat":"multi","allowEmptyValue":false,"enum":["REQUESTED","FAILED","REJECTED","IN_PROGRESS","COMPLETED","DELETED"]},{"name":"userId","in":"path","description":"Id of a person who fills the Questionnaire","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"type":"integer","format":"int32"}},"400":{"description":"Parameters are invalid"},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"Specified user id not found"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false}},"/person/{userId}/questionnaire-task/requester":{"get":{"tags":["Questionnaire Task"],"summary":"Search list of existing questionnaire tasks.","operationId":"getQuestionnaireTasksByRequesterUsingGET_1","parameters":[{"name":"count","in":"query","description":"Max number of values to return. If start or count are provided, both need to be provided","required":false,"type":"integer","format":"int32","allowEmptyValue":false},{"name":"mode","in":"query","description":"Sorting mode (ASC, DESC)","required":false,"type":"string","allowEmptyValue":false,"enum":["ASC","DESC"]},{"name":"sort","in":"query","description":"Sorting field","required":false,"type":"string","allowEmptyValue":false,"enum":["STATUS"]},{"name":"start","in":"query","description":"Start index to return. If start or count are provided, both need to be provided","required":false,"type":"integer","format":"int32","allowEmptyValue":false},{"name":"status","in":"query","description":"List of task statuses. When created (REQUESTED), when questionnaire reference is unavailable (FAILED), when questionnaire is submitted (COMPLETED), when task is deleted (DELETED), set through the api endpoint (REJECTED, IN_PROGRESS)","required":false,"type":"array","items":{"type":"string","enum":["REQUESTED","FAILED","REJECTED","IN_PROGRESS","COMPLETED","DELETED"]},"collectionFormat":"multi","allowEmptyValue":false,"enum":["REQUESTED","FAILED","REJECTED","IN_PROGRESS","COMPLETED","DELETED"]},{"name":"userId","in":"path","description":"Id of a person who requested the Questionnaire to be filled in","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"type":"array","items":{"$ref":"#/definitions/QuestionnaireTaskBasePayload"}}},"400":{"description":"Parameters are invalid"},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"Specified user id not found"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false}},"/person/{userId}/questionnaire-task/requester/count":{"get":{"tags":["Questionnaire Task"],"summary":"Count existing questionnaire tasks.","operationId":"countQuestionnaireTasksByRequesterUsingGET_1","parameters":[{"name":"status","in":"query","description":"List of task statuses. When created (REQUESTED), when questionnaire reference is unavailable (FAILED), when questionnaire is submitted (COMPLETED), when task is deleted (DELETED), set through the api endpoint (REJECTED, IN_PROGRESS)","required":false,"type":"array","items":{"type":"string","enum":["REQUESTED","FAILED","REJECTED","IN_PROGRESS","COMPLETED","DELETED"]},"collectionFormat":"multi","allowEmptyValue":false,"enum":["REQUESTED","FAILED","REJECTED","IN_PROGRESS","COMPLETED","DELETED"]},{"name":"userId","in":"path","description":"Id of a person who requested the Questionnaire to be filled in","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"type":"integer","format":"int32"}},"400":{"description":"Parameters are invalid"},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"Specified user id not found"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false}},"/person/{userId}/questionnaire-task/{taskId}":{"get":{"tags":["Questionnaire Task"],"summary":"Get specific questionnaire task.","operationId":"getScheduledQuestionnaireUsingGET_1","parameters":[{"name":"taskId","in":"path","description":"Task id","required":true,"type":"string"},{"name":"userId","in":"path","description":"Id of a person who fills the Questionnaire","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/QuestionnaireTaskPayload"}},"400":{"description":"Parameters are invalid"},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"Specified user id not found"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false},"post":{"tags":["Questionnaire Task"],"summary":"Create response.","operationId":"saveResponseUsingPOST_1","consumes":["application/json"],"parameters":[{"in":"body","name":"request","description":"Same object as for MedMij Questionnaire Response","required":true,"schema":{"$ref":"#/definitions/QuestionnaireResponsePayload"}},{"name":"taskId","in":"path","description":"Task id","required":true,"type":"string"},{"name":"userId","in":"path","description":"Id of a person who fills the Questionnaire","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"type":"object"}},"201":{"description":"Created"},"400":{"description":"Parameters are invalid"},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"Specified user id not found"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false}},"/person/{userId}/questionnaire-task/{taskId}/pause":{"post":{"tags":["Questionnaire Task"],"summary":"Pauses questionnaire completion.","operationId":"pauseQuestionnaireUsingPOST_1","consumes":["application/json"],"parameters":[{"in":"body","name":"request","description":"Same object as for MedMij Questionnaire Response","required":true,"schema":{"$ref":"#/definitions/QuestionnaireResponsePayload"}},{"name":"taskId","in":"path","description":"Task id","required":true,"type":"string"},{"name":"userId","in":"path","description":"Id of a person who fills the Questionnaire","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"type":"object"}},"201":{"description":"Created"},"400":{"description":"Parameters are invalid"},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"Specified user id not found"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false}},"/person/{userId}/questionnaire-task/{taskId}/response":{"get":{"tags":["Questionnaire Task"],"summary":"Get response of a specific questionnaire task.","operationId":"getQuestionnaireResponseUsingGET_1","parameters":[{"name":"taskId","in":"path","description":"Task id","required":true,"type":"string"},{"name":"userId","in":"path","description":"Id of a person who fills the Questionnaire","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/QuestionnaireResponsePayload"}},"400":{"description":"Parameters are invalid"},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"Specified user id not found"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false}},"/person/{userId}/questionnaire-task/{taskId}/score":{"get":{"tags":["Questionnaire Task"],"summary":"Search list of scores related to the task that the provided task is part of.","operationId":"getScoresUsingGET_3","parameters":[{"name":"taskId","in":"path","description":"Task id","required":true,"type":"string"},{"name":"userId","in":"path","description":"Id of a person who fills the Questionnaire","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"type":"array","items":{"$ref":"#/definitions/QuestionnaireScorePayload"}}},"400":{"description":"Parameters are invalid"},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"Specified user id not found"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false}},"/person/{userId}/questionnaire-task/{taskId}/{selection}":{"put":{"tags":["Questionnaire Task"],"summary":"Update specific questionnaire task/s.","operationId":"updateScheduledQuestionnaireUsingPUT_1","consumes":["application/json"],"parameters":[{"in":"body","name":"request","description":"Questionnaire Task scheduling request","required":true,"schema":{"$ref":"#/definitions/QuestionnaireTaskRequest"}},{"name":"selection","in":"path","description":"Schedule selection option","required":false,"type":"string","enum":["SINGLE","FOLLOWING","ALL"]},{"name":"taskId","in":"path","description":"Task id","required":true,"type":"string"},{"name":"userId","in":"path","description":"Id of a person who fills the Questionnaire","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"type":"object"}},"201":{"description":"Created"},"400":{"description":"Parameters are invalid"},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"Specified user id not found"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false},"delete":{"tags":["Questionnaire Task"],"summary":"Remove specific questionnaire task/s.","operationId":"deleteScheduledQuestionnaireUsingDELETE_1","parameters":[{"name":"selection","in":"path","description":"Schedule selection option","required":false,"type":"string","enum":["SINGLE","FOLLOWING","ALL"]},{"name":"taskId","in":"path","description":"Task id","required":true,"type":"string"},{"name":"userId","in":"path","description":"Id of a person who fills the Questionnaire","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"type":"object"}},"204":{"description":"No Content"},"400":{"description":"Parameters are invalid"},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"Specified user id not found"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false}},"/person/{userId}/questionnaire/count":{"get":{"tags":["Questionnaire"],"summary":"Count existing questionnaires.","operationId":"countUsingGET_13","parameters":[{"name":"language","in":"query","description":"Language version of questionnaire (EN, NL, DE, IT)","required":false,"type":"string","allowEmptyValue":false,"enum":["EN","NL","DE","IT"]},{"name":"name","in":"query","description":"Questionaire computer-friendly name (exact match)","required":false,"type":"string","allowEmptyValue":false},{"name":"title","in":"query","description":"Questionnaire title","required":false,"type":"string","allowEmptyValue":false},{"name":"userId","in":"path","description":"Id of a person who fills the Questionnaire","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"type":"integer","format":"int32"}},"400":{"description":"Parameters are invalid"},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"Specified user id not found"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false}},"/person/{userId}/questionnaire/scores/name":{"get":{"tags":["Questionnaire"],"summary":"Get scores of specific questionnaires identified by their names","operationId":"getScoresUsingGET_1","parameters":[{"name":"count","in":"query","description":"Max number of scores for each questionnaire found by name","required":true,"type":"integer","default":1,"format":"int32","allowEmptyValue":false},{"name":"questionnaires","in":"query","description":"List of questionnaire names","required":true,"type":"array","items":{"type":"string"},"collectionFormat":"multi","allowEmptyValue":false},{"name":"userId","in":"path","description":"Id of a person who fills the Questionnaire","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"type":"array","items":{"$ref":"#/definitions/QuestionnaireScoreListPayload"}}},"400":{"description":"Parameters are invalid"},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"Specified user id not found"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false}},"/person/{userId}/questionnaire/{questionnaireId}":{"get":{"tags":["Questionnaire"],"summary":"Get specific questionnaire.","operationId":"getUsingGET_17","parameters":[{"name":"questionnaireId","in":"path","description":"Questionnaire id","required":true,"type":"string"},{"name":"userId","in":"path","description":"Id of a person who fills the Questionnaire","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/QuestionnairePayload"}},"400":{"description":"Parameters are invalid"},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"Specified user id not found"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false}},"/person/{userId}/search":{"get":{"tags":["Person"],"summary":"Search for platform users.","operationId":"searchUsingGET_1","parameters":[{"name":"name","in":"query","description":"person full name","required":false,"type":"string","allowEmptyValue":false},{"name":"userId","in":"path","description":"Platform user id (UUID)","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"type":"array","items":{"$ref":"#/definitions/PersonPayload"}}},"400":{"description":"Bad request"},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"Not Found"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false}},"/points-action":{"get":{"tags":["Points Actions"],"summary":"${documentation.pointsAction.list}","operationId":"listUsingGET_17","responses":{"200":{"description":"Resources are found and returned","schema":{"type":"array","items":{"$ref":"#/definitions/PointsActionPayload"}}},"400":{"description":"Parameters are invalid"},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"Specified user id not found"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false}},"/points-action/{pointsActionId}":{"put":{"tags":["Points Actions"],"summary":"${documentation.pointsAction.update}","operationId":"updateUsingPUT_26","consumes":["application/json"],"parameters":[{"name":"points","in":"query","description":"${documentation.pointsAction.param.points}","required":true,"type":"number","format":"float","allowEmptyValue":false},{"name":"pointsActionId","in":"path","description":"${documentation.pointsAction.param.pointsActionId}","required":true,"type":"integer","format":"int64"}],"responses":{"200":{"description":"Resources are found and returned","schema":{"$ref":"#/definitions/PointsActionPayload"}},"201":{"description":"Created"},"400":{"description":"Parameters are invalid"},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"Specified user id not found"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false}},"/practitioner/{userId}/appointment":{"get":{"tags":["Appointment"],"summary":"${medsafe.appointment.list}","operationId":"listUsingGET","parameters":[{"name":"count","in":"query","description":"${medsafe.appointment.param.count}","required":false,"type":"integer","format":"int32","allowEmptyValue":false},{"name":"mode","in":"query","description":"${medsafe.appointment.param.sortmode}","required":false,"type":"string","allowEmptyValue":false,"enum":["ASC","DESC"]},{"name":"sort","in":"query","description":"${medsafe.appointment.param.sort}","required":false,"type":"string","allowEmptyValue":false,"enum":["TITLE"]},{"name":"start","in":"query","description":"${medsafe.appointment.param.start}","required":false,"type":"integer","format":"int32","allowEmptyValue":false},{"name":"status","in":"query","description":"${medsafe.appointment.param.status}","required":false,"type":"string","allowEmptyValue":false,"enum":["PROPOSED","PENDING","BOOKED","ARRIVED","FULFILLED","CANCELLED","NOSHOW","DELETED"]},{"name":"userId","in":"path","description":"${medsafe.appointment.param.userid}","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"type":"array","items":{"$ref":"#/definitions/AppointmentPayload"}}},"400":{"description":"Parameters are invalid"},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"Specified user id not found"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false},"post":{"tags":["Appointment"],"summary":"${medsafe.appointment.create}","operationId":"saveUsingPOST","consumes":["application/json"],"parameters":[{"in":"body","name":"appointment","description":"${medsafe.appointment.param.payload}","required":true,"schema":{"$ref":"#/definitions/AppointmentPayload"}},{"name":"userId","in":"path","description":"${medsafe.appointment.param.userid}","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/AppointmentPayload"}},"201":{"description":"Created"},"400":{"description":"Parameters are invalid"},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"Specified user id not found"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false}},"/practitioner/{userId}/appointment/count":{"get":{"tags":["Appointment"],"summary":"Count existing questionnaires.","operationId":"countUsingGET_2","parameters":[{"name":"status","in":"query","description":"${medsafe.appointment.param.status}","required":false,"type":"string","allowEmptyValue":false,"enum":["PROPOSED","PENDING","BOOKED","ARRIVED","FULFILLED","CANCELLED","NOSHOW","DELETED"]},{"name":"userId","in":"path","description":"${medsafe.appointment.task.param.owner}","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"type":"integer","format":"int32"}},"400":{"description":"Parameters are invalid"},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"Specified user id not found"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false}},"/practitioner/{userId}/appointment/{appointmentId}":{"get":{"tags":["Appointment"],"summary":"${medsafe.appointment.get}","operationId":"getUsingGET_1","parameters":[{"name":"appointmentId","in":"path","description":"${medsafe.appointment.param.id}","required":true,"type":"string"},{"name":"userId","in":"path","description":"${medsafe.appointment.param.userid}","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/AppointmentPayload"}},"400":{"description":"Parameters are invalid"},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"Specified user id not found"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false},"put":{"tags":["Appointment"],"summary":"${medsafe.appointment.update}","operationId":"updateUsingPUT_2","consumes":["application/json"],"parameters":[{"in":"body","name":"appointment","description":"${medsafe.appointment.param.payload}","required":true,"schema":{"$ref":"#/definitions/AppointmentPayload"}},{"name":"appointmentId","in":"path","description":"${medsafe.appointment.param.id}","required":true,"type":"string"},{"name":"userId","in":"path","description":"${medsafe.appointment.param.userid}","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/AppointmentPayload"}},"201":{"description":"Created"},"400":{"description":"Parameters are invalid"},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"Specified user id not found"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false},"delete":{"tags":["Appointment"],"summary":"${medsafe.appointment.delete}","operationId":"deleteUsingDELETE_1","parameters":[{"name":"appointmentId","in":"path","description":"${medsafe.appointment.param.id}","required":true,"type":"string"},{"name":"userId","in":"path","description":"${medsafe.appointment.param.userid}","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"type":"object"}},"204":{"description":"No Content"},"400":{"description":"Parameters are invalid"},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"Specified user id not found"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false}},"/practitioner/{userId}/schedule":{"get":{"tags":["Schedule"],"summary":"${medsafe.schedule.list}","operationId":"listUsingGET_20","parameters":[{"name":"count","in":"query","description":"${medsafe.schedule.param.count}","required":false,"type":"integer","format":"int32","allowEmptyValue":false},{"name":"mode","in":"query","description":"${medsafe.schedule.param.sortmode}","required":false,"type":"string","allowEmptyValue":false,"enum":["ASC","DESC"]},{"name":"sort","in":"query","description":"${medsafe.schedule.param.sort}","required":false,"type":"string","allowEmptyValue":false,"enum":["DATE"]},{"name":"start","in":"query","description":"${medsafe.schedule.param.start}","required":false,"type":"integer","format":"int32","allowEmptyValue":false},{"name":"userId","in":"path","description":"${medsafe.schedule.param.userid}","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"type":"array","items":{"$ref":"#/definitions/SchedulePayload"}}},"400":{"description":"Parameters are invalid"},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"Specified user id not found"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false},"post":{"tags":["Schedule"],"summary":"${medsafe.schedule.create}","operationId":"saveUsingPOST_2","consumes":["application/json"],"parameters":[{"in":"body","name":"schedule","description":"${medsafe.schedule.param.payload}","required":true,"schema":{"$ref":"#/definitions/SchedulePayload"}},{"name":"userId","in":"path","description":"${medsafe.schedule.param.userid}","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/SchedulePayload"}},"201":{"description":"Created"},"400":{"description":"Parameters are invalid"},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"Specified user id not found"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false}},"/practitioner/{userId}/schedule/count":{"get":{"tags":["Schedule"],"summary":"${medsafe.schedule.count}","operationId":"countUsingGET_14","parameters":[{"name":"userId","in":"path","description":"${medsafe.schedule.param.userid}","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"type":"integer","format":"int32"}},"400":{"description":"Parameters are invalid"},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"Specified user id not found"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false}},"/practitioner/{userId}/schedule/{scheduleId}":{"get":{"tags":["Schedule"],"summary":"${medsafe.schedule.get}","operationId":"getUsingGET_18","parameters":[{"name":"scheduleId","in":"path","description":"${medsafe.schedule.param.id}","required":true,"type":"string"},{"name":"userId","in":"path","description":"${medsafe.schedule.param.userid}","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/SchedulePayload"}},"400":{"description":"Parameters are invalid"},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"Specified user id not found"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false},"put":{"tags":["Schedule"],"summary":"${medsafe.schedule.update}","operationId":"updateUsingPUT_29","consumes":["application/json"],"parameters":[{"in":"body","name":"schedule","description":"${medsafe.schedule.param.payload}","required":true,"schema":{"$ref":"#/definitions/SchedulePayload"}},{"name":"scheduleId","in":"path","description":"${medsafe.schedule.param.id}","required":true,"type":"string"},{"name":"userId","in":"path","description":"${medsafe.schedule.param.userid}","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/SchedulePayload"}},"201":{"description":"Created"},"400":{"description":"Parameters are invalid"},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"Specified user id not found"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false},"delete":{"tags":["Schedule"],"summary":"${medsafe.schedule.delete}","operationId":"deleteUsingDELETE_13","parameters":[{"name":"scheduleId","in":"path","description":"${medsafe.schedule.param.id}","required":true,"type":"string"},{"name":"userId","in":"path","description":"${medsafe.schedule.param.userid}","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"type":"object"}},"204":{"description":"No Content"},"400":{"description":"Parameters are invalid"},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"Specified user id not found"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false}},"/practitioner/{userId}/search":{"get":{"tags":["Practitioner"],"summary":"Search for platform users.","operationId":"searchUsingGET_2","parameters":[{"name":"name","in":"query","description":"person full name","required":false,"type":"string","allowEmptyValue":false},{"name":"userId","in":"path","description":"Platform user id (UUID)","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"type":"array","items":{"$ref":"#/definitions/PersonPayload"}}},"400":{"description":"Bad request"},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"Not Found"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false}},"/practitioner/{userId}/slot":{"post":{"tags":["Slot"],"summary":"${medsafe.slot.create}","operationId":"saveUsingPOST_3","consumes":["application/json"],"parameters":[{"in":"body","name":"slot","description":"${medsafe.slot.param.payload}","required":true,"schema":{"$ref":"#/definitions/SlotPayload"}},{"name":"userId","in":"path","description":"${medsafe.slot.param.userid}","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/SlotPayload"}},"201":{"description":"Created"},"400":{"description":"Parameters are invalid"},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"Specified user id not found"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false}},"/practitioner/{userId}/slot/count/schedule/{scheduleId}":{"get":{"tags":["Slot"],"summary":"${medsafe.slot.count}","operationId":"countUsingGET_15","parameters":[{"name":"afterStartDate","in":"query","description":"${medsafe.slot.param.count}","required":false,"type":"string","format":"date-time","allowEmptyValue":false},{"name":"scheduleId","in":"path","description":"${medsafe.schedule.param.id}","required":true,"type":"string"},{"name":"status","in":"query","description":"${medsafe.slot.param.status}","required":false,"type":"string","allowEmptyValue":false,"enum":["BUSY","FREE","BUSY_UNAVAILABLE","BUSY_TENTATIVE","DELETED"]},{"name":"userId","in":"path","description":"${medsafe.slot.task.param.owner}","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"type":"integer","format":"int32"}},"400":{"description":"Parameters are invalid"},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"Specified user id not found"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false}},"/practitioner/{userId}/slot/schedule/{scheduleId}":{"get":{"tags":["Slot"],"summary":"${medsafe.slot.list}","operationId":"listUsingGET_21","parameters":[{"name":"afterStartDate","in":"query","description":"${medsafe.slot.param.count}","required":false,"type":"string","format":"date-time","allowEmptyValue":false},{"name":"count","in":"query","description":"${medsafe.slot.param.count}","required":false,"type":"integer","format":"int32","allowEmptyValue":false},{"name":"mode","in":"query","description":"${medsafe.slot.param.sortmode}","required":false,"type":"string","allowEmptyValue":false,"enum":["ASC","DESC"]},{"name":"scheduleId","in":"path","description":"${medsafe.schedule.param.id}","required":true,"type":"string"},{"name":"sort","in":"query","description":"${medsafe.slot.param.sort}","required":false,"type":"string","allowEmptyValue":false,"enum":["TITLE"]},{"name":"start","in":"query","description":"${medsafe.slot.param.start}","required":false,"type":"integer","format":"int32","allowEmptyValue":false},{"name":"status","in":"query","description":"${medsafe.slot.param.status}","required":false,"type":"string","allowEmptyValue":false,"enum":["BUSY","FREE","BUSY_UNAVAILABLE","BUSY_TENTATIVE","DELETED"]},{"name":"userId","in":"path","description":"${medsafe.slot.param.userid}","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"type":"array","items":{"$ref":"#/definitions/SlotPayload"}}},"400":{"description":"Parameters are invalid"},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"Specified user id not found"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false}},"/practitioner/{userId}/slot/{slotId}":{"get":{"tags":["Slot"],"summary":"${medsafe.slot.get}","operationId":"getUsingGET_20","parameters":[{"name":"slotId","in":"path","description":"${medsafe.slot.param.id}","required":true,"type":"string"},{"name":"userId","in":"path","description":"${medsafe.slot.param.userid}","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/SlotPayload"}},"400":{"description":"Parameters are invalid"},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"Specified user id not found"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false},"put":{"tags":["Slot"],"summary":"${medsafe.slot.update}","operationId":"updateUsingPUT_32","consumes":["application/json"],"parameters":[{"in":"body","name":"slot","description":"${medsafe.slot.param.payload}","required":true,"schema":{"$ref":"#/definitions/SlotPayload"}},{"name":"slotId","in":"path","description":"${medsafe.slot.param.id}","required":true,"type":"string"},{"name":"userId","in":"path","description":"${medsafe.slot.param.userid}","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/SlotPayload"}},"201":{"description":"Created"},"400":{"description":"Parameters are invalid"},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"Specified user id not found"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false},"delete":{"tags":["Slot"],"summary":"${medsafe.slot.delete}","operationId":"deleteUsingDELETE_14","parameters":[{"name":"slotId","in":"path","description":"${medsafe.slot.param.id}","required":true,"type":"string"},{"name":"userId","in":"path","description":"${medsafe.slot.param.userid}","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"type":"object"}},"204":{"description":"No Content"},"400":{"description":"Parameters are invalid"},"401":{"description":"Unauthorized"},"403":{"description":"Access denied"},"404":{"description":"Specified user id not found"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false}},"/public/terminology/{lang}":{"get":{"tags":["Public terminology"],"summary":"Find all possible manifistations for allergy.","operationId":"listAllergyManifestationsUsingGET","parameters":[{"name":"lang","in":"path","description":"Language parameter","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ResponseEntity"}},"401":{"description":"Wrong token"},"403":{"description":"Access Denied"},"404":{"description":"Not Found"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false}},"/public/translation/lang/{lang}":{"get":{"tags":["Public Translation"],"summary":"Get translations by language","operationId":"readTranslationsByLangUsingGET","parameters":[{"name":"lang","in":"path","description":"Translations language.","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"type":"object","additionalProperties":{"type":"object","additionalProperties":{"type":"string"}}}},"400":{"description":"Bad request"},"401":{"description":"Unauthorized"},"403":{"description":"Forbidden"},"404":{"description":"Not Found"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false}},"/terminology/codeableconcept/search":{"get":{"tags":["Terminology services"],"summary":"Full text search for codeable concept payload by token and valueset.","operationId":"searchCodeableConceptUsingGET","parameters":[{"name":"count","in":"query","description":"maximum number of results","required":false,"type":"integer","default":0,"format":"int32","allowEmptyValue":false,"x-example":0},{"name":"token","in":"query","description":"The search token.","required":true,"type":"string","allowEmptyValue":false},{"name":"valueSet","in":"query","description":"The value set name.","required":true,"type":"array","items":{"type":"string"},"collectionFormat":"multi","allowEmptyValue":false}],"responses":{"200":{"description":"OK","schema":{"type":"array","items":{"$ref":"#/definitions/CodeableConceptPayload"}}},"401":{"description":"Wrong token"},"403":{"description":"Access Denied"},"404":{"description":"Not Found"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false}},"/terminology/list/{id}":{"get":{"tags":["Terminology services"],"summary":"Get terminologies by value set identifier.","operationId":"listTerminologyForValueSetUsingGET","parameters":[{"name":"count","in":"query","description":"maximum number of results","required":false,"type":"integer","default":0,"format":"int32","allowEmptyValue":false,"x-example":0},{"name":"id","in":"path","description":"The identifier of value set.","required":true,"type":"integer","format":"int64"},{"name":"start","in":"query","description":"start index to return (0+)","required":false,"type":"integer","default":0,"format":"int32","allowEmptyValue":false,"x-example":0}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/TableResponsePayload"}},"401":{"description":"Wrong token"},"403":{"description":"Access Denied"},"404":{"description":"Not Found"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false}},"/terminology/translation":{"get":{"tags":["Terminology services"],"summary":"Get translated descriptions by system and codes","operationId":"findTerminologiesByCodeAndLocaleUsingGET","parameters":[{"name":"codes","in":"query","description":"codes","required":true,"type":"array","items":{"type":"string"},"collectionFormat":"multi"},{"name":"lang","in":"query","description":"lang","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"type":"array","items":{"$ref":"#/definitions/TerminologyDescriptionPayload"}}},"401":{"description":"Wrong token"},"403":{"description":"Access Denied"},"404":{"description":"Not Found"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false}},"/terminology/translation/list":{"get":{"tags":["Terminology services"],"summary":"Get list of terminologies with translations.","operationId":"readTerminologiesUsingGET","parameters":[{"name":"count","in":"query","description":"maximum number of results","required":false,"type":"integer","default":0,"format":"int32","allowEmptyValue":false,"x-example":0},{"name":"start","in":"query","description":"start index to return (0+)","required":false,"type":"integer","default":0,"format":"int32","allowEmptyValue":false,"x-example":0}],"responses":{"200":{"description":"OK","schema":{"type":"array","items":{"$ref":"#/definitions/TerminologyPayload"}}},"401":{"description":"Wrong token"},"403":{"description":"Access Denied"},"404":{"description":"Not Found"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false}},"/terminology/translation/search":{"get":{"tags":["Terminology services"],"summary":"Full text search by token.","operationId":"searchUsingGET_3","parameters":[{"name":"count","in":"query","description":"maximum number of results","required":false,"type":"integer","default":0,"format":"int32","allowEmptyValue":false,"x-example":0},{"name":"start","in":"query","description":"start index to return (0+)","required":false,"type":"integer","default":0,"format":"int32","allowEmptyValue":false,"x-example":0},{"name":"token","in":"query","description":"The search token.","required":true,"type":"string","allowEmptyValue":false}],"responses":{"200":{"description":"OK","schema":{"type":"array","items":{"$ref":"#/definitions/TerminologyPayload"}}},"401":{"description":"Wrong token"},"403":{"description":"Access Denied"},"404":{"description":"Not Found"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false}},"/terminology/translation/{id}":{"put":{"tags":["Terminology services"],"summary":"Update translation with translation localizations.","operationId":"updateTerminologyLocalizationUsingPUT","consumes":["application/json"],"parameters":[{"name":"id","in":"path","description":"The identifier of the terminology.","required":true,"type":"integer","format":"int64"},{"in":"body","name":"payload","description":"The terminology payload.","required":false,"schema":{"$ref":"#/definitions/TerminologyPayload"}}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ResponseEntity"}},"201":{"description":"Created"},"401":{"description":"Wrong token"},"403":{"description":"Access Denied"},"404":{"description":"Not Found"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false}},"/terminology/value-set":{"get":{"tags":["Terminology services"],"summary":"Get list of value sets.","operationId":"listValueSetsUsingGET","parameters":[{"name":"count","in":"query","description":"maximum number of results","required":false,"type":"integer","default":0,"format":"int32","allowEmptyValue":false,"x-example":0},{"name":"start","in":"query","description":"start index to return (0+)","required":false,"type":"integer","default":0,"format":"int32","allowEmptyValue":false,"x-example":0}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/TableResponsePayload"}},"401":{"description":"Wrong token"},"403":{"description":"Access Denied"},"404":{"description":"Not Found"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false}},"/translation":{"get":{"tags":["Translation"],"summary":"Get translations by keys and language.","operationId":"readTranslationByKeyAngLangUsingGET","parameters":[{"name":"keys","in":"query","description":"List of translation keys.","required":true,"type":"array","items":{"type":"string"},"collectionFormat":"multi"},{"name":"lang","in":"query","description":"Translations language.","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"type":"array","items":{"$ref":"#/definitions/TranslationDescriptionPayload"}}},"400":{"description":"Bad request"},"401":{"description":"Wrong token"},"403":{"description":"Access Denied"},"404":{"description":"Not Found"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false},"post":{"tags":["Translation"],"summary":"Create a new translation.","operationId":"createUsingPOST_34","consumes":["application/json"],"parameters":[{"in":"body","name":"payload","description":"Translation payload.","required":true,"schema":{"$ref":"#/definitions/TranslationPayload"}}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/TranslationPayload"}},"201":{"description":"The new translation was created","schema":{"$ref":"#/definitions/TranslationPayload"}},"400":{"description":"Bad request"},"401":{"description":"Wrong token"},"403":{"description":"Access Denied"},"404":{"description":"Not Found"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false}},"/translation/categories":{"get":{"tags":["Translation"],"summary":"Read all available categories.","operationId":"readCategoriesUsingGET","responses":{"200":{"description":"OK","schema":{"type":"array","items":{"type":"string"}}},"401":{"description":"Wrong token"},"403":{"description":"Access Denied"},"404":{"description":"Not Found"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false}},"/translation/lang/{lang}/category/{category}":{"get":{"tags":["Translation"],"summary":"List translations for language and category.","operationId":"listTranslationByCategoryLangUsingGET","parameters":[{"name":"category","in":"path","description":"The category of translation.","required":true,"type":"string"},{"name":"count","in":"query","description":"maximum number of results","required":false,"type":"integer","default":0,"format":"int32","allowEmptyValue":false,"x-example":0},{"name":"lang","in":"path","description":"Translations language.","required":true,"type":"string"},{"name":"start","in":"query","description":"start index to return (0+)","required":false,"type":"integer","default":0,"format":"int32","allowEmptyValue":false,"x-example":0}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/TableResponsePayload«TranslationDescriptionPayload»"}},"400":{"description":"Bad request"},"401":{"description":"Wrong token"},"403":{"description":"Access Denied"},"404":{"description":"Not Found"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false}},"/translation/search":{"get":{"tags":["Translation"],"summary":"Full text search by token.","operationId":"searchUsingGET_4","parameters":[{"name":"count","in":"query","description":"maximum number of results","required":false,"type":"integer","default":0,"format":"int32","allowEmptyValue":false,"x-example":0},{"name":"start","in":"query","description":"start index to return (0+)","required":false,"type":"integer","default":0,"format":"int32","allowEmptyValue":false,"x-example":0},{"name":"token","in":"query","description":"The search token.","required":true,"type":"string","allowEmptyValue":false}],"responses":{"200":{"description":"OK","schema":{"type":"array","items":{"$ref":"#/definitions/TranslationPayload"}}},"400":{"description":"Bad request"},"401":{"description":"Wrong token"},"403":{"description":"Access Denied"},"404":{"description":"Not Found"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false}},"/translation/{id}":{"put":{"tags":["Translation"],"summary":"Update an existing translation.","operationId":"updateUsingPUT_35","consumes":["application/json"],"parameters":[{"name":"id","in":"path","description":"Translation key identifier.","required":true,"type":"integer","format":"int64"},{"in":"body","name":"payload","description":"Translation payload.","required":true,"schema":{"$ref":"#/definitions/TranslationPayload"}}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ResponseEntity"}},"201":{"description":"Created"},"204":{"description":"The translation was updated","schema":{"$ref":"#/definitions/ResponseEntity"}},"400":{"description":"Bad request"},"401":{"description":"Wrong token"},"403":{"description":"Access Denied"},"404":{"description":"Not Found"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false},"delete":{"tags":["Translation"],"summary":"Delete an existing translation.","operationId":"deleteUsingDELETE_16","parameters":[{"name":"id","in":"path","description":"Translation key identifier.","required":true,"type":"integer","format":"int64"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ResponseEntity"}},"204":{"description":"The translation was deleted","schema":{"$ref":"#/definitions/ResponseEntity"}},"400":{"description":"Bad request"},"401":{"description":"Wrong token"},"403":{"description":"Access Denied"},"500":{"description":"Internal Server Error"}},"security":[{"apiKey":[]}],"deprecated":false}}},"securityDefinitions":{"apiKey":{"type":"apiKey","name":"Authorization","in":"header"}},"definitions":{"ActiveMinutesObservationPayload":{"type":"object","properties":{"comment":{"type":"string","description":"Comment on the measurement."},"context":{"description":"Context of the measurement (observation).","$ref":"#/definitions/ReferencePayload"},"device":{"description":"${medsafe.observation.device}","$ref":"#/definitions/ReferencePayload"},"effective":{"description":"Date and if possible time of the measurement.","$ref":"#/definitions/PastOrPresentPartialDatePayload"},"id":{"type":"string","description":"A unique identifier assigned to this observation."},"interpretation":{"description":"Interpretation of the measurement.","$ref":"#/definitions/CodeableConceptPayload"},"minutes":{"description":"${medsafe.observation.active.minutes.quantity.value}","$ref":"#/definitions/QuantityPayload"},"nhgCode":{"description":"NHG Code","$ref":"#/definitions/CodingPayload"},"observationType":{"type":"string","enum":["BLOOD_PRESSURE","BODY_WEIGHT","BODY_HEIGHT","BODY_TEMPERATURE","HEART_RATE","PULSE_RATE","OXYGEN_SATURATION","BLOOD_GLUCOSE","ALCOHOL_USE","TOBACCO_USE","DRUG_USE","LIVING_SITUATION","FAMILY_SITUATION","PARTICIPATION_IN_SOCIETY","FUNCTIONAL_OR_MENTAL_STATUS","LABORATORY_TEST_RESULT","WAIST_CIRCUMFERENCE","HEMOGLOBIN","WAIST_HEIGHT_RATIO","BODY_MASS_INDEX","ECG","GP_JOURNAL_ENTRY","GENERIC","C_PEPTIDE","RESPIRATORY_RATE","STEP_COUNTER","HEART_MINUTES","SLEEPING","BODY_FAT_PERCENTAGE","BASAL_METABOLIC_RATE","ACTIVE_MINUTES","QUANTITY","SIX_MINUTES_WALKING","TIMED_UP_AND_GO","COGNITIVE_MOTOR","GAIT_SPEED","BALANCE","EXECUTIVE_FUNCTION","PROCESSING_SPEED","ATTENTION","WORKING_MEMORY","EPISODIC_MEMORY","LONG_TERM_STRESS","SHORT_TERM_STRESS","HBA1C"]},"performer":{"description":"Who was responsible for asserting the observed value as \"true\".","$ref":"#/definitions/ReferencePayload"},"referenceRanges":{"type":"array","items":{"$ref":"#/definitions/ReferenceRangeObservationPayload"}},"references":{"type":"array","items":{"type":"string"}},"resourceType":{"type":"string"},"subject":{"description":"The patient whose characteristics (direct or indirect) are described by the observation and into whose record the observation is placed","$ref":"#/definitions/ReferencePayload"}},"title":"ActiveMinutesObservationPayload"},"ActiveMinutesObservationRequest":{"type":"object","required":["minutes"],"properties":{"comment":{"type":"string","description":"Comment on the measurement."},"device":{"description":"${medsafe.observation.device}","$ref":"#/definitions/ReferencePayload"},"effective":{"$ref":"#/definitions/PastOrPresentPartialDatePayload"},"minutes":{"type":"integer","format":"int32","description":"${medsafe.observation.active.minutes.value}"},"performer":{"description":"Who was responsible for asserting the observed value as \"true\".","$ref":"#/definitions/ReferencePayload"}},"title":"ActiveMinutesObservationRequest"},"AddCarePlanParticipantPayload":{"type":"object","properties":{"fhirId":{"type":"string","description":"fhirId"},"role":{"description":"role","$ref":"#/definitions/CodeableConceptPayload"},"userId":{"type":"string","description":"userId"}},"title":"AddCarePlanParticipantPayload"},"AddressPayload":{"type":"object","properties":{"city":{"type":"string","description":"city"},"country":{"type":"string","description":"country"},"district":{"type":"string","description":"district"},"line":{"type":"string","description":"line"},"postalCode":{"type":"string","description":"postalCode"},"state":{"type":"string","description":"state"},"text":{"type":"string","description":"text"},"type":{"type":"string","description":"type","enum":["POSTAL","PHYSICAL","BOTH","NULL"]},"use":{"type":"string","description":"use","enum":["home","wor","temp","old"]}},"title":"AddressPayload"},"AllergyInfoPayload":{"type":"object","required":["category"],"properties":{"category":{"type":"string","description":"Allergy category","enum":["BIOLOGIC","MEDICATION","ENVIRONMENT","FOOD"]},"clinicalStatus":{"type":"string","description":"Clinical status","enum":["ACTIVE","INACTIVE","RESOLVED"]},"criticality":{"type":"string","description":"Criticality","enum":["LOW","HIGH","UNABLETOASSESS"]},"id":{"type":"string","description":"ID"},"lastOccurrenceDate":{"description":"Last occurence date","$ref":"#/definitions/PastOrPresentPartialDatePayload"},"reactions":{"type":"array","description":"Reactions","items":{"$ref":"#/definitions/AllergyReactionPayload"}},"substanceName":{"type":"string","description":"Substance name"},"totalReactionsCount":{"type":"integer","format":"int32","description":"Total number of reactions"},"type":{"type":"string","description":"Allergy type","enum":["ALLERGY","INTOLERANCE"]},"verificationStatus":{"type":"string","description":"Verification status","enum":["UNCONFIRMED","CONFIRMED","REFUTED"]}},"title":"AllergyInfoPayload"},"AllergyPayload":{"type":"object","required":["category","clinicalStatus","criticality","substanceName","type","verificationStatus"],"properties":{"attachments":{"type":"array","description":"Attachments","items":{"$ref":"#/definitions/AttachmentPayload"}},"category":{"type":"string","description":"Allergy category","enum":["BIOLOGIC","MEDICATION","ENVIRONMENT","FOOD"]},"clinicalStatus":{"type":"string","description":"Clinical status","enum":["ACTIVE","INACTIVE","RESOLVED"]},"criticality":{"type":"string","description":"Criticality","enum":["LOW","HIGH","UNABLETOASSESS"]},"id":{"type":"string","description":"ID"},"lastOccurrenceDate":{"description":"Last occurence date","$ref":"#/definitions/PastOrPresentPartialDatePayload"},"notes":{"type":"array","description":"Notes","items":{"$ref":"#/definitions/AnnotationPayload"}},"onsetDate":{"description":"Onset date","$ref":"#/definitions/PastOrPresentPartialDatePayload"},"reactions":{"type":"array","description":"Reactions","items":{"$ref":"#/definitions/AllergyReactionPayload"}},"substanceCode":{"description":"Immunization name and code","$ref":"#/definitions/CodingPayload"},"substanceName":{"type":"string","description":"Substance name"},"type":{"type":"string","description":"Allergy type","enum":["ALLERGY","INTOLERANCE"]},"verificationStatus":{"type":"string","description":"Verification status","enum":["UNCONFIRMED","CONFIRMED","REFUTED"]}},"title":"AllergyPayload"},"AllergyReactionPayload":{"type":"object","required":["manifestations","severity"],"properties":{"comment":{"type":"string","description":"Comment"},"description":{"type":"string","description":"description"},"manifestations":{"type":"array","description":"Manifestations / Symptoms","items":{"$ref":"#/definitions/CodeableConceptPayload"}},"onsetDate":{"description":"Onset date","$ref":"#/definitions/PastOrPresentPartialDatePayload"},"severity":{"type":"string","description":"Severity","enum":["MILD","MODERATE","SEVERE"]}},"title":"AllergyReactionPayload"},"AnimalPayload":{"type":"object","properties":{"species":{"$ref":"#/definitions/CodeableConceptPayload"},"breed":{"$ref":"#/definitions/CodeableConceptPayload"},"genderStatus":{"$ref":"#/definitions/CodeableConceptPayload"}},"title":"AnimalPayload"},"AnnotationPayload":{"type":"object","properties":{"author":{"description":"annotation author","$ref":"#/definitions/ReferencePayload"},"text":{"type":"string","description":"annotation text"},"time":{"type":"string","description":"annotation time"}},"title":"AnnotationPayload"},"AppointmentParticipantPayload":{"type":"object","properties":{"actorReferenceId":{"type":"string"},"required":{"type":"string","enum":["REQUIRED","OPTIONAL","INFORMATIONONLY"]},"status":{"type":"string","enum":["ACCEPTED","DECLINED","TENTATIVE","NEEDSACTION"]},"type":{"type":"string","enum":["ADMITTER","ATTENDER","CALLBACK","CONSULTANT","DISCHARGER","ESCORT","REFERRER","SECONDARY","PRIMARY","PARTICIPATION","TRANSLATOR","EMERGENCY"]}},"title":"AppointmentParticipantPayload"},"AppointmentPayload":{"type":"object","properties":{"appointmentType":{"type":"string","enum":["CHECKUP","EMERGENCY","FOLLOWUP","ROUTINE","WALKIN"]},"comment":{"type":"string"},"created":{"type":"string","format":"date-time"},"description":{"type":"string"},"end":{"type":"string","format":"date-time"},"id":{"type":"string"},"minutesDuration":{"type":"integer","format":"int32"},"participant":{"type":"array","items":{"$ref":"#/definitions/AppointmentParticipantPayload"}},"slotReferenceId":{"type":"string"},"start":{"type":"string","format":"date-time"},"status":{"type":"string","enum":["PROPOSED","PENDING","BOOKED","ARRIVED","FULFILLED","CANCELLED","NOSHOW","DELETED"]}},"title":"AppointmentPayload"},"AttachmentPayload":{"type":"object","required":["title"],"properties":{"id":{"type":"string","description":"DocumentReference ID"},"title":{"type":"string","description":"Title"}},"title":"AttachmentPayload"},"BadgePayload":{"type":"object","properties":{"active":{"type":"boolean"},"id":{"type":"integer","format":"int64"},"type":{"type":"string","enum":["ONE_WEEK_USER_REGISTERED","ONE_MONTH_USER_REGISTERED","THREE_MONTHS_USER_REGISTERED","SIX_MONTHS_USER_REGISTERED","ONE_YEAR_USER_REGISTERED","MEASUREMENT_SET","MOOD_QUESTIONNAIRE_ANSWERED_HAPPY_DIET","MOOD_QUESTIONNAIRE_ANSWERED_HAPPY_STRESS","MOOD_QUESTIONNAIRE_ANSWERED_HAPPY_SLEEP","MOOD_QUESTIONNAIRE_ANSWERED_HAPPY_MOVEMENT","MOOD_QUESTIONNAIRE_ANSWERED_HAPPY_HAPPINESS","MEASUREMENT_IMPROVED_WEIGHT","MEASUREMENT_IMPROVED_BMI","MEASUREMENT_IMPROVED_WAIST_CIRCUMFERENCE","MEASUREMENT_IMPROVED_BLOOD_GLUCOSE","MEASUREMENT_IMPROVED_BLOOD_PRESSURE","MEASUREMENT_IMPROVED_HB1AC"]}},"title":"BadgePayload"},"BasalMetabolicRateObservationPayload":{"type":"object","properties":{"calories":{"description":"${medsafe.observation.basal.metabolic.rate.quantity.value}","$ref":"#/definitions/QuantityPayload"},"comment":{"type":"string","description":"Comment on the measurement."},"context":{"description":"Context of the measurement (observation).","$ref":"#/definitions/ReferencePayload"},"device":{"description":"${medsafe.observation.device}","$ref":"#/definitions/ReferencePayload"},"effective":{"description":"Date and if possible time of the measurement.","$ref":"#/definitions/PastOrPresentPartialDatePayload"},"id":{"type":"string","description":"A unique identifier assigned to this observation."},"interpretation":{"description":"Interpretation of the measurement.","$ref":"#/definitions/CodeableConceptPayload"},"nhgCode":{"description":"NHG Code","$ref":"#/definitions/CodingPayload"},"observationType":{"type":"string","enum":["BLOOD_PRESSURE","BODY_WEIGHT","BODY_HEIGHT","BODY_TEMPERATURE","HEART_RATE","PULSE_RATE","OXYGEN_SATURATION","BLOOD_GLUCOSE","ALCOHOL_USE","TOBACCO_USE","DRUG_USE","LIVING_SITUATION","FAMILY_SITUATION","PARTICIPATION_IN_SOCIETY","FUNCTIONAL_OR_MENTAL_STATUS","LABORATORY_TEST_RESULT","WAIST_CIRCUMFERENCE","HEMOGLOBIN","WAIST_HEIGHT_RATIO","BODY_MASS_INDEX","ECG","GP_JOURNAL_ENTRY","GENERIC","C_PEPTIDE","RESPIRATORY_RATE","STEP_COUNTER","HEART_MINUTES","SLEEPING","BODY_FAT_PERCENTAGE","BASAL_METABOLIC_RATE","ACTIVE_MINUTES","QUANTITY","SIX_MINUTES_WALKING","TIMED_UP_AND_GO","COGNITIVE_MOTOR","GAIT_SPEED","BALANCE","EXECUTIVE_FUNCTION","PROCESSING_SPEED","ATTENTION","WORKING_MEMORY","EPISODIC_MEMORY","LONG_TERM_STRESS","SHORT_TERM_STRESS","HBA1C"]},"performer":{"description":"Who was responsible for asserting the observed value as \"true\".","$ref":"#/definitions/ReferencePayload"},"referenceRanges":{"type":"array","items":{"$ref":"#/definitions/ReferenceRangeObservationPayload"}},"references":{"type":"array","items":{"type":"string"}},"resourceType":{"type":"string"},"subject":{"description":"The patient whose characteristics (direct or indirect) are described by the observation and into whose record the observation is placed","$ref":"#/definitions/ReferencePayload"}},"title":"BasalMetabolicRateObservationPayload"},"BasalMetabolicRateObservationRequest":{"type":"object","required":["calories"],"properties":{"calories":{"type":"number","format":"double","description":"${medsafe.observation.basal.metabolic.rate.value}"},"comment":{"type":"string","description":"Comment on the measurement."},"device":{"description":"${medsafe.observation.device}","$ref":"#/definitions/ReferencePayload"},"effective":{"$ref":"#/definitions/PastOrPresentPartialDatePayload"},"performer":{"description":"Who was responsible for asserting the observed value as \"true\".","$ref":"#/definitions/ReferencePayload"}},"title":"BasalMetabolicRateObservationRequest"},"BloodGlucoseObservationPayload":{"type":"object","properties":{"code":{"$ref":"#/definitions/CodeableConceptPayload"},"comment":{"type":"string","description":"Comment on the measurement."},"context":{"description":"Context of the measurement (observation).","$ref":"#/definitions/ReferencePayload"},"device":{"description":"${medsafe.observation.device}","$ref":"#/definitions/ReferencePayload"},"effective":{"description":"Date and if possible time of the measurement.","$ref":"#/definitions/PastOrPresentPartialDatePayload"},"eventTimingCode":{"$ref":"#/definitions/CodeableConceptPayload"},"eventTimingOffset":{"$ref":"#/definitions/QuantityPayload"},"glucose":{"description":"The blood glucose amount of glucose present in the blood measured in mmol/L","$ref":"#/definitions/QuantityPayload"},"id":{"type":"string","description":"A unique identifier assigned to this observation."},"interpretation":{"description":"Interpretation of the measurement.","$ref":"#/definitions/CodeableConceptPayload"},"interpretationCode":{"type":"string","description":"The interpretation of observation","enum":["ABOVE_REFERENCE_RANGE","BELOW_REFERENCE_RANGE","INTERMEDIATE","RESISTANT","SUSCEPTIBLE"]},"nhgCode":{"description":"NHG Code","$ref":"#/definitions/CodingPayload"},"observationType":{"type":"string","enum":["BLOOD_PRESSURE","BODY_WEIGHT","BODY_HEIGHT","BODY_TEMPERATURE","HEART_RATE","PULSE_RATE","OXYGEN_SATURATION","BLOOD_GLUCOSE","ALCOHOL_USE","TOBACCO_USE","DRUG_USE","LIVING_SITUATION","FAMILY_SITUATION","PARTICIPATION_IN_SOCIETY","FUNCTIONAL_OR_MENTAL_STATUS","LABORATORY_TEST_RESULT","WAIST_CIRCUMFERENCE","HEMOGLOBIN","WAIST_HEIGHT_RATIO","BODY_MASS_INDEX","ECG","GP_JOURNAL_ENTRY","GENERIC","C_PEPTIDE","RESPIRATORY_RATE","STEP_COUNTER","HEART_MINUTES","SLEEPING","BODY_FAT_PERCENTAGE","BASAL_METABOLIC_RATE","ACTIVE_MINUTES","QUANTITY","SIX_MINUTES_WALKING","TIMED_UP_AND_GO","COGNITIVE_MOTOR","GAIT_SPEED","BALANCE","EXECUTIVE_FUNCTION","PROCESSING_SPEED","ATTENTION","WORKING_MEMORY","EPISODIC_MEMORY","LONG_TERM_STRESS","SHORT_TERM_STRESS","HBA1C"]},"offset":{"type":"integer","format":"int32","description":"${medsafe.observation.blood.glucose.offset}"},"performer":{"description":"Who was responsible for asserting the observed value as \"true\".","$ref":"#/definitions/ReferencePayload"},"referenceRanges":{"type":"array","items":{"$ref":"#/definitions/ReferenceRangeObservationPayload"}},"references":{"type":"array","items":{"type":"string"}},"resourceType":{"type":"string"},"resultType":{"type":"string","description":"The result type of laboratory test","enum":["HEMATOLOGY","CHEMISTRY","SEROLOGY","VIROLOGY","TOXICOLOGY","MICROBIOLOGY","MOLECULAR_GENETIC"]},"subject":{"description":"The patient whose characteristics (direct or indirect) are described by the observation and into whose record the observation is placed","$ref":"#/definitions/ReferencePayload"},"type":{"type":"string","description":"The type of measurement related to time, when measurement was taken","enum":["FASTING","GENERAL","POST_MEAL","POST_DINER","POST_LUNCH","POST_BREAKFAST","BEFORE_LUNCH","BEFORE_NIGHT","BEFORE_DINER"]}},"title":"BloodGlucoseObservationPayload"},"BloodGlucoseObservationRequest":{"type":"object","properties":{"codeName":{"type":"string"},"comment":{"type":"string","description":"Comment on the measurement."},"device":{"description":"${medsafe.observation.device}","$ref":"#/definitions/ReferencePayload"},"effective":{"$ref":"#/definitions/PastOrPresentPartialDatePayload"},"eventTimingCode":{"type":"string","enum":["AC","ACD","ACM","ACV","C","CD","CM","CV","HS","IC","ICD","ICM","ICV","PC","PCD","PCM","PCV","WAKE","NULL"]},"glucose":{"type":"number","format":"double"},"interpretation":{"type":"string","description":"The interpretation of observation","enum":["ABOVE_REFERENCE_RANGE","BELOW_REFERENCE_RANGE","INTERMEDIATE","RESISTANT","SUSCEPTIBLE"]},"offset":{"type":"integer","format":"int32","description":"${medsafe.observation.blood.glucose.offset}"},"performer":{"description":"Who was responsible for asserting the observed value as \"true\".","$ref":"#/definitions/ReferencePayload"},"resultType":{"type":"string","description":"The result type of laboratory test","enum":["HEMATOLOGY","CHEMISTRY","SEROLOGY","VIROLOGY","TOXICOLOGY","MICROBIOLOGY","MOLECULAR_GENETIC"]},"type":{"type":"string","description":"The type of measurement related to time, when measurement was taken","enum":["FASTING","GENERAL","POST_MEAL","POST_DINER","POST_LUNCH","POST_BREAKFAST","BEFORE_LUNCH","BEFORE_NIGHT","BEFORE_DINER"]}},"title":"BloodGlucoseObservationRequest"},"BloodPressureObservationPayload":{"type":"object","properties":{"averageBloodPressure":{"description":"Average blood pressure during one cycle of the heart contracting and relaxing","$ref":"#/definitions/QuantityPayload"},"bodySite":{"type":"string","description":"Anatomical location where the blood pressure was measured.","enum":["UPPER_ARM","RIGHT_UPPER_ARM","LEFT_UPPER_ARM","THIGH","RIGHT_THIGH","LEFT_THIGH","WRIST_REGION","RIGHT_WRIST","LEFT_WRIST","FINGER","ANKLE_REGION","RIGHT_ANKLE","LEFT_ANKLE"]},"comment":{"type":"string","description":"Comment on the measurement."},"context":{"description":"Context of the measurement (observation).","$ref":"#/definitions/ReferencePayload"},"cuffType":{"type":"string","description":"The size of the cuff used in the measurement","enum":["STD","L","S","XL","KIND","JONGKIND","NEONAAT"]},"device":{"description":"${medsafe.observation.device}","$ref":"#/definitions/ReferencePayload"},"diastolic":{"description":"The lowest systematic arterial blood pressure - measured in the relaxation stage or diastole of the cardiac cycle","$ref":"#/definitions/QuantityPayload"},"diastolicEndpoint":{"type":"string","description":"Registration of the Korotkoff sound used to measure diastolic pressure with the auscultatory method","enum":["PHASE_4","PHASE_5"]},"effective":{"description":"Date and if possible time of the measurement.","$ref":"#/definitions/PastOrPresentPartialDatePayload"},"id":{"type":"string","description":"A unique identifier assigned to this observation."},"interpretation":{"description":"Interpretation of the measurement.","$ref":"#/definitions/CodeableConceptPayload"},"method":{"type":"string","description":"The type of method used to measure blood pressure","enum":["NON_INVASIVE","INVASIVE"]},"nhgCode":{"description":"NHG Code","$ref":"#/definitions/CodingPayload"},"observationType":{"type":"string","enum":["BLOOD_PRESSURE","BODY_WEIGHT","BODY_HEIGHT","BODY_TEMPERATURE","HEART_RATE","PULSE_RATE","OXYGEN_SATURATION","BLOOD_GLUCOSE","ALCOHOL_USE","TOBACCO_USE","DRUG_USE","LIVING_SITUATION","FAMILY_SITUATION","PARTICIPATION_IN_SOCIETY","FUNCTIONAL_OR_MENTAL_STATUS","LABORATORY_TEST_RESULT","WAIST_CIRCUMFERENCE","HEMOGLOBIN","WAIST_HEIGHT_RATIO","BODY_MASS_INDEX","ECG","GP_JOURNAL_ENTRY","GENERIC","C_PEPTIDE","RESPIRATORY_RATE","STEP_COUNTER","HEART_MINUTES","SLEEPING","BODY_FAT_PERCENTAGE","BASAL_METABOLIC_RATE","ACTIVE_MINUTES","QUANTITY","SIX_MINUTES_WALKING","TIMED_UP_AND_GO","COGNITIVE_MOTOR","GAIT_SPEED","BALANCE","EXECUTIVE_FUNCTION","PROCESSING_SPEED","ATTENTION","WORKING_MEMORY","EPISODIC_MEMORY","LONG_TERM_STRESS","SHORT_TERM_STRESS","HBA1C"]},"performer":{"description":"Who was responsible for asserting the observed value as \"true\".","$ref":"#/definitions/ReferencePayload"},"position":{"type":"string","description":"The position of the patient when the blood pressure was measured","enum":["ORTHOSTATIC","RECUMBENT","SITTING","TILT","TRENDELENBURG"]},"referenceRanges":{"type":"array","items":{"$ref":"#/definitions/ReferenceRangeObservationPayload"}},"references":{"type":"array","items":{"type":"string"}},"resourceType":{"type":"string"},"subject":{"description":"The patient whose characteristics (direct or indirect) are described by the observation and into whose record the observation is placed","$ref":"#/definitions/ReferencePayload"},"systolic":{"description":"The highest (peak) systematic arterial blood pressure - measured in the contraction stage or systole of the cardiac cycle","$ref":"#/definitions/QuantityPayload"}},"title":"BloodPressureObservationPayload"},"BloodPressureObservationRequest":{"type":"object","required":["diastolic","systolic"],"properties":{"averageBloodPressure":{"type":"integer","format":"int32","description":"Average blood pressure during one cycle of the heart contracting and relaxing"},"bodySite":{"type":"string","description":"Anatomical location where the blood pressure was measured.","enum":["UPPER_ARM","RIGHT_UPPER_ARM","LEFT_UPPER_ARM","THIGH","RIGHT_THIGH","LEFT_THIGH","WRIST_REGION","RIGHT_WRIST","LEFT_WRIST","FINGER","ANKLE_REGION","RIGHT_ANKLE","LEFT_ANKLE"]},"comment":{"type":"string","description":"Comment on the measurement."},"cuffType":{"type":"string","description":"The size of the cuff used in the measurement","enum":["STD","L","S","XL","KIND","JONGKIND","NEONAAT"]},"device":{"description":"${medsafe.observation.device}","$ref":"#/definitions/ReferencePayload"},"diastolic":{"type":"integer","format":"int32","description":"The lowest systematic arterial blood pressure - measured in the relaxation stage or diastole of the cardiac cycle"},"diastolicEndpoint":{"type":"string","description":"Registration of the Korotkoff sound used to measure diastolic pressure with the auscultatory method","enum":["PHASE_4","PHASE_5"]},"effective":{"$ref":"#/definitions/PastOrPresentPartialDatePayload"},"method":{"type":"string","description":"The type of method used to measure blood pressure","enum":["NON_INVASIVE","INVASIVE"]},"performer":{"description":"Who was responsible for asserting the observed value as \"true\".","$ref":"#/definitions/ReferencePayload"},"position":{"type":"string","description":"The position of the patient when the blood pressure was measured","enum":["ORTHOSTATIC","RECUMBENT","SITTING","TILT","TRENDELENBURG"]},"systolic":{"type":"integer","format":"int32","description":"The highest (peak) systematic arterial blood pressure - measured in the contraction stage or systole of the cardiac cycle"}},"title":"BloodPressureObservationRequest"},"BodyFatPercentageObservationPayload":{"type":"object","properties":{"comment":{"type":"string","description":"Comment on the measurement."},"context":{"description":"Context of the measurement (observation).","$ref":"#/definitions/ReferencePayload"},"device":{"description":"${medsafe.observation.device}","$ref":"#/definitions/ReferencePayload"},"effective":{"description":"Date and if possible time of the measurement.","$ref":"#/definitions/PastOrPresentPartialDatePayload"},"id":{"type":"string","description":"A unique identifier assigned to this observation."},"interpretation":{"description":"Interpretation of the measurement.","$ref":"#/definitions/CodeableConceptPayload"},"nhgCode":{"description":"NHG Code","$ref":"#/definitions/CodingPayload"},"observationType":{"type":"string","enum":["BLOOD_PRESSURE","BODY_WEIGHT","BODY_HEIGHT","BODY_TEMPERATURE","HEART_RATE","PULSE_RATE","OXYGEN_SATURATION","BLOOD_GLUCOSE","ALCOHOL_USE","TOBACCO_USE","DRUG_USE","LIVING_SITUATION","FAMILY_SITUATION","PARTICIPATION_IN_SOCIETY","FUNCTIONAL_OR_MENTAL_STATUS","LABORATORY_TEST_RESULT","WAIST_CIRCUMFERENCE","HEMOGLOBIN","WAIST_HEIGHT_RATIO","BODY_MASS_INDEX","ECG","GP_JOURNAL_ENTRY","GENERIC","C_PEPTIDE","RESPIRATORY_RATE","STEP_COUNTER","HEART_MINUTES","SLEEPING","BODY_FAT_PERCENTAGE","BASAL_METABOLIC_RATE","ACTIVE_MINUTES","QUANTITY","SIX_MINUTES_WALKING","TIMED_UP_AND_GO","COGNITIVE_MOTOR","GAIT_SPEED","BALANCE","EXECUTIVE_FUNCTION","PROCESSING_SPEED","ATTENTION","WORKING_MEMORY","EPISODIC_MEMORY","LONG_TERM_STRESS","SHORT_TERM_STRESS","HBA1C"]},"percentage":{"description":"${medsafe.observation.body.fat.percentage.quantity.value}","$ref":"#/definitions/QuantityPayload"},"performer":{"description":"Who was responsible for asserting the observed value as \"true\".","$ref":"#/definitions/ReferencePayload"},"referenceRanges":{"type":"array","items":{"$ref":"#/definitions/ReferenceRangeObservationPayload"}},"references":{"type":"array","items":{"type":"string"}},"resourceType":{"type":"string"},"subject":{"description":"The patient whose characteristics (direct or indirect) are described by the observation and into whose record the observation is placed","$ref":"#/definitions/ReferencePayload"}},"title":"BodyFatPercentageObservationPayload"},"BodyFatPercentageObservationRequest":{"type":"object","required":["percentage"],"properties":{"comment":{"type":"string","description":"Comment on the measurement."},"device":{"description":"${medsafe.observation.device}","$ref":"#/definitions/ReferencePayload"},"effective":{"$ref":"#/definitions/PastOrPresentPartialDatePayload"},"percentage":{"type":"number","format":"double","description":"${medsafe.observation.body.fat.percentage.value}"},"performer":{"description":"Who was responsible for asserting the observed value as \"true\".","$ref":"#/definitions/ReferencePayload"}},"title":"BodyFatPercentageObservationRequest"},"BodyHeightObservationPayload":{"type":"object","properties":{"comment":{"type":"string","description":"Comment on the measurement."},"context":{"description":"Context of the measurement (observation).","$ref":"#/definitions/ReferencePayload"},"device":{"description":"${medsafe.observation.device}","$ref":"#/definitions/ReferencePayload"},"effective":{"description":"Date and if possible time of the measurement.","$ref":"#/definitions/PastOrPresentPartialDatePayload"},"height":{"description":"The element contains the value of the measured body height","$ref":"#/definitions/QuantityPayload"},"id":{"type":"string","description":"A unique identifier assigned to this observation."},"interpretation":{"description":"Interpretation of the measurement.","$ref":"#/definitions/CodeableConceptPayload"},"nhgCode":{"description":"NHG Code","$ref":"#/definitions/CodingPayload"},"observationType":{"type":"string","enum":["BLOOD_PRESSURE","BODY_WEIGHT","BODY_HEIGHT","BODY_TEMPERATURE","HEART_RATE","PULSE_RATE","OXYGEN_SATURATION","BLOOD_GLUCOSE","ALCOHOL_USE","TOBACCO_USE","DRUG_USE","LIVING_SITUATION","FAMILY_SITUATION","PARTICIPATION_IN_SOCIETY","FUNCTIONAL_OR_MENTAL_STATUS","LABORATORY_TEST_RESULT","WAIST_CIRCUMFERENCE","HEMOGLOBIN","WAIST_HEIGHT_RATIO","BODY_MASS_INDEX","ECG","GP_JOURNAL_ENTRY","GENERIC","C_PEPTIDE","RESPIRATORY_RATE","STEP_COUNTER","HEART_MINUTES","SLEEPING","BODY_FAT_PERCENTAGE","BASAL_METABOLIC_RATE","ACTIVE_MINUTES","QUANTITY","SIX_MINUTES_WALKING","TIMED_UP_AND_GO","COGNITIVE_MOTOR","GAIT_SPEED","BALANCE","EXECUTIVE_FUNCTION","PROCESSING_SPEED","ATTENTION","WORKING_MEMORY","EPISODIC_MEMORY","LONG_TERM_STRESS","SHORT_TERM_STRESS","HBA1C"]},"performer":{"description":"Who was responsible for asserting the observed value as \"true\".","$ref":"#/definitions/ReferencePayload"},"position":{"type":"string","description":"The position of the body height measurement","enum":["STANDING","LYING","GENERAL"]},"referenceRanges":{"type":"array","items":{"$ref":"#/definitions/ReferenceRangeObservationPayload"}},"references":{"type":"array","items":{"type":"string"}},"resourceType":{"type":"string"},"subject":{"description":"The patient whose characteristics (direct or indirect) are described by the observation and into whose record the observation is placed","$ref":"#/definitions/ReferencePayload"}},"title":"BodyHeightObservationPayload"},"BodyHeightObservationRequest":{"type":"object","required":["height"],"properties":{"comment":{"type":"string","description":"Comment on the measurement."},"device":{"description":"${medsafe.observation.device}","$ref":"#/definitions/ReferencePayload"},"effective":{"$ref":"#/definitions/PastOrPresentPartialDatePayload"},"height":{"type":"number","format":"double","description":"The element contains the value of the measured body height"},"performer":{"description":"Who was responsible for asserting the observed value as \"true\".","$ref":"#/definitions/ReferencePayload"},"position":{"type":"string","description":"The position of the body height measurement","enum":["STANDING","LYING","GENERAL"]}},"title":"BodyHeightObservationRequest"},"BodyMassIndexObservationPayload":{"type":"object","properties":{"comment":{"type":"string","description":"Comment on the measurement."},"context":{"description":"Context of the measurement (observation).","$ref":"#/definitions/ReferencePayload"},"device":{"description":"${medsafe.observation.device}","$ref":"#/definitions/ReferencePayload"},"effective":{"description":"Date and if possible time of the measurement.","$ref":"#/definitions/PastOrPresentPartialDatePayload"},"id":{"type":"string","description":"A unique identifier assigned to this observation."},"index":{"description":"The BMI","$ref":"#/definitions/QuantityPayload"},"interpretation":{"description":"Interpretation of the measurement.","$ref":"#/definitions/CodeableConceptPayload"},"nhgCode":{"description":"NHG Code","$ref":"#/definitions/CodingPayload"},"observationType":{"type":"string","enum":["BLOOD_PRESSURE","BODY_WEIGHT","BODY_HEIGHT","BODY_TEMPERATURE","HEART_RATE","PULSE_RATE","OXYGEN_SATURATION","BLOOD_GLUCOSE","ALCOHOL_USE","TOBACCO_USE","DRUG_USE","LIVING_SITUATION","FAMILY_SITUATION","PARTICIPATION_IN_SOCIETY","FUNCTIONAL_OR_MENTAL_STATUS","LABORATORY_TEST_RESULT","WAIST_CIRCUMFERENCE","HEMOGLOBIN","WAIST_HEIGHT_RATIO","BODY_MASS_INDEX","ECG","GP_JOURNAL_ENTRY","GENERIC","C_PEPTIDE","RESPIRATORY_RATE","STEP_COUNTER","HEART_MINUTES","SLEEPING","BODY_FAT_PERCENTAGE","BASAL_METABOLIC_RATE","ACTIVE_MINUTES","QUANTITY","SIX_MINUTES_WALKING","TIMED_UP_AND_GO","COGNITIVE_MOTOR","GAIT_SPEED","BALANCE","EXECUTIVE_FUNCTION","PROCESSING_SPEED","ATTENTION","WORKING_MEMORY","EPISODIC_MEMORY","LONG_TERM_STRESS","SHORT_TERM_STRESS","HBA1C"]},"performer":{"description":"Who was responsible for asserting the observed value as \"true\".","$ref":"#/definitions/ReferencePayload"},"referenceRanges":{"type":"array","items":{"$ref":"#/definitions/ReferenceRangeObservationPayload"}},"references":{"type":"array","items":{"type":"string"}},"resourceType":{"type":"string"},"subject":{"description":"The patient whose characteristics (direct or indirect) are described by the observation and into whose record the observation is placed","$ref":"#/definitions/ReferencePayload"}},"title":"BodyMassIndexObservationPayload"},"BodyMassIndexObservationRequest":{"type":"object","required":["index"],"properties":{"comment":{"type":"string","description":"Comment on the measurement."},"device":{"description":"${medsafe.observation.device}","$ref":"#/definitions/ReferencePayload"},"effective":{"$ref":"#/definitions/PastOrPresentPartialDatePayload"},"index":{"type":"number","format":"double","description":"The BMI"},"performer":{"description":"Who was responsible for asserting the observed value as \"true\".","$ref":"#/definitions/ReferencePayload"}},"title":"BodyMassIndexObservationRequest"},"BodyTemperatureObservationPayload":{"type":"object","properties":{"bodySite":{"$ref":"#/definitions/CodeableConceptPayload"},"comment":{"type":"string","description":"Comment on the measurement."},"context":{"description":"Context of the measurement (observation).","$ref":"#/definitions/ReferencePayload"},"device":{"description":"${medsafe.observation.device}","$ref":"#/definitions/ReferencePayload"},"effective":{"description":"Date and if possible time of the measurement.","$ref":"#/definitions/PastOrPresentPartialDatePayload"},"id":{"type":"string","description":"A unique identifier assigned to this observation."},"interpretation":{"description":"Interpretation of the measurement.","$ref":"#/definitions/CodeableConceptPayload"},"method":{"type":"string","description":"The anatomical location where the body temperature was measured","enum":["RECTAL","ORAL","AXILLARY","TYMPANIC","FOREHEAD"]},"nhgCode":{"description":"NHG Code","$ref":"#/definitions/CodingPayload"},"observationType":{"type":"string","enum":["BLOOD_PRESSURE","BODY_WEIGHT","BODY_HEIGHT","BODY_TEMPERATURE","HEART_RATE","PULSE_RATE","OXYGEN_SATURATION","BLOOD_GLUCOSE","ALCOHOL_USE","TOBACCO_USE","DRUG_USE","LIVING_SITUATION","FAMILY_SITUATION","PARTICIPATION_IN_SOCIETY","FUNCTIONAL_OR_MENTAL_STATUS","LABORATORY_TEST_RESULT","WAIST_CIRCUMFERENCE","HEMOGLOBIN","WAIST_HEIGHT_RATIO","BODY_MASS_INDEX","ECG","GP_JOURNAL_ENTRY","GENERIC","C_PEPTIDE","RESPIRATORY_RATE","STEP_COUNTER","HEART_MINUTES","SLEEPING","BODY_FAT_PERCENTAGE","BASAL_METABOLIC_RATE","ACTIVE_MINUTES","QUANTITY","SIX_MINUTES_WALKING","TIMED_UP_AND_GO","COGNITIVE_MOTOR","GAIT_SPEED","BALANCE","EXECUTIVE_FUNCTION","PROCESSING_SPEED","ATTENTION","WORKING_MEMORY","EPISODIC_MEMORY","LONG_TERM_STRESS","SHORT_TERM_STRESS","HBA1C"]},"performer":{"description":"Who was responsible for asserting the observed value as \"true\".","$ref":"#/definitions/ReferencePayload"},"referenceRanges":{"type":"array","items":{"$ref":"#/definitions/ReferenceRangeObservationPayload"}},"references":{"type":"array","items":{"type":"string"}},"resourceType":{"type":"string"},"subject":{"description":"The patient whose characteristics (direct or indirect) are described by the observation and into whose record the observation is placed","$ref":"#/definitions/ReferencePayload"},"temperature":{"description":"The temperature inside the body, measured in °C (degrees Celsius)","$ref":"#/definitions/QuantityPayload"}},"title":"BodyTemperatureObservationPayload"},"BodyTemperatureObservationRequest":{"type":"object","required":["temperature"],"properties":{"comment":{"type":"string","description":"Comment on the measurement."},"device":{"description":"${medsafe.observation.device}","$ref":"#/definitions/ReferencePayload"},"effective":{"$ref":"#/definitions/PastOrPresentPartialDatePayload"},"method":{"type":"string","description":"The anatomical location where the body temperature was measured","enum":["RECTAL","ORAL","AXILLARY","TYMPANIC","FOREHEAD"]},"performer":{"description":"Who was responsible for asserting the observed value as \"true\".","$ref":"#/definitions/ReferencePayload"},"temperature":{"type":"number","format":"double","description":"The temperature inside the body"}},"title":"BodyTemperatureObservationRequest"},"BodyWeightObservationPayload":{"type":"object","properties":{"clothing":{"type":"string","description":"The clothes the patient was wearing at the time of the measurement","enum":["UNDRESSED","MINIMAL","FULL","DIAPER"]},"comment":{"type":"string","description":"Comment on the measurement."},"context":{"description":"Context of the measurement (observation).","$ref":"#/definitions/ReferencePayload"},"device":{"description":"${medsafe.observation.device}","$ref":"#/definitions/ReferencePayload"},"effective":{"description":"Date and if possible time of the measurement.","$ref":"#/definitions/PastOrPresentPartialDatePayload"},"id":{"type":"string","description":"A unique identifier assigned to this observation."},"interpretation":{"description":"Interpretation of the measurement.","$ref":"#/definitions/CodeableConceptPayload"},"nhgCode":{"description":"NHG Code","$ref":"#/definitions/CodingPayload"},"observationType":{"type":"string","enum":["BLOOD_PRESSURE","BODY_WEIGHT","BODY_HEIGHT","BODY_TEMPERATURE","HEART_RATE","PULSE_RATE","OXYGEN_SATURATION","BLOOD_GLUCOSE","ALCOHOL_USE","TOBACCO_USE","DRUG_USE","LIVING_SITUATION","FAMILY_SITUATION","PARTICIPATION_IN_SOCIETY","FUNCTIONAL_OR_MENTAL_STATUS","LABORATORY_TEST_RESULT","WAIST_CIRCUMFERENCE","HEMOGLOBIN","WAIST_HEIGHT_RATIO","BODY_MASS_INDEX","ECG","GP_JOURNAL_ENTRY","GENERIC","C_PEPTIDE","RESPIRATORY_RATE","STEP_COUNTER","HEART_MINUTES","SLEEPING","BODY_FAT_PERCENTAGE","BASAL_METABOLIC_RATE","ACTIVE_MINUTES","QUANTITY","SIX_MINUTES_WALKING","TIMED_UP_AND_GO","COGNITIVE_MOTOR","GAIT_SPEED","BALANCE","EXECUTIVE_FUNCTION","PROCESSING_SPEED","ATTENTION","WORKING_MEMORY","EPISODIC_MEMORY","LONG_TERM_STRESS","SHORT_TERM_STRESS","HBA1C"]},"performer":{"description":"Who was responsible for asserting the observed value as \"true\".","$ref":"#/definitions/ReferencePayload"},"referenceRanges":{"type":"array","items":{"$ref":"#/definitions/ReferenceRangeObservationPayload"}},"references":{"type":"array","items":{"type":"string"}},"resourceType":{"type":"string"},"subject":{"description":"The patient whose characteristics (direct or indirect) are described by the observation and into whose record the observation is placed","$ref":"#/definitions/ReferencePayload"},"weight":{"description":"The patient’s body weight. Body weight is expressed in kilograms (kg)","$ref":"#/definitions/QuantityPayload"}},"title":"BodyWeightObservationPayload"},"BodyWeightObservationRequest":{"type":"object","required":["weight"],"properties":{"clothing":{"type":"string","description":"The clothes the patient was wearing at the time of the measurement","enum":["UNDRESSED","MINIMAL","FULL","DIAPER"]},"comment":{"type":"string","description":"Comment on the measurement."},"device":{"description":"${medsafe.observation.device}","$ref":"#/definitions/ReferencePayload"},"effective":{"$ref":"#/definitions/PastOrPresentPartialDatePayload"},"performer":{"description":"Who was responsible for asserting the observed value as \"true\".","$ref":"#/definitions/ReferencePayload"},"weight":{"type":"number","format":"double","description":"The patient’s body weight"}},"title":"BodyWeightObservationRequest"},"CarePlanPayload":{"type":"object","properties":{"addresses":{"type":"array","description":"addresses","items":{"$ref":"#/definitions/ResourceReferencePayload"}},"authors":{"type":"array","description":"authors","items":{"$ref":"#/definitions/ResourceReferencePayload"}},"basedOn":{"type":"array","description":"definition","items":{"$ref":"#/definitions/ResourceReferencePayload"}},"categories":{"type":"array","description":"categories","items":{"type":"string"}},"context":{"description":"context","$ref":"#/definitions/ResourceReferencePayload"},"definition":{"type":"array","description":"definition","items":{"$ref":"#/definitions/ResourceReferencePayload"}},"description":{"type":"string","description":"description"},"dueDate":{"type":"string","description":"dueDate"},"id":{"type":"string","description":"id"},"intent":{"type":"string","description":"intent","enum":["PROPOSAL","PLAN","ORDER","OPTION","NULL"]},"notes":{"type":"array","description":"supportingInfo","items":{"$ref":"#/definitions/ResourceReferencePayload"}},"partOf":{"type":"array","description":"partOf","items":{"$ref":"#/definitions/ResourceReferencePayload"}},"replaces":{"type":"array","description":"replaces","items":{"$ref":"#/definitions/ResourceReferencePayload"}},"resourceType":{"type":"string","description":"resourceType"},"startDate":{"type":"string","description":"startDate"},"status":{"type":"string","description":"status","enum":["DRAFT","ACTIVE","SUSPENDED","COMPLETED","ENTEREDINERROR","CANCELLED","UNKNOWN","NULL"]},"subject":{"type":"string","format":"uuid","description":"subject"},"supportingInfo":{"type":"array","description":"supportingInfo","items":{"$ref":"#/definitions/ResourceReferencePayload"}},"title":{"type":"string","description":"title"}},"title":"CarePlanPayload"},"CodeableConceptPayload":{"type":"object","properties":{"coding":{"type":"array","description":"coding","items":{"$ref":"#/definitions/CodingPayload"}},"text":{"type":"string","description":"text"}},"title":"CodeableConceptPayload"},"CodingPayload":{"type":"object","properties":{"code":{"type":"string","description":"code"},"display":{"type":"string","description":"display"},"system":{"type":"string","description":"system"},"userSelected":{"type":"boolean","description":"userSelected"},"version":{"type":"string","description":"version"}},"title":"CodingPayload"},"CommunicationPayload":{"type":"object","properties":{"language":{"$ref":"#/definitions/CodeableConceptPayload"},"preferred":{"type":"boolean"},"languageProficiencyList":{"type":"array","items":{"$ref":"#/definitions/LanguageProficiencyPayload"}}},"title":"CommunicationPayload"},"ConditionInfoPayload":{"type":"object","properties":{"id":{"type":"string","description":"ID"},"medications":{"type":"array","description":"Medications","items":{"$ref":"#/definitions/MedicationInfoPayload"}},"name":{"type":"string","description":"Complaint/Diagnosis name"},"periodEnd":{"description":"Condition Period End","$ref":"#/definitions/PartialDatePayload"},"periodStart":{"description":"Condition Period Start","$ref":"#/definitions/PastOrPresentPartialDatePayload"},"status":{"type":"string","description":"Status","enum":["ACTIVE","REMISSION","RESOLVED"]},"totalMedicationsCount":{"type":"integer","format":"int32","description":"Total number of medications this condition linked to"},"totalSymptomsCount":{"type":"integer","format":"int32","description":"Total number of symptoms"},"type":{"type":"string","description":"Type","enum":["PROBLEM","DIAGNOSIS"]}},"title":"ConditionInfoPayload"},"ConditionPayload":{"type":"object","required":["name","periodStart","status","type"],"properties":{"attachments":{"type":"array","description":"Attachments","items":{"$ref":"#/definitions/AttachmentPayload"}},"comment":{"type":"string","description":"Comment"},"id":{"type":"string","description":"ID"},"medicationIds":{"type":"array","description":"Medications","items":{"type":"string"}},"name":{"type":"string","description":"Complaint/Diagnosis name"},"organization":{"type":"string","description":"Organization of Practitioner"},"periodEnd":{"description":"Condition Period End","$ref":"#/definitions/PartialDatePayload"},"periodStart":{"description":"Condition Period Start","$ref":"#/definitions/PastOrPresentPartialDatePayload"},"practitioner":{"type":"string","description":"Practitioner Name who set diagnosis"},"status":{"type":"string","description":"Status","enum":["ACTIVE","RECURRENCE","REMISSION","RESOLVED"]},"symptoms":{"type":"array","description":"List of symptoms","items":{"$ref":"#/definitions/ConditionSymptomPayload"}},"type":{"type":"string","description":"Type","enum":["COMPLAINT","DIAGNOSIS"]}},"title":"ConditionPayload"},"ConditionSymptomPayload":{"type":"object","required":["bodyPart"],"properties":{"bodyPart":{"type":"string","description":"Body Part","enum":["GENERAL","HEAD","NECK","CHEST","ARM_LEFT","ARM_RIGHT","ABDOMEN","HAND_LEFT","HAND_RIGHT","PELVIS","LEG_LEFT","LEG_RIGHT","FEET_LEFT","FEET_RIGHT","BACK","BUTTOCKS"]},"code":{"type":"string","description":"Predefined symptom code"},"name":{"type":"string","description":"Custom symptom title"}},"title":"ConditionSymptomPayload"},"ConsoleError":{"type":"object","properties":{"message":{"type":"string"},"stack":{"type":"string"},"time":{"type":"string","format":"date-time"},"url":{"type":"string"}},"title":"ConsoleError"},"ContactPayload":{"type":"object","properties":{"relationships":{"type":"array","items":{"$ref":"#/definitions/CodeableConceptPayload"}},"roles":{"type":"array","items":{"$ref":"#/definitions/CodeableConceptPayload"}},"name":{"$ref":"#/definitions/NlCoreHumanNamePayload"},"contactPoints":{"type":"array","items":{"$ref":"#/definitions/ContactPointPayload"}},"address":{"$ref":"#/definitions/NlCoreAddressPayload"},"gender":{"type":"string","enum":["MALE","FEMALE","OTHER","UNKNOWN","NULL"]},"period":{"$ref":"#/definitions/PeriodPayload"}},"title":"ContactPayload"},"ContactPointPayload":{"type":"object","properties":{"rank":{"type":"integer","format":"int32","description":"rank"},"system":{"type":"string","description":"system","enum":["phone","fax","email","pager","url","sms","other"]},"telecomType":{"description":"telecomType","$ref":"#/definitions/CodeableConceptPayload"},"use":{"type":"string","description":"use","enum":["home","work","temp","mobile","old"]},"value":{"type":"string","description":"value"}},"title":"ContactPointPayload"},"CountPayload":{"type":"object","properties":{"count":{"type":"integer","format":"int32","description":"The count"}},"title":"CountPayload"},"CpeptideObservationPayload":{"type":"object","required":["type","unit","value"],"properties":{"comment":{"type":"string","description":"Comment on the measurement."},"context":{"description":"Context of the measurement (observation).","$ref":"#/definitions/ReferencePayload"},"device":{"description":"${medsafe.observation.device}","$ref":"#/definitions/ReferencePayload"},"effective":{"description":"Date and if possible time of the measurement.","$ref":"#/definitions/PastOrPresentPartialDatePayload"},"id":{"type":"string","description":"A unique identifier assigned to this observation."},"interpretation":{"description":"Interpretation of the measurement.","$ref":"#/definitions/CodeableConceptPayload"},"nhgCode":{"description":"NHG Code","$ref":"#/definitions/CodingPayload"},"observationType":{"type":"string","enum":["BLOOD_PRESSURE","BODY_WEIGHT","BODY_HEIGHT","BODY_TEMPERATURE","HEART_RATE","PULSE_RATE","OXYGEN_SATURATION","BLOOD_GLUCOSE","ALCOHOL_USE","TOBACCO_USE","DRUG_USE","LIVING_SITUATION","FAMILY_SITUATION","PARTICIPATION_IN_SOCIETY","FUNCTIONAL_OR_MENTAL_STATUS","LABORATORY_TEST_RESULT","WAIST_CIRCUMFERENCE","HEMOGLOBIN","WAIST_HEIGHT_RATIO","BODY_MASS_INDEX","ECG","GP_JOURNAL_ENTRY","GENERIC","C_PEPTIDE","RESPIRATORY_RATE","STEP_COUNTER","HEART_MINUTES","SLEEPING","BODY_FAT_PERCENTAGE","BASAL_METABOLIC_RATE","ACTIVE_MINUTES","QUANTITY","SIX_MINUTES_WALKING","TIMED_UP_AND_GO","COGNITIVE_MOTOR","GAIT_SPEED","BALANCE","EXECUTIVE_FUNCTION","PROCESSING_SPEED","ATTENTION","WORKING_MEMORY","EPISODIC_MEMORY","LONG_TERM_STRESS","SHORT_TERM_STRESS","HBA1C"]},"organization":{"description":"The name of organization facility which provided the result.","$ref":"#/definitions/ReferencePayload"},"performer":{"description":"Who was responsible for asserting the observed value as \"true\".","$ref":"#/definitions/ReferencePayload"},"referenceRanges":{"type":"array","items":{"$ref":"#/definitions/ReferenceRangeObservationPayload"}},"references":{"type":"array","items":{"type":"string"}},"resourceType":{"type":"string"},"specimenNum":{"type":"integer","format":"int32","description":"The specimen number."},"subject":{"description":"The patient whose characteristics (direct or indirect) are described by the observation and into whose record the observation is placed","$ref":"#/definitions/ReferencePayload"},"timeOffset":{"type":"string","description":"${medsafe.observation.cpeptide.timeOffset}","enum":["MIN_1","MIN_2","MIN_3","MIN_4","MIN_5","MIN_6","MIN_8","MIN_10","MIN_15","MIN_30","MIN_45","HOUR_1","HOUR_1_5","HOUR_2","HOUR_2_5","HOUR_3","HOUR_3_5","HOUR_4","HOUR_4_5","HOUR_5","NONE"]},"type":{"type":"string","description":"The C-Peptide type.","enum":["FASTING","GENERAL","URINE","URINE_24_H","PRE_GLUCOSE","PRE_GLUCAGON","PRE_XXX_CHALLENGE","POST_MEAL","POST_GLUCOSE","POST_GLUCAGON","POST_1_MG_GLUCAGON","POST_XXX_CHALLENGE","BASELINE"]},"unit":{"type":"string","description":"The unit of measurement parameter.","enum":["PMOL_L","NG_ML","NMOL_L","UG_L","UG_24_H","NMOL_24_H","MG_ML"]},"value":{"type":"number","format":"double","description":"The C-Peptide laboratory result value."}},"title":"CpeptideObservationPayload"},"CpeptideObservationRequest":{"type":"object","required":["type","unit","value"],"properties":{"comment":{"type":"string","description":"Comment on the measurement."},"device":{"description":"${medsafe.observation.device}","$ref":"#/definitions/ReferencePayload"},"effective":{"$ref":"#/definitions/PastOrPresentPartialDatePayload"},"organization":{"description":"The name of organization facility which provided the result.","$ref":"#/definitions/ReferencePayload"},"performer":{"description":"${medsage.observation.cpeptide.performer","$ref":"#/definitions/ReferencePayload"},"specimenNum":{"type":"integer","format":"int32","description":"The specimen number."},"timeOffset":{"type":"string","description":"${medsafe.observation.cpeptide.timeOffset}","enum":["MIN_1","MIN_2","MIN_3","MIN_4","MIN_5","MIN_6","MIN_8","MIN_10","MIN_15","MIN_30","MIN_45","HOUR_1","HOUR_1_5","HOUR_2","HOUR_2_5","HOUR_3","HOUR_3_5","HOUR_4","HOUR_4_5","HOUR_5"]},"type":{"type":"string","description":"The C-Peptide type.","enum":["FASTING","GENERAL","URINE","URINE_24_H","PRE_GLUCOSE","PRE_GLUCAGON","PRE_XXX_CHALLENGE","POST_MEAL","POST_GLUCOSE","POST_GLUCAGON","POST_1_MG_GLUCAGON","POST_XXX_CHALLENGE","BASELINE"]},"unit":{"type":"string","description":"The unit of measurement parameter.","enum":["PMOL_L","NG_ML","NMOL_L","UG_L","UG_24_H","NMOL_24_H","MG_ML"]},"value":{"type":"number","format":"double","description":"The C-Peptide laboratory result value."}},"title":"CpeptideObservationRequest"},"CreateUserPayload":{"type":"object","properties":{"birthDate":{"type":"string","format":"date-time"},"city":{"type":"string"},"email":{"type":"string"},"gender":{"type":"string","enum":["MALE","FEMALE","OTHER","UNKNOWN","NULL"]},"houseNumber":{"type":"string"},"initials":{"type":"string"},"lastName":{"type":"string"},"lastNamePrefix":{"type":"string"},"partnerLastName":{"type":"string"},"partnerLastNamePrefix":{"type":"string"},"phone":{"type":"string"},"postalCode":{"type":"string"},"ssn":{"type":"string"},"street":{"type":"string"}},"title":"CreateUserPayload"},"DeviceObservationPayload":{"type":"object","properties":{"id":{"type":"string","description":"id"},"manufactureDate":{"description":"manufactureDate","$ref":"#/definitions/PastOrPresentPartialDatePayload"},"patientReference":{"description":"patientReference","$ref":"#/definitions/ReferencePayload"},"resourceType":{"type":"string","description":"resourceType"},"type":{"description":"type","$ref":"#/definitions/CodeableConceptPayload"}},"title":"DeviceObservationPayload"},"DiagnosticReportPayload":{"type":"object","properties":{"basedOn":{"type":"array","description":"basedOn","items":{"$ref":"#/definitions/ReferencePayload"}},"category":{"description":"category","$ref":"#/definitions/CodeableConceptPayload"},"code":{"description":"code","$ref":"#/definitions/CodeableConceptPayload"},"conclusion":{"type":"string","description":"conclusion"},"id":{"type":"string","description":"id"},"onset":{"type":"string","format":"date-time","description":"onset"},"patientReference":{"description":"patientReference","$ref":"#/definitions/ReferencePayload"},"performerList":{"type":"array","description":"performerList","items":{"$ref":"#/definitions/DiagnosticReportPerformerPayload"}},"recovery":{"description":"recovery","$ref":"#/definitions/PastOrPresentPartialDatePayload"},"resourceType":{"type":"string","description":"resourceType"},"resultStatus":{"type":"string","description":"resultStatus","enum":["PENDING","PRELIMINARY","FINAL","APPENDED","CORRECTED"]},"results":{"type":"array","description":"results","items":{"$ref":"#/definitions/ReferencePayload"}},"specimens":{"type":"array","description":"specimens","items":{"$ref":"#/definitions/ReferencePayload"}},"status":{"type":"string","description":"status","enum":["REGISTERED","PARTIAL","PRELIMINARY","FINAL","AMENDED","CORRECTED","APPENDED","CANCELLED","ENTEREDINERROR","UNKNOWN"]}},"title":"DiagnosticReportPayload"},"DiagnosticReportPerformerPayload":{"type":"object","properties":{"actor":{"description":"actor","$ref":"#/definitions/ReferencePayload"},"role":{"description":"role","$ref":"#/definitions/CodeableConceptPayload"}},"title":"DiagnosticReportPerformerPayload"},"DocumentReferenceListPayload":{"type":"object","required":["fileName"],"properties":{"fileName":{"type":"string","description":"File Name"},"id":{"type":"string","description":"ID"}},"title":"DocumentReferenceListPayload"},"DocumentReferencePayload":{"type":"object","required":["base64Data","contentType","fileName"],"properties":{"base64Data":{"type":"string"},"contentType":{"type":"string","description":"MIME Content Type"},"fileName":{"type":"string","description":"File Name"},"id":{"type":"string","description":"ID"}},"title":"DocumentReferencePayload"},"EcgLeadPayload":{"type":"object","required":["origin","period"],"properties":{"data":{"type":"array","description":"A series of data points which are int values","items":{"type":"integer","format":"int32"}},"lead":{"type":"string","description":"The name of ECG's LEAD","enum":["LEAD_I","LEAD_II","LEAD_III","LEAD_AVR","LEAD_AVL","LEAD_AVF","LEAD_V1","LEAD_V2","LEAD_V3","LEAD_V4","LEAD_V5","LEAD_V6"]},"lowerLimit":{"type":"integer","format":"int32","description":"The lower limit of detection of the measured points"},"origin":{"type":"integer","format":"int32","description":"The base quantity that a measured value of zero represents"},"period":{"type":"integer","format":"int32","description":"The length of time between sampling times, measured in milliseconds"},"upperLimit":{"type":"integer","format":"int32","description":"The upper limit of detection of the measured points"}},"title":"EcgLeadPayload"},"EcgObservationPayload":{"type":"object","properties":{"comment":{"type":"string","description":"Comment on the measurement."},"context":{"description":"Context of the measurement (observation).","$ref":"#/definitions/ReferencePayload"},"device":{"description":"${medsafe.observation.device}","$ref":"#/definitions/ReferencePayload"},"effective":{"description":"Date and if possible time of the measurement.","$ref":"#/definitions/PastOrPresentPartialDatePayload"},"id":{"type":"string","description":"A unique identifier assigned to this observation."},"interpretation":{"description":"Interpretation of the measurement.","$ref":"#/definitions/CodeableConceptPayload"},"leads":{"description":"The object which represents information from single ECG's lead","$ref":"#/definitions/EcgLeadPayload"},"nhgCode":{"description":"NHG Code","$ref":"#/definitions/CodingPayload"},"observationType":{"type":"string","enum":["BLOOD_PRESSURE","BODY_WEIGHT","BODY_HEIGHT","BODY_TEMPERATURE","HEART_RATE","PULSE_RATE","OXYGEN_SATURATION","BLOOD_GLUCOSE","ALCOHOL_USE","TOBACCO_USE","DRUG_USE","LIVING_SITUATION","FAMILY_SITUATION","PARTICIPATION_IN_SOCIETY","FUNCTIONAL_OR_MENTAL_STATUS","LABORATORY_TEST_RESULT","WAIST_CIRCUMFERENCE","HEMOGLOBIN","WAIST_HEIGHT_RATIO","BODY_MASS_INDEX","ECG","GP_JOURNAL_ENTRY","GENERIC","C_PEPTIDE","RESPIRATORY_RATE","STEP_COUNTER","HEART_MINUTES","SLEEPING","BODY_FAT_PERCENTAGE","BASAL_METABOLIC_RATE","ACTIVE_MINUTES","QUANTITY","SIX_MINUTES_WALKING","TIMED_UP_AND_GO","COGNITIVE_MOTOR","GAIT_SPEED","BALANCE","EXECUTIVE_FUNCTION","PROCESSING_SPEED","ATTENTION","WORKING_MEMORY","EPISODIC_MEMORY","LONG_TERM_STRESS","SHORT_TERM_STRESS","HBA1C"]},"performer":{"description":"Who was responsible for asserting the observed value as \"true\".","$ref":"#/definitions/ReferencePayload"},"referenceRanges":{"type":"array","items":{"$ref":"#/definitions/ReferenceRangeObservationPayload"}},"references":{"type":"array","items":{"type":"string"}},"resourceType":{"type":"string"},"subject":{"description":"The patient whose characteristics (direct or indirect) are described by the observation and into whose record the observation is placed","$ref":"#/definitions/ReferencePayload"}},"title":"EcgObservationPayload"},"EcgObservationRequest":{"type":"object","required":["leads"],"properties":{"comment":{"type":"string","description":"Comment on the measurement."},"device":{"description":"${medsafe.observation.device}","$ref":"#/definitions/ReferencePayload"},"effective":{"$ref":"#/definitions/PastOrPresentPartialDatePayload"},"leads":{"type":"array","description":"The object which represents information from single ECG's lead","items":{"$ref":"#/definitions/EcgLeadPayload"}},"performer":{"description":"Who was responsible for asserting the observed value as \"true\".","$ref":"#/definitions/ReferencePayload"}},"title":"EcgObservationRequest"},"ErrorIssuePayload":{"type":"object","properties":{"code":{"type":"string"},"diagnostics":{"type":"string"},"severity":{"type":"string"}},"title":"ErrorIssuePayload"},"ExternalDataCountResponse":{"type":"object","properties":{"count":{"type":"integer","format":"int32"},"key":{"type":"string"}},"title":"ExternalDataCountResponse"},"ExternalDataCountResponsePayload":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/definitions/ExternalDataCountResponse"}}},"title":"ExternalDataCountResponsePayload"},"ExternalDataCreateCareProviderAccessTokenRequestPayload":{"type":"object","properties":{"authorizationCode":{"type":"string"},"redirectUrl":{"type":"string"},"state":{"type":"string"}},"title":"ExternalDataCreateCareProviderAccessTokenRequestPayload"},"ExternalDataCreateCareProviderAuthUrlRequestPayload":{"type":"object","properties":{"redirectUrl":{"type":"string"}},"title":"ExternalDataCreateCareProviderAuthUrlRequestPayload"},"ExternalDataCreateCareProviderAuthUrlResponsePayload":{"type":"object","properties":{"authEndpointUrl":{"type":"string"}},"title":"ExternalDataCreateCareProviderAuthUrlResponsePayload"},"ExternalDataFetchListResponsePayload":{"type":"object","properties":{"status":{"type":"string"}},"title":"ExternalDataFetchListResponsePayload"},"ExternalDataFetchQuestionnaireRequestPayload":{"type":"object","properties":{"token":{"type":"string"},"userKey":{"type":"string"},"careProviderUrl":{"type":"string"},"taskId":{"type":"string"}},"title":"ExternalDataFetchQuestionnaireRequestPayload"},"ExternalDataFetchQuestionnaireResponsePayload":{"type":"object","properties":{"countMain":{"type":"integer","format":"int32"},"error":{"type":"boolean"},"errorHttpCode":{"type":"integer","format":"int32"},"errorIssues":{"type":"array","items":{"$ref":"#/definitions/ErrorIssuePayload"}},"errorMessage":{"type":"string"}},"title":"ExternalDataFetchQuestionnaireResponsePayload"},"ExternalDataFetchRequestPayload":{"type":"object","properties":{"token":{"type":"string"},"userKey":{"type":"string"},"careProviderUrl":{"type":"string"},"resources":{"type":"array","items":{"$ref":"#/definitions/ExternalDataFetchResourceRequest"}}},"title":"ExternalDataFetchRequestPayload"},"ExternalDataFetchResourceRequest":{"type":"object","properties":{"key":{"type":"string","description":"Key"},"parameters":{"type":"object","example":{"any string property name 1": "any string value 1", "any string property name 2": "any string value 2"},"description":"Parameters","additionalProperties":{"type":"string"}}},"title":"ExternalDataFetchResourceRequest"},"ExternalDataFetchResourceResponse":{"type":"object","properties":{"countMain":{"type":"integer","format":"int32"},"countReferenced":{"type":"integer","format":"int32"},"error":{"type":"boolean"},"errorHttpCode":{"type":"integer","format":"int32"},"errorIssues":{"type":"array","items":{"$ref":"#/definitions/ErrorIssuePayload"}},"errorMessage":{"type":"string"},"key":{"type":"string"}},"title":"ExternalDataFetchResourceResponse"},"ExternalDataFetchResponsePayload":{"type":"object","properties":{"resources":{"type":"array","items":{"$ref":"#/definitions/ExternalDataFetchResourceResponse"}}},"title":"ExternalDataFetchResponsePayload"},"ExternalDataGetResponsePayload":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/definitions/ExternalDataResponse"}}},"title":"ExternalDataGetResponsePayload"},"ExternalDataResourceResponse":{"type":"object","properties":{"content":{"type":"object"},"fullUrl":{"type":"string"},"referenced":{"type":"boolean"},"resourceId":{"type":"string"},"resourceSubType":{"type":"string"},"resourceType":{"type":"string"}},"title":"ExternalDataResourceResponse"},"ExternalDataResponse":{"type":"object","properties":{"countMain":{"type":"integer","format":"int64"},"countReferenced":{"type":"integer","format":"int64"},"key":{"type":"string"},"resources":{"type":"array","items":{"$ref":"#/definitions/ExternalDataResourceResponse"}},"syncTime":{"type":"string","format":"date-time"}},"title":"ExternalDataResponse"},"FeedbackBrowserPayload":{"type":"object","properties":{"appCodeName":{"type":"string"},"appName":{"type":"string"},"appVersion":{"type":"string"},"consoleErrors":{"type":"array","items":{"$ref":"#/definitions/ConsoleError"}},"cookieEnabled":{"type":"boolean"},"onLine":{"type":"boolean"},"platform":{"type":"string"},"plugins":{"type":"array","items":{"type":"string"}},"userAgent":{"type":"string"}},"title":"FeedbackBrowserPayload"},"FeedbackPayload":{"type":"object","properties":{"browser":{"$ref":"#/definitions/FeedbackBrowserPayload"},"upload":{"$ref":"#/definitions/FeedbackUploadRequestPayload"},"note":{"type":"string"},"url":{"type":"string"},"email":{"type":"string"}},"title":"FeedbackPayload"},"FeedbackUploadRequestPayload":{"type":"object","properties":{"imageBase64Data":{"type":"string"},"imageContentType":{"type":"string"}},"title":"FeedbackUploadRequestPayload"},"File":{"type":"object","properties":{"absolute":{"type":"boolean"},"absoluteFile":{"$ref":"#/definitions/File"},"absolutePath":{"type":"string"},"canonicalFile":{"$ref":"#/definitions/File"},"canonicalPath":{"type":"string"},"directory":{"type":"boolean"},"executable":{"type":"boolean"},"file":{"type":"boolean"},"freeSpace":{"type":"integer","format":"int64"},"hidden":{"type":"boolean"},"lastModified":{"type":"integer","format":"int64"},"name":{"type":"string"},"parent":{"type":"string"},"parentFile":{"$ref":"#/definitions/File"},"path":{"type":"string"},"readable":{"type":"boolean"},"totalSpace":{"type":"integer","format":"int64"},"usableSpace":{"type":"integer","format":"int64"},"writable":{"type":"boolean"}},"title":"File"},"FuturePartialDatePayload":{"type":"object","required":["date","precision"],"properties":{"date":{"type":"string","format":"date-time","description":"Date and if possible time of the measurement."},"precision":{"type":"string","description":"${medsafe.observation.precision}","enum":["YEAR","MONTH","DAY","SECOND"]}},"title":"FuturePartialDatePayload"},"GetCareProviderAddress":{"type":"object","properties":{"address":{"type":"string"},"city":{"type":"string"},"country":{"type":"string"},"firstLine":{"type":"string"},"geolocation":{"type":"string"},"postalCode":{"type":"string"},"state":{"type":"string"},"streetName":{"type":"string"},"streetNumber":{"type":"string"},"type":{"type":"string"}},"title":"GetCareProviderAddress"},"GetCareProviderDataService":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"transactions":{"type":"array","items":{"$ref":"#/definitions/GetCareProviderTransaction"}}},"title":"GetCareProviderDataService"},"GetCareProviderListResponsePayload":{"type":"object","properties":{"careProviders":{"type":"array","items":{"$ref":"#/definitions/GetCareProviderPayload"}}},"title":"GetCareProviderListResponsePayload"},"GetCareProviderPayload":{"type":"object","properties":{"addresses":{"type":"array","items":{"$ref":"#/definitions/GetCareProviderAddress"}},"agb":{"type":"string"},"dataServices":{"type":"array","items":{"$ref":"#/definitions/GetCareProviderDataService"}},"displayName":{"type":"string"},"email":{"type":"string"},"hrn":{"type":"string"},"id":{"type":"string"},"oin":{"type":"string"},"phone":{"type":"string"},"speciality":{"type":"string"},"ura":{"type":"string"}},"title":"GetCareProviderPayload"},"GetCareProviderTransaction":{"type":"object","properties":{"code":{"type":"string"},"id":{"type":"string"},"informationStandard":{"type":"string"},"mode":{"type":"string"},"resourceKeys":{"type":"array","items":{"type":"string"}},"version":{"type":"string"}},"title":"GetCareProviderTransaction"},"GoalPayload":{"type":"object","properties":{"carePlanId":{"type":"string"},"carePlanTitle":{"type":"string"},"description":{"$ref":"#/definitions/CodeableConceptPayload"},"dueDate":{"type":"string"},"id":{"type":"string"},"note":{"type":"string"},"resourceType":{"type":"string"},"status":{"type":"string","enum":["proposed","accepted","planned","in-progress","on-target","ahead-of-target","behind-target","sustaining","achieved","on-hold","cancelled","entered-in-error","rejected"]}},"title":"GoalPayload"},"GroupUserPayload":{"type":"object","properties":{"existed":{"type":"boolean"},"id":{"type":"string"},"role":{"type":"string","enum":["MEMBER","MANAGER"]},"userId":{"type":"string"}},"title":"GroupUserPayload"},"HeartPointObservationPayload":{"type":"object","properties":{"comment":{"type":"string","description":"Comment on the measurement."},"context":{"description":"Context of the measurement (observation).","$ref":"#/definitions/ReferencePayload"},"device":{"description":"${medsafe.observation.device}","$ref":"#/definitions/ReferencePayload"},"effective":{"description":"Date and if possible time of the measurement.","$ref":"#/definitions/PastOrPresentPartialDatePayload"},"id":{"type":"string","description":"A unique identifier assigned to this observation."},"interpretation":{"description":"Interpretation of the measurement.","$ref":"#/definitions/CodeableConceptPayload"},"nhgCode":{"description":"NHG Code","$ref":"#/definitions/CodingPayload"},"observationType":{"type":"string","enum":["BLOOD_PRESSURE","BODY_WEIGHT","BODY_HEIGHT","BODY_TEMPERATURE","HEART_RATE","PULSE_RATE","OXYGEN_SATURATION","BLOOD_GLUCOSE","ALCOHOL_USE","TOBACCO_USE","DRUG_USE","LIVING_SITUATION","FAMILY_SITUATION","PARTICIPATION_IN_SOCIETY","FUNCTIONAL_OR_MENTAL_STATUS","LABORATORY_TEST_RESULT","WAIST_CIRCUMFERENCE","HEMOGLOBIN","WAIST_HEIGHT_RATIO","BODY_MASS_INDEX","ECG","GP_JOURNAL_ENTRY","GENERIC","C_PEPTIDE","RESPIRATORY_RATE","STEP_COUNTER","HEART_MINUTES","SLEEPING","BODY_FAT_PERCENTAGE","BASAL_METABOLIC_RATE","ACTIVE_MINUTES","QUANTITY","SIX_MINUTES_WALKING","TIMED_UP_AND_GO","COGNITIVE_MOTOR","GAIT_SPEED","BALANCE","EXECUTIVE_FUNCTION","PROCESSING_SPEED","ATTENTION","WORKING_MEMORY","EPISODIC_MEMORY","LONG_TERM_STRESS","SHORT_TERM_STRESS","HBA1C"]},"performer":{"description":"Who was responsible for asserting the observed value as \"true\".","$ref":"#/definitions/ReferencePayload"},"points":{"description":"${medsafe.observation.heart.point.quantity.value}","$ref":"#/definitions/QuantityPayload"},"referenceRanges":{"type":"array","items":{"$ref":"#/definitions/ReferenceRangeObservationPayload"}},"references":{"type":"array","items":{"type":"string"}},"resourceType":{"type":"string"},"subject":{"description":"The patient whose characteristics (direct or indirect) are described by the observation and into whose record the observation is placed","$ref":"#/definitions/ReferencePayload"}},"title":"HeartPointObservationPayload"},"HeartPointObservationRequest":{"type":"object","required":["points"],"properties":{"comment":{"type":"string","description":"Comment on the measurement."},"device":{"description":"${medsafe.observation.device}","$ref":"#/definitions/ReferencePayload"},"effective":{"$ref":"#/definitions/PastOrPresentPartialDatePayload"},"performer":{"description":"Who was responsible for asserting the observed value as \"true\".","$ref":"#/definitions/ReferencePayload"},"points":{"type":"integer","format":"int32","description":"${medsafe.observation.heart.point.value}"}},"title":"HeartPointObservationRequest"},"HeartRateObservationPayload":{"type":"object","properties":{"comment":{"type":"string","description":"Comment on the measurement."},"context":{"description":"Context of the measurement (observation).","$ref":"#/definitions/ReferencePayload"},"device":{"description":"${medsafe.observation.device}","$ref":"#/definitions/ReferencePayload"},"effective":{"description":"Date and if possible time of the measurement.","$ref":"#/definitions/PastOrPresentPartialDatePayload"},"id":{"type":"string","description":"A unique identifier assigned to this observation."},"interpretation":{"description":"Interpretation of the measurement.","$ref":"#/definitions/CodeableConceptPayload"},"method":{"type":"string","description":"The method used to count and observe the heartbeat","enum":["AUSCULTATION","CARDIAC_MONITORING","ECG","PALPATION"]},"nhgCode":{"description":"NHG Code","$ref":"#/definitions/CodingPayload"},"observationType":{"type":"string","enum":["BLOOD_PRESSURE","BODY_WEIGHT","BODY_HEIGHT","BODY_TEMPERATURE","HEART_RATE","PULSE_RATE","OXYGEN_SATURATION","BLOOD_GLUCOSE","ALCOHOL_USE","TOBACCO_USE","DRUG_USE","LIVING_SITUATION","FAMILY_SITUATION","PARTICIPATION_IN_SOCIETY","FUNCTIONAL_OR_MENTAL_STATUS","LABORATORY_TEST_RESULT","WAIST_CIRCUMFERENCE","HEMOGLOBIN","WAIST_HEIGHT_RATIO","BODY_MASS_INDEX","ECG","GP_JOURNAL_ENTRY","GENERIC","C_PEPTIDE","RESPIRATORY_RATE","STEP_COUNTER","HEART_MINUTES","SLEEPING","BODY_FAT_PERCENTAGE","BASAL_METABOLIC_RATE","ACTIVE_MINUTES","QUANTITY","SIX_MINUTES_WALKING","TIMED_UP_AND_GO","COGNITIVE_MOTOR","GAIT_SPEED","BALANCE","EXECUTIVE_FUNCTION","PROCESSING_SPEED","ATTENTION","WORKING_MEMORY","EPISODIC_MEMORY","LONG_TERM_STRESS","SHORT_TERM_STRESS","HBA1C"]},"performer":{"description":"Who was responsible for asserting the observed value as \"true\".","$ref":"#/definitions/ReferencePayload"},"rate":{"description":"The heart frequency measured as the number of heartbeats per minute","$ref":"#/definitions/QuantityPayload"},"referenceRanges":{"type":"array","items":{"$ref":"#/definitions/ReferenceRangeObservationPayload"}},"references":{"type":"array","items":{"type":"string"}},"regularity":{"type":"string","description":"${medsafe.observation.heart.rate.regularity}","enum":["REGULAR","IRREGULAR"]},"resourceType":{"type":"string"},"subject":{"description":"The patient whose characteristics (direct or indirect) are described by the observation and into whose record the observation is placed","$ref":"#/definitions/ReferencePayload"}},"title":"HeartRateObservationPayload"},"HeartRateObservationRequest":{"type":"object","required":["rate"],"properties":{"comment":{"type":"string","description":"Comment on the measurement."},"device":{"description":"${medsafe.observation.device}","$ref":"#/definitions/ReferencePayload"},"effective":{"$ref":"#/definitions/PastOrPresentPartialDatePayload"},"method":{"type":"string","description":"The method used to count and observe the heartbeat","enum":["AUSCULTATION","CARDIAC_MONITORING","ECG","PALPATION"]},"performer":{"description":"Who was responsible for asserting the observed value as \"true\".","$ref":"#/definitions/ReferencePayload"},"rate":{"type":"integer","format":"int32","description":"The heart frequency measured"},"regularity":{"type":"string","description":"${medsafe.observation.heart.rate.regularity}","enum":["REGULAR","IRREGULAR"]}},"title":"HeartRateObservationRequest"},"HemoglobinObservationPayload":{"type":"object","properties":{"comment":{"type":"string","description":"Comment on the measurement."},"context":{"description":"Context of the measurement (observation).","$ref":"#/definitions/ReferencePayload"},"device":{"description":"${medsafe.observation.device}","$ref":"#/definitions/ReferencePayload"},"effective":{"description":"Date and if possible time of the measurement.","$ref":"#/definitions/PastOrPresentPartialDatePayload"},"hemoglobin":{"description":"The hemoglobin","$ref":"#/definitions/QuantityPayload"},"id":{"type":"string","description":"A unique identifier assigned to this observation."},"interpretation":{"description":"Interpretation of the measurement.","$ref":"#/definitions/CodeableConceptPayload"},"nhgCode":{"description":"NHG Code","$ref":"#/definitions/CodingPayload"},"observationType":{"type":"string","enum":["BLOOD_PRESSURE","BODY_WEIGHT","BODY_HEIGHT","BODY_TEMPERATURE","HEART_RATE","PULSE_RATE","OXYGEN_SATURATION","BLOOD_GLUCOSE","ALCOHOL_USE","TOBACCO_USE","DRUG_USE","LIVING_SITUATION","FAMILY_SITUATION","PARTICIPATION_IN_SOCIETY","FUNCTIONAL_OR_MENTAL_STATUS","LABORATORY_TEST_RESULT","WAIST_CIRCUMFERENCE","HEMOGLOBIN","WAIST_HEIGHT_RATIO","BODY_MASS_INDEX","ECG","GP_JOURNAL_ENTRY","GENERIC","C_PEPTIDE","RESPIRATORY_RATE","STEP_COUNTER","HEART_MINUTES","SLEEPING","BODY_FAT_PERCENTAGE","BASAL_METABOLIC_RATE","ACTIVE_MINUTES","QUANTITY","SIX_MINUTES_WALKING","TIMED_UP_AND_GO","COGNITIVE_MOTOR","GAIT_SPEED","BALANCE","EXECUTIVE_FUNCTION","PROCESSING_SPEED","ATTENTION","WORKING_MEMORY","EPISODIC_MEMORY","LONG_TERM_STRESS","SHORT_TERM_STRESS","HBA1C"]},"performer":{"description":"Who was responsible for asserting the observed value as \"true\".","$ref":"#/definitions/ReferencePayload"},"referenceRanges":{"type":"array","items":{"$ref":"#/definitions/ReferenceRangeObservationPayload"}},"references":{"type":"array","items":{"type":"string"}},"resourceType":{"type":"string"},"subject":{"description":"The patient whose characteristics (direct or indirect) are described by the observation and into whose record the observation is placed","$ref":"#/definitions/ReferencePayload"}},"title":"HemoglobinObservationPayload"},"HemoglobinObservationRequest":{"type":"object","required":["hemoglobin"],"properties":{"comment":{"type":"string","description":"Comment on the measurement."},"device":{"description":"${medsafe.observation.device}","$ref":"#/definitions/ReferencePayload"},"effective":{"$ref":"#/definitions/PastOrPresentPartialDatePayload"},"hemoglobin":{"type":"number","format":"double","description":"The hemoglobin in percentace"},"performer":{"description":"Who was responsible for asserting the observed value as \"true\".","$ref":"#/definitions/ReferencePayload"}},"title":"HemoglobinObservationRequest"},"IdentifierPayload":{"type":"object","properties":{"use":{"type":"string","enum":["USUAL","OFFICIAL","TEMP","SECONDARY","NULL"]},"type":{"$ref":"#/definitions/CodeableConceptPayload"},"system":{"type":"string"},"value":{"type":"string"},"period":{"$ref":"#/definitions/PeriodPayload"},"assigner":{"$ref":"#/definitions/ReferencePayload"}},"title":"IdentifierPayload"},"ImmunizationDoseInfoPayload":{"type":"object","required":["status"],"properties":{"date":{"description":"Vaccination Date and Time","$ref":"#/definitions/PastOrPresentPartialDatePayload"},"name":{"type":"string","description":"Vaccine custom name"},"preferredRevaccinationDate":{"description":"Preferred Period for Revaccination","$ref":"#/definitions/FuturePartialDatePayload"},"reactions":{"type":"array","description":"Reactions","items":{"$ref":"#/definitions/ImmunizationDoseReactionPayload"}},"status":{"type":"string","description":"Dose Status","enum":["GIVEN","NOT_GIVEN"]}},"title":"ImmunizationDoseInfoPayload"},"ImmunizationDosePayload":{"type":"object","required":["status"],"properties":{"address":{"type":"string","description":"Street and Building Number"},"city":{"type":"string","description":"City"},"code":{"description":"Vaccine code","$ref":"#/definitions/CodingPayload"},"country":{"type":"string","description":"Country"},"date":{"description":"Vaccination Date and Time","$ref":"#/definitions/PastOrPresentPartialDatePayload"},"district":{"type":"string","description":"District"},"name":{"type":"string","description":"Vaccine custom name"},"organization":{"type":"string","description":"Organization Title"},"postalCode":{"type":"string","description":"Postal Code"},"practitioner":{"type":"string","description":"Practitioner Name"},"preferredRevaccinationDate":{"description":"Preferred Period for Revaccination","$ref":"#/definitions/FuturePartialDatePayload"},"reactions":{"type":"array","description":"Reactions","items":{"$ref":"#/definitions/ImmunizationDoseReactionPayload"}},"state":{"type":"string","description":"State / Province"},"status":{"type":"string","description":"Dose Status","enum":["GIVEN","NOT_GIVEN"]}},"title":"ImmunizationDosePayload"},"ImmunizationDoseReactionPayload":{"type":"object","properties":{"details":{"type":"string","description":"Reaction Details"},"reactionDate":{"description":"Reaction Date","$ref":"#/definitions/PastOrPresentPartialDatePayload"}},"title":"ImmunizationDoseReactionPayload"},"ImmunizationInfoPayload":{"type":"object","properties":{"date":{"description":"Last injection/dose date","$ref":"#/definitions/PastOrPresentPartialDatePayload"},"doses":{"type":"array","description":"List of injections / doses info","items":{"$ref":"#/definitions/ImmunizationDoseInfoPayload"}},"dosesCount":{"type":"integer","format":"int32","description":"Number of injections/doses in this immunization"},"givenDosesCount":{"type":"integer","format":"int32","description":"Number of given injections/doses in this immunization"},"id":{"type":"string","description":"Immunization id"},"name":{"type":"string","description":"Immunization name"},"revaccinationDate":{"description":"Preferred revaccination date related to last injection/dose date","$ref":"#/definitions/FuturePartialDatePayload"},"totalReactionsCount":{"type":"integer","format":"int32","description":"Total number of reactions recorded in this immunization"},"type":{"type":"string","description":"Immunization type","enum":["OPTIONAL","NATIONAL"]}},"title":"ImmunizationInfoPayload"},"ImmunizationLocationPayload":{"type":"object","properties":{"address":{"type":"string","description":"Street and Building Number"},"city":{"type":"string","description":"City"},"country":{"type":"string","description":"Country"},"district":{"type":"string","description":"District"},"organization":{"type":"string","description":"Organization Title"},"postalCode":{"type":"string","description":"Postal Code"},"practitioner":{"type":"string","description":"Practitioner Name"},"state":{"type":"string","description":"State / Province"}},"title":"ImmunizationLocationPayload"},"ImmunizationPayload":{"type":"object","required":["doses","name"],"properties":{"code":{"description":"Immunization name and code","$ref":"#/definitions/CodingPayload"},"comment":{"type":"string","description":"Notes"},"doses":{"type":"array","description":"List of injections / doses","items":{"$ref":"#/definitions/ImmunizationDosePayload"}},"id":{"type":"string","description":"Immunization id"},"isDeleted":{"type":"boolean","description":"Indicates if this immunization is deleted"},"name":{"type":"string","description":"Immunization custom name"},"type":{"type":"string","description":"Immunization type","enum":["OPTIONAL","NATIONAL"]}},"title":"ImmunizationPayload"},"InputStream":{"type":"object","title":"InputStream"},"InternalDataFetchLogResourceResult":{"type":"object","properties":{"countMain":{"type":"integer","format":"int32"},"countReferenced":{"type":"integer","format":"int32"},"error":{"type":"boolean"},"errorHttpCode":{"type":"integer","format":"int32"},"errorIssues":{"type":"array","items":{"$ref":"#/definitions/ErrorIssuePayload"}},"errorMessage":{"type":"string"},"key":{"type":"string"}},"title":"InternalDataFetchLogResourceResult"},"InternalDataFetchLogResponsePayload":{"type":"object","properties":{"careProviderId":{"type":"string"},"requestTime":{"type":"string","format":"date-time"},"resourceKeys":{"type":"array","items":{"type":"string"}},"results":{"type":"array","items":{"$ref":"#/definitions/InternalDataFetchLogResourceResult"}}},"title":"InternalDataFetchLogResponsePayload"},"InternalDataPushLogResourceResult":{"type":"object","properties":{"error":{"type":"boolean"},"issues":{"type":"array","items":{"$ref":"#/definitions/ErrorIssuePayload"}},"resourceId":{"type":"string"},"resourceSubType":{"type":"string"},"resourceType":{"type":"string"},"status":{"type":"string"},"statusMessage":{"type":"string"}},"title":"InternalDataPushLogResourceResult"},"InternalDataPushLogResponsePayload":{"type":"object","properties":{"careProviderId":{"type":"string"},"requestTime":{"type":"string","format":"date-time"},"resourceKeys":{"type":"array","items":{"type":"string"}},"results":{"type":"array","items":{"$ref":"#/definitions/InternalDataPushLogResourceResult"}}},"title":"InternalDataPushLogResponsePayload"},"InternalDataPushQuestionnaireResponseRequestPayload":{"type":"object","properties":{"careProviderUrl":{"type":"string"},"token":{"type":"string"},"userKey":{"type":"string"},"response":{"$ref":"#/definitions/QuestionnaireResponsePayload"}},"title":"InternalDataPushQuestionnaireResponseRequestPayload"},"InternalDataPushQuestionnaireResponseResponsePayload":{"type":"object","properties":{"error":{"type":"boolean"},"issues":{"type":"array","items":{"$ref":"#/definitions/ErrorIssuePayload"}},"requestId":{"type":"string"},"status":{"type":"string"},"statusMessage":{"type":"string"}},"title":"InternalDataPushQuestionnaireResponseResponsePayload"},"InternalDataPushRequestPayload":{"type":"object","properties":{"careProviderUrl":{"type":"string"},"token":{"type":"string"},"userKey":{"type":"string"},"resourceKey":{"type":"string"},"data":{"type":"array","items":{"$ref":"#/definitions/ResourceReferencePayload"}}},"title":"InternalDataPushRequestPayload"},"InternalDataPushResourceResponse":{"type":"object","properties":{"error":{"type":"boolean"},"issues":{"type":"array","items":{"$ref":"#/definitions/ErrorIssuePayload"}},"resource":{"$ref":"#/definitions/ResourceReferencePayload"},"resourceSubType":{"type":"string"},"status":{"type":"string"},"statusMessage":{"type":"string"}},"title":"InternalDataPushResourceResponse"},"InternalDataPushResponsePayload":{"type":"object","properties":{"results":{"type":"array","items":{"$ref":"#/definitions/InternalDataPushResourceResponse"}}},"title":"InternalDataPushResponsePayload"},"LanguageProficiencyPayload":{"type":"object","properties":{"level":{"$ref":"#/definitions/CodingPayload"},"type":{"$ref":"#/definitions/CodingPayload"}},"title":"LanguageProficiencyPayload"},"LevelThresholdPayload":{"type":"object","properties":{"bottomThreshold":{"type":"number","format":"float"},"id":{"type":"integer","format":"int64"},"level":{"type":"integer","format":"int32"},"topThreshold":{"type":"number","format":"float"}},"title":"LevelThresholdPayload"},"MedMij Report Request":{"type":"object","properties":{"endDate":{"type":"string","description":"endDate"},"startDate":{"type":"string","description":"startDate"}},"title":"MedMij Report Request"},"MedicalDeviceProductPayload":{"type":"object","properties":{"carrierHrf":{"type":"string","description":"Unique identification of the product, such as the serial number"},"deviceIdentifier":{"type":"string","description":"The device identifier (DI) is a mandatory, fixed portion of a UDI that identifies the labeler and the specific version or model of a device"},"expirationDate":{"type":"string","format":"date-time","description":"The date and time beyond which this device is no longer valid or should not be used (if applicable)"},"id":{"type":"string","description":"Unique identification of the product in storage"},"lotNumber":{"type":"string","description":"Lot number assigned by the manufacturer"},"productDescription":{"type":"string","description":"Textual description of the product"},"productType":{"description":"The code of the type of product","$ref":"#/definitions/CodeableConceptPayload"},"serialNumber":{"type":"string","description":"Unique instance identifiers assigned to a device by manufacturers other organizations or owners"}},"title":"MedicalDeviceProductPayload"},"MedicationInfoPayload":{"type":"object","properties":{"amount":{"type":"string","description":"Amount value"},"amountUnit":{"type":"string","description":"Amount unit"},"conditions":{"type":"array","description":"Conditions","items":{"$ref":"#/definitions/ConditionInfoPayload"}},"date":{"description":"Administration Date of Single Dose","$ref":"#/definitions/PartialDatePayload"},"dosageInstruction":{"type":"string","description":"Dosage / Instructions"},"form":{"type":"string","description":"Medication form"},"id":{"type":"string","description":"ID"},"name":{"type":"string","description":"Medication name"},"periodEnd":{"description":"Administration Period End","$ref":"#/definitions/PartialDatePayload"},"periodStart":{"description":"Administration Period Start","$ref":"#/definitions/PartialDatePayload"},"periodType":{"type":"string","description":"Type of Administration Period","enum":["STANDARD","CONTINUOUS","SINGLE_DOSE"]},"route":{"type":"string","description":"Route","enum":["ORALLY","RECTALLY","SUBCUTANEOUSLY","TRANSDERMALLY","INTRAVENOUSLY","INTRAMUSCULARLY","SUBLINGUALLY","BUCALLY","VAGINALLY","NASALLY","BY_INHALATION","BY_NEBULIZATION"]},"status":{"type":"string","description":"Status","enum":["ACTIVE","COMPLETED","INTENDED","STOPPED","ONHOLD"]},"totalConditionsCount":{"type":"integer","format":"int32","description":"Total number of conditions this medication linked to"}},"title":"MedicationInfoPayload"},"MedicationPayload":{"type":"object","required":["name","periodType"],"properties":{"administrationType":{"type":"string","description":"Administration Type","enum":["SELF_ADMINISTERED","PRESCRIBED"]},"amount":{"type":"string","description":"Amount value"},"amountUnit":{"type":"string","description":"Amount unit"},"comment":{"type":"string","description":"Comment"},"conditionIds":{"type":"array","description":"Conditions","items":{"type":"string"}},"date":{"description":"Administration Date of Single Dose","$ref":"#/definitions/PartialDatePayload"},"dosageInstruction":{"type":"string","description":"Dosage / Instructions"},"form":{"type":"string","description":"Medication form"},"id":{"type":"string","description":"ID"},"name":{"type":"string","description":"Medication name"},"organization":{"type":"string","description":"Organization of Practitioner"},"periodEnd":{"description":"Administration Period End","$ref":"#/definitions/PartialDatePayload"},"periodStart":{"description":"Administration Period Start","$ref":"#/definitions/PartialDatePayload"},"periodType":{"type":"string","description":"Type of Administration Period","enum":["STANDARD","CONTINUOUS","SINGLE_DOSE"]},"practitioner":{"type":"string","description":"Practitioner Name who made prescription"},"prescriptions":{"type":"array","description":"Prescription files","items":{"$ref":"#/definitions/AttachmentPayload"}},"route":{"type":"string","description":"Route","enum":["ORALLY","RECTALLY","SUBCUTANEOUSLY","TRANSDERMALLY","INTRAVENOUSLY","INTRAMUSCULARLY","SUBLINGUALLY","BUCALLY","VAGINALLY","NASALLY","BY_INHALATION","BY_NEBULIZATION"]},"status":{"type":"string","description":"Status","enum":["ACTIVE","COMPLETED","INTENDED","STOPPED","ONHOLD"]},"stopReason":{"type":"string","description":"Reason for Stop Using"}},"title":"MedicationPayload"},"NetworkOrganizationPayload":{"type":"object","required":["name"],"properties":{"addresses":{"type":"array","description":"List of addresses","items":{"$ref":"#/definitions/NlCoreAddressPayload"}},"aliases":{"type":"array","description":"List of aliases","items":{"type":"string"}},"contacts":{"type":"array","description":"List of contacts","items":{"$ref":"#/definitions/ContactPointPayload"}},"id":{"type":"string","description":"ID"},"name":{"type":"string","description":"Company (organization) name"},"newPractitionerCount":{"type":"integer","format":"int32","description":"Number of new practitioners that were added during last 7 days"},"practitionerCount":{"type":"integer","format":"int32","description":"Total number of practitioners in this organization"},"usersCount":{"type":"integer","format":"int32","description":"Total number of users added this organization to their networks"}},"title":"NetworkOrganizationPayload"},"NetworkOrganizationPractitionerInfoPayload":{"type":"object","required":["practitionerId","role"],"properties":{"medicalRoles":{"type":"array","description":"List of medical roles","items":{"type":"string","enum":["DOCTOR","NURSE","PHARMACIST","RESEARCHER","TEACHER","ICT"]}},"practitionerId":{"type":"string","description":"Practitioner platform user identifier (UUID)"},"practitionerName":{"description":"Practitioner Name","$ref":"#/definitions/NlCoreHumanNamePayload"},"role":{"type":"string","description":"Platform Role","enum":["MANAGER","PARTICIPANT"]}},"title":"NetworkOrganizationPractitionerInfoPayload"},"NetworkOrganizationPractitionerOrganizationInfoPayload":{"type":"object","required":["practitionerId","role"],"properties":{"medicalRoles":{"type":"array","description":"List of medical roles","items":{"type":"string","enum":["DOCTOR","NURSE","PHARMACIST","RESEARCHER","TEACHER","ICT"]}},"organizationId":{"type":"string","description":"Organization identifier"},"organizationName":{"type":"string","description":"Organization name"},"practitionerId":{"type":"string","description":"Practitioner platform user identifier (UUID)"},"role":{"type":"string","description":"Platform Role","enum":["MANAGER","PARTICIPANT"]}},"title":"NetworkOrganizationPractitionerOrganizationInfoPayload"},"NetworkOrganizationPractitionerPayload":{"type":"object","required":["practitionerId","role"],"properties":{"medicalRoles":{"type":"array","description":"List of medical roles","items":{"type":"string","enum":["DOCTOR","NURSE","PHARMACIST","RESEARCHER","TEACHER","ICT"]}},"practitionerId":{"type":"string","description":"Practitioner platform user identifier (UUID)"},"role":{"type":"string","description":"Platform Role","enum":["MANAGER","PARTICIPANT"]}},"title":"NetworkOrganizationPractitionerPayload"},"NetworkParticipantAddPayload":{"type":"object","required":["id","permission"],"properties":{"id":{"type":"string","description":"User or organization ID"},"permission":{"type":"string","description":"permission","enum":["READ_PROFILE","READ_ACCOUNT","MANAGE_ACCOUNT"]},"role":{"description":"role","$ref":"#/definitions/CodeableConceptPayload"}},"title":"NetworkParticipantAddPayload"},"NetworkParticipantUpdatePayload":{"type":"object","required":["permission"],"properties":{"permission":{"type":"string","description":"permission","enum":["READ_PROFILE","READ_ACCOUNT","MANAGE_ACCOUNT"]},"role":{"description":"role","$ref":"#/definitions/CodeableConceptPayload"}},"title":"NetworkParticipantUpdatePayload"},"NetworkRelatedPersonAddPayload":{"type":"object","required":["fhirId"],"properties":{"fhirId":{"type":"string","description":"fhirId"},"role":{"description":"role","$ref":"#/definitions/CodeableConceptPayload"}},"title":"NetworkRelatedPersonAddPayload"},"NetworkRelatedPersonUpdatePayload":{"type":"object","properties":{"role":{"description":"role","$ref":"#/definitions/CodeableConceptPayload"}},"title":"NetworkRelatedPersonUpdatePayload"},"NetworkUserInfoPayload":{"type":"object","properties":{"id":{"type":"string"},"name":{"$ref":"#/definitions/NlCoreHumanNamePayload"},"organizationId":{"type":"string"},"organizationName":{"type":"string"},"permission":{"type":"string","enum":["READ_PROFILE","READ_ACCOUNT","MANAGE_ACCOUNT"]},"photoBase64Data":{"type":"string"},"photoContentType":{"type":"string"},"resourceType":{"type":"string"},"role":{"$ref":"#/definitions/CodeableConceptPayload"},"userId":{"type":"string"}},"title":"NetworkUserInfoPayload"},"NeurocenterFetchPdfResultResponsePayload":{"type":"object","properties":{"error":{"type":"boolean","description":"Error"},"errorMessage":{"type":"string","description":"Error message"},"resourceId":{"type":"string","description":"Condition resource ID"}},"title":"NeurocenterFetchPdfResultResponsePayload"},"NlCoreAddressPayload":{"type":"object","properties":{"city":{"type":"string","description":"city"},"country":{"type":"string","description":"country"},"district":{"type":"string","description":"district"},"line":{"type":"string","description":"line"},"postalCode":{"type":"string","description":"postalCode"},"state":{"type":"string","description":"state"},"streetName":{"type":"string"},"text":{"type":"string","description":"text"},"type":{"type":"string","description":"type","enum":["POSTAL","PHYSICAL","BOTH","NULL"]},"use":{"type":"string","description":"use","enum":["home","wor","temp","old"]},"houseNumber":{"type":"string"},"buildingNumberSuffix":{"type":"string"},"unitID":{"type":"string"},"additionalLocator":{"type":"string"},"landGbaCode":{"$ref":"#/definitions/CodeableConceptPayload"},"landIsoCode":{"$ref":"#/definitions/CodeableConceptPayload"},"postalAddressUse":{"type":"string","enum":["BAD","CONF","HP","HV","DIR","PUB","PHYS","PST"]},"officialAddress":{"type":"boolean"}},"title":"NlCoreAddressPayload"},"NlCoreDeceasedPayload":{"type":"object","properties":{"deceased":{"type":"boolean"},"deceasedDate":{"type":"string","format":"date-time"}},"title":"NlCoreDeceasedPayload"},"NlCoreHumanNamePayload":{"type":"object","properties":{"prefix":{"type":"string"},"suffix":{"type":"string"},"family":{"type":"string"},"assemblyOrder":{"$ref":"#/definitions/CodeableConceptPayload"},"firstName":{"type":"string"},"initials":{"type":"string"},"givenName":{"type":"string"},"lastNamePrefix":{"type":"string"},"lastName":{"type":"string"},"partnerLastNamePrefix":{"type":"string"},"partnerLastName":{"type":"string"},"text":{"type":"string"},"use":{"type":"string","enum":["USUAL","OFFICIAL","TEMP","NICKNAME","ANONYMOUS","OLD","MAIDEN","NULL"]}},"title":"NlCoreHumanNamePayload"},"NlCoreOrganizationPayload":{"type":"object","properties":{"addresses":{"type":"array","items":{"$ref":"#/definitions/NlCoreAddressPayload"}},"aliases":{"type":"array","items":{"type":"string"}},"identifiers":{"type":"array","items":{"$ref":"#/definitions/IdentifierPayload"}},"name":{"type":"string"},"partOf":{"$ref":"#/definitions/ReferencePayload"},"telecoms":{"type":"array","items":{"$ref":"#/definitions/ContactPointPayload"}},"types":{"type":"array","items":{"$ref":"#/definitions/CodeableConceptPayload"}}},"title":"NlCoreOrganizationPayload"},"NlCorePersonPayload":{"type":"object","properties":{"active":{"type":"boolean"},"addressList":{"type":"array","description":"list of addresses","items":{"$ref":"#/definitions/NlCoreAddressPayload"}},"availableForSearch":{"type":"boolean","description":"Permission to be included to the search results"},"birthDate":{"type":"string","description":"birthDate"},"contactList":{"type":"array","description":"list of contacts","items":{"$ref":"#/definitions/ContactPointPayload"}},"gender":{"type":"string","description":"gender","enum":["MALE","FEMALE","OTHER","UNKNOWN"]},"maritalStatus":{"type":"string","description":"maritalStatus","enum":["A","D","I","L","M","P","S","T","U","W"]},"name":{"description":"name","$ref":"#/definitions/NlCoreHumanNamePayload"},"photoBase64Data":{"type":"string","description":"photoBase64Data"},"photoContentType":{"type":"string","description":"photoContentType"},"preferredPharmacyReference":{"$ref":"#/definitions/ReferencePayload"},"legalStatusCode":{"type":"string","enum":["JAUTH","ORM","DRM","OTS","IBS","GUA","GOV","MENT","UGUA","CPERC","TBS","OVERIG"]},"legalStatus":{"$ref":"#/definitions/CodeableConceptPayload"},"metas":{"type":"array","items":{"type":"string"}},"identifiers":{"type":"array","items":{"$ref":"#/definitions/IdentifierPayload"}},"multipleBirth":{"type":"boolean"},"animal":{"$ref":"#/definitions/AnimalPayload"},"communications":{"type":"array","items":{"$ref":"#/definitions/CommunicationPayload"}},"nationality":{"$ref":"#/definitions/CodeableConceptPayload"},"contacts":{"type":"array","items":{"$ref":"#/definitions/ContactPayload"}},"generalPractitioner":{"$ref":"#/definitions/ReferencePayload"},"practitionerRole":{"$ref":"#/definitions/ReferencePayload"},"practitionerCommunications":{"type":"array","items":{"$ref":"#/definitions/CodeableConceptPayload"}},"relatedPersonRole":{"type":"string","enum":["FIRST_CONTACT","SECOND_CONTACT","CURATOR","FINANCIAL_AUTHORIZED","FINANCIAL_REVIEW","LIVING_UNIT","CAREGIVER","DIFFERENT","GUARDIAN","RECEIVER","MENTOR","NEIGHBOR","FRIEND_ACQUAINTANCE","CLIENT_SUPPORT","CONTACT_PERSON","LEGAL_REPRESENTATIVE"]},"relatedPersonRelationship":{"type":"string","enum":["OTH","ADOPTF","ADOPTM","AUNT","BRO","BROINLAW","COUSN","DAUC","DAUINLAW","DOMPART","FTH","FTHINLAW","DAUFOST","FTHFOST","MTHFOST","SONFOST","GRNDDAU","GRFTH","GRMTH","GRNDSON","GGRFTH","GGRMTH","HUSB","MTH","MTHINLAW","NEPHEW","NIECE","SIS","SISINLAW","SONC","SONINLAW","STPFTH","STPMTH","UNCLE","WIFE"]},"patientReference":{"$ref":"#/definitions/ReferencePayload"},"period":{"$ref":"#/definitions/PeriodPayload"},"deceased":{"$ref":"#/definitions/NlCoreDeceasedPayload"}},"title":"NlCorePersonPayload"},"Number":{"type":"object","title":"Number"},"ObservationStatisticPayload":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/definitions/StatisticPayload"}},"healthScore":{"type":"string"}},"title":"ObservationStatisticPayload"},"OxygenSaturationObservationPayload":{"type":"object","properties":{"comment":{"type":"string","description":"Comment on the measurement."},"context":{"description":"Context of the measurement (observation).","$ref":"#/definitions/ReferencePayload"},"device":{"description":"${medsafe.observation.device}","$ref":"#/definitions/ReferencePayload"},"effective":{"description":"Date and if possible time of the measurement.","$ref":"#/definitions/PastOrPresentPartialDatePayload"},"extraOxygen":{"type":"boolean","description":"Indication stating whether the measurement was done in a situation in which extra oxygen was administered"},"id":{"type":"string","description":"A unique identifier assigned to this observation."},"interpretation":{"description":"Interpretation of the measurement.","$ref":"#/definitions/CodeableConceptPayload"},"nhgCode":{"description":"NHG Code","$ref":"#/definitions/CodingPayload"},"observationType":{"type":"string","enum":["BLOOD_PRESSURE","BODY_WEIGHT","BODY_HEIGHT","BODY_TEMPERATURE","HEART_RATE","PULSE_RATE","OXYGEN_SATURATION","BLOOD_GLUCOSE","ALCOHOL_USE","TOBACCO_USE","DRUG_USE","LIVING_SITUATION","FAMILY_SITUATION","PARTICIPATION_IN_SOCIETY","FUNCTIONAL_OR_MENTAL_STATUS","LABORATORY_TEST_RESULT","WAIST_CIRCUMFERENCE","HEMOGLOBIN","WAIST_HEIGHT_RATIO","BODY_MASS_INDEX","ECG","GP_JOURNAL_ENTRY","GENERIC","C_PEPTIDE","RESPIRATORY_RATE","STEP_COUNTER","HEART_MINUTES","SLEEPING","BODY_FAT_PERCENTAGE","BASAL_METABOLIC_RATE","ACTIVE_MINUTES","QUANTITY","SIX_MINUTES_WALKING","TIMED_UP_AND_GO","COGNITIVE_MOTOR","GAIT_SPEED","BALANCE","EXECUTIVE_FUNCTION","PROCESSING_SPEED","ATTENTION","WORKING_MEMORY","EPISODIC_MEMORY","LONG_TERM_STRESS","SHORT_TERM_STRESS","HBA1C"]},"performer":{"description":"Who was responsible for asserting the observed value as \"true\".","$ref":"#/definitions/ReferencePayload"},"referenceRanges":{"type":"array","items":{"$ref":"#/definitions/ReferenceRangeObservationPayload"}},"references":{"type":"array","items":{"type":"string"}},"resourceType":{"type":"string"},"saturation":{"description":"The element contains the value of the indirect, peripheral measured O2 saturation","$ref":"#/definitions/QuantityPayload"},"subject":{"description":"The patient whose characteristics (direct or indirect) are described by the observation and into whose record the observation is placed","$ref":"#/definitions/ReferencePayload"}},"title":"OxygenSaturationObservationPayload"},"OxygenSaturationObservationRequest":{"type":"object","required":["saturation"],"properties":{"comment":{"type":"string","description":"Comment on the measurement."},"device":{"description":"${medsafe.observation.device}","$ref":"#/definitions/ReferencePayload"},"effective":{"$ref":"#/definitions/PastOrPresentPartialDatePayload"},"extraOxygen":{"type":"boolean","description":"Indication stating whether the measurement was done in a situation in which extra oxygen was administered"},"performer":{"description":"Who was responsible for asserting the observed value as \"true\".","$ref":"#/definitions/ReferencePayload"},"saturation":{"type":"integer","format":"int32","description":"The element contains the value of the indirect, peripheral measured O2 saturation"}},"title":"OxygenSaturationObservationRequest"},"PartialDatePayload":{"type":"object","required":["date","precision"],"properties":{"date":{"type":"string","format":"date-time","description":"Date and if possible time of the measurement."},"precision":{"type":"string","description":"${medsafe.observation.precision}","enum":["YEAR","MONTH","DAY","SECOND"]}},"title":"PartialDatePayload"},"ParticipantPayload":{"type":"object","properties":{"id":{"type":"string"},"name":{"$ref":"#/definitions/NlCoreHumanNamePayload"},"photoBase64Data":{"type":"string"},"photoContentType":{"type":"string"},"resourceType":{"type":"string"},"role":{"$ref":"#/definitions/CodeableConceptPayload"},"userId":{"type":"string"}},"title":"ParticipantPayload"},"PastOrPresentPartialDatePayload":{"type":"object","required":["date","precision"],"properties":{"date":{"type":"string","format":"date-time","description":"Date and if possible time of the measurement."},"precision":{"type":"string","description":"${medsafe.observation.precision}","enum":["YEAR","MONTH","DAY","SECOND"]}},"title":"PastOrPresentPartialDatePayload"},"PatientSettingPayload":{"type":"object","properties":{"settings":{"$ref":"#/definitions/Setting"}},"title":"PatientSettingPayload"},"PaymentCheckoutRequestPayload":{"type":"object","properties":{"paymentPlanId":{"type":"integer","format":"int64"}},"title":"PaymentCheckoutRequestPayload"},"PaymentCheckoutResponsePayload":{"type":"object","properties":{"checkoutUrl":{"type":"string"}},"title":"PaymentCheckoutResponsePayload"},"PaymentPaidPlanPayload":{"type":"object","required":["currency","featureMode","id","name","price"],"properties":{"activeFromDate":{"type":"string","format":"date-time"},"activeToDate":{"type":"string","format":"date-time"},"currency":{"type":"string","enum":["USD","EUR"]},"featureList":{"type":"array","items":{"type":"string","enum":["SELF_MEASUREMENTS"]}},"featureMode":{"type":"string","enum":["ALL","PARTIAL"]},"id":{"type":"integer","format":"int64"},"name":{"type":"string"},"paidDate":{"type":"string","format":"date-time"},"price":{"type":"integer","format":"int32"}},"title":"PaymentPaidPlanPayload"},"PaymentPlanPayload":{"type":"object","required":["archived","comment","currency","duration","durationUnit","featureMode","id","name","price"],"properties":{"archived":{"type":"boolean"},"comment":{"type":"string"},"createdDate":{"type":"string","format":"date-time"},"currency":{"type":"string","enum":["USD","EUR"]},"duration":{"type":"integer","format":"int32"},"durationUnit":{"type":"string","enum":["Nanos","Micros","Millis","Seconds","Minutes","Hours","HalfDays","Days","Weeks","Months","Years","Decades","Centuries","Millennia","Eras","Forever"]},"featureList":{"type":"array","items":{"type":"string","enum":["SELF_MEASUREMENTS"]}},"featureMode":{"type":"string","enum":["ALL","PARTIAL"]},"id":{"type":"integer","format":"int64"},"maxUserActivationTimes":{"type":"integer","format":"int32"},"name":{"type":"string"},"price":{"type":"integer","format":"int32"},"targetRole":{"type":"string","enum":["PATIENT","DOCTOR","BUDDY","ADMIN"]}},"title":"PaymentPlanPayload"},"PeriodPayload":{"type":"object","properties":{"end":{"type":"string","format":"date-time"},"start":{"type":"string","format":"date-time"}},"title":"PeriodPayload"},"PeriodWithPartialDatesPayload":{"type":"object","properties":{"end":{"$ref":"#/definitions/PartialDatePayload"},"start":{"$ref":"#/definitions/PartialDatePayload"}},"title":"PeriodWithPartialDatesPayload"},"PersonBuddyPayload":{"type":"object","properties":{"buddyDescription":{"type":"string"},"id":{"type":"string"},"name":{"$ref":"#/definitions/NlCoreHumanNamePayload"},"permission":{"type":"string","enum":["READ_PROFILE","READ_ACCOUNT","MANAGE_ACCOUNT"]},"photoBase64Data":{"type":"string"},"photoContentType":{"type":"string"},"resourceType":{"type":"string"},"userId":{"type":"string"}},"title":"PersonBuddyPayload"},"PersonPayload":{"type":"object","properties":{"id":{"type":"string"},"name":{"$ref":"#/definitions/NlCoreHumanNamePayload"},"permission":{"type":"string","enum":["READ_PROFILE","READ_ACCOUNT","MANAGE_ACCOUNT"]},"photoBase64Data":{"type":"string"},"photoContentType":{"type":"string"},"resourceType":{"type":"string"},"userId":{"type":"string"}},"title":"PersonPayload"},"PointsActionPayload":{"type":"object","properties":{"id":{"type":"integer","format":"int64"},"points":{"type":"number","format":"float"},"type":{"type":"string","enum":["MEASUREMENT_SET","FIRST_MEASUREMENT_SET","DAILY_MEASUREMENT_SET","ONE_WEEK_STREAK_MEASUREMENT_SET","USER_REGISTERED","ONE_YEAR_USER_REGISTERED","TWO_YEAR_USER_REGISTERED","THREE_YEAR_USER_REGISTERED","FIRST_MEDICATION_SET","MOOD_QUESTIONNAIRE_ANSWERED_HAPPY_PAIN_DISCOMFORT","MOOD_QUESTIONNAIRE_ANSWERED_HAPPY_FEELING_LOW","MOOD_QUESTIONNAIRE_ANSWERED_HAPPY_LIMITED","MOOD_QUESTIONNAIRE_ANSWERED_HAPPY_NEED_HELP","MOOD_QUESTIONNAIRE_ANSWERED_HAPPY_STRESS","MOOD_QUESTIONNAIRE_ANSWERED_HAPPY_SLEEP","MOOD_QUESTIONNAIRE_ANSWERED_HAPPY_MOVEMENT","MOOD_QUESTIONNAIRE_ANSWERED_HAPPY_DIET","MOOD_QUESTIONNAIRE_ANSWERED_HAPPY_HAPPINESS","MOOD_QUESTIONNAIRE_ANSWERED_HAPPY_5_TIMES","MOOD_QUESTIONNAIRE_ANSWERED_HAPPY_3_TIMES"]}},"title":"PointsActionPayload"},"PulseRateObservationPayload":{"type":"object","properties":{"comment":{"type":"string","description":"Comment on the measurement."},"context":{"description":"Context of the measurement (observation).","$ref":"#/definitions/ReferencePayload"},"device":{"description":"${medsafe.observation.device}","$ref":"#/definitions/ReferencePayload"},"effective":{"description":"Date and if possible time of the measurement.","$ref":"#/definitions/PastOrPresentPartialDatePayload"},"id":{"type":"string","description":"A unique identifier assigned to this observation."},"interpretation":{"description":"Interpretation of the measurement.","$ref":"#/definitions/CodeableConceptPayload"},"nhgCode":{"description":"NHG Code","$ref":"#/definitions/CodingPayload"},"observationType":{"type":"string","enum":["BLOOD_PRESSURE","BODY_WEIGHT","BODY_HEIGHT","BODY_TEMPERATURE","HEART_RATE","PULSE_RATE","OXYGEN_SATURATION","BLOOD_GLUCOSE","ALCOHOL_USE","TOBACCO_USE","DRUG_USE","LIVING_SITUATION","FAMILY_SITUATION","PARTICIPATION_IN_SOCIETY","FUNCTIONAL_OR_MENTAL_STATUS","LABORATORY_TEST_RESULT","WAIST_CIRCUMFERENCE","HEMOGLOBIN","WAIST_HEIGHT_RATIO","BODY_MASS_INDEX","ECG","GP_JOURNAL_ENTRY","GENERIC","C_PEPTIDE","RESPIRATORY_RATE","STEP_COUNTER","HEART_MINUTES","SLEEPING","BODY_FAT_PERCENTAGE","BASAL_METABOLIC_RATE","ACTIVE_MINUTES","QUANTITY","SIX_MINUTES_WALKING","TIMED_UP_AND_GO","COGNITIVE_MOTOR","GAIT_SPEED","BALANCE","EXECUTIVE_FUNCTION","PROCESSING_SPEED","ATTENTION","WORKING_MEMORY","EPISODIC_MEMORY","LONG_TERM_STRESS","SHORT_TERM_STRESS","HBA1C"]},"performer":{"description":"Who was responsible for asserting the observed value as \"true\".","$ref":"#/definitions/ReferencePayload"},"rate":{"description":"The pulse frequency measured as the number of tangible pulsations of an artery per minute","$ref":"#/definitions/QuantityPayload"},"referenceRanges":{"type":"array","items":{"$ref":"#/definitions/ReferenceRangeObservationPayload"}},"references":{"type":"array","items":{"type":"string"}},"regularity":{"type":"string","description":"The heart rate rhythm palpation","enum":["REGULAR","IRREGULAR"]},"resourceType":{"type":"string"},"subject":{"description":"The patient whose characteristics (direct or indirect) are described by the observation and into whose record the observation is placed","$ref":"#/definitions/ReferencePayload"}},"title":"PulseRateObservationPayload"},"PulseRateObservationRequest":{"type":"object","required":["rate"],"properties":{"comment":{"type":"string","description":"Comment on the measurement."},"device":{"description":"${medsafe.observation.device}","$ref":"#/definitions/ReferencePayload"},"effective":{"$ref":"#/definitions/PastOrPresentPartialDatePayload"},"performer":{"description":"Who was responsible for asserting the observed value as \"true\".","$ref":"#/definitions/ReferencePayload"},"rate":{"type":"integer","format":"int32","description":"The pulse frequency measured as the number of tangible pulsations of an artery per minute"},"regularity":{"type":"string","description":"The heart rate rhythm palpation","enum":["REGULAR","IRREGULAR"]}},"title":"PulseRateObservationRequest"},"QuantityObservationPayload":{"type":"object","properties":{"comment":{"type":"string","description":"Comment on the measurement."},"context":{"description":"Context of the measurement (observation).","$ref":"#/definitions/ReferencePayload"},"device":{"description":"${medsafe.observation.device}","$ref":"#/definitions/ReferencePayload"},"effective":{"description":"Date and if possible time of the measurement.","$ref":"#/definitions/PastOrPresentPartialDatePayload"},"id":{"type":"string","description":"A unique identifier assigned to this observation."},"interpretation":{"description":"Interpretation of the measurement.","$ref":"#/definitions/CodeableConceptPayload"},"nhgCode":{"description":"NHG Code","$ref":"#/definitions/CodingPayload"},"observationType":{"type":"string","enum":["BLOOD_PRESSURE","BODY_WEIGHT","BODY_HEIGHT","BODY_TEMPERATURE","HEART_RATE","PULSE_RATE","OXYGEN_SATURATION","BLOOD_GLUCOSE","ALCOHOL_USE","TOBACCO_USE","DRUG_USE","LIVING_SITUATION","FAMILY_SITUATION","PARTICIPATION_IN_SOCIETY","FUNCTIONAL_OR_MENTAL_STATUS","LABORATORY_TEST_RESULT","WAIST_CIRCUMFERENCE","HEMOGLOBIN","WAIST_HEIGHT_RATIO","BODY_MASS_INDEX","ECG","GP_JOURNAL_ENTRY","GENERIC","C_PEPTIDE","RESPIRATORY_RATE","STEP_COUNTER","HEART_MINUTES","SLEEPING","BODY_FAT_PERCENTAGE","BASAL_METABOLIC_RATE","ACTIVE_MINUTES","QUANTITY","SIX_MINUTES_WALKING","TIMED_UP_AND_GO","COGNITIVE_MOTOR","GAIT_SPEED","BALANCE","EXECUTIVE_FUNCTION","PROCESSING_SPEED","ATTENTION","WORKING_MEMORY","EPISODIC_MEMORY","LONG_TERM_STRESS","SHORT_TERM_STRESS","HBA1C"]},"performer":{"description":"Who was responsible for asserting the observed value as \"true\".","$ref":"#/definitions/ReferencePayload"},"referenceRanges":{"type":"array","items":{"$ref":"#/definitions/ReferenceRangeObservationPayload"}},"references":{"type":"array","items":{"type":"string"}},"resourceType":{"type":"string"},"score":{"description":"The temperature inside the body, measured in °C (degrees Celsius)","$ref":"#/definitions/QuantityPayload"},"subject":{"description":"The patient whose characteristics (direct or indirect) are described by the observation and into whose record the observation is placed","$ref":"#/definitions/ReferencePayload"}},"title":"QuantityObservationPayload"},"QuantityObservationRequest":{"type":"object","required":["value"],"properties":{"comment":{"type":"string","description":"Comment on the measurement."},"device":{"description":"${medsafe.observation.device}","$ref":"#/definitions/ReferencePayload"},"effective":{"$ref":"#/definitions/PastOrPresentPartialDatePayload"},"performer":{"description":"Who was responsible for asserting the observed value as \"true\".","$ref":"#/definitions/ReferencePayload"},"quantityObservationType":{"type":"string","enum":["SIX_MINUTES_WALKING","TIMED_UP_AND_GO","COGNITIVE_MOTOR","GAIT_SPEED","BALANCE","EXECUTIVE_FUNCTION","PROCESSING_SPEED","ATTENTION","WORKING_MEMORY","EPISODIC_MEMORY","LONG_TERM_STRESS","SHORT_TERM_STRESS","HBA1C"]},"value":{"type":"number","format":"double","description":"Quantity Observation value"}},"title":"QuantityObservationRequest"},"QuantityPayload":{"type":"object","properties":{"code":{"type":"string","description":"${medsafe.observation.quantity.payload.code}"},"system":{"type":"string","description":"${medsafe.observation.quantity.payload.system}"},"unit":{"type":"string","description":"The unit which coupled with value"},"value":{"description":"The number value for quantity","$ref":"#/definitions/Number"}},"title":"QuantityPayload"},"QuestionnaireItemDependsOnPayload":{"type":"object","properties":{"answerBoolean":{"type":"boolean"},"answerCoding":{"$ref":"#/definitions/CodingPayload"},"answerDate":{"$ref":"#/definitions/PartialDatePayload"},"answerDateTime":{"$ref":"#/definitions/PartialDatePayload"},"answerDecimal":{"type":"number","format":"double"},"answerInteger":{"type":"integer","format":"int32"},"answerQuantity":{"$ref":"#/definitions/QuantityPayload"},"answerString":{"type":"string"},"answerTime":{"type":"string"},"enableOperator":{"type":"string"},"hasAnswer":{"type":"boolean"},"linkId":{"type":"string"},"type":{"type":"string","enum":["GROUP","DISPLAY","BOOLEAN","DECIMAL","INTEGER","DATE","DATETIME","TIME","STRING","TEXT","CHOICE","OPEN_CHOICE","QUANTITY"]}},"title":"QuestionnaireItemDependsOnPayload"},"QuestionnaireItemOptionDependsOnPayload":{"type":"object","properties":{"prefix":{"type":"string"},"type":{"type":"string","enum":["GROUP","DISPLAY","BOOLEAN","DECIMAL","INTEGER","DATE","DATETIME","TIME","STRING","TEXT","CHOICE","OPEN_CHOICE","QUANTITY"]},"valueCoding":{"$ref":"#/definitions/CodingPayload"},"valueDate":{"$ref":"#/definitions/PartialDatePayload"},"valueInteger":{"type":"integer","format":"int32"},"valueString":{"type":"string"},"valueTime":{"type":"string"}},"title":"QuestionnaireItemOptionDependsOnPayload"},"QuestionnaireItemPayload":{"type":"object","properties":{"enableBehaviour":{"type":"array","items":{"type":"string"}},"enableWhen":{"type":"array","items":{"$ref":"#/definitions/QuestionnaireItemDependsOnPayload"}},"items":{"type":"array","items":{"$ref":"#/definitions/QuestionnaireItemPayload"}},"linkId":{"type":"string"},"maxDecimalPlaces":{"type":"integer","format":"int32"},"maxValue":{"type":"integer","format":"int32"},"minLength":{"type":"integer","format":"int32"},"minValue":{"type":"integer","format":"int32"},"option":{"type":"array","items":{"$ref":"#/definitions/QuestionnaireItemOptionDependsOnPayload"}},"options":{"$ref":"#/definitions/ReferencePayload"},"required":{"type":"boolean"},"text":{"type":"string"},"type":{"type":"string","enum":["GROUP","DISPLAY","BOOLEAN","DECIMAL","INTEGER","DATE","DATETIME","TIME","STRING","TEXT","CHOICE","OPEN_CHOICE","QUANTITY"]},"unitOfMeasure":{"$ref":"#/definitions/CodingPayload"}},"title":"QuestionnaireItemPayload"},"QuestionnaireListItemPayload":{"type":"object","properties":{"copyright":{"type":"string"},"resourceId":{"type":"string"},"tags":{"type":"array","items":{"type":"string"}},"title":{"type":"string"}},"title":"QuestionnaireListItemPayload"},"QuestionnairePayload":{"type":"object","properties":{"copyright":{"type":"string"},"date":{"$ref":"#/definitions/PartialDatePayload"},"description":{"type":"string"},"effectivePeriod":{"$ref":"#/definitions/PeriodWithPartialDatesPayload"},"items":{"type":"array","items":{"$ref":"#/definitions/QuestionnaireItemPayload"}},"lastReviewDate":{"$ref":"#/definitions/PartialDatePayload"},"name":{"type":"string"},"publisher":{"type":"string"},"resourceId":{"type":"string"},"status":{"type":"string"},"title":{"type":"string"},"url":{"type":"string"},"version":{"type":"string"}},"title":"QuestionnairePayload"},"QuestionnaireResponseItemAnswerPayload":{"type":"object","properties":{"answerBoolean":{"type":"boolean"},"answerCoding":{"$ref":"#/definitions/CodingPayload"},"answerDate":{"$ref":"#/definitions/PartialDatePayload"},"answerDateTime":{"$ref":"#/definitions/PartialDatePayload"},"answerDecimal":{"type":"number","format":"double"},"answerInteger":{"type":"integer","format":"int32"},"answerQuantity":{"$ref":"#/definitions/QuantityPayload"},"answerString":{"type":"string"},"answerTime":{"type":"string"},"text":{"type":"string"}},"title":"QuestionnaireResponseItemAnswerPayload"},"QuestionnaireResponseItemPayload":{"type":"object","properties":{"answers":{"type":"array","items":{"$ref":"#/definitions/QuestionnaireResponseItemAnswerPayload"}},"items":{"type":"array","items":{"$ref":"#/definitions/QuestionnaireResponseItemPayload"}},"linkId":{"type":"string"},"text":{"type":"string"}},"title":"QuestionnaireResponseItemPayload"},"QuestionnaireResponsePayload":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/definitions/QuestionnaireResponseItemPayload"}},"patientName":{"type":"string"},"taskReference":{"$ref":"#/definitions/ReferencePayload"}},"title":"QuestionnaireResponsePayload"},"QuestionnaireScoreItem":{"type":"object","properties":{"questionnaireId":{"type":"string"},"scoreDate":{"type":"string","format":"date-time"},"scores":{"type":"array","items":{"$ref":"#/definitions/QuestionnaireScorePayload"}}},"title":"QuestionnaireScoreItem"},"QuestionnaireScoreListPayload":{"type":"object","properties":{"questionnaireName":{"type":"string"},"scores":{"type":"array","items":{"$ref":"#/definitions/QuestionnaireScoreItem"}}},"title":"QuestionnaireScoreListPayload"},"QuestionnaireScorePayload":{"type":"object","properties":{"code":{"type":"string"},"codeDescription":{"type":"string"},"result":{"type":"string"},"resultDescription":{"type":"string"},"value":{"type":"string"}},"title":"QuestionnaireScorePayload"},"QuestionnaireTaskBasePayload":{"type":"object","properties":{"completed":{"type":"string","format":"date-time"},"copyright":{"type":"string"},"createdDate":{"type":"string","format":"date-time"},"deadline":{"type":"string","format":"date-time"},"description":{"type":"string"},"questionnaireId":{"type":"string"},"questionnaireTitle":{"type":"string"},"status":{"type":"string","enum":["REQUESTED","FAILED","REJECTED","IN_PROGRESS","COMPLETED","DELETED"]},"tags":{"type":"array","items":{"type":"string"}},"taskId":{"type":"string"}},"title":"QuestionnaireTaskBasePayload"},"QuestionnaireTaskPayload":{"type":"object","properties":{"completed":{"type":"string","format":"date-time"},"copyright":{"type":"string"},"createdDate":{"type":"string","format":"date-time"},"deadline":{"type":"string","format":"date-time"},"description":{"type":"string"},"questionnaireId":{"type":"string"},"questionnaireTitle":{"type":"string"},"status":{"type":"string","enum":["REQUESTED","FAILED","REJECTED","IN_PROGRESS","COMPLETED","DELETED"]},"tags":{"type":"array","items":{"type":"string"}},"taskId":{"type":"string"}},"title":"QuestionnaireTaskPayload"},"QuestionnaireTaskRequest":{"type":"object","required":["fulfilmentSought"],"properties":{"carePlanIds":{"type":"array","items":{"type":"string"}},"description":{"type":"string"},"fulfilmentSought":{"description":"Information which signifies when questionnaire fullfilment is sought (check type attribute)","$ref":"#/definitions/Restriction"},"questionnaireIds":{"type":"array","items":{"type":"string"}},"subjectId":{"type":"string","description":"Responsible individual"}},"title":"QuestionnaireTaskRequest"},"ReferencePayload":{"type":"object","properties":{"reference":{"type":"string"},"display":{"type":"string"},"identifier":{"$ref":"#/definitions/IdentifierPayload"}},"title":"ReferencePayload"},"ReferenceRangeObservationPayload":{"type":"object","properties":{"high":{"$ref":"#/definitions/QuantityPayload"},"low":{"$ref":"#/definitions/QuantityPayload"},"type":{"$ref":"#/definitions/CodeableConceptPayload"}},"title":"ReferenceRangeObservationPayload"},"RelatedPersonPayload":{"type":"object","properties":{"addresses":{"type":"array","items":{"$ref":"#/definitions/AddressPayload"}},"contacts":{"type":"array","items":{"$ref":"#/definitions/ContactPointPayload"}},"id":{"type":"string"},"name":{"$ref":"#/definitions/NlCoreHumanNamePayload"},"relationship":{"$ref":"#/definitions/CodeableConceptPayload"},"resourceType":{"type":"string"}},"title":"RelatedPersonPayload"},"Report Response":{"type":"object","properties":{"content":{"type":"string","description":"content"}},"title":"Report Response"},"Resource":{"type":"object","properties":{"description":{"type":"string"},"file":{"$ref":"#/definitions/File"},"filename":{"type":"string"},"inputStream":{"$ref":"#/definitions/InputStream"},"open":{"type":"boolean"},"readable":{"type":"boolean"},"uri":{"$ref":"#/definitions/URI"},"url":{"$ref":"#/definitions/URL"}},"title":"Resource"},"ResourceCreateResponse":{"type":"object","properties":{"id":{"type":"string","description":"id"},"resourceType":{"type":"string","description":"resourceType"}},"title":"ResourceCreateResponse"},"ResourceReferencePayload":{"type":"object","properties":{"id":{"type":"string","description":"id"},"type":{"type":"string","description":"type"}},"title":"ResourceReferencePayload"},"RespiratoryRateObservationPayload":{"type":"object","properties":{"comment":{"type":"string","description":"Comment on the measurement."},"context":{"description":"Context of the measurement (observation).","$ref":"#/definitions/ReferencePayload"},"device":{"description":"${medsafe.observation.device}","$ref":"#/definitions/ReferencePayload"},"effective":{"description":"Date and if possible time of the measurement.","$ref":"#/definitions/PastOrPresentPartialDatePayload"},"id":{"type":"string","description":"A unique identifier assigned to this observation."},"interpretation":{"description":"Interpretation of the measurement.","$ref":"#/definitions/CodeableConceptPayload"},"nhgCode":{"description":"NHG Code","$ref":"#/definitions/CodingPayload"},"observationType":{"type":"string","enum":["BLOOD_PRESSURE","BODY_WEIGHT","BODY_HEIGHT","BODY_TEMPERATURE","HEART_RATE","PULSE_RATE","OXYGEN_SATURATION","BLOOD_GLUCOSE","ALCOHOL_USE","TOBACCO_USE","DRUG_USE","LIVING_SITUATION","FAMILY_SITUATION","PARTICIPATION_IN_SOCIETY","FUNCTIONAL_OR_MENTAL_STATUS","LABORATORY_TEST_RESULT","WAIST_CIRCUMFERENCE","HEMOGLOBIN","WAIST_HEIGHT_RATIO","BODY_MASS_INDEX","ECG","GP_JOURNAL_ENTRY","GENERIC","C_PEPTIDE","RESPIRATORY_RATE","STEP_COUNTER","HEART_MINUTES","SLEEPING","BODY_FAT_PERCENTAGE","BASAL_METABOLIC_RATE","ACTIVE_MINUTES","QUANTITY","SIX_MINUTES_WALKING","TIMED_UP_AND_GO","COGNITIVE_MOTOR","GAIT_SPEED","BALANCE","EXECUTIVE_FUNCTION","PROCESSING_SPEED","ATTENTION","WORKING_MEMORY","EPISODIC_MEMORY","LONG_TERM_STRESS","SHORT_TERM_STRESS","HBA1C"]},"performer":{"description":"Who was responsible for asserting the observed value as \"true\".","$ref":"#/definitions/ReferencePayload"},"rate":{"description":"${medsafe.observation.respiratory.rate.quantity.value}","$ref":"#/definitions/QuantityPayload"},"referenceRanges":{"type":"array","items":{"$ref":"#/definitions/ReferenceRangeObservationPayload"}},"references":{"type":"array","items":{"type":"string"}},"resourceType":{"type":"string"},"subject":{"description":"The patient whose characteristics (direct or indirect) are described by the observation and into whose record the observation is placed","$ref":"#/definitions/ReferencePayload"}},"title":"RespiratoryRateObservationPayload"},"RespiratoryRateObservationRequest":{"type":"object","properties":{"comment":{"type":"string","description":"Comment on the measurement."},"device":{"description":"${medsafe.observation.device}","$ref":"#/definitions/ReferencePayload"},"effective":{"$ref":"#/definitions/PastOrPresentPartialDatePayload"},"performer":{"description":"Who was responsible for asserting the observed value as \"true\".","$ref":"#/definitions/ReferencePayload"},"rate":{"description":"${medsafe.observation.respiratory.rate.quantity.value}","$ref":"#/definitions/QuantityPayload"}},"title":"RespiratoryRateObservationRequest"},"ResponseEntity":{"type":"object","properties":{"body":{"type":"object"},"statusCode":{"type":"string","enum":["100 CONTINUE","101 SWITCHING_PROTOCOLS","102 PROCESSING","103 CHECKPOINT","200 OK","201 CREATED","202 ACCEPTED","203 NON_AUTHORITATIVE_INFORMATION","204 NO_CONTENT","205 RESET_CONTENT","206 PARTIAL_CONTENT","207 MULTI_STATUS","208 ALREADY_REPORTED","226 IM_USED","300 MULTIPLE_CHOICES","301 MOVED_PERMANENTLY","302 FOUND","302 MOVED_TEMPORARILY","303 SEE_OTHER","304 NOT_MODIFIED","305 USE_PROXY","307 TEMPORARY_REDIRECT","308 PERMANENT_REDIRECT","400 BAD_REQUEST","401 UNAUTHORIZED","402 PAYMENT_REQUIRED","403 FORBIDDEN","404 NOT_FOUND","405 METHOD_NOT_ALLOWED","406 NOT_ACCEPTABLE","407 PROXY_AUTHENTICATION_REQUIRED","408 REQUEST_TIMEOUT","409 CONFLICT","410 GONE","411 LENGTH_REQUIRED","412 PRECONDITION_FAILED","413 PAYLOAD_TOO_LARGE","413 REQUEST_ENTITY_TOO_LARGE","414 URI_TOO_LONG","414 REQUEST_URI_TOO_LONG","415 UNSUPPORTED_MEDIA_TYPE","416 REQUESTED_RANGE_NOT_SATISFIABLE","417 EXPECTATION_FAILED","418 I_AM_A_TEAPOT","419 INSUFFICIENT_SPACE_ON_RESOURCE","420 METHOD_FAILURE","421 DESTINATION_LOCKED","422 UNPROCESSABLE_ENTITY","423 LOCKED","424 FAILED_DEPENDENCY","425 TOO_EARLY","426 UPGRADE_REQUIRED","428 PRECONDITION_REQUIRED","429 TOO_MANY_REQUESTS","431 REQUEST_HEADER_FIELDS_TOO_LARGE","451 UNAVAILABLE_FOR_LEGAL_REASONS","500 INTERNAL_SERVER_ERROR","501 NOT_IMPLEMENTED","502 BAD_GATEWAY","503 SERVICE_UNAVAILABLE","504 GATEWAY_TIMEOUT","505 HTTP_VERSION_NOT_SUPPORTED","506 VARIANT_ALSO_NEGOTIATES","507 INSUFFICIENT_STORAGE","508 LOOP_DETECTED","509 BANDWIDTH_LIMIT_EXCEEDED","510 NOT_EXTENDED","511 NETWORK_AUTHENTICATION_REQUIRED"]},"statusCodeValue":{"type":"integer","format":"int32"}},"title":"ResponseEntity"},"Restriction":{"type":"object","required":["type"],"properties":{"from":{"type":"string","format":"date-time"},"intervalAmount":{"type":"integer","format":"int32","description":"If fullfilment is sought ie. \"Every 3 months from 1.1.20 to 1.1.21\" this attribute represents value \"3\""},"intervalPrecision":{"type":"string","description":"If fullfilment is sought ie. \"Every 3 months from 1.1.20 to 1.1.21\" this attribute represents value \"months\"","enum":["YEAR","MONTH","DAY"]},"to":{"type":"string","format":"date-time"},"type":{"type":"string","description":"If type is SINGLE, only \"to\" attribute is required, otherwise all attributes are required","enum":["SINGLE","RECURRING"]}},"title":"Restriction"},"RolePayload":{"type":"object","properties":{"role":{"description":"role","$ref":"#/definitions/CodeableConceptPayload"}},"title":"RolePayload"},"SchedulePayload":{"type":"object","properties":{"actors":{"type":"array","items":{"type":"string"}},"id":{"type":"string"},"planningHorizon":{"$ref":"#/definitions/PeriodPayload"}},"title":"SchedulePayload"},"SelfMeasurementsPushRequestPayload":{"type":"object","properties":{"careProviderUrl":{"type":"string"},"token":{"type":"string"},"userKey":{"type":"string"},"resourceKey":{"type":"string"},"periodStart":{"$ref":"#/definitions/PartialDatePayload"},"periodEnd":{"$ref":"#/definitions/PartialDatePayload"},"types":{"type":"array","items":{"type":"string","enum":["BLOOD_PRESSURE","BODY_WEIGHT","BODY_HEIGHT","BODY_TEMPERATURE","HEART_RATE","PULSE_RATE","OXYGEN_SATURATION","BLOOD_GLUCOSE","ALCOHOL_USE","TOBACCO_USE","DRUG_USE","LIVING_SITUATION","FAMILY_SITUATION","PARTICIPATION_IN_SOCIETY","FUNCTIONAL_OR_MENTAL_STATUS","LABORATORY_TEST_RESULT","WAIST_CIRCUMFERENCE","HEMOGLOBIN","WAIST_HEIGHT_RATIO","BODY_MASS_INDEX","ECG","GP_JOURNAL_ENTRY","GENERIC","C_PEPTIDE","RESPIRATORY_RATE","STEP_COUNTER","HEART_MINUTES","SLEEPING","BODY_FAT_PERCENTAGE","BASAL_METABOLIC_RATE","ACTIVE_MINUTES","QUANTITY","SIX_MINUTES_WALKING","TIMED_UP_AND_GO","COGNITIVE_MOTOR","GAIT_SPEED","BALANCE","EXECUTIVE_FUNCTION","PROCESSING_SPEED","ATTENTION","WORKING_MEMORY","EPISODIC_MEMORY","LONG_TERM_STRESS","SHORT_TERM_STRESS","HBA1C"]}}},"title":"SelfMeasurementsPushRequestPayload"},"Setting":{"type":"object","properties":{"observationTypes":{"type":"array","items":{"type":"string","enum":["BLOOD_PRESSURE","BODY_WEIGHT","BODY_HEIGHT","BODY_TEMPERATURE","HEART_RATE","PULSE_RATE","OXYGEN_SATURATION","BLOOD_GLUCOSE","ALCOHOL_USE","TOBACCO_USE","DRUG_USE","LIVING_SITUATION","FAMILY_SITUATION","PARTICIPATION_IN_SOCIETY","FUNCTIONAL_OR_MENTAL_STATUS","LABORATORY_TEST_RESULT","WAIST_CIRCUMFERENCE","HEMOGLOBIN","WAIST_HEIGHT_RATIO","BODY_MASS_INDEX","ECG","GP_JOURNAL_ENTRY","GENERIC","C_PEPTIDE","RESPIRATORY_RATE","STEP_COUNTER","HEART_MINUTES","SLEEPING","BODY_FAT_PERCENTAGE","BASAL_METABOLIC_RATE","ACTIVE_MINUTES","QUANTITY","SIX_MINUTES_WALKING","TIMED_UP_AND_GO","COGNITIVE_MOTOR","GAIT_SPEED","BALANCE","EXECUTIVE_FUNCTION","PROCESSING_SPEED","ATTENTION","WORKING_MEMORY","EPISODIC_MEMORY","LONG_TERM_STRESS","SHORT_TERM_STRESS","HBA1C"]}},"language":{"type":"string","enum":["EN","IT","NL","DE"]}},"title":"Setting"},"SleepingObservationPayload":{"type":"object","properties":{"comment":{"type":"string","description":"Comment on the measurement."},"context":{"description":"Context of the measurement (observation).","$ref":"#/definitions/ReferencePayload"},"device":{"description":"${medsafe.observation.device}","$ref":"#/definitions/ReferencePayload"},"effective":{"description":"Date and if possible time of the measurement.","$ref":"#/definitions/PastOrPresentPartialDatePayload"},"id":{"type":"string","description":"A unique identifier assigned to this observation."},"interpretation":{"description":"Interpretation of the measurement.","$ref":"#/definitions/CodeableConceptPayload"},"nhgCode":{"description":"NHG Code","$ref":"#/definitions/CodingPayload"},"observationType":{"type":"string","enum":["BLOOD_PRESSURE","BODY_WEIGHT","BODY_HEIGHT","BODY_TEMPERATURE","HEART_RATE","PULSE_RATE","OXYGEN_SATURATION","BLOOD_GLUCOSE","ALCOHOL_USE","TOBACCO_USE","DRUG_USE","LIVING_SITUATION","FAMILY_SITUATION","PARTICIPATION_IN_SOCIETY","FUNCTIONAL_OR_MENTAL_STATUS","LABORATORY_TEST_RESULT","WAIST_CIRCUMFERENCE","HEMOGLOBIN","WAIST_HEIGHT_RATIO","BODY_MASS_INDEX","ECG","GP_JOURNAL_ENTRY","GENERIC","C_PEPTIDE","RESPIRATORY_RATE","STEP_COUNTER","HEART_MINUTES","SLEEPING","BODY_FAT_PERCENTAGE","BASAL_METABOLIC_RATE","ACTIVE_MINUTES","QUANTITY","SIX_MINUTES_WALKING","TIMED_UP_AND_GO","COGNITIVE_MOTOR","GAIT_SPEED","BALANCE","EXECUTIVE_FUNCTION","PROCESSING_SPEED","ATTENTION","WORKING_MEMORY","EPISODIC_MEMORY","LONG_TERM_STRESS","SHORT_TERM_STRESS","HBA1C"]},"performer":{"description":"Who was responsible for asserting the observed value as \"true\".","$ref":"#/definitions/ReferencePayload"},"referenceRanges":{"type":"array","items":{"$ref":"#/definitions/ReferenceRangeObservationPayload"}},"references":{"type":"array","items":{"type":"string"}},"resourceType":{"type":"string"},"sleeping":{"description":"${medsafe.observation.sleeping.quantity.value}","$ref":"#/definitions/QuantityPayload"},"subject":{"description":"The patient whose characteristics (direct or indirect) are described by the observation and into whose record the observation is placed","$ref":"#/definitions/ReferencePayload"}},"title":"SleepingObservationPayload"},"SleepingObservationRequest":{"type":"object","required":["hours"],"properties":{"comment":{"type":"string","description":"Comment on the measurement."},"device":{"description":"${medsafe.observation.device}","$ref":"#/definitions/ReferencePayload"},"effective":{"$ref":"#/definitions/PastOrPresentPartialDatePayload"},"hours":{"type":"number","format":"double","description":"${medsafe.observation.sleeping.value}"},"performer":{"description":"Who was responsible for asserting the observed value as \"true\".","$ref":"#/definitions/ReferencePayload"}},"title":"SleepingObservationRequest"},"SlotPayload":{"type":"object","properties":{"appointmentType":{"type":"string","enum":["CHECKUP","EMERGENCY","FOLLOWUP","ROUTINE","WALKIN"]},"end":{"type":"string","format":"date-time"},"id":{"type":"string"},"scheduleReferenceId":{"type":"string"},"start":{"type":"string","format":"date-time"},"status":{"type":"string","enum":["BUSY","FREE","BUSY_UNAVAILABLE","BUSY_TENTATIVE","DELETED"]}},"title":"SlotPayload"},"StatisticPayload":{"type":"object","properties":{"effective":{"type":"string","format":"date-time"},"helpText":{"type":"string"},"observationType":{"type":"string","enum":["BLOOD_PRESSURE","BODY_WEIGHT","BODY_HEIGHT","BODY_TEMPERATURE","HEART_RATE","PULSE_RATE","OXYGEN_SATURATION","BLOOD_GLUCOSE","ALCOHOL_USE","TOBACCO_USE","DRUG_USE","LIVING_SITUATION","FAMILY_SITUATION","PARTICIPATION_IN_SOCIETY","FUNCTIONAL_OR_MENTAL_STATUS","LABORATORY_TEST_RESULT","WAIST_CIRCUMFERENCE","HEMOGLOBIN","WAIST_HEIGHT_RATIO","BODY_MASS_INDEX","ECG","GP_JOURNAL_ENTRY","GENERIC","C_PEPTIDE","RESPIRATORY_RATE","STEP_COUNTER","HEART_MINUTES","SLEEPING","BODY_FAT_PERCENTAGE","BASAL_METABOLIC_RATE","ACTIVE_MINUTES","QUANTITY","SIX_MINUTES_WALKING","TIMED_UP_AND_GO","COGNITIVE_MOTOR","GAIT_SPEED","BALANCE","EXECUTIVE_FUNCTION","PROCESSING_SPEED","ATTENTION","WORKING_MEMORY","EPISODIC_MEMORY","LONG_TERM_STRESS","SHORT_TERM_STRESS","HBA1C"]},"score":{"type":"integer","format":"int64"},"text":{"type":"string"},"unit":{"type":"string"},"unitCode":{"type":"string"},"unitSystem":{"type":"string"},"value":{"type":"string"}},"title":"StatisticPayload"},"StepCounterObservationPayload":{"type":"object","properties":{"comment":{"type":"string","description":"Comment on the measurement."},"context":{"description":"Context of the measurement (observation).","$ref":"#/definitions/ReferencePayload"},"device":{"description":"${medsafe.observation.device}","$ref":"#/definitions/ReferencePayload"},"effective":{"description":"Date and if possible time of the measurement.","$ref":"#/definitions/PastOrPresentPartialDatePayload"},"id":{"type":"string","description":"A unique identifier assigned to this observation."},"interpretation":{"description":"Interpretation of the measurement.","$ref":"#/definitions/CodeableConceptPayload"},"nhgCode":{"description":"NHG Code","$ref":"#/definitions/CodingPayload"},"observationType":{"type":"string","enum":["BLOOD_PRESSURE","BODY_WEIGHT","BODY_HEIGHT","BODY_TEMPERATURE","HEART_RATE","PULSE_RATE","OXYGEN_SATURATION","BLOOD_GLUCOSE","ALCOHOL_USE","TOBACCO_USE","DRUG_USE","LIVING_SITUATION","FAMILY_SITUATION","PARTICIPATION_IN_SOCIETY","FUNCTIONAL_OR_MENTAL_STATUS","LABORATORY_TEST_RESULT","WAIST_CIRCUMFERENCE","HEMOGLOBIN","WAIST_HEIGHT_RATIO","BODY_MASS_INDEX","ECG","GP_JOURNAL_ENTRY","GENERIC","C_PEPTIDE","RESPIRATORY_RATE","STEP_COUNTER","HEART_MINUTES","SLEEPING","BODY_FAT_PERCENTAGE","BASAL_METABOLIC_RATE","ACTIVE_MINUTES","QUANTITY","SIX_MINUTES_WALKING","TIMED_UP_AND_GO","COGNITIVE_MOTOR","GAIT_SPEED","BALANCE","EXECUTIVE_FUNCTION","PROCESSING_SPEED","ATTENTION","WORKING_MEMORY","EPISODIC_MEMORY","LONG_TERM_STRESS","SHORT_TERM_STRESS","HBA1C"]},"performer":{"description":"Who was responsible for asserting the observed value as \"true\".","$ref":"#/definitions/ReferencePayload"},"referenceRanges":{"type":"array","items":{"$ref":"#/definitions/ReferenceRangeObservationPayload"}},"references":{"type":"array","items":{"type":"string"}},"resourceType":{"type":"string"},"stepCounter":{"description":"${medsafe.observation.step.counter.quantity.value}","$ref":"#/definitions/QuantityPayload"},"subject":{"description":"The patient whose characteristics (direct or indirect) are described by the observation and into whose record the observation is placed","$ref":"#/definitions/ReferencePayload"}},"title":"StepCounterObservationPayload"},"StepCounterObservationRequest":{"type":"object","required":["stepCounter"],"properties":{"comment":{"type":"string","description":"Comment on the measurement."},"device":{"description":"${medsafe.observation.device}","$ref":"#/definitions/ReferencePayload"},"effective":{"$ref":"#/definitions/PastOrPresentPartialDatePayload"},"performer":{"description":"Who was responsible for asserting the observed value as \"true\".","$ref":"#/definitions/ReferencePayload"},"stepCounter":{"type":"integer","format":"int32","description":"${medsafe.observation.step.counter.value}"}},"title":"StepCounterObservationRequest"},"StringMapPayload":{"type":"object","title":"StringMapPayload","additionalProperties":{"type":"string"}},"TableResponsePayload":{"type":"object","properties":{"current":{"type":"integer","format":"int32","description":"The number of current page."},"data":{"type":"array","description":"The collection of values.","items":{"type":"object"}},"next":{"type":"boolean","description":"Is the next page present."},"prev":{"type":"boolean","description":"Is the previous page present."},"size":{"type":"integer","format":"int32","description":"The size of the page."},"total":{"type":"integer","format":"int64","description":"The total count of items."},"totalPages":{"type":"integer","format":"int32","description":"The total number of pages."}},"title":"TableResponsePayload"},"TableResponsePayload«TranslationDescriptionPayload»":{"type":"object","properties":{"current":{"type":"integer","format":"int32","description":"The number of current page."},"data":{"type":"array","description":"The collection of values.","items":{"$ref":"#/definitions/TranslationDescriptionPayload"}},"next":{"type":"boolean","description":"Is the next page present."},"prev":{"type":"boolean","description":"Is the previous page present."},"size":{"type":"integer","format":"int32","description":"The size of the page."},"total":{"type":"integer","format":"int64","description":"The total count of items."},"totalPages":{"type":"integer","format":"int32","description":"The total number of pages."}},"title":"TableResponsePayload«TranslationDescriptionPayload»"},"TaskPayload":{"type":"object","properties":{"agent":{"type":"string","description":"Who is asking for task to be done"},"assignee":{"type":"string","description":"Request fulfilled by this task"},"description":{"type":"string","description":"Human-readable explanation of task"},"dueDate":{"type":"string","description":"End time of execution"},"id":{"type":"string","description":"Resource id"},"intent":{"type":"string","enum":["PROPOSAL","PLAN","ORDER","ORIGINALORDER","REFLEXORDER","FILLERORDER","INSTANCEORDER","OPTION","NULL"]},"note":{"type":"string","description":"Comments made about the task"},"resourceType":{"type":"string","description":"Resource type"},"status":{"type":"string","enum":["DRAFT","REQUESTED","RECEIVED","ACCEPTED","REJECTED","READY","CANCELLED","INPROGRESS","ONHOLD","FAILED","COMPLETED","ENTEREDINERROR","NULL"]}},"title":"TaskPayload"},"TerminologyDescriptionPayload":{"type":"object","properties":{"code":{"type":"string"},"defaultDescription":{"type":"string"},"localizedDescription":{"type":"string"},"system":{"type":"string"}},"title":"TerminologyDescriptionPayload"},"TerminologyLocalizationPayload":{"type":"object","properties":{"customDescription":{"type":"string","description":"${terminology-localization.fields.customDescription}"},"description":{"type":"string","description":"${terminology-localization.fields.description}"},"id":{"type":"integer","format":"int64","description":"${terminology-localization.fields.id}"},"lang":{"type":"string","description":"${terminology-localization.fields.lang}"}},"title":"TerminologyLocalizationPayload"},"TerminologyPayload":{"type":"object","required":["code","terminologySystem"],"properties":{"code":{"type":"string","description":"The terminology code."},"defaultDescription":{"type":"string","description":"Default description for terminology."},"id":{"type":"integer","format":"int64","description":"The terminology identifier."},"terminologyLocalizations":{"type":"array","items":{"$ref":"#/definitions/TerminologyLocalizationPayload"}},"terminologySystem":{"type":"string","description":"The terminology system."},"valueSet":{"description":"The value set.","$ref":"#/definitions/TerminologyValueSetPayload"}},"title":"TerminologyPayload"},"TerminologyValueSetPayload":{"type":"object","properties":{"id":{"type":"integer","format":"int64","description":"Value set identifier."},"name":{"type":"string","description":"Name of value set."}},"title":"TerminologyValueSetPayload"},"TranslationDescriptionPayload":{"type":"object","properties":{"category":{"type":"string"},"description":{"type":"string"},"id":{"type":"integer","format":"int64"},"key":{"type":"string"},"keyId":{"type":"integer","format":"int64"}},"title":"TranslationDescriptionPayload"},"TranslationLocalizationPayload":{"type":"object","properties":{"description":{"type":"string"},"id":{"type":"integer","format":"int64"},"lang":{"type":"string"}},"title":"TranslationLocalizationPayload"},"TranslationPayload":{"type":"object","required":["category","key"],"properties":{"category":{"type":"string","description":"The translation category."},"id":{"type":"integer","format":"int64"},"key":{"type":"string","description":"The key of translation."},"translationLocalizations":{"type":"array","items":{"$ref":"#/definitions/TranslationLocalizationPayload"}}},"title":"TranslationPayload"},"URI":{"type":"object","properties":{"absolute":{"type":"boolean"},"authority":{"type":"string"},"fragment":{"type":"string"},"host":{"type":"string"},"opaque":{"type":"boolean"},"path":{"type":"string"},"port":{"type":"integer","format":"int32"},"query":{"type":"string"},"rawAuthority":{"type":"string"},"rawFragment":{"type":"string"},"rawPath":{"type":"string"},"rawQuery":{"type":"string"},"rawSchemeSpecificPart":{"type":"string"},"rawUserInfo":{"type":"string"},"scheme":{"type":"string"},"schemeSpecificPart":{"type":"string"},"userInfo":{"type":"string"}},"title":"URI"},"URL":{"type":"object","properties":{"authority":{"type":"string"},"content":{"type":"object"},"defaultPort":{"type":"integer","format":"int32"},"deserializedFields":{"$ref":"#/definitions/URLStreamHandler"},"file":{"type":"string"},"host":{"type":"string"},"path":{"type":"string"},"port":{"type":"integer","format":"int32"},"protocol":{"type":"string"},"query":{"type":"string"},"ref":{"type":"string"},"serializedHashCode":{"type":"integer","format":"int32"},"userInfo":{"type":"string"}},"title":"URL"},"URLStreamHandler":{"type":"object","title":"URLStreamHandler"},"UserBadgePayload":{"type":"object","properties":{"awardedTime":{"type":"string","format":"date-time"},"badge":{"type":"string","enum":["ONE_WEEK_USER_REGISTERED","ONE_MONTH_USER_REGISTERED","THREE_MONTHS_USER_REGISTERED","SIX_MONTHS_USER_REGISTERED","ONE_YEAR_USER_REGISTERED","MEASUREMENT_SET","MOOD_QUESTIONNAIRE_ANSWERED_HAPPY_DIET","MOOD_QUESTIONNAIRE_ANSWERED_HAPPY_STRESS","MOOD_QUESTIONNAIRE_ANSWERED_HAPPY_SLEEP","MOOD_QUESTIONNAIRE_ANSWERED_HAPPY_MOVEMENT","MOOD_QUESTIONNAIRE_ANSWERED_HAPPY_HAPPINESS","MEASUREMENT_IMPROVED_WEIGHT","MEASUREMENT_IMPROVED_BMI","MEASUREMENT_IMPROVED_WAIST_CIRCUMFERENCE","MEASUREMENT_IMPROVED_BLOOD_GLUCOSE","MEASUREMENT_IMPROVED_BLOOD_PRESSURE","MEASUREMENT_IMPROVED_HB1AC"]},"id":{"type":"integer","format":"int64"}},"title":"UserBadgePayload"},"UserCreatePayload":{"type":"object","properties":{"email":{"type":"string"},"languageCode":{"type":"string"},"roles":{"type":"array","items":{"type":"string","enum":["PATIENT","DOCTOR","BUDDY","ADMIN"]}}},"title":"UserCreatePayload"},"UserGroupPayload":{"type":"object","properties":{"comment":{"type":"string"},"createdDate":{"type":"string","format":"date-time"},"id":{"type":"string"},"name":{"type":"string"}},"title":"UserGroupPayload"},"UserLevelPayload":{"type":"object","properties":{"level":{"$ref":"#/definitions/LevelThresholdPayload"},"points":{"type":"number","format":"float"}},"title":"UserLevelPayload"},"UserPersonDataPayload":{"type":"object","properties":{"email":{"type":"string","description":"Email Address (login)"},"id":{"type":"string","description":"ID"},"lastSignInTime":{"type":"string","format":"date-time","description":"Last Sign-In Time"},"networkOrganizations":{"type":"array","description":"Network organizations if user is a doctor","items":{"$ref":"#/definitions/NetworkOrganizationPractitionerOrganizationInfoPayload"}},"personData":{"description":"FHIR Person Data","$ref":"#/definitions/NlCorePersonPayload"},"roles":{"type":"array","description":"User Roles","items":{"type":"string","enum":["PATIENT","DOCTOR","BUDDY","ADMIN"]}},"status":{"type":"string","description":"User Status","enum":["UNVERIFIED","ACTIVE","BLOCKED","DELETED"]}},"title":"UserPersonDataPayload"},"UserPointsPayload":{"type":"object","properties":{"awardedTime":{"type":"string","format":"date-time"},"points":{"type":"number","format":"float"},"type":{"type":"string","enum":["MEASUREMENT_SET","FIRST_MEASUREMENT_SET","DAILY_MEASUREMENT_SET","ONE_WEEK_STREAK_MEASUREMENT_SET","USER_REGISTERED","ONE_YEAR_USER_REGISTERED","TWO_YEAR_USER_REGISTERED","THREE_YEAR_USER_REGISTERED","FIRST_MEDICATION_SET","MOOD_QUESTIONNAIRE_ANSWERED_HAPPY_PAIN_DISCOMFORT","MOOD_QUESTIONNAIRE_ANSWERED_HAPPY_FEELING_LOW","MOOD_QUESTIONNAIRE_ANSWERED_HAPPY_LIMITED","MOOD_QUESTIONNAIRE_ANSWERED_HAPPY_NEED_HELP","MOOD_QUESTIONNAIRE_ANSWERED_HAPPY_STRESS","MOOD_QUESTIONNAIRE_ANSWERED_HAPPY_SLEEP","MOOD_QUESTIONNAIRE_ANSWERED_HAPPY_MOVEMENT","MOOD_QUESTIONNAIRE_ANSWERED_HAPPY_DIET","MOOD_QUESTIONNAIRE_ANSWERED_HAPPY_HAPPINESS","MOOD_QUESTIONNAIRE_ANSWERED_HAPPY_5_TIMES","MOOD_QUESTIONNAIRE_ANSWERED_HAPPY_3_TIMES"]}},"title":"UserPointsPayload"},"WaistCircumferenceObservationPayload":{"type":"object","properties":{"comment":{"type":"string","description":"Comment on the measurement."},"context":{"description":"Context of the measurement (observation).","$ref":"#/definitions/ReferencePayload"},"device":{"description":"${medsafe.observation.device}","$ref":"#/definitions/ReferencePayload"},"effective":{"description":"Date and if possible time of the measurement.","$ref":"#/definitions/PastOrPresentPartialDatePayload"},"id":{"type":"string","description":"A unique identifier assigned to this observation."},"interpretation":{"description":"Interpretation of the measurement.","$ref":"#/definitions/CodeableConceptPayload"},"nhgCode":{"description":"NHG Code","$ref":"#/definitions/CodingPayload"},"observationType":{"type":"string","enum":["BLOOD_PRESSURE","BODY_WEIGHT","BODY_HEIGHT","BODY_TEMPERATURE","HEART_RATE","PULSE_RATE","OXYGEN_SATURATION","BLOOD_GLUCOSE","ALCOHOL_USE","TOBACCO_USE","DRUG_USE","LIVING_SITUATION","FAMILY_SITUATION","PARTICIPATION_IN_SOCIETY","FUNCTIONAL_OR_MENTAL_STATUS","LABORATORY_TEST_RESULT","WAIST_CIRCUMFERENCE","HEMOGLOBIN","WAIST_HEIGHT_RATIO","BODY_MASS_INDEX","ECG","GP_JOURNAL_ENTRY","GENERIC","C_PEPTIDE","RESPIRATORY_RATE","STEP_COUNTER","HEART_MINUTES","SLEEPING","BODY_FAT_PERCENTAGE","BASAL_METABOLIC_RATE","ACTIVE_MINUTES","QUANTITY","SIX_MINUTES_WALKING","TIMED_UP_AND_GO","COGNITIVE_MOTOR","GAIT_SPEED","BALANCE","EXECUTIVE_FUNCTION","PROCESSING_SPEED","ATTENTION","WORKING_MEMORY","EPISODIC_MEMORY","LONG_TERM_STRESS","SHORT_TERM_STRESS","HBA1C"]},"performer":{"description":"Who was responsible for asserting the observed value as \"true\".","$ref":"#/definitions/ReferencePayload"},"referenceRanges":{"type":"array","items":{"$ref":"#/definitions/ReferenceRangeObservationPayload"}},"references":{"type":"array","items":{"type":"string"}},"resourceType":{"type":"string"},"subject":{"description":"The patient whose characteristics (direct or indirect) are described by the observation and into whose record the observation is placed","$ref":"#/definitions/ReferencePayload"},"waist":{"description":"The waist circumference","$ref":"#/definitions/QuantityPayload"}},"title":"WaistCircumferenceObservationPayload"},"WaistCircumferenceObservationRequest":{"type":"object","required":["waist"],"properties":{"comment":{"type":"string","description":"Comment on the measurement."},"device":{"description":"${medsafe.observation.device}","$ref":"#/definitions/ReferencePayload"},"effective":{"$ref":"#/definitions/PastOrPresentPartialDatePayload"},"performer":{"description":"Who was responsible for asserting the observed value as \"true\".","$ref":"#/definitions/ReferencePayload"},"waist":{"type":"number","format":"double","description":"The waist circumference in catcimeters"}},"title":"WaistCircumferenceObservationRequest"},"WaistHeightRatioObservationPayload":{"type":"object","properties":{"comment":{"type":"string","description":"Comment on the measurement."},"context":{"description":"Context of the measurement (observation).","$ref":"#/definitions/ReferencePayload"},"device":{"description":"${medsafe.observation.device}","$ref":"#/definitions/ReferencePayload"},"effective":{"description":"Date and if possible time of the measurement.","$ref":"#/definitions/PastOrPresentPartialDatePayload"},"id":{"type":"string","description":"A unique identifier assigned to this observation."},"interpretation":{"description":"Interpretation of the measurement.","$ref":"#/definitions/CodeableConceptPayload"},"nhgCode":{"description":"NHG Code","$ref":"#/definitions/CodingPayload"},"observationType":{"type":"string","enum":["BLOOD_PRESSURE","BODY_WEIGHT","BODY_HEIGHT","BODY_TEMPERATURE","HEART_RATE","PULSE_RATE","OXYGEN_SATURATION","BLOOD_GLUCOSE","ALCOHOL_USE","TOBACCO_USE","DRUG_USE","LIVING_SITUATION","FAMILY_SITUATION","PARTICIPATION_IN_SOCIETY","FUNCTIONAL_OR_MENTAL_STATUS","LABORATORY_TEST_RESULT","WAIST_CIRCUMFERENCE","HEMOGLOBIN","WAIST_HEIGHT_RATIO","BODY_MASS_INDEX","ECG","GP_JOURNAL_ENTRY","GENERIC","C_PEPTIDE","RESPIRATORY_RATE","STEP_COUNTER","HEART_MINUTES","SLEEPING","BODY_FAT_PERCENTAGE","BASAL_METABOLIC_RATE","ACTIVE_MINUTES","QUANTITY","SIX_MINUTES_WALKING","TIMED_UP_AND_GO","COGNITIVE_MOTOR","GAIT_SPEED","BALANCE","EXECUTIVE_FUNCTION","PROCESSING_SPEED","ATTENTION","WORKING_MEMORY","EPISODIC_MEMORY","LONG_TERM_STRESS","SHORT_TERM_STRESS","HBA1C"]},"performer":{"description":"Who was responsible for asserting the observed value as \"true\".","$ref":"#/definitions/ReferencePayload"},"ratio":{"description":"The waist hip ratio","$ref":"#/definitions/QuantityPayload"},"referenceRanges":{"type":"array","items":{"$ref":"#/definitions/ReferenceRangeObservationPayload"}},"references":{"type":"array","items":{"type":"string"}},"resourceType":{"type":"string"},"subject":{"description":"The patient whose characteristics (direct or indirect) are described by the observation and into whose record the observation is placed","$ref":"#/definitions/ReferencePayload"}},"title":"WaistHeightRatioObservationPayload"},"WaistHeightRatioObservationRequest":{"type":"object","required":["ratio"],"properties":{"comment":{"type":"string","description":"Comment on the measurement."},"device":{"description":"${medsafe.observation.device}","$ref":"#/definitions/ReferencePayload"},"effective":{"$ref":"#/definitions/PastOrPresentPartialDatePayload"},"performer":{"description":"Who was responsible for asserting the observed value as \"true\".","$ref":"#/definitions/ReferencePayload"},"ratio":{"type":"number","format":"double","description":"The waist hip ratio"}},"title":"WaistHeightRatioObservationRequest"}}}