1 | {
|
2 | "post": {
|
3 | "tags": ["Documents"],
|
4 | "description": "Saves a Healthlink Referral or Discharge Document",
|
5 | "security": "=> auth()",
|
6 | "consumes": "=> xml()",
|
7 | "produces": "=> json()",
|
8 | "parameters": [
|
9 | {
|
10 | "in": "body",
|
11 | "name": "body",
|
12 | "description": "Body Payload containing HealthLink XML Document",
|
13 | "required": true,
|
14 | "schema": {
|
15 | "type": "string"
|
16 | }
|
17 | },
|
18 | {
|
19 | "name": "patientId",
|
20 | "in": "path",
|
21 | "description": "Patient Id",
|
22 | "required": true,
|
23 | "type": "string"
|
24 | },
|
25 | {
|
26 | "name": "host",
|
27 | "in": "path",
|
28 | "description": "OpenEHR Host System on which to save Document (eg marand, ethercis)",
|
29 | "required": true,
|
30 | "type": "string"
|
31 | }
|
32 | ],
|
33 | "responses": {
|
34 | "200": "=> get('response200.json', 'ref', 'postDocumentResponse')",
|
35 | "403": "=> get('response403.json')"
|
36 | }
|
37 | }
|
38 | } |
\ | No newline at end of file |