Skip to content

Instantly share code, notes, and snippets.

@SarenCurrie
Created February 12, 2016 01:22
Show Gist options
  • Save SarenCurrie/2291edfccaeb4a779246 to your computer and use it in GitHub Desktop.
Save SarenCurrie/2291edfccaeb4a779246 to your computer and use it in GitHub Desktop.
{
"paths": {
"/Encounter": {
"get": {
"summary": "search encounter resource by patient identifier",
"parameters": [{
"name": "patient.identifier",
"in": "query",
"description": "The identifier of the patient",
"required": true,
"type": "string"
}, {
"name": "Accept",
"in": "header",
"description": "Content-Types that is acceptable for the response",
"required": false,
"type": "string",
"default": "application/json+fhir"
}],
"x-auth-type": "Application User",
"x-throttling-tier": "Unlimited",
"responses": {
"200": {
"description": "The request was fulfilled"
}
},
"produces": ["application/json+fhir", "application/xml+fhir"]
},
"options": {
"summary": "Preflight request for Cross-Origin Resource Sharing (CORS)",
"parameters": [{
"name": "patient.identifier",
"in": "query",
"description": "The identifier of the patient",
"required": true,
"type": "string"
}, {
"name": "Origin",
"in": "header",
"description": "The origin of the cross-site access preflight request",
"required": true,
"type": "string"
}, {
"name": "Access-Control-Request-Method",
"in": "header",
"description": "Requested Method, what HTTP method will be used when the actual request is made",
"required": false,
"type": "string"
}, {
"name": "Access-Control-Request-Headers",
"in": "header",
"description": "Requested Headers, what HTTP headers will be used when the actual request is made",
"required": false,
"type": "string"
}],
"x-auth-type": "None",
"x-throttling-tier": "Unlimited",
"produces": ["text/plain"],
"responses": {
"200": {
"description": "The request was fulfilled"
}
}
}
},
"/Encounter/_search": {
"post": {
"summary": "search - searches a set of resources based on filter criteria - POST support",
"parameters": [{
"name": "Content-Type",
"in": "header",
"description": "Content type of the body of the request",
"required": true,
"type": "string",
"default": "application/x-www-form-urlencoded"
}, {
"name": "patient.identifier",
"in": "query",
"description": "Patient identifier in the body of the request",
"required": true,
"type": "string"
}, {
"name": "Accept",
"in": "header",
"description": "Content-Types that is acceptable for the response",
"required": false,
"type": "string",
"default": "application/json+fhir"
}],
"x-auth-type": "Application User",
"x-throttling-tier": "Unlimited",
"responses": {
"200": {
"description": "The request was fulfilled"
}
},
"produces": ["application/json+fhir", "application/xml+fhir"],
"consumes": ["application/json+fhir", "application/xml+fhir"]
},
"options": {
"summary": "Preflight request for Cross-Origin Resource Sharing (CORS)",
"parameters": [{
"name": "patient.identifier",
"in": "query",
"description": "Patient identifier in the body of the request",
"required": true,
"type": "string"
}, {
"name": "Origin",
"in": "header",
"description": "The origin of the cross-site access preflight request",
"required": true,
"type": "string"
}, {
"name": "Access-Control-Request-Method",
"in": "header",
"description": "Requested Method, what HTTP method will be used when the actual request is made",
"required": false,
"type": "string"
}, {
"name": "Access-Control-Request-Headers",
"in": "header",
"description": "Requested Headers, what HTTP headers will be used when the actual request is made",
"required": false,
"type": "string"
}],
"x-auth-type": "None",
"x-throttling-tier": "Unlimited",
"produces": ["text/plain"],
"responses": {
"200": {
"description": "The request was fulfilled"
}
}
}
}
},
"swagger": "2.0",
"info": {
"title": "fhir-encounter",
"version": "dstu2",
"description": "Search encounter by patient id."
},
"basePath": "/t/api.students.com/fhir-encounter/dstu2",
"host": "api.apimanager.dev.odl.io:443"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment