Skip to content

Commit 7850b19

Browse files
committed
semantic errors
1 parent d6a4e94 commit 7850b19

File tree

1 file changed

+46
-20
lines changed

1 file changed

+46
-20
lines changed

specification/immunisation-fhir-api.json

Lines changed: 46 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -857,13 +857,13 @@
857857
"description": "Create Immunization operation successful",
858858
"headers": {
859859
"Location": {
860-
"$ref": "#/components/parameters/Location"
860+
"$ref": "#/components/headers/Location"
861861
},
862862
"CorrelationID": {
863-
"$ref": "#/components/parameters/CorrelationID"
863+
"$ref": "#/components/headers/CorrelationID"
864864
},
865865
"RequestID": {
866-
"$ref": "#/components/parameters/RequestID"
866+
"$ref": "#/components/headers/RequestID"
867867
}
868868
}
869869
},
@@ -1808,13 +1808,13 @@
18081808
"description": "Read Immunization operation successful",
18091809
"headers": {
18101810
"CorrelationID": {
1811-
"$ref": "#/components/parameters/CorrelationID"
1811+
"$ref": "#/components/headers/CorrelationID"
18121812
},
18131813
"RequestID": {
1814-
"$ref": "#/components/parameters/RequestID"
1814+
"$ref": "#/components/headers/RequestID"
18151815
},
18161816
"E-Tag": {
1817-
"$ref": "#/components/parameters/E-Tag"
1817+
"$ref": "#/components/headers/E-Tag"
18181818
}
18191819
},
18201820
"content": {
@@ -3554,10 +3554,10 @@
35543554
"description": "Update Immunization operation successful",
35553555
"headers": {
35563556
"CorrelationID": {
3557-
"$ref": "#/components/parameters/CorrelationID"
3557+
"$ref": "#/components/headers/CorrelationID"
35583558
},
35593559
"RequestID": {
3560-
"$ref": "#/components/parameters/RequestID"
3560+
"$ref": "#/components/headers/RequestID"
35613561
}
35623562
}
35633563
},
@@ -3682,6 +3682,43 @@
36823682
}
36833683
}
36843684
},
3685+
"headers": {
3686+
"CorrelationID": {
3687+
"required": false,
3688+
"description": "An optional ID which you can use to track transactions across multiple systems. It can take any value, but we recommend avoiding `.` characters.\n\nMirrored back in a response header.\n",
3689+
"schema": {
3690+
"type": "string",
3691+
"pattern": "^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$",
3692+
"example": "60E0B220-8136-4CA5-AE46-1D97EF59D068"
3693+
}
3694+
},
3695+
"RequestID": {
3696+
"required": false,
3697+
"description": "A globally unique identifier (GUID) for the request, which we use to de-duplicate repeated requests and to trace the request if you contact our helpdesk.\n\nMust be a universally unique identifier (UUID) (ideally version 4).\n\nMirrored back in a response header.\n\nIf you re-send a failed request, use the same value in this header.\n",
3698+
"schema": {
3699+
"type": "string",
3700+
"pattern": "^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$",
3701+
"example": "60E0B220-8136-4CA5-AE46-1D97EF59D068"
3702+
}
3703+
},
3704+
"Location": {
3705+
"required": true,
3706+
"description": "The location of the newly created Immunization record. It contains the resource ID at the end.",
3707+
"schema": {
3708+
"type": "string",
3709+
"pattern": "^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$",
3710+
"example": "60E0B220-8136-4CA5-AE46-1D97EF59D068"
3711+
}
3712+
},
3713+
"E-Tag": {
3714+
"required": true,
3715+
"description": "Indicates the current version of an Immunization resource",
3716+
"schema": {
3717+
"type": "integer",
3718+
"example": 1
3719+
}
3720+
}
3721+
},
36853722
"parameters": {
36863723
"Id": {
36873724
"in": "path",
@@ -3773,22 +3810,11 @@
37733810
"default": "Immunization:patient"
37743811
}
37753812
},
3776-
"Location": {
3777-
"in": "header",
3778-
"name": "location",
3779-
"required": true,
3780-
"description": "The location of newly created Immunization record. It contains resouce ID at the end.",
3781-
"schema": {
3782-
"type": "string",
3783-
"pattern": "^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$",
3784-
"example": "60E0B220-8136-4CA5-AE46-1D97EF59D068"
3785-
}
3786-
},
37873813
"E-Tag": {
37883814
"in": "header",
37893815
"name": "E-Tag",
37903816
"required": true,
3791-
"description": "Indicaes the current version of Immunization resource",
3817+
"description": "Indicates the current version of an Immunization resource",
37923818
"schema": {
37933819
"type": "integer",
37943820
"example": 1

0 commit comments

Comments
 (0)