action ndhm_post_v0_5_links_link_add_contexts { label: "API for HIP initiated care-context linking for patient" description: "API to submit care-context to CM for HIP initiated linking. The API must accompany the \"accessToken\" fetched in the users/auth process. \n 1. subsequent usage for accessToken may be invalid if it was meant for one-time usage or if it expired\n" provider: ndhm method: POST path: "/v0.5/links/link/add-contexts" encoding: json input: { type: "object" properties: { Authorization: { type: "string" } link: { type: "object" required: ["accessToken", "patient"] properties: { accessToken: { type: "string" description: "AccessToken fetched in the user auth process for the purpose specified" } 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" } referenceNumber: { type: "string" description: "patient reference id at HIP" } } } } } requestId: { type: "string" format: "uuid" description: "a nonce, unique for each HTTP request" } timestamp: { type: "string" format: "date-time" description: "Date time format in UTC, includes miliseconds YYYY-MM-DDThh:mm:ss.vZ" } } required: ["Authorization", "link", "requestId", "timestamp"] additionalProperties: false } output: { type: "object" additionalProperties: true } }