action ndhm_post_v0_5_care_contexts_on_discover { label: "Response to patient's account discovery request" description: "Result of patient care-context discovery request at HIP end. If a matching patient found with zero or more care contexts associated, it is specified as result attribute. If the prior discovery request, resulted in errors then it is specified in the error attribute. Reasons of errors can be \n 1. **more than one definitive match for the given request** \n 2. **no verified identifer was specified**\n" provider: ndhm method: POST path: "/v0.5/care-contexts/on-discover" encoding: json input: { type: "object" properties: { Authorization: { type: "string" } error: { type: "object" required: ["code", "message"] properties: { code: { type: "integer" enum: [1000, 10001] } message: { type: "string" } } } patient: { type: "object" required: ["careContexts", "display", "referenceNumber"] properties: { careContexts: { type: "array" items: { type: "object" required: ["referenceNumber", "display"] properties: { display: { type: "string" } referenceNumber: { type: "string" } } } } display: { type: "string" } matchedBy: { type: "array" items: { type: "string" enum: ["MOBILE", "MR"] } } referenceNumber: { type: "string" } } } requestId: { type: "string" format: "uuid" description: "a nonce, unique for each HTTP request" } resp: { type: "object" required: ["requestId"] properties: { requestId: { type: "string" format: "uuid" description: "the requestId that was passed" } } } timestamp: { type: "string" format: "date-time" description: "Date time format in UTC, includes miliseconds YYYY-MM-DDThh:mm:ss.vZ" } transactionId: { type: "string" format: "uuid" } } required: ["Authorization", "requestId", "resp", "timestamp", "transactionId"] additionalProperties: false } output: { type: "object" additionalProperties: true } }