NAV Navbar
Shell JavaScript Node.JS Python Ruby Java C#
  • Carefluence FHIR Server
  • Terms of Use
  • Introduction
  • Discovery
  • Dynamic Client Registration
  • Authorization
  • AllergyIntolerance
  • Basic
  • CarePlan
  • ClinicalImpression
  • Condition(Problems)
  • Condition(Health Concerns)
  • Device
  • Encounter
  • Goal
  • Immunization
  • MedicationStatement
  • Observation(Lab Results)
  • Observation(Vital signs)
  • Observation(Social history)
  • Patient
  • Practitioner
  • Procedure
  • ReferralRequest
  • Carefluence FHIR Server v1.0.1

    Scroll down for code samples, example requests and responses. Select a language for code samples from the tabs above or the mobile navigation menu.

    Carefluence FHIR server is a congruent RESTful webservice developed on HL7 FHIR DSTU2 standards. This document should give you a clear picture of the service communication and the FHIR resources. If you have any queries or problems connecting to the service, please contact support@carefluence.com.

    Introduction

    Carefluence platform is accessible only with a HTTPS connection so that the data being exchanged is exclusively protected with TLS 1.2 cypher suites and to provide maximum security to the data on the wire and only the server or the client browser can decrypt the data.

    Carefluence platform has got its own OAuth provider implemented on the OAuth 2.0 protocol and works with all the OAuth Grant types like authorization_code, implicit, etc. For more information of OAuth 2.0 protocol, please visit to RFC 6749.

    Discovery

    Carefluence FHIR Service exposes the metadata in the format of the FHIR conformance statement. The conformance statement can be obtained by appending '/metadata' to the FHIR Service URL. The metadata is freely accessible from any domain and without any restrictions or token. The 'Accept' can be sent with the request to get the response in a preferred media type.

    The metadata also complies with the SMART on FHIR profile which allows the discovery of authorization server and dynamic client registeration endpoint. In a typical FHIR conformance statement, the authorization and token URLs information can be traced from the security profile of the conformance:

    
    {   "extension": [
        {
          "url": "http://fhir-registry.smarthealthit.org/StructureDefinition/oauth-uris",
          "extension": [
            {
            "url": "register",
            "valueUri": "https://carefluence.acumenehr.com/carefluence/oauth/register"
            },
            {
             "url": "authorize",
             "valueUri": "https://carefluence.acumenehr.com/carefluence/oauth/authorize"
            },
            {
             "url": "token",
             "valueUri": "https://carefluence.acumenehr.com/carefluence/oauth/token"
            }
            ]
          }
        ]
    }
    
    

    The client Apps can dynamically register themselves with the Carefluence platform. The App developer would need to register his/her email address and the App name on the Carefluence platform. After successfully registering with the carefluence, the App developer would be given a token to register the app. The Carefluence's dynamic client registration end-point is access-protected and would require the requests to have Authorization header with the bearer token. For more information of Dynamic Client Register, please visit to RFC 7591.

    Carefluence FHIR service is a Oauth protected resource server which shall always validate the access token and is CORS supported for your AJAX queries. Please check the following URLs to communicate to the OAuth provider and the resource services.

    Carefluence End-Point URL
    Dynamic Client Registration * https://carefluence.acumenehr.com/carefluence/oauth/register
    Authorization URL * https://carefluence.acumenehr.com/carefluence/oauth/authorize
    Token URL * https://carefluence.acumenehr.com/carefluence/oauth/token
    FHIR Service * https://carefluence.acumenehr.com/carefluenceioit/

    Dynamic Client Registration

    The App developer needs to visit the Carefluence Admin Portal and self-register his/her details. Post registration, an initial-access token will be sent to the email address which should be used while registering the App dynamically. As per RFC [RFC 7591], the token may be sent to the dynamic client registration endpoint as a bearer token under Authorization header.

    POST /OAuth/Register

    alt text

    The consumer applications require to submit the following details while registering at the Dynamic Client Registration Endpoint:

    Code samples

    # You can also use wget
    curl -X POST https://carefluence.acumenehr.com/carefluence/oauth/register \
      -H 'Accept: application/json+fhir' -H 'Authorization: {MyAccessToken}' -d '{  "redirect_uris": "{MyCallBackURI}",  "client_name": "My Demo App",  "client_url": null,  "grant_types": ["implicit"],  "logo_url": null,  "contacts": null,"tos_url": null}'
    
    var headers = {
                'Accept':'application/json+fhir',
                'Authorization' : 'Bearer {MyAccessToken}',
    };
    var ClientMetadata ={
                "redirect_uris": "{MyCallBackURI}",
                "client_name": "My Demo App",
                "client_url": null,
                "grant_types": ["implicit"],
                "logo_url": null,
                "contacts": null,
                "tos_url": null
    };
    $.ajax({
                url: 'https://carefluence.acumenehr.com/carefluence/oauth/register',
                method: 'post',
                headers: headers,
                success: function(ClientMetadata) {
                console.log(JSON.stringify(ClientMetadata));
                }
    })
    
    var ClientMetadata ={
                "redirect_uris": "{MyCallBackURI}",
                "client_name": "My Demo App",
                "client_url": null,
                "grant_types": ["implicit"],
                "logo_url": null,
                "contacts": null,
                "tos_url": null
    }
    const request = require('node-fetch');
    const headers = {
                'Accept':'application/json',
                'Authorization': {MyAccessToken},
    };
    fetch('https://carefluence.acumenehr.com/carefluence/oauth/register',
    {
                method: 'POST',
                headers: headers,
                body: ClientMetadata.json()
    })
    .then(function(res) {
                return res.json();
    }).then(function(body) {
                console.log(body);
    });
    
    require 'rest-client'
    require 'json'
    headers = {
                'content_type' => 'json',
                'Accept' => 'application/json',
                'Authorization' => '{MyAccessToken}',
    }
    result = RestClient.post 'https://carefluence.acumenehr.com/carefluence/oauth/register',
                {
                'redirect_uris' => '{MyCallBackURI}',
                'client_name' => 'My Demo App',
                'client_url' => '',
                'grant_types' => ['implicit'],
                'logo_url' => null,
                'contacts' => null,
                'tos_url' => null
    }.to_json, headers: headers
    p JSON.parse(result)
    
    import requests
    headers = {
                'Accept': 'application/json',
                'Authorization': '{MyAccessToken}'
    }
    r = requests.post('https://carefluence.acumenehr.com/carefluence/oauth/register', params={
    json={
                "redirect_uris": "{MyCallBackURI}",
                "client_name": "My Demo App",
                "client_url": null,
                "grant_types": ["implicit"],
                "logo_url": null,
                "contacts": null,
                "tos_url": null
    }
    }, headers = headers)
    print r.json()
    
    URL obj = new URL("https://carefluence.acumenehr.com/carefluence/oauth/register");
    HttpURLConnection con = (HttpURLConnection) obj.openConnection();
    con.setRequestMethod("POST");
    con.setRequestProperty("Authorization", "Bearer {MyAccessToken}");
    int responseCode = con.getResponseCode();
    BufferedReader in = new BufferedReader(
                new InputStreamReader(con.getInputStream()));
    String inputLine="{
      'redirect_uris' : '{MyCallBackURI}',
      'client_name' : 'My Demo App',
      'client_url' : '',
      'grant_types' : ['implicit'],
      'logo_url' : null,
      'contacts' : null,
      'tos_url' : null
    }";
    StringBuffer response = new StringBuffer();
    while ((inputLine = in.readLine()) != null) {
                response.append(inputLine);
    }
    in.close();
    System.out.println(response.toString());
    
    String myAppDetails =  @"{ 
      'redirect_uris': '{MyCallBackURI}',
                'client_name': 'My Demo App',
                'client_url': '',
                'grant_types': ['implicit'],
                'logo_url': '',
                'contacts': '',
                'tos_url': ''
    }";
    
    var registerRequest = (HttpWebRequest)WebRequest.Create("https://carefluence.acumenehr.com/carefluence/oauth/register");
                registerRequest.Method = "POST";
                registerRequest.Headers.Add(HttpRequestHeader.Authorization, "Bearer " + "{MyAccessToken}");
                registerRequest.ContentType = "application/json";
                using (var stream = registerRequest.GetRequestStream())
                {
                stream.Write(myAppDetails, 0, myAppDetails.Length);
                }
                string AppRegisteredDetails = string.Empty;
                using (HttpWebResponse response = (HttpWebResponse)registerRequest.GetResponse())
                using (StreamReader reader = new StreamReader(response.GetResponseStream()))
                {
                var streamData = Encoding.UTF8.GetString(Convert.FromBase64String(reader.ReadToEnd()));
                AppRegisteredDetails = streamData;
                }
                Console.Write(AppRegisteredDetails);
    

    Example responses


             HTTP/1.1 201 Created
         Content-Type: application/json
         Cache-Control: no-store
         Pragma: no-cache
         {
          "client_id": "b99f1276-015b-d43f-265c-6b3d43f06058",
          "client_secret": "aca89211-ae60-a17e-3dd4-8b939c365fab",
          "redirect_uris": [
            "https://client.example.org/callback",
            "https://client.example.org/callback2"],
          "grant_types": ["authorization_code"],
          "client_name": "My Example Client",
          "logo_uri": "https://client.example.org/logo.png",
          "tos_uri": "https://client.example.org/tos/disclaimer.html"
         }
    

    Authorization

    Per OAuth 2.0 protocol, the consumer applications can be categorized into two types viz public apps and confidential apps. The public apps are launched through an IDP (Identity provider) to authenticate the user and acquire the user-authorization before an access token is issued by the oauth provider. These kind of Apps should be able to launch the browser or user agent to navigate the user through authentication and authorization process. The confidential apps are highly trusted and deployed and operate through within the intranet of the vendors. These apps are authenticated through the cosumer key/app key and secret.

    Scope Scope Description
    user/*.write create or update patient resources
    user/*.read read patient resources
    user/*.read-{patientid} read a specific patient resources
    
    

    AllergyIntolerance

    GET /AllergyIntolerance

    Code samples

    # You can also use wget
    curl -X GET https://carefluence.acumenehr.com/fhir/AllergyIntolerance \
      -H 'Accept: application/json+fhir'
    
    GET https://carefluence.acumenehr.com/fhir/AllergyIntolerance HTTP/1.1
    Host: localhost
    Accept: application/json+fhir
    
    var headers = {
                'Accept':'application/json+fhir'
    };
    $.ajax({
                url: 'https://carefluence.acumenehr.com/fhir/AllergyIntolerance',
                method: 'get',
                headers: headers,
                success: function(data) {
                console.log(JSON.stringify(data));
                }
    })
    
    const request = require('node-fetch');
    const headers = {
                'Accept':'application/json+fhir'
    };
    fetch('https://carefluence.acumenehr.com/fhir/AllergyIntolerance',
    {
                method: 'GET',
                headers: headers
    })
    .then(function(res) {
                return res.json();
    }).then(function(body) {
                console.log(body);
    });
    
    require 'rest-client'
    require 'json'
    headers = {
                'Accept' => 'application/json+fhir'
    }
    result = RestClient.get 'https://carefluence.acumenehr.com/fhir/AllergyIntolerance',
                params: {
                }, headers: headers
    p JSON.parse(result)
    
    import requests
    headers = {
                'Accept': 'application/json+fhir'
    }
    r = requests.get('https://carefluence.acumenehr.com/fhir/AllergyIntolerance', params={
    }, headers = headers)
    print r.json()
    
    URL obj = new URL("https://carefluence.acumenehr.com/fhir/AllergyIntolerance");
    HttpURLConnection con = (HttpURLConnection) obj.openConnection();
    con.setRequestMethod("GET");
    int responseCode = con.getResponseCode();
    BufferedReader in = new BufferedReader(
                new InputStreamReader(con.getInputStream()));
    String inputLine;
    StringBuffer response = new StringBuffer();
    while ((inputLine = in.readLine()) != null) {
                response.append(inputLine);
    }
    in.close();
    System.out.println(response.toString());
    
        public class APIManager
                {
                private string SMARTServerURL = "https://carefluence.acumenehr.com/fhir/"; //FHIR server.
                private string SMARTAuthorizeURL = ConfigurationSettings.AppSettings["SMARTAuthorizeURL"];
                private string SMARTTokenURL = ConfigurationSettings.AppSettings["SMARTTokenURL"]; 
                private string ClientId = ConfigurationSettings.AppSettings["ClientId"];
                private string ClientSecret = ConfigurationSettings.AppSettings["ClientSecret"];
                private string Scope = ConfigurationSettings.AppSettings["Scope"];
                private string Format = "json";
                private FhirClient Client;
                public APIManager()
                {
                InitializeClient();
                }
                public APIManager(string iServerURL, string iTokenURL, string iClientId, string iClientSecret, string iScope)
                {
                SMARTServerURL = iServerURL;
                SMARTTokenURL = iTokenURL;
                ClientId = iClientId;
                ClientSecret = iClientSecret;
                Scope = iScope;
                InitializeClient();
                }
                public void InitializeClient()
                {
                Client = new FhirClient(SMARTServerURL, SMARTTokenURL, ClientId, ClientSecret, Scope, "user_id", "user_password");
                Client.TimeOut = 60000;
                }
                public string SearchResource(string pType, List<string> pSearchParams)
                { 
                Stream ReadStream = Client.Read(pType, pResourceId);
                StreamReader reader = new StreamReader(ReadStream);
                string Result = reader.ReadToEnd();
                return Result;
                }
                }
                public static void Main(string[] args)
                {
                APIManager Mgr = new APIManager();
                //Search Patient's allergies By patient account number
                List<string> SearchParameters = new List<string>();
                string param = "patient=" + "2";
                SearchParameters.Add(param);
                string PatientSearchResult = Mgr.SearchResource("AllergyIntolerance", SearchParameters);
                System.Console.WriteLine(PatientSearchResult); 
                }
    

    *Search allergies of the patients.

    Parameters

    Parameter In Type Required Description
    date query string(date) false Allergy recorded date in yyyy-mm-dd format
    patient query string true Patient ID (Org_ChartNumber)

    Example responses


    {
      "resourceType": "Bundle",
      "id": "bundle-example",
      "meta": {
        "lastUpdated": ""
      },
      "type": "searchset",
      "base": "",
      "total": 50,
      "link": [
        {
          "relation": "self",
          "url": "https://carefluence.acumenehr.com/fhir/AllergyIntolerance?patient=ORG_CHART"
        },
        {
          "relation": "next",
          "url": "https://carefluence.acumenehr.com/fhir/AllergyIntolerance?patient=ORG_CHART&searchId=gx3_11212&page=2"
        }
      ],
      "entry": [
        {
          "resource": {
        "resourceType": "AllergyIntolerance",
        "id": {
          "-value": "BLAfHeGc0"
        },
        "recordedDate": {
          "-value": "05/10/1980"
        },
        "patient": {
          "reference": {
            "-value": "Patient/ORG_CHART"
          },
          "display": {
            "-value": "Newman, Alice Jones"
          }
        },
        "substance": {
          "coding": {
            "system": {
              "-value": "RxNorm"
            },
            "code": {
              "-value": "1009148"
            }
          },
          "text": {
            "-value": "ampicillin-sulbactam"
          }
        },
        "status": {
          "-value": "confirmed"
        },
        "event": {
          "manifestation": {
            "coding": {
              "system": {
                "-value": "SNOMED-CT"
              },
              "code": {
                "-value": "64305001"
              }
            },
            "text": {
              "-value": "urticaria (hives)"
            }
          },
          "severity": {
            "extension": {
              "-url": "http://phinvads.cdc.gov/vads/ViewValueSet.action?oid=2.16.840.1.113883.3.88.12.3221.6.8",
              "valueCodeableConcept": {
                "coding": {
                  "system": {
                    "-value": "SNOMED-CT"
                  },
                  "code": {
                    "-value": "6736007"
                  },
                  "display": {
                    "-value": "Moderate"
                  }
                }
              }
            }
          }
        }
      }
     }
     ]
    }
    

    Responses

    Status Meaning Description Schema
    200 OK Success Inline

    Basic

    POST /Basic

    Code samples

    # You can also use wget
    curl -X POST https://carefluence.acumenehr.com/fhir/Basic \
      -H 'Content-Type: application/json'
    
    POST https://carefluence.acumenehr.com/fhir/Basic HTTP/1.1
    Host: localhost
    Content-Type: application/json
    
    var headers = {
                'Content-Type':'application/json'
    };
    $.ajax({
                url: 'https://carefluence.acumenehr.com/fhir/Basic',
                method: 'post',
                headers: headers,
                success: function(data) {
                console.log(JSON.stringify(data));
                }
    })
    
    const request = require('node-fetch');
    const inputBody = '{
      "resourceType": "Basic",
      "id": "referral",
          "modifierExtension": [
             {
                "valuePeriod": {
                   "start": {
                      "value": "2015-01-01"
                   },
                   "end": {
                      "value": "2017-01-01"
                   }
                },
                "url": "http://example.org/do-not-use/fhir-extensions/GenerateCCDA#targetDate"
             },
             {
                "valueCode": {
                   "value": "complete"
                },
                "url": "http://example.org/do-not-use/fhir-extensions/ccda#status"
             }
          ],
          "code": {
             "coding": {
                "system": {
                   "value": "http://hl7.org/fhir/basic-resource-type"
                },
                "code": {
                   "value": "GenerateCCDA"
                }
             }
          },
          "subject": {
             "reference": {
                "value": "Patient/2"
             }
          },
          "author": {
             "reference": {
                "value": "Practitioner/2184"
             }
          }
    }';
    const headers = {
                'Content-Type':'application/json'
    };
    fetch('https://carefluence.acumenehr.com/fhir/Basic',
    {
                method: 'POST',
                body: inputBody,
                headers: headers
    })
    .then(function(res) {
                return res.json();
    }).then(function(body) {
                console.log(body);
    });
    
    require 'rest-client'
    require 'json'
    headers = {
                'Content-Type' => 'application/json'
    }
    result = RestClient.post 'https://carefluence.acumenehr.com/fhir/Basic',
                params: {
                }, headers: headers
    p JSON.parse(result)
    
    import requests
    headers = {
                'Content-Type': 'application/json'
    }
    r = requests.post('https://carefluence.acumenehr.com/fhir/Basic', params={
    }, headers = headers)
    print r.json()
    
    URL obj = new URL("https://carefluence.acumenehr.com/fhir/Basic");
    HttpURLConnection con = (HttpURLConnection) obj.openConnection();
    con.setRequestMethod("POST");
    int responseCode = con.getResponseCode();
    BufferedReader in = new BufferedReader(
                new InputStreamReader(con.getInputStream()));
    String inputLine;
    StringBuffer response = new StringBuffer();
    while ((inputLine = in.readLine()) != null) {
                response.append(inputLine);
    }
    in.close();
    System.out.println(response.toString());
    

    *Create CCDA

    Body parameter

    
            {
      "resourceType": "Basic",
      "id": "referral",
          "modifierExtension": [
             {
                "valuePeriod": {
                   "start": {
                      "value": "{start date for the data search in yyyy-mm-dd format}"
                   },
                   "end": {
                      "value": "{end date for the data search in yyyy-mm-dd format}"
                   }
                },
                "url": "http://example.org/do-not-use/fhir-extensions/GenerateCCDA#targetDate"
             },
             {
                "valueCode": {
                   "value": "complete"
                },
                "url": "http://example.org/do-not-use/fhir-extensions/{ccda switch}#status" //ccda - referral
             }
          ],
          "code": {
             "coding": {
                "system": {
                   "value": "http://hl7.org/fhir/basic-resource-type"
                },
                "code": {
                   "value": "GenerateCCDA"
                }
             }
          },
          "subject": {
             "reference": {
                "value": "Patient/{patientid}"
             }
          },
          "author": {
             "reference": {
                "value": "Practitioner/{providerid}"
             }
          }
    }
        

    Parameters

    Parameter In Type Required Description
    body body Basic true No description

    Responses

    Status Meaning Description Schema
    200 OK Success CDA 2.1(XML)

    Example responses


    > #Returns the newly generated CDA 2.1 stream with the XML media type.
    
    > #Returns the newly generated CDA 2.1 stream with the XML media type.
    
    > #Returns the newly generated CDA 2.1 stream with the XML media type.
    
    > #Returns the newly generated CDA 2.1 stream with the XML media type.
    
    > #Returns the newly generated CDA 2.1 stream with the XML media type.
    
    > #Returns the newly generated CDA 2.1 stream with the XML media type.
    

    CarePlan

    GET /CarePlan

    Code samples

    # You can also use wget
    curl -X GET https://carefluence.acumenehr.com/fhir/CarePlan \
      -H 'Accept: application/json+fhir'
    
    GET https://carefluence.acumenehr.com/fhir/CarePlan HTTP/1.1
    Host: localhost
    Accept: application/json+fhir
    
    var headers = {
                'Accept':'application/json+fhir'
    };
    $.ajax({
                url: 'https://carefluence.acumenehr.com/fhir/CarePlan',
                method: 'get',
                headers: headers,
                success: function(data) {
                console.log(JSON.stringify(data));
                }
    })
    
    const request = require('node-fetch');
    const headers = {
                'Accept':'application/json+fhir'
    };
    fetch('https://carefluence.acumenehr.com/fhir/CarePlan',
    {
                method: 'GET',
                headers: headers
    })
    .then(function(res) {
                return res.json();
    }).then(function(body) {
                console.log(body);
    });
    
    require 'rest-client'
    require 'json'
    headers = {
                'Accept' => 'application/json+fhir'
    }
    result = RestClient.get 'https://carefluence.acumenehr.com/fhir/CarePlan',
                params: {
                }, headers: headers
    p JSON.parse(result)
    
    import requests
    headers = {
                'Accept': 'application/json+fhir'
    }
    r = requests.get('https://carefluence.acumenehr.com/fhir/CarePlan', params={
    }, headers = headers)
    print r.json()
    
    URL obj = new URL("https://carefluence.acumenehr.com/fhir/CarePlan");
    HttpURLConnection con = (HttpURLConnection) obj.openConnection();
    con.setRequestMethod("GET");
    int responseCode = con.getResponseCode();
    BufferedReader in = new BufferedReader(
                new InputStreamReader(con.getInputStream()));
    String inputLine;
    StringBuffer response = new StringBuffer();
    while ((inputLine = in.readLine()) != null) {
                response.append(inputLine);
    }
    in.close();
    System.out.println(response.toString());
    
        public class APIManager
                {
                private string SMARTServerURL = "https://carefluence.acumenehr.com/fhir/"; //FHIR server.
                private string SMARTAuthorizeURL = ConfigurationSettings.AppSettings["SMARTAuthorizeURL"];
                private string SMARTTokenURL = ConfigurationSettings.AppSettings["SMARTTokenURL"]; 
                private string ClientId = ConfigurationSettings.AppSettings["ClientId"];
                private string ClientSecret = ConfigurationSettings.AppSettings["ClientSecret"];
                private string Scope = ConfigurationSettings.AppSettings["Scope"];
                private string Format = "json";
                private FhirClient Client;
                public APIManager()
                {
                InitializeClient();
                }
                public APIManager(string iServerURL, string iTokenURL, string iClientId, string iClientSecret, string iScope)
                {
                SMARTServerURL = iServerURL;
                SMARTTokenURL = iTokenURL;
                ClientId = iClientId;
                ClientSecret = iClientSecret;
                Scope = iScope;
                InitializeClient();
                }
                public void InitializeClient()
                {
                Client = new FhirClient(SMARTServerURL, SMARTTokenURL, ClientId, ClientSecret, Scope, "user_id", "user_password");
                Client.TimeOut = 60000;
                }
                public string SearchResource(string pType, List<string> pSearchParams)
                { 
                Stream ReadStream = Client.Read(pType, pResourceId);
                StreamReader reader = new StreamReader(ReadStream);
                string Result = reader.ReadToEnd();
                return Result;
                }
                }
                public static void Main(string[] args)
                {
                APIManager Mgr = new APIManager();
                //Search Patient's allergies By patient account number
                List<string> SearchParameters = new List<string>();
                string param = "patient=" + "2";
                SearchParameters.Add(param);
                string PatientSearchResult = Mgr.SearchResource("CarePlan", SearchParameters);
                System.Console.WriteLine(PatientSearchResult); 
                }
    

    *Search CarePlans by the given keys.

    Parameters

    Parameter In Type Required Description
    patient query string true Patient ID (Org_ChartNumber).
    date query string(date) false Search the resources by the date range.

    Example responses


    {
      "resourceType": "Bundle",
      "id": "bundle-example",
      "meta": {
        "lastUpdated": ""
      },
      "type": "searchset",
      "base": "",
      "total": 50,
      "link": [
        {
          "relation": "self",
          "url": "https://carefluence.acumenehr.com/fhir/CarePlan?patient=ORG_CHART"
        },
        {
          "relation": "next",
          "url": "https://carefluence.acumenehr.com/fhir/CarePlan?patient=ORG_CHART&searchId=gx3_112asx12&page=2"
        }
      ],
      "entry": [
        {
          "resource": {
                "resourceType": "CarePlan",
                "id": "zzd123i92sa",
              "contained": [
                {
                  "Condition": {
                    "id": {
                      "-value": "WMLzfESk0"
                    },
                    "dateAsserted": {
                      "-value": "06/22/2015 09:38:18"
                    },
                    "category": {
                      "coding": {
                        "system": {
                          "-value": "http://hl7.org/fhir/vs/condition-category"
                        },
                        "code": {
                          "-value": "concern"
                        }
                      },
                      "text": {}
                    },
                    "notes": {
                      "-value": "Chronic Sickness exhibited by patient"
                    }
                  }
                },
                {
                  "Condition": {
                    "id": {
                      "-value": "qj6SVsSz0"
                    },
                    "dateAsserted": {
                      "-value": "06/22/2015 09:38:18"
                    },
                    "category": {
                      "coding": {
                        "system": {
                          "-value": "http://hl7.org/fhir/vs/condition-category"
                        },
                        "code": {
                          "-value": "concern"
                        }
                      },
                      "text": {}
                    },
                    "notes": {
                      "-value": "HealthCare Concerns refer to underlying clinical facts i. Documented HyperTension problem ii. Documented HypoThyroidism problem iii. Watch Weight of patient"
                    }
                  }
                },
                {
                  "Goal": {
                    "id": {
                      "-value": "Pyf8sJUA0"
                    },
                    "targetDate": {
                      "-value": "06/22/2015 09:38:18"
                    },
                    "description": {
                      "-value": ", Get rid of intermittent fever that is occurring every few weeks., Need to gain more energy to do regular activities"
                    }
                  }
                },
                {
                  "ReferralRequest": {
                    "id": {
                      "-value": "_tReferralRequest_oP0H9pc50"
                    },
                    "description": {
                      "-value": "Ms Alice Newman is being referred to Community Health Hospitals Inpatient facility because of the high fever noticed and suspected Anemia."
                    },
                    "fulfillmentTime": {
                      "start": {
                        "-value": "05/24/2017 16:08:42"
                      }
                    }
                  }
                },
                {
                  "ClinicalImpression": {
                    "id": {
                      "-value": "ESINXuZr0"
                    },
                    "date": {
                      "-value": "06/22/2015 09:38:18"
                    },
                    "summary": {
                      "-value": "The patient was found to have fever and Dr. Davis is suspecting Anemia based on the patient history. So Dr. Davis asked the patient to closely monitor the temperature and blood pressure and get admitted to Community Health Hospitals if the fever does not subside within a da"
                    }
                  }
                }
              ],
              "patient": {
                "reference": {
                  "-value": "Patient/ORG_CHART"
                },
                "display": {
                  "-value": "Newman, Alice Jones"
                }
              },
              "period": {
                "start": {
                  "-value": "06/22/2015 09:38:18"
                },
                "end": {}
              },
              "modified": {},
              "concern": [
                {
                  "reference": {
                    "-value": "#WMLzfESk0"
                  }
                },
                {
                  "reference": {
                    "-value": "#qj6SVsSz0"
                  }
                }
              ],
              "goal": {
                "reference": {
                  "-value": "#Pyf8sJUA0"
                }
              },
              "activity": [
                {
                  "detail": {
                    "category": {
                      "-value": "other"
                    },
                    "scheduledPeriod": {
                      "start": {
                        "-value": "06/22/2015 09:38:18"
                      },
                      "end": {}
                    },
                    "note": {
                      "-value": "i. Get an EKG done on 6/23/2015. ii. Get a Chest X-ray done on 6/23/2015 showing the Lower Respiratory Tract Structure. iii. Take Clindamycin 300mg three times a day as needed if pain does not subside. iv. Schedule follow on visit with Neighborhood Physicians Practice on 7/1/2015."
                    }
                  }
                },
                {
                  "reference": {
                    "reference": {
                      "-value": "#_tReferralRequest_oP0H9pc50"
                    }
                  },
                  "detail": {
                    "category": {
                      "-value": "encounter"
                    },
                    "scheduledPeriod": {
                      "start": {
                        "-value": "05/24/2017 16:08:42"
                      },
                      "end": {}
                    },
                    "note": {
                      "-value": "Ms Alice Newman is being referred to Community Health Hospitals Inpatient facility because of the high fever noticed and suspected Anemia."
                    }
                  }
                }
              ],
              "notes": {
                "-value": "The patient was found to have fever and Dr. Davis is suspecting Anemia based on the patient history. So Dr. Davis asked the patient to closely monitor the temperature and blood pressure and get admitted to Community Health Hospitals if the fever does not subside within a da"
              }
            }
            }
        ]
     }
    

    Responses

    Status Meaning Description Schema
    200 OK Success Inline

    ClinicalImpression

    GET /ClinicalImpression

    Code samples

    # You can also use wget
    curl -X GET https://carefluence.acumenehr.com/fhir/ClinicalImpression \
      -H 'Accept: application/json+fhir'
    
    GET https://carefluence.acumenehr.com/fhir/ClinicalImpression HTTP/1.1
    Host: localhost
    Accept: application/json+fhir
    
    var headers = {
                'Accept':'application/json+fhir'
    };
    $.ajax({
                url: 'https://carefluence.acumenehr.com/fhir/ClinicalImpression',
                method: 'get',
                headers: headers,
                success: function(data) {
                console.log(JSON.stringify(data));
                }
    })
    
    const request = require('node-fetch');
    const headers = {
                'Accept':'application/json+fhir'
    };
    fetch('https://carefluence.acumenehr.com/fhir/ClinicalImpression',
    {
                method: 'GET',
                headers: headers
    })
    .then(function(res) {
                return res.json();
    }).then(function(body) {
                console.log(body);
    });
    
    require 'rest-client'
    require 'json'
    headers = {
                'Accept' => 'application/json+fhir'
    }
    result = RestClient.get 'https://carefluence.acumenehr.com/fhir/ClinicalImpression',
                params: {
                }, headers: headers
    p JSON.parse(result)
    
    import requests
    headers = {
                'Accept': 'application/json+fhir'
    }
    r = requests.get('https://carefluence.acumenehr.com/fhir/ClinicalImpression', params={
    }, headers = headers)
    print r.json()
    
    URL obj = new URL("https://carefluence.acumenehr.com/fhir/ClinicalImpression");
    HttpURLConnection con = (HttpURLConnection) obj.openConnection();
    con.setRequestMethod("GET");
    int responseCode = con.getResponseCode();
    BufferedReader in = new BufferedReader(
                new InputStreamReader(con.getInputStream()));
    String inputLine;
    StringBuffer response = new StringBuffer();
    while ((inputLine = in.readLine()) != null) {
                response.append(inputLine);
    }
    in.close();
    System.out.println(response.toString());
    
        public class APIManager
                {
                private string SMARTServerURL = "https://carefluence.acumenehr.com/fhir/"; //FHIR server.
                private string SMARTAuthorizeURL = ConfigurationSettings.AppSettings["SMARTAuthorizeURL"];
                private string SMARTTokenURL = ConfigurationSettings.AppSettings["SMARTTokenURL"]; 
                private string ClientId = ConfigurationSettings.AppSettings["ClientId"];
                private string ClientSecret = ConfigurationSettings.AppSettings["ClientSecret"];
                private string Scope = ConfigurationSettings.AppSettings["Scope"];
                private string Format = "json";
                private FhirClient Client;
                public APIManager()
                {
                InitializeClient();
                }
                public APIManager(string iServerURL, string iTokenURL, string iClientId, string iClientSecret, string iScope)
                {
                SMARTServerURL = iServerURL;
                SMARTTokenURL = iTokenURL;
                ClientId = iClientId;
                ClientSecret = iClientSecret;
                Scope = iScope;
                InitializeClient();
                }
                public void InitializeClient()
                {
                Client = new FhirClient(SMARTServerURL, SMARTTokenURL, ClientId, ClientSecret, Scope, "user_id", "user_password");
                Client.TimeOut = 60000;
                }
                public string SearchResource(string pType, List<string> pSearchParams)
                { 
                Stream ReadStream = Client.Read(pType, pResourceId);
                StreamReader reader = new StreamReader(ReadStream);
                string Result = reader.ReadToEnd();
                return Result;
                }
                }
                public static void Main(string[] args)
                {
                APIManager Mgr = new APIManager();
                //Search Patient's clinical impressions by patient account number
                List<string> SearchParameters = new List<string>();
                string param = "patient=" + "2";
                SearchParameters.Add(param);
                string PatientSearchResult = Mgr.SearchResource("ClinicalImpression", SearchParameters);
                System.Console.WriteLine(PatientSearchResult); 
                }
    

    *Search ClinicalImpression resources by the given keys.

    Parameters

    Parameter In Type Required Description
    patient query string true Patient ID (Org_ChartNumber).
    date query string(date) false Search resources category for a date range

    Example responses


    {
      "resourceType": "Bundle",
      "id": "bundle-example",
      "meta": {
        "lastUpdated": ""
      },
      "type": "searchset",
      "base": "",
      "total": 50,
      "link": [
        {
          "relation": "self",
          "url": "https://carefluence.acumenehr.com/fhir/ClinicalImpression?patient=ORG_CHART"
        },
        {
          "relation": "next",
          "url": "https://carefluence.acumenehr.com/fhir/ClinicalImpression?patient=ORG_CHART&searchId=gx3_11212&page=2"
        }
      ],
      "entry": [
        {
          "resource": {
            "resourceType": "ClinicalImpression",
            "id": {
              "-value": "ESINXuZr0"
            },
            "date": {
              "-value": "06/22/2015 09:38:18"
            },
            "summary": {
              "-value": "The patient was found to have fever and Dr. Davis is suspecting Anemia based on the patient history. So Dr. Davis asked the patient to closely monitor the temperature and blood pressure and get admitted to Community Health Hospitals if the fever does not subside within a da"
            }
          }
         }
        ]
    }
    

    Responses

    Status Meaning Description Schema
    200 OK Success Inline

    Condition(Problems)

    GET /Condition

    Code samples

    # You can also use wget
    curl -X GET https://carefluence.acumenehr.com/fhir/Condition \
      -H 'Accept: application/json+fhir'
    
    GET https://carefluence.acumenehr.com/fhir/Condition HTTP/1.1
    Host: localhost
    Accept: application/json+fhir
    
    var headers = {
                'Accept':'application/json+fhir'
    };
    $.ajax({
                url: 'https://carefluence.acumenehr.com/fhir/Condition',
                method: 'get',
                headers: headers,
                success: function(data) {
                console.log(JSON.stringify(data));
                }
    })
    
    const request = require('node-fetch');
    const headers = {
                'Accept':'application/json+fhir'
    };
    fetch('https://carefluence.acumenehr.com/fhir/Condition',
    {
                method: 'GET',
                headers: headers
    })
    .then(function(res) {
                return res.json();
    }).then(function(body) {
                console.log(body);
    });
    
    require 'rest-client'
    require 'json'
    headers = {
                'Accept' => 'application/json+fhir'
    }
    result = RestClient.get 'https://carefluence.acumenehr.com/fhir/Condition',
                params: {
                }, headers: headers
    p JSON.parse(result)
    
    import requests
    headers = {
                'Accept': 'application/json+fhir'
    }
    r = requests.get('https://carefluence.acumenehr.com/fhir/Condition', params={
    }, headers = headers)
    print r.json()
    
    URL obj = new URL("https://carefluence.acumenehr.com/fhir/Condition");
    HttpURLConnection con = (HttpURLConnection) obj.openConnection();
    con.setRequestMethod("GET");
    int responseCode = con.getResponseCode();
    BufferedReader in = new BufferedReader(
                new InputStreamReader(con.getInputStream()));
    String inputLine;
    StringBuffer response = new StringBuffer();
    while ((inputLine = in.readLine()) != null) {
                response.append(inputLine);
    }
    in.close();
    System.out.println(response.toString());
    
        public class APIManager
                {
                private string SMARTServerURL = "https://carefluence.acumenehr.com/fhir/"; //FHIR server.
                private string SMARTAuthorizeURL = ConfigurationSettings.AppSettings["SMARTAuthorizeURL"];
                private string SMARTTokenURL = ConfigurationSettings.AppSettings["SMARTTokenURL"]; 
                private string ClientId = ConfigurationSettings.AppSettings["ClientId"];
                private string ClientSecret = ConfigurationSettings.AppSettings["ClientSecret"];
                private string Scope = ConfigurationSettings.AppSettings["Scope"];
                private string Format = "json";
                private FhirClient Client;
                public APIManager()
                {
                InitializeClient();
                }
                public APIManager(string iServerURL, string iTokenURL, string iClientId, string iClientSecret, string iScope)
                {
                SMARTServerURL = iServerURL;
                SMARTTokenURL = iTokenURL;
                ClientId = iClientId;
                ClientSecret = iClientSecret;
                Scope = iScope;
                InitializeClient();
                }
                public void InitializeClient()
                {
                Client = new FhirClient(SMARTServerURL, SMARTTokenURL, ClientId, ClientSecret, Scope, "user_id", "user_password");
                Client.TimeOut = 60000;
                }
                public string SearchResource(string pType, List<string> pSearchParams)
                { 
                Stream ReadStream = Client.Read(pType, pResourceId);
                StreamReader reader = new StreamReader(ReadStream);
                string Result = reader.ReadToEnd();
                return Result;
                }
                }
                public static void Main(string[] args)
                {
                APIManager Mgr = new APIManager();
                //Search Patient's allergies By patient account number
                List<string> SearchParameters = new List<string>();
                string param = "patient=" + "2";
                SearchParameters.Add(param);
                string PatientSearchResult = Mgr.SearchResource("Condition", SearchParameters);
                System.Console.WriteLine(PatientSearchResult); 
                }
    

    *Search patient's diseases by the given keys

    Parameters

    Parameter In Type Required Description
    patient query string true Patient ID (Org_ChartNumber).
    date query string false Search the resources by the date range.

    Example responses


    {
      "resourceType": "Bundle",
      "id": "bundle-example",
      "meta": {
        "lastUpdated": ""
      },
      "type": "searchset",
      "base": "",
      "total": 50,
      "link": [
        {
          "relation": "self",
          "url": "https://carefluence.acumenehr.com/fhir/AllergyIntolerance?patient=ORG_CHART"
        },
        {
          "relation": "next",
          "url": "https://carefluence.acumenehr.com/fhir/AllergyIntolerance?patient=ORG_CHART&searchId=gx3_11212&page=2"
        }
      ],
      "entry": [
        {
      "resource":{
        "resourceType": "Condition",
        "id": "zzd123i92",
        "modifierExtension": {
          "-url": "http://hl7.org/fhir/condition-clinical",
          "valueCodeableConcept": {
            "coding": {
              "system": { "-value": "http://hl7.org/fhir/condition-clinical" },
              "code": { "-value": "inactive" }
            }
          }
        },
        "patient": {
          "reference": { "-value": "Patient/ORG_CHART" },
          "display": { "-value": "Newman, Alice Jones" }
        },
        "dateAsserted": { "-value": "12/31/2006" },
        "code": {
          "coding": {
            "system": { "-value": "SNOMED-CT" },
            "code": { "-value": "111566002" }
          },
          "text": { "-value": "Acquired hypothyroidism" }
        },
        "category": {
          "coding": {
            "system": { "-value": "http://hl7.org/fhir/vs/condition-category" },
            "code": { "-value": "finding" }
          },
          "text": {
          }
        }
      }
      }
     ]
    }
    

    Responses

    Status Meaning Description Schema
    200 OK Success Inline

    Condition(Health Concerns)

    GET /Condition?category=concern

    Code samples

    # You can also use wget
    curl -X GET https://carefluence.acumenehr.com/fhir/Condition \
      -H 'Accept: application/json+fhir'
    
    GET https://carefluence.acumenehr.com/fhir/Condition HTTP/1.1
    Host: localhost
    Accept: application/json+fhir
    
    var headers = {
                'Accept':'application/json+fhir'
    };
    $.ajax({
                url: 'https://carefluence.acumenehr.com/fhir/Condition',
                method: 'get',
                headers: headers,
                success: function(data) {
                console.log(JSON.stringify(data));
                }
    })
    
    const request = require('node-fetch');
    const headers = {
                'Accept':'application/json+fhir'
    };
    fetch('https://carefluence.acumenehr.com/fhir/Condition',
    {
                method: 'GET',
                headers: headers
    })
    .then(function(res) {
                return res.json();
    }).then(function(body) {
                console.log(body);
    });
    
    require 'rest-client'
    require 'json'
    headers = {
                'Accept' => 'application/json+fhir'
    }
    result = RestClient.get 'https://carefluence.acumenehr.com/fhir/Condition',
                params: {
                }, headers: headers
    p JSON.parse(result)
    
    import requests
    headers = {
                'Accept': 'application/json+fhir'
    }
    r = requests.get('https://carefluence.acumenehr.com/fhir/Condition', params={
    }, headers = headers)
    print r.json()
    
    URL obj = new URL("https://carefluence.acumenehr.com/fhir/Condition");
    HttpURLConnection con = (HttpURLConnection) obj.openConnection();
    con.setRequestMethod("GET");
    int responseCode = con.getResponseCode();
    BufferedReader in = new BufferedReader(
                new InputStreamReader(con.getInputStream()));
    String inputLine;
    StringBuffer response = new StringBuffer();
    while ((inputLine = in.readLine()) != null) {
                response.append(inputLine);
    }
    in.close();
    System.out.println(response.toString());
    
        public class APIManager
                {
                private string SMARTServerURL = "https://carefluence.acumenehr.com/fhir/"; //FHIR server.
                private string SMARTAuthorizeURL = ConfigurationSettings.AppSettings["SMARTAuthorizeURL"];
                private string SMARTTokenURL = ConfigurationSettings.AppSettings["SMARTTokenURL"]; 
                private string ClientId = ConfigurationSettings.AppSettings["ClientId"];
                private string ClientSecret = ConfigurationSettings.AppSettings["ClientSecret"];
                private string Scope = ConfigurationSettings.AppSettings["Scope"];
                private string Format = "json";
                private FhirClient Client;
                public APIManager()
                {
                InitializeClient();
                }
                public APIManager(string iServerURL, string iTokenURL, string iClientId, string iClientSecret, string iScope)
                {
                SMARTServerURL = iServerURL;
                SMARTTokenURL = iTokenURL;
                ClientId = iClientId;
                ClientSecret = iClientSecret;
                Scope = iScope;
                InitializeClient();
                }
                public void InitializeClient()
                {
                Client = new FhirClient(SMARTServerURL, SMARTTokenURL, ClientId, ClientSecret, Scope, "user_id", "user_password");
                Client.TimeOut = 60000;
                }
                public string SearchResource(string pType, List<string> pSearchParams)
                { 
                Stream ReadStream = Client.Read(pType, pResourceId);
                StreamReader reader = new StreamReader(ReadStream);
                string Result = reader.ReadToEnd();
                return Result;
                }
                }
                public static void Main(string[] args)
                {
                APIManager Mgr = new APIManager();
                //Search Patient's allergies By patient account number
                List<string> SearchParameters = new List<string>();
                string param = "patient=" + "2";
                SearchParameters.Add(param);
                string PatientSearchResult = Mgr.SearchResource("Condition", SearchParameters);
                System.Console.WriteLine(PatientSearchResult); 
                }
    

    *Search patient's health concerns by the given keys

    Parameters

    Parameter In Type Required Description
    patient query string true Patient ID (Org_ChartNumber).
    date query string false Search the resources by the date range.

    Example responses


    {
      "resourceType": "Bundle",
      "id": "bundle-example",
      "meta": {
        "lastUpdated": ""
      },
      "type": "searchset",
      "base": "",
      "total": 50,
      "link": [
        {
          "relation": "self",
          "url": "https://carefluence.acumenehr.com/fhir/AllergyIntolerance?patient=ORG_CHART"
        },
        {
          "relation": "next",
          "url": "https://carefluence.acumenehr.com/fhir/AllergyIntolerance?patient=ORG_CHART&searchId=gx3_11212&page=2"
        }
      ],
      "entry": [
        {
      "resource":{
        "resourceType": "Condition",
        "id": "zzd123i92",
        "modifierExtension": {
          "-url": "http://hl7.org/fhir/condition-clinical",
          "valueCodeableConcept": {
            "coding": {
              "system": { "-value": "http://hl7.org/fhir/condition-clinical" },
              "code": { "-value": "inactive" }
            }
          }
        },
        "patient": {
          "reference": { "-value": "Patient/ORG_CHART" },
          "display": { "-value": "Newman, Alice Jones" }
        },
        "dateAsserted": { "-value": "12/31/2006" },
        "code": {
          "coding": {
            "system": { "-value": "SNOMED-CT" },
            "code": { "-value": "111566002" }
          },
          "text": { "-value": "Acquired hypothyroidism" }
        },
        "category": {
          "coding": {
            "system": { "-value": "http://hl7.org/fhir/vs/condition-category" },
            "code": { "-value": "finding" }
          },
          "text": {
          }
        }
      }
      }
     ]
    }
    

    Responses

    Status Meaning Description Schema
    200 OK Success Inline

    Device

    GET /Device

    Code samples

    # You can also use wget
    curl -X GET https://carefluence.acumenehr.com/fhir/Device \
      -H 'Accept: application/json+fhir'
    
    GET https://carefluence.acumenehr.com/fhir/Device HTTP/1.1
    Host: localhost
    Accept: application/json+fhir
    
    var headers = {
                'Accept':'application/json+fhir'
    };
    $.ajax({
                url: 'https://carefluence.acumenehr.com/fhir/Device',
                method: 'get',
                headers: headers,
                success: function(data) {
                console.log(JSON.stringify(data));
                }
    })
    
    const request = require('node-fetch');
    const headers = {
                'Accept':'application/json+fhir'
    };
    fetch('https://carefluence.acumenehr.com/fhir/Device',
    {
                method: 'GET',
                headers: headers
    })
    .then(function(res) {
                return res.json();
    }).then(function(body) {
                console.log(body);
    });
    
    require 'rest-client'
    require 'json'
    headers = {
                'Accept' => 'application/json+fhir'
    }
    result = RestClient.get 'https://carefluence.acumenehr.com/fhir/Device',
                params: {
                }, headers: headers
    p JSON.parse(result)
    
    import requests
    headers = {
                'Accept': 'application/json+fhir'
    }
    r = requests.get('https://carefluence.acumenehr.com/fhir/Device', params={
    }, headers = headers)
    print r.json()
    
    URL obj = new URL("https://carefluence.acumenehr.com/fhir/Device");
    HttpURLConnection con = (HttpURLConnection) obj.openConnection();
    con.setRequestMethod("GET");
    int responseCode = con.getResponseCode();
    BufferedReader in = new BufferedReader(
                new InputStreamReader(con.getInputStream()));
    String inputLine;
    StringBuffer response = new StringBuffer();
    while ((inputLine = in.readLine()) != null) {
                response.append(inputLine);
    }
    in.close();
    System.out.println(response.toString());
    
        public class APIManager
                {
                private string SMARTServerURL = "https://carefluence.acumenehr.com/fhir/"; //FHIR server.
                private string SMARTAuthorizeURL = ConfigurationSettings.AppSettings["SMARTAuthorizeURL"];
                private string SMARTTokenURL = ConfigurationSettings.AppSettings["SMARTTokenURL"]; 
                private string ClientId = ConfigurationSettings.AppSettings["ClientId"];
                private string ClientSecret = ConfigurationSettings.AppSettings["ClientSecret"];
                private string Scope = ConfigurationSettings.AppSettings["Scope"];
                private string Format = "json";
                private FhirClient Client;
                public APIManager()
                {
                InitializeClient();
                }
                public APIManager(string iServerURL, string iTokenURL, string iClientId, string iClientSecret, string iScope)
                {
                SMARTServerURL = iServerURL;
                SMARTTokenURL = iTokenURL;
                ClientId = iClientId;
                ClientSecret = iClientSecret;
                Scope = iScope;
                InitializeClient();
                }
                public void InitializeClient()
                {
                Client = new FhirClient(SMARTServerURL, SMARTTokenURL, ClientId, ClientSecret, Scope, "user_id", "user_password");
                Client.TimeOut = 60000;
                }
                public string SearchResource(string pType, List<string> pSearchParams)
                { 
                Stream ReadStream = Client.Read(pType, pResourceId);
                StreamReader reader = new StreamReader(ReadStream);
                string Result = reader.ReadToEnd();
                return Result;
                }
                }
                public static void Main(string[] args)
                {
                APIManager Mgr = new APIManager();
                //Search Patient's allergies By patient account number
                List<string> SearchParameters = new List<string>();
                string param = "patient=" + "2";
                SearchParameters.Add(param);
                string PatientSearchResult = Mgr.SearchResource("Device", SearchParameters);
                System.Console.WriteLine(PatientSearchResult); 
                }
    

    *Search patient's implantable devices by the given keys.

    Parameters

    Parameter In Type Required Description
    date query string(date) false Search the resources by the date range
    patient query string true Patient ID (Org_ChartNumber).

    Example responses


    {
      "resourceType": "Bundle",
      "id": "bundle-example",
      "meta": {
        "lastUpdated": ""
      },
      "type": "searchset",
      "base": "",
      "total": 50,
      "link": [
        {
          "relation": "self",
          "url": "https://carefluence.acumenehr.com/fhir/Device?patient=ORG_CHART"
        },
        {
          "relation": "next",
          "url": "https://carefluence.acumenehr.com/fhir/Device?patient=ORG_CHART&searchId=gx0dkos212&page=2"
        }
      ],
      "entry": [
          "resource": {
    {
      "Device": {
        "manufacturer": { "-value": "MEDTRONIC, INC." },
        "model": { "-value": "DTBA1QQ" },
        "manufactureDate": {
        },
        "expiry": { "-value": "01/28/2016" },
        "udi": { "-value": "(01)00643169007222(17)160128(21)BLC200461H" }
      }
    }
    }
    ]
    }
    

    Responses

    Status Meaning Description Schema
    200 OK Success Inline

    Encounter

    GET /Encounter

    Code samples

    # You can also use wget
    curl -X GET https://carefluence.acumenehr.com/fhir/Encounter \
      -H 'Accept: application/json+fhir'
    
    GET https://carefluence.acumenehr.com/fhir/Encounter HTTP/1.1
    Host: localhost
    Accept: application/json+fhir
    
    var headers = {
                'Accept':'application/json+fhir'
    };
    $.ajax({
                url: 'https://carefluence.acumenehr.com/fhir/Encounter',
                method: 'get',
                headers: headers,
                success: function(data) {
                console.log(JSON.stringify(data));
                }
    })
    
    const request = require('node-fetch');
    const headers = {
                'Accept':'application/json+fhir'
    };
    fetch('https://carefluence.acumenehr.com/fhir/Encounter',
    {
                method: 'GET',
                headers: headers
    })
    .then(function(res) {
                return res.json();
    }).then(function(body) {
                console.log(body);
    });
    
    require 'rest-client'
    require 'json'
    headers = {
                'Accept' => 'application/json+fhir'
    }
    result = RestClient.get 'https://carefluence.acumenehr.com/fhir/Encounter',
                params: {
                }, headers: headers
    p JSON.parse(result)
    
    import requests
    headers = {
                'Accept': 'application/json+fhir'
    }
    r = requests.get('https://carefluence.acumenehr.com/fhir/Encounter', params={
    }, headers = headers)
    print r.json()
    
    URL obj = new URL("https://carefluence.acumenehr.com/fhir/Encounter");
    HttpURLConnection con = (HttpURLConnection) obj.openConnection();
    con.setRequestMethod("GET");
    int responseCode = con.getResponseCode();
    BufferedReader in = new BufferedReader(
                new InputStreamReader(con.getInputStream()));
    String inputLine;
    StringBuffer response = new StringBuffer();
    while ((inputLine = in.readLine()) != null) {
                response.append(inputLine);
    }
    in.close();
    System.out.println(response.toString());
    
        public class APIManager
                {
                private string SMARTServerURL = "https://carefluence.acumenehr.com/fhir/"; //FHIR server.
                private string SMARTAuthorizeURL = ConfigurationSettings.AppSettings["SMARTAuthorizeURL"];
                private string SMARTTokenURL = ConfigurationSettings.AppSettings["SMARTTokenURL"]; 
                private string ClientId = ConfigurationSettings.AppSettings["ClientId"];
                private string ClientSecret = ConfigurationSettings.AppSettings["ClientSecret"];
                private string Scope = ConfigurationSettings.AppSettings["Scope"];
                private string Format = "json";
                private FhirClient Client;
                public APIManager()
                {
                InitializeClient();
                }
                public APIManager(string iServerURL, string iTokenURL, string iClientId, string iClientSecret, string iScope)
                {
                SMARTServerURL = iServerURL;
                SMARTTokenURL = iTokenURL;
                ClientId = iClientId;
                ClientSecret = iClientSecret;
                Scope = iScope;
                InitializeClient();
                }
                public void InitializeClient()
                {
                Client = new FhirClient(SMARTServerURL, SMARTTokenURL, ClientId, ClientSecret, Scope, "user_id", "user_password");
                Client.TimeOut = 60000;
                }
                public string SearchResource(string pType, List<string> pSearchParams)
                { 
                Stream ReadStream = Client.Read(pType, pResourceId);
                StreamReader reader = new StreamReader(ReadStream);
                string Result = reader.ReadToEnd();
                return Result;
                }
                }
                public static void Main(string[] args)
                {
                APIManager Mgr = new APIManager();
                //Search Patient's allergies By patient account number
                List<string> SearchParameters = new List<string>();
                string param = "patient=" + "2";
                SearchParameters.Add(param);
                string PatientSearchResult = Mgr.SearchResource("Encounter", SearchParameters);
                System.Console.WriteLine(PatientSearchResult); 
                }
    

    *Search Encounters by the given keys.

    Parameters

    Parameter In Type Required Description
    id query string false Resource ID
    date query string(date) false Encounter date or search the resource category by date range
    patient query string false Patient ID (Org_ChartNumber).

    Example responses


    {
      "resourceType": "Bundle",
      "id": "bundle-example",
      "meta": {
        "lastUpdated": ""
      },
      "type": "searchset",
      "base": "",
      "total": 50,
      "link": [
        {
          "relation": "self",
          "url": "https://carefluence.acumenehr.com/fhir/Encounter?patient=ORG_CHART"
        },
        {
          "relation": "next",
          "url": "https://carefluence.acumenehr.com/fhir/Encounter?patient=ORG_CHART&searchId=gx3_11212&page=2"
        }
      ],
      "entry": [
        {
          "resource": {
            "resourceType": "Encounter",
            "id": {
              "-value": "13948551"
            },
            "contained": [
              {
                "Practitioner": {
                  "id": {
                    "-value": "ProviderId"
                  },
                  "identifier": {
                    "value": {
                      "-value": "1518318344"
                    }
                  },
                  "name": {
                    "use": {
                      "-value": "usual"
                    },
                    "family": {
                      "-value": "Davis"
                    },
                    "given": [
                      {
                        "-value": "Albert"
                      },
                      {}
                    ],
                    "prefix": {},
                    "suffix": {}
                  },
                  "telecom": {
                    "system": {
                      "-value": "phone"
                    },
                    "value": {
                      "-value": "555-555-1002"
                    },
                    "use": {
                      "-value": "work"
                    }
                  },
                  "address": {
                    "use": {
                      "-value": "work"
                    },
                    "line": {
                      "-value": "2472, Rocky place"
                    },
                    "city": {
                      "-value": "Beaverton"
                    },
                    "state": {
                      "-value": "OR"
                    },
                    "postalCode": {
                      "-value": "97006"
                    },
                    "country": {
                      "-value": "US"
                    }
                  }
                }
              },
              {
                "Practitioner": {
                  "id": {
                    "-value": "CGChwEmW0"
                  },
                  "identifier": {
                    "value": {}
                  },
                  "name": {
                    "use": {
                      "-value": "usual"
                    },
                    "family": {
                      "-value": "Davis"
                    },
                    "given": [
                      {
                        "-value": "Tracy"
                      },
                      {}
                    ],
                    "prefix": {},
                    "suffix": {}
                  },
                  "telecom": {
                    "system": {
                      "-value": "phone"
                    },
                    "value": {
                      "-value": "555-555-1002"
                    },
                    "use": {
                      "-value": "work"
                    }
                  },
                  "address": {
                    "use": {
                      "-value": "work"
                    },
                    "line": {
                      "-value": "2472, Rocky place"
                    },
                    "city": {
                      "-value": "Beaverton"
                    },
                    "state": {
                      "-value": "OR"
                    },
                    "postalCode": {
                      "-value": "97006"
                    },
                    "country": {
                      "-value": "US"
                    }
                  },
                  "practitionerRole": {
                    "role": {
                      "coding": {
                        "system": {
                          "-value": "NUCC Health Care Provider Taxonomy"
                        },
                        "code": {
                          "-value": "admin"
                        }
                      },
                      "text": {
                        "-value": "Administrator"
                      }
                    }
                  }
                }
              },
              {
                "Condition": {
                  "id": {
                    "-value": "p7dj7Ggq0"
                  },
                  "code": {
                    "coding": {
                      "system": {
                        "-value": "SNOMED-CT"
                      },
                      "code": {
                        "-value": "386661006"
                      }
                    },
                    "text": {
                      "-value": "Fever"
                    }
                  },
                  "category": {
                    "coding": {
                      "system": {
                        "-value": "http://hl7.org/fhir/vs/condition-category"
                      },
                      "code": {
                        "-value": "diagnosis"
                      }
                    },
                    "text": {
                      "-value": "diagnosis"
                    }
                  }
                }
              }
            ],
            "identifier": {
              "system": {
                "-value": "https://carefluence.acumenehr.com"
              },
              "value": {}
            },
            "status": {
              "-value": "finished"
            },
            "class": {
              "-value": "outpatient"
            },
            "patient": {
              "reference": {
                "-value": "Patient/ORG_CHART"
              },
              "display": {
                "-value": "Newman, Alice Jones"
              }
            },
            "participant": [
              {
                "individual": {
                  "reference": {
                    "-value": "#ProviderId"
                  },
                  "display": {
                    "-value": "Davis, Albert "
                  }
                }
              },
              {
                "individual": {
                  "reference": {
                    "-value": "#CGChwEmW0"
                  },
                  "display": {
                    "-value": "Davis, Tracy "
                  }
                }
              }
            ],
            "period": {
              "start": {
                "-value": "06/22/2015"
              },
              "end": {
                "-value": "06/22/2015"
              }
            },
            "indication": {
              "reference": {
                "-value": "Condition/p7dj7Ggq0"
              },
              "display": {
                "-value": "Fever"
              }
            }
          }
         }
        ]
    }
    

    Responses

    Status Meaning Description Schema
    200 OK Success Inline

    GET /Encounter/{id}

    Code samples

    # You can also use wget
    curl -X GET https://carefluence.acumenehr.com/fhir/Encounter/{id} \
      -H 'Accept: application/json+fhir'
    
    GET https://carefluence.acumenehr.com/fhir/Encounter/{id} HTTP/1.1
    Host: localhost
    Accept: application/json+fhir
    
    var headers = {
                'Accept':'application/json+fhir'
    };
    $.ajax({
                url: 'https://carefluence.acumenehr.com/fhir/Encounter/{id}',
                method: 'get',
                headers: headers,
                success: function(data) {
                console.log(JSON.stringify(data));
                }
    })
    
    const request = require('node-fetch');
    const headers = {
                'Accept':'application/json+fhir'
    };
    fetch('https://carefluence.acumenehr.com/fhir/Encounter/{id}',
    {
                method: 'GET',
                headers: headers
    })
    .then(function(res) {
                return res.json();
    }).then(function(body) {
                console.log(body);
    });
    
    require 'rest-client'
    require 'json'
    headers = {
                'Accept' => 'application/json+fhir'
    }
    result = RestClient.get 'https://carefluence.acumenehr.com/fhir/Encounter/{id}',
                params: {
                }, headers: headers
    p JSON.parse(result)
    
    import requests
    headers = {
                'Accept': 'application/json+fhir'
    }
    r = requests.get('https://carefluence.acumenehr.com/fhir/Encounter/{id}', params={
    }, headers = headers)
    print r.json()
    
    URL obj = new URL("https://carefluence.acumenehr.com/fhir/Encounter/{id}");
    HttpURLConnection con = (HttpURLConnection) obj.openConnection();
    con.setRequestMethod("GET");
    int responseCode = con.getResponseCode();
    BufferedReader in = new BufferedReader(
                new InputStreamReader(con.getInputStream()));
    String inputLine;
    StringBuffer response = new StringBuffer();
    while ((inputLine = in.readLine()) != null) {
                response.append(inputLine);
    }
    in.close();
    System.out.println(response.toString());
    
        public class APIManager
                {
                private string SMARTServerURL = "https://carefluence.acumenehr.com/fhir/"; //FHIR server.
                private string SMARTAuthorizeURL = ConfigurationSettings.AppSettings["SMARTAuthorizeURL"];
                private string SMARTTokenURL = ConfigurationSettings.AppSettings["SMARTTokenURL"]; 
                private string ClientId = ConfigurationSettings.AppSettings["ClientId"];
                private string ClientSecret = ConfigurationSettings.AppSettings["ClientSecret"];
                private string Scope = ConfigurationSettings.AppSettings["Scope"];
                private string Format = "json";
                private FhirClient Client;
                public APIManager()
                {
                InitializeClient();
                }
                public APIManager(string iServerURL, string iTokenURL, string iClientId, string iClientSecret, string iScope)
                {
                SMARTServerURL = iServerURL;
                SMARTTokenURL = iTokenURL;
                ClientId = iClientId;
                ClientSecret = iClientSecret;
                Scope = iScope;
                InitializeClient();
                }
                public void InitializeClient()
                {
                Client = new FhirClient(SMARTServerURL, SMARTTokenURL, ClientId, ClientSecret, Scope, "user_id", "user_password");
                Client.TimeOut = 60000;
                }
                public string ReadResource(string pType, string pResourceId)
                {
                Stream ReadStream = Client.Read(pType, pResourceId);
                StreamReader reader = new StreamReader(ReadStream);
                string Result = reader.ReadToEnd();
                return Result;
                }
                }
                public static void Main(string[] args)
                {
                APIManager Mgr = new APIManager();
                string PatientSearchResult = Mgr.ReadResource("Encounter", "2");
                System.Console.WriteLine(PatientSearchResult); 
                }
    

    *Read Encounter resource by id.

    Parameters

    Parameter In Type Required Description
    id path string true Resource ID

    Example responses


    {
            "resourceType": "Encounter",
            "id": {
              "-value": "13948551"
            },
            "contained": [
              {
                "Practitioner": {
                  "id": {
                    "-value": "ProviderId"
                  },
                  "identifier": {
                    "value": {
                      "-value": "1518318344"
                    }
                  },
                  "name": {
                    "use": {
                      "-value": "usual"
                    },
                    "family": {
                      "-value": "Davis"
                    },
                    "given": [
                      {
                        "-value": "Albert"
                      },
                      {}
                    ],
                    "prefix": {},
                    "suffix": {}
                  },
                  "telecom": {
                    "system": {
                      "-value": "phone"
                    },
                    "value": {
                      "-value": "555-555-1002"
                    },
                    "use": {
                      "-value": "work"
                    }
                  },
                  "address": {
                    "use": {
                      "-value": "work"
                    },
                    "line": {
                      "-value": "2472, Rocky place"
                    },
                    "city": {
                      "-value": "Beaverton"
                    },
                    "state": {
                      "-value": "OR"
                    },
                    "postalCode": {
                      "-value": "97006"
                    },
                    "country": {
                      "-value": "US"
                    }
                  }
                }
              },
              {
                "Practitioner": {
                  "id": {
                    "-value": "CGChwEmW0"
                  },
                  "identifier": {
                    "value": {}
                  },
                  "name": {
                    "use": {
                      "-value": "usual"
                    },
                    "family": {
                      "-value": "Davis"
                    },
                    "given": [
                      {
                        "-value": "Tracy"
                      },
                      {}
                    ],
                    "prefix": {},
                    "suffix": {}
                  },
                  "telecom": {
                    "system": {
                      "-value": "phone"
                    },
                    "value": {
                      "-value": "555-555-1002"
                    },
                    "use": {
                      "-value": "work"
                    }
                  },
                  "address": {
                    "use": {
                      "-value": "work"
                    },
                    "line": {
                      "-value": "2472, Rocky place"
                    },
                    "city": {
                      "-value": "Beaverton"
                    },
                    "state": {
                      "-value": "OR"
                    },
                    "postalCode": {
                      "-value": "97006"
                    },
                    "country": {
                      "-value": "US"
                    }
                  },
                  "practitionerRole": {
                    "role": {
                      "coding": {
                        "system": {
                          "-value": "NUCC Health Care Provider Taxonomy"
                        },
                        "code": {
                          "-value": "admin"
                        }
                      },
                      "text": {
                        "-value": "Administrator"
                      }
                    }
                  }
                }
              },
              {
                "Condition": {
                  "id": {
                    "-value": "p7dj7Ggq0"
                  },
                  "code": {
                    "coding": {
                      "system": {
                        "-value": "SNOMED-CT"
                      },
                      "code": {
                        "-value": "386661006"
                      }
                    },
                    "text": {
                      "-value": "Fever"
                    }
                  },
                  "category": {
                    "coding": {
                      "system": {
                        "-value": "http://hl7.org/fhir/vs/condition-category"
                      },
                      "code": {
                        "-value": "diagnosis"
                      }
                    },
                    "text": {
                      "-value": "diagnosis"
                    }
                  }
                }
              }
            ],
            "identifier": {
              "system": {
                "-value": "https://carefluence.acumenehr.com"
              },
              "value": {}
            },
            "status": {
              "-value": "finished"
            },
            "class": {
              "-value": "outpatient"
            },
            "patient": {
              "reference": {
                "-value": "Patient/ORG_CHART"
              },
              "display": {
                "-value": "Newman, Alice Jones"
              }
            },
            "participant": [
              {
                "individual": {
                  "reference": {
                    "-value": "#ProviderId"
                  },
                  "display": {
                    "-value": "Davis, Albert "
                  }
                }
              },
              {
                "individual": {
                  "reference": {
                    "-value": "#CGChwEmW0"
                  },
                  "display": {
                    "-value": "Davis, Tracy "
                  }
                }
              }
            ],
            "period": {
              "start": {
                "-value": "06/22/2015"
              },
              "end": {
                "-value": "06/22/2015"
              }
            },
            "indication": {
              "reference": {
                "-value": "Condition/p7dj7Ggq0"
              },
              "display": {
                "-value": "Fever"
              }
            }
          }
    

    Responses

    Status Meaning Description Schema
    200 OK Success Encounter
    404 Not Found NotFound None

    Goal

    GET /Goal

    Code samples

    # You can also use wget
    curl -X GET https://carefluence.acumenehr.com/fhir/Goal \
      -H 'Accept: application/json+fhir'
    
    GET https://carefluence.acumenehr.com/fhir/Goal HTTP/1.1
    Host: localhost
    Accept: application/json+fhir
    
    var headers = {
                'Accept':'application/json+fhir'
    };
    $.ajax({
                url: 'https://carefluence.acumenehr.com/fhir/Goal',
                method: 'get',
                headers: headers,
                success: function(data) {
                console.log(JSON.stringify(data));
                }
    })
    
    const request = require('node-fetch');
    const headers = {
                'Accept':'application/json+fhir'
    };
    fetch('https://carefluence.acumenehr.com/fhir/Goal',
    {
                method: 'GET',
                headers: headers
    })
    .then(function(res) {
                return res.json();
    }).then(function(body) {
                console.log(body);
    });
    
    require 'rest-client'
    require 'json'
    headers = {
                'Accept' => 'application/json+fhir'
    }
    result = RestClient.get 'https://carefluence.acumenehr.com/fhir/Goal',
                params: {
                }, headers: headers
    p JSON.parse(result)
    
    import requests
    headers = {
                'Accept': 'application/json+fhir'
    }
    r = requests.get('https://carefluence.acumenehr.com/fhir/Goal', params={
    }, headers = headers)
    print r.json()
    
    URL obj = new URL("https://carefluence.acumenehr.com/fhir/Goal");
    HttpURLConnection con = (HttpURLConnection) obj.openConnection();
    con.setRequestMethod("GET");
    int responseCode = con.getResponseCode();
    BufferedReader in = new BufferedReader(
                new InputStreamReader(con.getInputStream()));
    String inputLine;
    StringBuffer response = new StringBuffer();
    while ((inputLine = in.readLine()) != null) {
                response.append(inputLine);
    }
    in.close();
    System.out.println(response.toString());
    
        public class APIManager
                {
                private string SMARTServerURL = "https://carefluence.acumenehr.com/fhir/"; //FHIR server.
                private string SMARTAuthorizeURL = ConfigurationSettings.AppSettings["SMARTAuthorizeURL"];
                private string SMARTTokenURL = ConfigurationSettings.AppSettings["SMARTTokenURL"]; 
                private string ClientId = ConfigurationSettings.AppSettings["ClientId"];
                private string ClientSecret = ConfigurationSettings.AppSettings["ClientSecret"];
                private string Scope = ConfigurationSettings.AppSettings["Scope"];
                private string Format = "json";
                private FhirClient Client;
                public APIManager()
                {
                InitializeClient();
                }
                public APIManager(string iServerURL, string iTokenURL, string iClientId, string iClientSecret, string iScope)
                {
                SMARTServerURL = iServerURL;
                SMARTTokenURL = iTokenURL;
                ClientId = iClientId;
                ClientSecret = iClientSecret;
                Scope = iScope;
                InitializeClient();
                }
                public void InitializeClient()
                {
                Client = new FhirClient(SMARTServerURL, SMARTTokenURL, ClientId, ClientSecret, Scope, "user_id", "user_password");
                Client.TimeOut = 60000;
                }
                public string SearchResource(string pType, List<string> pSearchParams)
                { 
                Stream ReadStream = Client.Read(pType, pResourceId);
                StreamReader reader = new StreamReader(ReadStream);
                string Result = reader.ReadToEnd();
                return Result;
                }
                }
                public static void Main(string[] args)
                {
                APIManager Mgr = new APIManager();
                //Search Patient's allergies By patient account number
                List<string> SearchParameters = new List<string>();
                string param = "patient=" + "2";
                SearchParameters.Add(param);
                string PatientSearchResult = Mgr.SearchResource("Goal", SearchParameters);
                System.Console.WriteLine(PatientSearchResult); 
                }
    

    *Search Goals resources by the given keys.

    Parameters

    Parameter In Type Required Description
    patient query string true Patient ID (Org_ChartNumber).
    date query string(date) false Search the resource category by the date range

    Example responses


    {
      "resourceType": "Bundle",
      "id": "bundle-example",
      "meta": {
        "lastUpdated": ""
      },
      "type": "searchset",
      "base": "",
      "total": 50,
      "link": [
        {
          "relation": "self",
          "url": "https://carefluence.acumenehr.com/fhir/Goal?patient=ORG_CHART"
        },
        {
          "relation": "next",
          "url": "https://carefluence.acumenehr.com/fhir/Goal?patient=ORG_CHART&searchId=gx3_1aa22&page=2"
        }
      ],
      "entry": [
        {
          "resource": {
            "ResourceType": "Goal",
            "id": {
              "-value": "Pyf8sJUA0"
            },
            "targetDate": {
              "-value": "06/22/2015 09:38:18"
            },
            "description": {
              "-value": ", Get rid of intermittent fever that is occurring every few weeks., Need to gain more energy to do regular activities"
            }
          }
         }
        ]
    }
    

    Responses

    Status Meaning Description Schema
    200 OK Success Inline

    Immunization

    GET /Immunization

    Code samples

    # You can also use wget
    curl -X GET https://carefluence.acumenehr.com/fhir/Immunization \
      -H 'Accept: application/json+fhir'
    
    GET https://carefluence.acumenehr.com/fhir/Immunization HTTP/1.1
    Host: localhost
    Accept: application/json+fhir
    
    var headers = {
                'Accept':'application/json+fhir'
    };
    $.ajax({
                url: 'https://carefluence.acumenehr.com/fhir/Immunization',
                method: 'get',
                headers: headers,
                success: function(data) {
                console.log(JSON.stringify(data));
                }
    })
    
    const request = require('node-fetch');
    const headers = {
                'Accept':'application/json+fhir'
    };
    fetch('https://carefluence.acumenehr.com/fhir/Immunization',
    {
                method: 'GET',
                headers: headers
    })
    .then(function(res) {
                return res.json();
    }).then(function(body) {
                console.log(body);
    });
    
    require 'rest-client'
    require 'json'
    headers = {
                'Accept' => 'application/json+fhir'
    }
    result = RestClient.get 'https://carefluence.acumenehr.com/fhir/Immunization',
                params: {
                }, headers: headers
    p JSON.parse(result)
    
    import requests
    headers = {
                'Accept': 'application/json+fhir'
    }
    r = requests.get('https://carefluence.acumenehr.com/fhir/Immunization', params={
    }, headers = headers)
    print r.json()
    
    URL obj = new URL("https://carefluence.acumenehr.com/fhir/Immunization");
    HttpURLConnection con = (HttpURLConnection) obj.openConnection();
    con.setRequestMethod("GET");
    int responseCode = con.getResponseCode();
    BufferedReader in = new BufferedReader(
                new InputStreamReader(con.getInputStream()));
    String inputLine;
    StringBuffer response = new StringBuffer();
    while ((inputLine = in.readLine()) != null) {
                response.append(inputLine);
    }
    in.close();
    System.out.println(response.toString());
    
        public class APIManager
                {
                private string SMARTServerURL = "https://carefluence.acumenehr.com/fhir/"; //FHIR server.
                private string SMARTAuthorizeURL = ConfigurationSettings.AppSettings["SMARTAuthorizeURL"];
                private string SMARTTokenURL = ConfigurationSettings.AppSettings["SMARTTokenURL"]; 
                private string ClientId = ConfigurationSettings.AppSettings["ClientId"];
                private string ClientSecret = ConfigurationSettings.AppSettings["ClientSecret"];
                private string Scope = ConfigurationSettings.AppSettings["Scope"];
                private string Format = "json";
                private FhirClient Client;
                public APIManager()
                {
                InitializeClient();
                }
                public APIManager(string iServerURL, string iTokenURL, string iClientId, string iClientSecret, string iScope)
                {
                SMARTServerURL = iServerURL;
                SMARTTokenURL = iTokenURL;
                ClientId = iClientId;
                ClientSecret = iClientSecret;
                Scope = iScope;
                InitializeClient();
                }
                public void InitializeClient()
                {
                Client = new FhirClient(SMARTServerURL, SMARTTokenURL, ClientId, ClientSecret, Scope, "user_id", "user_password");
                Client.TimeOut = 60000;
                }
                public string SearchResource(string pType, List<string> pSearchParams)
                { 
                Stream ReadStream = Client.Read(pType, pResourceId);
                StreamReader reader = new StreamReader(ReadStream);
                string Result = reader.ReadToEnd();
                return Result;
                }
                }
                public static void Main(string[] args)
                {
                APIManager Mgr = new APIManager();
                //Search Patient's allergies By patient account number
                List<string> SearchParameters = new List<string>();
                string param = "patient=" + "2";
                SearchParameters.Add(param);
                string PatientSearchResult = Mgr.SearchResource("Immunization", SearchParameters);
                System.Console.WriteLine(PatientSearchResult); 
                }
    

    *Search patient immunization by the given keys.

    Parameters

    Parameter In Type Required Description
    date query string(date) false Search the resource category by the date range
    patient query string true Patient ID (Org_ChartNumber).

    Example responses


    {
      "resourceType": "Bundle",
      "id": "bundle-example",
      "meta": {
        "lastUpdated": ""
      },
      "type": "searchset",
      "base": "",
      "total": 50,
      "link": [
        {
          "relation": "self",
          "url": "https://carefluence.acumenehr.com/fhir/Immunization?patient=ORG_CHART"
        },
        {
          "relation": "next",
          "url": "https://carefluence.acumenehr.com/fhir/Immunization?patient=ORG_CHART&searchId=gx3_11212&page=2"
        }
      ],
      "entry": [
        {
          "resource": {
                    "resourceType": "Immunization",
            "id": {"_value": "dfds2oq123a"},
            "date": {
              "-value": "01/04/2012"
            },
            "vaccineType": {
              "coding": {
                "system": {
                  "-value": "CVX"
                },
                "code": {
                  "-value": "106"
                }
              },
              "text": {
                "-value": "DTaP, 5 pertussis antigens"
              }
            },
            "patient": {
              "reference": {
                "-value": "Patient/ORG_CHART"
              },
              "display": {
                "-value": "Newman, Alice Jones"
              }
            },
            "manufacturer": {
              "reference": {
                "-value": "Organization/IUS"
              },
              "display": {
                "-value": "Immuno-U.S., Inc."
              }
            },
            "lotNumber": {
              "-value": "2"
            }
          }
         }
        ]
    }
    

    Responses

    Status Meaning Description Schema
    200 OK Success Inline

    MedicationStatement

    GET /MedicationStatement

    Code samples

    # You can also use wget
    curl -X GET https://carefluence.acumenehr.com/fhir/MedicationStatement \
      -H 'Accept: application/json+fhir'
    
    GET https://carefluence.acumenehr.com/fhir/MedicationStatement HTTP/1.1
    Host: localhost
    Accept: application/json+fhir
    
    var headers = {
                'Accept':'application/json+fhir'
    };
    $.ajax({
                url: 'https://carefluence.acumenehr.com/fhir/MedicationStatement',
                method: 'get',
                headers: headers,
                success: function(data) {
                console.log(JSON.stringify(data));
                }
    })
    
    const request = require('node-fetch');
    const headers = {
                'Accept':'application/json+fhir'
    };
    fetch('https://carefluence.acumenehr.com/fhir/MedicationStatement',
    {
                method: 'GET',
                headers: headers
    })
    .then(function(res) {
                return res.json();
    }).then(function(body) {
                console.log(body);
    });
    
    require 'rest-client'
    require 'json'
    headers = {
                'Accept' => 'application/json+fhir'
    }
    result = RestClient.get 'https://carefluence.acumenehr.com/fhir/MedicationStatement',
                params: {
                }, headers: headers
    p JSON.parse(result)
    
    import requests
    headers = {
                'Accept': 'application/json+fhir'
    }
    r = requests.get('https://carefluence.acumenehr.com/fhir/MedicationStatement', params={
    }, headers = headers)
    print r.json()
    
    URL obj = new URL("https://carefluence.acumenehr.com/fhir/MedicationStatement");
    HttpURLConnection con = (HttpURLConnection) obj.openConnection();
    con.setRequestMethod("GET");
    int responseCode = con.getResponseCode();
    BufferedReader in = new BufferedReader(
                new InputStreamReader(con.getInputStream()));
    String inputLine;
    StringBuffer response = new StringBuffer();
    while ((inputLine = in.readLine()) != null) {
                response.append(inputLine);
    }
    in.close();
    System.out.println(response.toString());
    
        public class APIManager
                {
                private string SMARTServerURL = "https://carefluence.acumenehr.com/fhir/"; //FHIR server.
                private string SMARTAuthorizeURL = ConfigurationSettings.AppSettings["SMARTAuthorizeURL"];
                private string SMARTTokenURL = ConfigurationSettings.AppSettings["SMARTTokenURL"]; 
                private string ClientId = ConfigurationSettings.AppSettings["ClientId"];
                private string ClientSecret = ConfigurationSettings.AppSettings["ClientSecret"];
                private string Scope = ConfigurationSettings.AppSettings["Scope"];
                private string Format = "json";
                private FhirClient Client;
                public APIManager()
                {
                InitializeClient();
                }
                public APIManager(string iServerURL, string iTokenURL, string iClientId, string iClientSecret, string iScope)
                {
                SMARTServerURL = iServerURL;
                SMARTTokenURL = iTokenURL;
                ClientId = iClientId;
                ClientSecret = iClientSecret;
                Scope = iScope;
                InitializeClient();
                }
                public void InitializeClient()
                {
                Client = new FhirClient(SMARTServerURL, SMARTTokenURL, ClientId, ClientSecret, Scope, "user_id", "user_password");
                Client.TimeOut = 60000;
                }
                public string SearchResource(string pType, List<string> pSearchParams)
                { 
                Stream ReadStream = Client.Read(pType, pResourceId);
                StreamReader reader = new StreamReader(ReadStream);
                string Result = reader.ReadToEnd();
                return Result;
                }
                }
                public static void Main(string[] args)
                {
                APIManager Mgr = new APIManager();
                //Search Patient's allergies By patient account number
                List<string> SearchParameters = new List<string>();
                string param = "patient=" + "2";
                SearchParameters.Add(param);
                string PatientSearchResult = Mgr.SearchResource("MedicationStatement", SearchParameters);
                System.Console.WriteLine(PatientSearchResult); 
                }
    

    *Search patient medications by the given keys.

    Parameters

    Parameter In Type Required Description
    patient query string true Patient ID (Org_ChartNumber).
    date query string(date) false Search the resources by the date range

    Example responses


    {
      "resourceType": "Bundle",
      "id": "bundle-example",
      "meta": {
        "lastUpdated": ""
      },
      "type": "searchset",
      "base": "",
      "total": 50,
      "link": [
        {
          "relation": "self",
          "url": "https://carefluence.acumenehr.com/fhir/MedicationStatement?patient=ORG_CHART"
        },
        {
          "relation": "next",
          "url": "https://carefluence.acumenehr.com/fhir/MedicationStatement?patient=ORG_CHART&searchId=gx3_11212&page=2"
        }
      ],
      "entry": [
        {
          "resource": {
            "contained": {
              "Medication": {
                "id": {
                  "-value": "dcf0dd14-f374-48ba-8e6b-9b56ac5ef2a0"
                },
                "code": {
                  "coding": {
                    "system": {
                      "-value": "RxNorm"
                    },
                    "code": {
                      "-value": "730046"
                    }
                  },
                  "text": {
                    "-value": "Aranesp (in polysorbate) (darbepoetin alfa in polysorbat) 100 mcg/0.5 mL syringe"
                  }
                }
              }
            },
            "resourceType": "MedicationStatement",
            "id": {"-value": "aajlds145fsm12"},
            "patient": {
              "reference": {
                "-value": "Patient/ORG_CHART"
              },
              "display": {
                "-value": "Newman, Alice Jones"
              }
            },
            "effectivePeriod": {
              "start": {
                "-value": "06/22/2015"
              },
              "end": {}
            },
            "medication": {
              "reference": {
                "-value": "#dcf0dd14-f374-48ba-8e6b-9b56ac5ef2a0"
              },
              "display": {
                "-value": "Aranesp (in polysorbate) (darbepoetin alfa in polysorbat) 100 mcg/0.5 mL syringe"
              }
            },
            "dosage": {
              "text": {
                "-value": "1 ml once a week"
              },
              "schedule": {
                "repeat": {
                  "period": {
                    "-value": "1"
                  },
                  "periodUnits": {
                    "-value": "wk"
                  }
                }
              },
              "route": {
                "text": {
                  "-value": "subcutaneously"
                }
              },
              "quantity": {
                "value": {
                  "-value": "1"
                },
                "units": {}
              }
            }
          }
         }
        ]
    }
    

    Responses

    Status Meaning Description Schema
    200 OK Success Inline

    Observation(Lab Results)

    GET /Observation?category=laboratory

    Code samples

    # You can also use wget
    curl -X GET https://carefluence.acumenehr.com/fhir/Observation \
      -H 'Accept: application/json+fhir'
    
    GET https://carefluence.acumenehr.com/fhir/Observation HTTP/1.1
    Host: localhost
    Accept: application/json+fhir
    
    var headers = {
                'Accept':'application/json+fhir'
    };
    $.ajax({
                url: 'https://carefluence.acumenehr.com/fhir/Observation',
                method: 'get',
                headers: headers,
                success: function(data) {
                console.log(JSON.stringify(data));
                }
    })
    
    const request = require('node-fetch');
    const headers = {
                'Accept':'application/json+fhir'
    };
    fetch('https://carefluence.acumenehr.com/fhir/Observation',
    {
                method: 'GET',
                headers: headers
    })
    .then(function(res) {
                return res.json();
    }).then(function(body) {
                console.log(body);
    });
    
    require 'rest-client'
    require 'json'
    headers = {
                'Accept' => 'application/json+fhir'
    }
    result = RestClient.get 'https://carefluence.acumenehr.com/fhir/Observation',
                params: {
                }, headers: headers
    p JSON.parse(result)
    
    import requests
    headers = {
                'Accept': 'application/json+fhir'
    }
    r = requests.get('https://carefluence.acumenehr.com/fhir/Observation', params={
    }, headers = headers)
    print r.json()
    
    URL obj = new URL("https://carefluence.acumenehr.com/fhir/Observation");
    HttpURLConnection con = (HttpURLConnection) obj.openConnection();
    con.setRequestMethod("GET");
    int responseCode = con.getResponseCode();
    BufferedReader in = new BufferedReader(
                new InputStreamReader(con.getInputStream()));
    String inputLine;
    StringBuffer response = new StringBuffer();
    while ((inputLine = in.readLine()) != null) {
                response.append(inputLine);
    }
    in.close();
    System.out.println(response.toString());
    
        public class APIManager
                {
                private string SMARTServerURL = "https://carefluence.acumenehr.com/fhir/"; //FHIR server.
                private string SMARTAuthorizeURL = ConfigurationSettings.AppSettings["SMARTAuthorizeURL"];
                private string SMARTTokenURL = ConfigurationSettings.AppSettings["SMARTTokenURL"]; 
                private string ClientId = ConfigurationSettings.AppSettings["ClientId"];
                private string ClientSecret = ConfigurationSettings.AppSettings["ClientSecret"];
                private string Scope = ConfigurationSettings.AppSettings["Scope"];
                private string Format = "json";
                private FhirClient Client;
                public APIManager()
                {
                InitializeClient();
                }
                public APIManager(string iServerURL, string iTokenURL, string iClientId, string iClientSecret, string iScope)
                {
                SMARTServerURL = iServerURL;
                SMARTTokenURL = iTokenURL;
                ClientId = iClientId;
                ClientSecret = iClientSecret;
                Scope = iScope;
                InitializeClient();
                }
                public void InitializeClient()
                {
                Client = new FhirClient(SMARTServerURL, SMARTTokenURL, ClientId, ClientSecret, Scope, "user_id", "user_password");
                Client.TimeOut = 60000;
                }
                public string SearchResource(string pType, List<string> pSearchParams)
                { 
                Stream ReadStream = Client.Read(pType, pResourceId);
                StreamReader reader = new StreamReader(ReadStream);
                string Result = reader.ReadToEnd();
                return Result;
                }
                }
                public static void Main(string[] args)
                {
                APIManager Mgr = new APIManager();
                //Search Patient's lab results by patient account number
                List<string> SearchParameters = new List<string>();
                string param = "patient=" + "2";
                SearchParameters.Add(param);
                string param = "category=laboratory";
                SearchParameters.Add(param);
                string PatientSearchResult = Mgr.SearchResource("Observation", SearchParameters);
                System.Console.WriteLine(PatientSearchResult); 
                }
    

    *Search observations by the given keys where the parameter 'category' should be 'laboratory'.

    Parameters

    Parameter In Type Required Description
    date query string(date) false Search the resource category by the date range
    patient query string true Patient ID (Org_ChartNumber).
    category query string false Observation category like 'laboratory'.

    Example responses


    {
      "resourceType": "Bundle",
      "id": "bundle-example",
      "meta": {
        "lastUpdated": ""
      },
      "type": "searchset",
      "base": "",
      "total": 50,
      "link": [
        {
          "relation": "self",
          "url": "https://carefluence.acumenehr.com/fhir/Observation?patient=ORG_CHART"
        },
        {
          "relation": "next",
          "url": "https://carefluence.acumenehr.com/fhir/Observation?patient=ORG_CHART&searchId=gx3_11210sd2&page=2"
        }
      ],
      "entry": [
        {
          "resource": {
            "resourceType": "Observation",
            "id": {
              "-value": "results-4jxN_4tw0"
            },
            "modifierExtension": {
              "-url": "http://hl7.org/fhir/observation-category",
              "valueCodeableConcept": {
                "coding": {
                  "system": {
                    "-value": "http://hl7.org/fhir/observation-category"
                  },
                  "code": {
                    "-value": "laboratory"
                  }
                }
              }
            },
            "code": {
              "coding": {
                "system": {
                  "-value": "LOINC"
                },
                "code": {
                  "-value": "5778-6"
                }
              },
              "text": {
                "-value": "Color of Urine"
              }
            },
            "valueString": {
              "-value": "YELLOW"
            },
            "appliesDateTime": {
              "-value": "06/22/2015"
            },
            "subject": {
              "reference": {
                "-value": "Patient/ORG_CHART"
              },
              "display": {
                "-value": "Newman, Alice Jones"
              }
            }
          }
         ]
        }
    }
    

    Responses

    Status Meaning Description Schema
    200 OK Success Inline

    Observation(Vital signs)

    GET /Observation?category=vital-signs

    Code samples

    # You can also use wget
    curl -X GET https://carefluence.acumenehr.com/fhir/Observation \
      -H 'Accept: application/json+fhir'
    
    GET https://carefluence.acumenehr.com/fhir/Observation HTTP/1.1
    Host: localhost
    Accept: application/json+fhir
    
    var headers = {
                'Accept':'application/json+fhir'
    };
    $.ajax({
                url: 'https://carefluence.acumenehr.com/fhir/Observation',
                method: 'get',
                headers: headers,
                success: function(data) {
                console.log(JSON.stringify(data));
                }
    })
    
    const request = require('node-fetch');
    const headers = {
                'Accept':'application/json+fhir'
    };
    fetch('https://carefluence.acumenehr.com/fhir/Observation',
    {
                method: 'GET',
                headers: headers
    })
    .then(function(res) {
                return res.json();
    }).then(function(body) {
                console.log(body);
    });
    
    require 'rest-client'
    require 'json'
    headers = {
                'Accept' => 'application/json+fhir'
    }
    result = RestClient.get 'https://carefluence.acumenehr.com/fhir/Observation',
                params: {
                }, headers: headers
    p JSON.parse(result)
    
    import requests
    headers = {
                'Accept': 'application/json+fhir'
    }
    r = requests.get('https://carefluence.acumenehr.com/fhir/Observation', params={
    }, headers = headers)
    print r.json()
    
    URL obj = new URL("https://carefluence.acumenehr.com/fhir/Observation");
    HttpURLConnection con = (HttpURLConnection) obj.openConnection();
    con.setRequestMethod("GET");
    int responseCode = con.getResponseCode();
    BufferedReader in = new BufferedReader(
                new InputStreamReader(con.getInputStream()));
    String inputLine;
    StringBuffer response = new StringBuffer();
    while ((inputLine = in.readLine()) != null) {
                response.append(inputLine);
    }
    in.close();
    System.out.println(response.toString());
    
        public class APIManager
                {
                private string SMARTServerURL = "https://carefluence.acumenehr.com/fhir/"; //FHIR server.
                private string SMARTAuthorizeURL = ConfigurationSettings.AppSettings["SMARTAuthorizeURL"];
                private string SMARTTokenURL = ConfigurationSettings.AppSettings["SMARTTokenURL"]; 
                private string ClientId = ConfigurationSettings.AppSettings["ClientId"];
                private string ClientSecret = ConfigurationSettings.AppSettings["ClientSecret"];
                private string Scope = ConfigurationSettings.AppSettings["Scope"];
                private string Format = "json";
                private FhirClient Client;
                public APIManager()
                {
                InitializeClient();
                }
                public APIManager(string iServerURL, string iTokenURL, string iClientId, string iClientSecret, string iScope)
                {
                SMARTServerURL = iServerURL;
                SMARTTokenURL = iTokenURL;
                ClientId = iClientId;
                ClientSecret = iClientSecret;
                Scope = iScope;
                InitializeClient();
                }
                public void InitializeClient()
                {
                Client = new FhirClient(SMARTServerURL, SMARTTokenURL, ClientId, ClientSecret, Scope, "user_id", "user_password");
                Client.TimeOut = 60000;
                }
                public string SearchResource(string pType, List<string> pSearchParams)
                { 
                Stream ReadStream = Client.Read(pType, pResourceId);
                StreamReader reader = new StreamReader(ReadStream);
                string Result = reader.ReadToEnd();
                return Result;
                }
                }
                public static void Main(string[] args)
                {
                APIManager Mgr = new APIManager();
                //Search Patient's vital signs by the patient account number
                List<string> SearchParameters = new List<string>();
                string param = "patient=" + "2";
                SearchParameters.Add(param);
                string paramN = "category=vital-signs";
                SearchParameters.Add(paramN);
                string PatientSearchResult = Mgr.SearchResource("Observation", SearchParameters);
                System.Console.WriteLine(PatientSearchResult); 
                }
    

    *Search observations by the given keys where the parameter 'category' should be 'vital-signs'.

    Parameters

    Parameter In Type Required Description
    date query string(date) false Search the resource category by the date range
    patient query string true Patient ID (Org_ChartNumber).
    category query string true Observation category like 'vital-signs'.

    Example responses


    {
      "resourceType": "Bundle",
      "id": "bundle-example",
      "meta": {
        "lastUpdated": ""
      },
      "type": "searchset",
      "base": "",
      "total": 50,
      "link": [
        {
          "relation": "self",
          "url": "https://carefluence.acumenehr.com/fhir/Observation?patient=ORG_CHART"
        },
        {
          "relation": "next",
          "url": "https://carefluence.acumenehr.com/fhir/Observation?patient=ORG_CHART&searchId=gx3_11210sd2&page=2"
        }
      ],
      "entry": [
        {
          "resource":  {
        "Observation": {
          "id": { "-value": "VitalSigns_Xi9Yfdm60" },
          "modifierExtension": {
            "-url": "http://hl7.org/fhir/observation-category",
            "valueCodeableConcept": {
              "coding": {
                "system": { "-value": "http://hl7.org/fhir/observation-category" },
                "code": { "-value": "vital-signs" }
              }
            }
          },
          "code": {
            "coding": {
              "system": { "-value": "LOINC" },
              "code": { "-value": "8302-2" }
            },
            "text": { "-value": "Height" }
          },
          "valueQuantity": {
            "value": { "-value": "177" },
            "units": { "-value": "cm" }
          },
          "appliesDateTime": { "-value": "06/22/2015" },
          "subject": {
            "reference": { "-value": "Patient/ORG_CHART" },
            "display": { "-value": "Newman, Alice Jones" }
          }
        }
      }  
    }
    ]
    }
    

    Responses

    Status Meaning Description Schema
    200 OK Success Inline

    Observation(Social history)

    GET /Observation?category=social-history

    Code samples

    # You can also use wget
    curl -X GET https://carefluence.acumenehr.com/fhir/Observation \
      -H 'Accept: application/json+fhir'
    
    GET https://carefluence.acumenehr.com/fhir/Observation HTTP/1.1
    Host: localhost
    Accept: application/json+fhir
    
    var headers = {
                'Accept':'application/json+fhir'
    };
    $.ajax({
                url: 'https://carefluence.acumenehr.com/fhir/Observation',
                method: 'get',
                headers: headers,
                success: function(data) {
                console.log(JSON.stringify(data));
                }
    })
    
    const request = require('node-fetch');
    const headers = {
                'Accept':'application/json+fhir'
    };
    fetch('https://carefluence.acumenehr.com/fhir/Observation',
    {
                method: 'GET',
                headers: headers
    })
    .then(function(res) {
                return res.json();
    }).then(function(body) {
                console.log(body);
    });
    
    require 'rest-client'
    require 'json'
    headers = {
                'Accept' => 'application/json+fhir'
    }
    result = RestClient.get 'https://carefluence.acumenehr.com/fhir/Observation',
                params: {
                }, headers: headers
    p JSON.parse(result)
    
    import requests
    headers = {
                'Accept': 'application/json+fhir'
    }
    r = requests.get('https://carefluence.acumenehr.com/fhir/Observation', params={
    }, headers = headers)
    print r.json()
    
    URL obj = new URL("https://carefluence.acumenehr.com/fhir/Observation");
    HttpURLConnection con = (HttpURLConnection) obj.openConnection();
    con.setRequestMethod("GET");
    int responseCode = con.getResponseCode();
    BufferedReader in = new BufferedReader(
                new InputStreamReader(con.getInputStream()));
    String inputLine;
    StringBuffer response = new StringBuffer();
    while ((inputLine = in.readLine()) != null) {
                response.append(inputLine);
    }
    in.close();
    System.out.println(response.toString());
    
        public class APIManager
                {
                private string SMARTServerURL = "https://carefluence.acumenehr.com/fhir/"; //FHIR server.
                private string SMARTAuthorizeURL = ConfigurationSettings.AppSettings["SMARTAuthorizeURL"];
                private string SMARTTokenURL = ConfigurationSettings.AppSettings["SMARTTokenURL"]; 
                private string ClientId = ConfigurationSettings.AppSettings["ClientId"];
                private string ClientSecret = ConfigurationSettings.AppSettings["ClientSecret"];
                private string Scope = ConfigurationSettings.AppSettings["Scope"];
                private string Format = "json";
                private FhirClient Client;
                public APIManager()
                {
                InitializeClient();
                }
                public APIManager(string iServerURL, string iTokenURL, string iClientId, string iClientSecret, string iScope)
                {
                SMARTServerURL = iServerURL;
                SMARTTokenURL = iTokenURL;
                ClientId = iClientId;
                ClientSecret = iClientSecret;
                Scope = iScope;
                InitializeClient();
                }
                public void InitializeClient()
                {
                Client = new FhirClient(SMARTServerURL, SMARTTokenURL, ClientId, ClientSecret, Scope, "user_id", "user_password");
                Client.TimeOut = 60000;
                }
                public string SearchResource(string pType, List<string> pSearchParams)
                { 
                Stream ReadStream = Client.Read(pType, pResourceId);
                StreamReader reader = new StreamReader(ReadStream);
                string Result = reader.ReadToEnd();
                return Result;
                }
                }
                public static void Main(string[] args)
                {
                APIManager Mgr = new APIManager();
                //Search Patient's allergies By patient account number
                List<string> SearchParameters = new List<string>();
                string param = "patient=" + "2";
                SearchParameters.Add(param);
                string param1 = "category=social-history";
                SearchParameters.Add(param1);
                string PatientSearchResult = Mgr.SearchResource("Observation", SearchParameters);
                System.Console.WriteLine(PatientSearchResult); 
                }
    

    *Search observations by the given keys where the parameter 'category' should be 'social-history'.

    Parameters

    Parameter In Type Required Description
    date query string(date) false Search the resource category by the date range
    patient query string true Patient ID (Org_ChartNumber).
    category query string false Observation category like 'social-history'.

    Example responses


    {
      "resourceType": "Bundle",
      "id": "bundle-example",
      "meta": {
        "lastUpdated": ""
      },
      "type": "searchset",
      "base": "",
      "total": 50,
      "link": [
        {
          "relation": "self",
          "url": "https://carefluence.acumenehr.com/fhir/Observation?patient=ORG_CHART"
        },
        {
          "relation": "next",
          "url": "https://carefluence.acumenehr.com/fhir/Observation?patient=ORG_CHART&searchId=gx3_11210sd2&page=2"
        }
      ],
      "entry": [
        {
          "resource": {
      "Observation": {
        "id": { "-value": "-smoking-RN5MxhoS0" },
        "modifierExtension": {
          "-url": "http://hl7.org/fhir/observation-category",
          "valueCodeableConcept": {
            "coding": {
              "system": { "-value": "http://hl7.org/fhir/observation-category" },
              "code": { "-value": "social-history" }
            }
          }
        },
        "valueCodeableConcept": {
          "coding": {
            "system": { "-value": "SNOMED CT" },
            "code": { "-value": "449868002" }
          },
          "text": { "-value": "Current every day smoker" }
        },
        "appliesPeriod": {
          "start": { "-value": "06/22/2015" },
          "end": {
          }
        },
        "subject": {
          "reference": { "-value": "Patient/ORG_CHART" },
          "display": { "-value": "Newman, Alice Jones" }
        }
      }
    }
        }
        ]
    }
    

    Responses

    Status Meaning Description Schema
    200 OK Success Inline

    Patient

    GET /Patient

    Code samples

    # You can also use wget
    curl -X GET https://carefluence.acumenehr.com/fhir/Patient \
      -H 'Accept: application/json+fhir'
    
    GET https://carefluence.acumenehr.com/fhir/Patient HTTP/1.1
    Host: localhost
    Accept: application/json+fhir
    
    var headers = {
                'Accept':'application/json+fhir'
    };
    $.ajax({
                url: 'https://carefluence.acumenehr.com/fhir/Patient',
                method: 'get',
                headers: headers,
                success: function(data) {
                console.log(JSON.stringify(data));
                }
    })
    
    const request = require('node-fetch');
    const headers = {
                'Accept':'application/json+fhir'
    };
    fetch('https://carefluence.acumenehr.com/fhir/Patient',
    {
                method: 'GET',
                headers: headers
    })
    .then(function(res) {
                return res.json();
    }).then(function(body) {
                console.log(body);
    });
    
    require 'rest-client'
    require 'json'
    headers = {
                'Accept' => 'application/json+fhir'
    }
    result = RestClient.get 'https://carefluence.acumenehr.com/fhir/Patient',
                params: {
                }, headers: headers
    p JSON.parse(result)
    
    import requests
    headers = {
                'Accept': 'application/json+fhir'
    }
    r = requests.get('https://carefluence.acumenehr.com/fhir/Patient', params={
    }, headers = headers)
    print r.json()
    
    URL obj = new URL("https://carefluence.acumenehr.com/fhir/Patient");
    HttpURLConnection con = (HttpURLConnection) obj.openConnection();
    con.setRequestMethod("GET");
    int responseCode = con.getResponseCode();
    BufferedReader in = new BufferedReader(
                new InputStreamReader(con.getInputStream()));
    String inputLine;
    StringBuffer response = new StringBuffer();
    while ((inputLine = in.readLine()) != null) {
                response.append(inputLine);
    }
    in.close();
    System.out.println(response.toString());
    
        public class APIManager
                {
                private string SMARTServerURL = "https://carefluence.acumenehr.com/fhir/"; //FHIR server.
                private string SMARTAuthorizeURL = ConfigurationSettings.AppSettings["SMARTAuthorizeURL"];
                private string SMARTTokenURL = ConfigurationSettings.AppSettings["SMARTTokenURL"]; 
                private string ClientId = ConfigurationSettings.AppSettings["ClientId"];
                private string ClientSecret = ConfigurationSettings.AppSettings["ClientSecret"];
                private string Scope = ConfigurationSettings.AppSettings["Scope"];
                private string Format = "json";
                private FhirClient Client;
                public APIManager()
                {
                InitializeClient();
                }
                public APIManager(string iServerURL, string iTokenURL, string iClientId, string iClientSecret, string iScope)
                {
                SMARTServerURL = iServerURL;
                SMARTTokenURL = iTokenURL;
                ClientId = iClientId;
                ClientSecret = iClientSecret;
                Scope = iScope;
                InitializeClient();
                }
                public void InitializeClient()
                {
                Client = new FhirClient(SMARTServerURL, SMARTTokenURL, ClientId, ClientSecret, Scope, "user_id", "user_password");
                Client.TimeOut = 60000;
                }
                public string SearchResource(string pType, List<string> pSearchParams)
                { 
                Stream ReadStream = Client.Read(pType, pResourceId);
                StreamReader reader = new StreamReader(ReadStream);
                string Result = reader.ReadToEnd();
                return Result;
                }
                }
                public static void Main(string[] args)
                {
                APIManager Mgr = new APIManager();
                //Search Patient's allergies By patient account number
                List<string> SearchParameters = new List<string>();
                string param = "id=" + "2";
                SearchParameters.Add(param);
                string PatientSearchResult = Mgr.SearchResource("Patient", SearchParameters);
                System.Console.WriteLine(PatientSearchResult); 
                }
    

    *Search patients by the given keys.

    Parameters

    Parameter In Type Required Description
    id query string false Resource ID
    family query string false Last name of the patient
    given query string false First name of the patient
    gender query string false Gender of the patient
    birthdate query string false Patient's DOB in yyyy-mm-dd format

    Example responses


    {
      "resourceType": "Bundle",
      "id": "bundle-example",
      "meta": {
        "lastUpdated": ""
      },
      "type": "searchset",
      "base": "",
      "total": 50,
      "link": [
        {
          "relation": "self",
          "url": "https://carefluence.acumenehr.com/fhir/Patient?id=ORG_CHART"
        },
        {
          "relation": "next",
          "url": "https://carefluence.acumenehr.com/fhir/Patient?id=ORG_CHART&searchId=gx3_11212&page=2"
        }
      ],
      "entry": [
        {
          "resource": {
            "resourceType": "Patient",
            "id": {
              "-value": "ORG_CHART"
            },
            "extension": [
              {
                "-url": "http://hl7.org/fhir/StructureDefinition/us-core-race",
                "valueCodeableConcept": {
                  "coding": {
                    "system": {
                      "-value": "Race & Ethnicity - CDC"
                    },
                    "code": {
                      "-value": "2106-3"
                    }
                  },
                  "text": {
                    "-value": "White"
                  }
                }
              },
              {
                "-url": "http://hl7.org/fhir/StructureDefinition/us-core-race",
                "valueCodeableConcept": {
                  "coding": {
                    "system": {
                      "-value": "Race & Ethnicity - CDC"
                    },
                    "code": {
                      "-value": "2108-9"
                    }
                  },
                  "text": {
                    "-value": "European"
                  }
                }
              },
              {
                "-url": "http://hl7.org/fhir/StructureDefinition/us-core-ethnicity",
                "valueCodeableConcept": {
                  "coding": {
                    "system": {
                      "-value": "Race & Ethnicity - CDC"
                    },
                    "code": {
                      "-value": "2186-5"
                    }
                  },
                  "text": {
                    "-value": "Not Hispanic or Latino"
                  }
                }
              }
            ],
            "identifier": {
              "system": {
                "-value": "https://carefluence.acumenehr.com"
              },
              "value": {
                "-value": "ORG_CHART"
              }
            },
            "name": [
              {
                "use": {
                  "-value": "usual"
                },
                "family": {
                  "-value": "Newman"
                },
                "given": [
                  {
                    "-value": "Alice"
                  },
                  {
                    "-value": "Jones"
                  }
                ],
                "prefix": {},
                "suffix": {}
              },
              {
                "use": {
                  "-value": "old"
                },
                "family": {
                  "-value": "Newman"
                },
                "given": [
                  {
                    "-value": "Alicia"
                  },
                  {
                    "-value": "Jones"
                  }
                ],
                "prefix": {},
                "suffix": {}
              }
            ],
            "telecom": [
              {
                "system": {
                  "-value": "phone"
                },
                "value": {
                  "-value": "555-723-1544"
                },
                "use": {
                  "-value": "home"
                }
              },
              {
                "system": {
                  "-value": "phone"
                },
                "value": {
                  "-value": "555-777-1234"
                },
                "use": {
                  "-value": "mobile"
                }
              }
            ],
            "gender": {
              "-value": "female"
            },
            "birthDate": {
              "-value": "05/01/1970"
            },
            "address": {
              "use": {
                "-value": "home"
              },
              "line": {
                "-value": "1357, Amber Dr"
              },
              "city": {
                "-value": "Beaverton"
              },
              "state": {
                "-value": "OR"
              },
              "postalCode": {
                "-value": "97006"
              },
              "country": {
                "-value": "US"
              }
            },
            "maritalStatus": {
              "coding": {
                "system": {
                  "-value": "https://carefluence.acumenehr.com"
                }
              },
              "text": {}
            },
            "contact": [
              {
                "relationship": {
                  "coding": {
                    "system": {
                      "-value": "Relationship"
                    },
                    "code": {
                      "-value": "SPO"
                    },
                    "display": {
                      "-value": "Spouse"
                    }
                  },
                  "text": {
                    "-value": "Spouse"
                  }
                },
                "name": {
                  "use": {
                    "-value": "usual"
                  },
                  "family": {
                    "-value": "Newman"
                  },
                  "given": [
                    {
                      "-value": "Matthew"
                    },
                    {}
                  ],
                  "prefix": {},
                  "suffix": {}
                },
                "telecom": {
                  "value": {
                    "-value": "555-723-1544"
                  }
                },
                "address": {
                  "use": {
                    "-value": "home"
                  },
                  "line": {
                    "-value": "1357 Amber Dr"
                  },
                  "city": {
                    "-value": "Beaverton"
                  },
                  "state": {
                    "-value": "OR"
                  },
                  "postalCode": {},
                  "country": {
                    "-value": "US"
                  }
                }
              },
              {
                "relationship": {
                  "coding": {
                    "system": {
                      "-value": "Relationship"
                    },
                    "code": {
                      "-value": "GRP"
                    },
                    "display": {
                      "-value": "Grandparent"
                    }
                  },
                  "text": {
                    "-value": "Grandparent"
                  }
                },
                "name": {
                  "use": {
                    "-value": "usual"
                  },
                  "family": {
                    "-value": "Holler"
                  },
                  "given": [
                    {
                      "-value": "Rick"
                    },
                    {}
                  ],
                  "prefix": {},
                  "suffix": {}
                },
                "telecom": {
                  "value": {
                    "-value": "555-723-1544"
                  }
                },
                "address": {
                  "use": {
                    "-value": "home"
                  },
                  "line": {
                    "-value": "1357 Amber Dr"
                  },
                  "city": {
                    "-value": "Beaverton"
                  },
                  "state": {
                    "-value": "OR"
                  },
                  "postalCode": {
                    "-value": "97006"
                  },
                  "country": {
                    "-value": "US"
                  }
                }
              }
            ],
            "communication": {
              "language": {
                "coding": {
                  "system": {
                    "-value": "http://hl7.org/fhir/ValueSet/languages"
                  },
                  "code": {
                    "-value": "en"
                  }
                },
                "text": {
                  "-value": "English"
                }
              }
            },
            "active": {
              "-value": "true"
            }
          }
         }
        ]
    }
    

    Responses

    Status Meaning Description Schema
    200 OK Success Inline

    GET /Patient/{id}

    Code samples

    # You can also use wget
    curl -X GET https://carefluence.acumenehr.com/fhir/Patient/{id} \
      -H 'Accept: application/json+fhir'
    
    GET https://carefluence.acumenehr.com/fhir/Patient/{id} HTTP/1.1
    Host: localhost
    Accept: application/json+fhir
    
    var headers = {
                'Accept':'application/json+fhir'
    };
    $.ajax({
                url: 'https://carefluence.acumenehr.com/fhir/Patient/{id}',
                method: 'get',
                headers: headers,
                success: function(data) {
                console.log(JSON.stringify(data));
                }
    })
    
    const request = require('node-fetch');
    const headers = {
                'Accept':'application/json+fhir'
    };
    fetch('https://carefluence.acumenehr.com/fhir/Patient/{id}',
    {
                method: 'GET',
                headers: headers
    })
    .then(function(res) {
                return res.json();
    }).then(function(body) {
                console.log(body);
    });
    
    require 'rest-client'
    require 'json'
    headers = {
                'Accept' => 'application/json+fhir'
    }
    result = RestClient.get 'https://carefluence.acumenehr.com/fhir/Patient/{id}',
                params: {
                }, headers: headers
    p JSON.parse(result)
    
    import requests
    headers = {
                'Accept': 'application/json+fhir'
    }
    r = requests.get('https://carefluence.acumenehr.com/fhir/Patient/{id}', params={
    }, headers = headers)
    print r.json()
    
    URL obj = new URL("https://carefluence.acumenehr.com/fhir/Patient/{id}");
    HttpURLConnection con = (HttpURLConnection) obj.openConnection();
    con.setRequestMethod("GET");
    int responseCode = con.getResponseCode();
    BufferedReader in = new BufferedReader(
                new InputStreamReader(con.getInputStream()));
    String inputLine;
    StringBuffer response = new StringBuffer();
    while ((inputLine = in.readLine()) != null) {
                response.append(inputLine);
    }
    in.close();
    System.out.println(response.toString());
    
        public class APIManager
                {
                private string SMARTServerURL = "https://carefluence.acumenehr.com/fhir/"; //FHIR server.
                private string SMARTAuthorizeURL = ConfigurationSettings.AppSettings["SMARTAuthorizeURL"];
                private string SMARTTokenURL = ConfigurationSettings.AppSettings["SMARTTokenURL"]; 
                private string ClientId = ConfigurationSettings.AppSettings["ClientId"];
                private string ClientSecret = ConfigurationSettings.AppSettings["ClientSecret"];
                private string Scope = ConfigurationSettings.AppSettings["Scope"];
                private string Format = "json";
                private FhirClient Client;
                public APIManager()
                {
                InitializeClient();
                }
                public APIManager(string iServerURL, string iTokenURL, string iClientId, string iClientSecret, string iScope)
                {
                SMARTServerURL = iServerURL;
                SMARTTokenURL = iTokenURL;
                ClientId = iClientId;
                ClientSecret = iClientSecret;
                Scope = iScope;
                InitializeClient();
                }
                public void InitializeClient()
                {
                Client = new FhirClient(SMARTServerURL, SMARTTokenURL, ClientId, ClientSecret, Scope, "user_id", "user_password");
                Client.TimeOut = 60000;
                }
                public string ReadResource(string pType, string pResourceId)
                {
                Stream ReadStream = Client.Read(pType, pResourceId);
                StreamReader reader = new StreamReader(ReadStream);
                string Result = reader.ReadToEnd();
                return Result;
                }
                }
                public static void Main(string[] args)
                {
                APIManager Mgr = new APIManager();
                string PatientSearchResult = Mgr.ReadResource("Patient", "2");
                System.Console.WriteLine(PatientSearchResult); 
                }
    

    *Read Patient resource by id.

    Parameters

    Parameter In Type Required Description
    id path string true Resource ID

    Example responses


    {
            "resourceType": "Patient",
            "id": {
              "-value": "ORG_CHART"
            },
            "extension": [
              {
                "-url": "http://hl7.org/fhir/StructureDefinition/us-core-race",
                "valueCodeableConcept": {
                  "coding": {
                    "system": {
                      "-value": "Race & Ethnicity - CDC"
                    },
                    "code": {
                      "-value": "2106-3"
                    }
                  },
                  "text": {
                    "-value": "White"
                  }
                }
              },
              {
                "-url": "http://hl7.org/fhir/StructureDefinition/us-core-race",
                "valueCodeableConcept": {
                  "coding": {
                    "system": {
                      "-value": "Race & Ethnicity - CDC"
                    },
                    "code": {
                      "-value": "2108-9"
                    }
                  },
                  "text": {
                    "-value": "European"
                  }
                }
              },
              {
                "-url": "http://hl7.org/fhir/StructureDefinition/us-core-ethnicity",
                "valueCodeableConcept": {
                  "coding": {
                    "system": {
                      "-value": "Race & Ethnicity - CDC"
                    },
                    "code": {
                      "-value": "2186-5"
                    }
                  },
                  "text": {
                    "-value": "Not Hispanic or Latino"
                  }
                }
              }
            ],
            "identifier": {
              "system": {
                "-value": "https://carefluence.acumenehr.com"
              },
              "value": {
                "-value": "ORG_CHART"
              }
            },
            "name": [
              {
                "use": {
                  "-value": "usual"
                },
                "family": {
                  "-value": "Newman"
                },
                "given": [
                  {
                    "-value": "Alice"
                  },
                  {
                    "-value": "Jones"
                  }
                ],
                "prefix": {},
                "suffix": {}
              },
              {
                "use": {
                  "-value": "old"
                },
                "family": {
                  "-value": "Newman"
                },
                "given": [
                  {
                    "-value": "Alicia"
                  },
                  {
                    "-value": "Jones"
                  }
                ],
                "prefix": {},
                "suffix": {}
              }
            ],
            "telecom": [
              {
                "system": {
                  "-value": "phone"
                },
                "value": {
                  "-value": "555-723-1544"
                },
                "use": {
                  "-value": "home"
                }
              },
              {
                "system": {
                  "-value": "phone"
                },
                "value": {
                  "-value": "555-777-1234"
                },
                "use": {
                  "-value": "mobile"
                }
              }
            ],
            "gender": {
              "-value": "female"
            },
            "birthDate": {
              "-value": "05/01/1970"
            },
            "address": {
              "use": {
                "-value": "home"
              },
              "line": {
                "-value": "1357, Amber Dr"
              },
              "city": {
                "-value": "Beaverton"
              },
              "state": {
                "-value": "OR"
              },
              "postalCode": {
                "-value": "97006"
              },
              "country": {
                "-value": "US"
              }
            },
            "maritalStatus": {
              "coding": {
                "system": {
                  "-value": "https://carefluence.acumenehr.com"
                }
              },
              "text": {}
            },
            "contact": [
              {
                "relationship": {
                  "coding": {
                    "system": {
                      "-value": "Relationship"
                    },
                    "code": {
                      "-value": "SPO"
                    },
                    "display": {
                      "-value": "Spouse"
                    }
                  },
                  "text": {
                    "-value": "Spouse"
                  }
                },
                "name": {
                  "use": {
                    "-value": "usual"
                  },
                  "family": {
                    "-value": "Newman"
                  },
                  "given": [
                    {
                      "-value": "Matthew"
                    },
                    {}
                  ],
                  "prefix": {},
                  "suffix": {}
                },
                "telecom": {
                  "value": {
                    "-value": "555-723-1544"
                  }
                },
                "address": {
                  "use": {
                    "-value": "home"
                  },
                  "line": {
                    "-value": "1357 Amber Dr"
                  },
                  "city": {
                    "-value": "Beaverton"
                  },
                  "state": {
                    "-value": "OR"
                  },
                  "postalCode": {},
                  "country": {
                    "-value": "US"
                  }
                }
              },
              {
                "relationship": {
                  "coding": {
                    "system": {
                      "-value": "Relationship"
                    },
                    "code": {
                      "-value": "GRP"
                    },
                    "display": {
                      "-value": "Grandparent"
                    }
                  },
                  "text": {
                    "-value": "Grandparent"
                  }
                },
                "name": {
                  "use": {
                    "-value": "usual"
                  },
                  "family": {
                    "-value": "Holler"
                  },
                  "given": [
                    {
                      "-value": "Rick"
                    },
                    {}
                  ],
                  "prefix": {},
                  "suffix": {}
                },
                "telecom": {
                  "value": {
                    "-value": "555-723-1544"
                  }
                },
                "address": {
                  "use": {
                    "-value": "home"
                  },
                  "line": {
                    "-value": "1357 Amber Dr"
                  },
                  "city": {
                    "-value": "Beaverton"
                  },
                  "state": {
                    "-value": "OR"
                  },
                  "postalCode": {
                    "-value": "97006"
                  },
                  "country": {
                    "-value": "US"
                  }
                }
              }
            ],
            "communication": {
              "language": {
                "coding": {
                  "system": {
                    "-value": "http://hl7.org/fhir/ValueSet/languages"
                  },
                  "code": {
                    "-value": "en"
                  }
                },
                "text": {
                  "-value": "English"
                }
              }
            },
            "active": {
              "-value": "true"
            }
          }
    

    Responses

    Status Meaning Description Schema
    200 OK Success Patient
    404 Not Found NotFound None

    Practitioner

    GET /Practitioner/{id}

    Code samples

    # You can also use wget
    curl -X GET https://carefluence.acumenehr.com/fhir/Practitioner/{id} \
      -H 'Accept: application/json+fhir'
    
    GET https://carefluence.acumenehr.com/fhir/Practitioner/{id} HTTP/1.1
    Host: localhost
    Accept: application/json+fhir
    
    var headers = {
                'Accept':'application/json+fhir'
    };
    $.ajax({
                url: 'https://carefluence.acumenehr.com/fhir/Practitioner/{id}',
                method: 'get',
                headers: headers,
                success: function(data) {
                console.log(JSON.stringify(data));
                }
    })
    
    const request = require('node-fetch');
    const headers = {
                'Accept':'application/json+fhir'
    };
    fetch('https://carefluence.acumenehr.com/fhir/Practitioner/{id}',
    {
                method: 'GET',
                headers: headers
    })
    .then(function(res) {
                return res.json();
    }).then(function(body) {
                console.log(body);
    });
    
    require 'rest-client'
    require 'json'
    headers = {
                'Accept' => 'application/json+fhir'
    }
    result = RestClient.get 'https://carefluence.acumenehr.com/fhir/Practitioner/{id}',
                params: {
                }, headers: headers
    p JSON.parse(result)
    
    import requests
    headers = {
                'Accept': 'application/json+fhir'
    }
    r = requests.get('https://carefluence.acumenehr.com/fhir/Practitioner/{id}', params={
    }, headers = headers)
    print r.json()
    
    URL obj = new URL("https://carefluence.acumenehr.com/fhir/Practitioner/{id}");
    HttpURLConnection con = (HttpURLConnection) obj.openConnection();
    con.setRequestMethod("GET");
    int responseCode = con.getResponseCode();
    BufferedReader in = new BufferedReader(
                new InputStreamReader(con.getInputStream()));
    String inputLine;
    StringBuffer response = new StringBuffer();
    while ((inputLine = in.readLine()) != null) {
                response.append(inputLine);
    }
    in.close();
    System.out.println(response.toString());
    
        public class APIManager
                {
                private string SMARTServerURL = "https://carefluence.acumenehr.com/fhir/"; //FHIR server.
                private string SMARTAuthorizeURL = ConfigurationSettings.AppSettings["SMARTAuthorizeURL"];
                private string SMARTTokenURL = ConfigurationSettings.AppSettings["SMARTTokenURL"]; 
                private string ClientId = ConfigurationSettings.AppSettings["ClientId"];
                private string ClientSecret = ConfigurationSettings.AppSettings["ClientSecret"];
                private string Scope = ConfigurationSettings.AppSettings["Scope"];
                private string Format = "json";
                private FhirClient Client;
                public APIManager()
                {
                InitializeClient();
                }
                public APIManager(string iServerURL, string iTokenURL, string iClientId, string iClientSecret, string iScope)
                {
                SMARTServerURL = iServerURL;
                SMARTTokenURL = iTokenURL;
                ClientId = iClientId;
                ClientSecret = iClientSecret;
                Scope = iScope;
                InitializeClient();
                }
                public void InitializeClient()
                {
                Client = new FhirClient(SMARTServerURL, SMARTTokenURL, ClientId, ClientSecret, Scope, "user_id", "user_password");
                Client.TimeOut = 60000;
                }
                public string ReadResource(string pType, string pResourceId)
                {
                Stream ReadStream = Client.Read(pType, pResourceId);
                StreamReader reader = new StreamReader(ReadStream);
                string Result = reader.ReadToEnd();
                return Result;
                }
                }
                public static void Main(string[] args)
                {
                APIManager Mgr = new APIManager();
                string PatientSearchResult = Mgr.ReadResource("Practitioner", "ProviderId");
                System.Console.WriteLine(PatientSearchResult); 
                }
    

    *Read Practitioner resource by id.

    Parameters

    Parameter In Type Required Description
    id path string true Resource ID

    Example responses


    {
            "resourceType": "Practitioner",
            "id": {
              "-value": "ProviderId"
            },
            "contained": {
              "Organization": {
                "id": {
                  "-value": "ORG"
                },
                "name": {
                  "-value": "Dr. First QA Test"
                },
                "telecom": {
                  "system": {
                    "-value": "phone"
                  },
                  "value": {
                    "-value": "732-124-4444"
                  },
                  "use": {
                    "-value": "work"
                  }
                },
                "address": {
                  "use": {
                    "-value": "work"
                  },
                  "line": {
                    "-value": "1128 Coronation Street"
                  },
                  "city": {
                    "-value": "Cary"
                  },
                  "state": {
                    "-value": "NC"
                  },
                  "postalCode": {
                    "-value": "27519"
                  }
                }
              }
            },
            "identifier": {
              "system": {},
              "value": {
                "-value": "1518318344"
              }
            },
            "name": {
              "family": {
                "-value": "Davis"
              },
              "given": [
                {
                  "-value": "Albert"
                },
                {}
              ]
            },
            "telecom": {
              "system": {
                "-value": "phone"
              },
              "value": {
                "-value": "732-124-4444"
              },
              "use": {
                "-value": "work"
              }
            },
            "address": {
              "use": {
                "-value": "work"
              },
              "line": {
                "-value": "1128 Coronation Street"
              },
              "city": {
                "-value": "Cary"
              },
              "state": {
                "-value": "NC"
              },
              "postalCode": {
                "-value": "27519"
              }
            },
            "practitionerRole": {
              "managingOrganization": {
                "reference": {
                  "-value": "#ORG"
                }
              }
            }
          }
    

    Responses

    Status Meaning Description Schema
    200 OK Success Practitioner
    404 Not Found NotFound None

    Procedure

    GET /Procedure

    Code samples

    # You can also use wget
    curl -X GET https://carefluence.acumenehr.com/fhir/Procedure \
      -H 'Accept: application/json+fhir'
    
    GET https://carefluence.acumenehr.com/fhir/Procedure HTTP/1.1
    Host: localhost
    Accept: application/json+fhir
    
    var headers = {
                'Accept':'application/json+fhir'
    };
    $.ajax({
                url: 'https://carefluence.acumenehr.com/fhir/Procedure',
                method: 'get',
                headers: headers,
                success: function(data) {
                console.log(JSON.stringify(data));
                }
    })
    
    const request = require('node-fetch');
    const headers = {
                'Accept':'application/json+fhir'
    };
    fetch('https://carefluence.acumenehr.com/fhir/Procedure',
    {
                method: 'GET',
                headers: headers
    })
    .then(function(res) {
                return res.json();
    }).then(function(body) {
                console.log(body);
    });
    
    require 'rest-client'
    require 'json'
    headers = {
                'Accept' => 'application/json+fhir'
    }
    result = RestClient.get 'https://carefluence.acumenehr.com/fhir/Procedure',
                params: {
                }, headers: headers
    p JSON.parse(result)
    
    import requests
    headers = {
                'Accept': 'application/json+fhir'
    }
    r = requests.get('https://carefluence.acumenehr.com/fhir/Procedure', params={
    }, headers = headers)
    print r.json()
    
    URL obj = new URL("https://carefluence.acumenehr.com/fhir/Procedure");
    HttpURLConnection con = (HttpURLConnection) obj.openConnection();
    con.setRequestMethod("GET");
    int responseCode = con.getResponseCode();
    BufferedReader in = new BufferedReader(
                new InputStreamReader(con.getInputStream()));
    String inputLine;
    StringBuffer response = new StringBuffer();
    while ((inputLine = in.readLine()) != null) {
                response.append(inputLine);
    }
    in.close();
    System.out.println(response.toString());
    
        public class APIManager
                {
                private string SMARTServerURL = "https://carefluence.acumenehr.com/fhir/"; //FHIR server.
                private string SMARTAuthorizeURL = ConfigurationSettings.AppSettings["SMARTAuthorizeURL"];
                private string SMARTTokenURL = ConfigurationSettings.AppSettings["SMARTTokenURL"]; 
                private string ClientId = ConfigurationSettings.AppSettings["ClientId"];
                private string ClientSecret = ConfigurationSettings.AppSettings["ClientSecret"];
                private string Scope = ConfigurationSettings.AppSettings["Scope"];
                private string Format = "json";
                private FhirClient Client;
                public APIManager()
                {
                InitializeClient();
                }
                public APIManager(string iServerURL, string iTokenURL, string iClientId, string iClientSecret, string iScope)
                {
                SMARTServerURL = iServerURL;
                SMARTTokenURL = iTokenURL;
                ClientId = iClientId;
                ClientSecret = iClientSecret;
                Scope = iScope;
                InitializeClient();
                }
                public void InitializeClient()
                {
                Client = new FhirClient(SMARTServerURL, SMARTTokenURL, ClientId, ClientSecret, Scope, "user_id", "user_password");
                Client.TimeOut = 60000;
                }
                public string SearchResource(string pType, List<string> pSearchParams)
                { 
                Stream ReadStream = Client.Read(pType, pResourceId);
                StreamReader reader = new StreamReader(ReadStream);
                string Result = reader.ReadToEnd();
                return Result;
                }
                }
                public static void Main(string[] args)
                {
                APIManager Mgr = new APIManager();
                //Search Patient's procedures by patient account number
                List<string> SearchParameters = new List<string>();
                string param = "patient=" + "2";
                SearchParameters.Add(param);
                string PatientSearchResult = Mgr.SearchResource("Procedure", SearchParameters);
                System.Console.WriteLine(PatientSearchResult); 
                }
    

    *Search procedures with the given keys.

    Parameters

    Parameter In Type Required Description
    patient query string true Patient ID (Org_ChartNumber).
    date query string(date) false Procedure performed date

    Example responses


    {
      "resourceType": "Bundle",
      "id": "bundle-example",
      "meta": {
        "lastUpdated": ""
      },
      "type": "searchset",
      "base": "",
      "total": 50,
      "link": [
        {
          "relation": "self",
          "url": "https://carefluence.acumenehr.com/fhir/Procedure?patient=ORG_CHART"
        },
        {
          "relation": "next",
          "url": "https://carefluence.acumenehr.com/fhir/Procedure?patient=ORG_CHART&searchId=gx3_11212&page=2"
        }
      ],
      "entry": [
        {
          "resource": {
            "resourceType": "Procedure",
            "id": {
              "-value": "_tprocedure-4LjjRrUN0"
            },
            "patient": {
              "reference": {
                "-value": "Patient/ORG_CHART"
              },
              "display": {
                "-value": "Newman, Alice Jones"
              }
            },
            "type": null,
            "performedDateTime": {
              "-value": "06/22/2015"
            },
            "location": {
              "reference": {
                "-value": "Location/"
              },
              "display": {
                "-value": "Neighborhood Physicians Practice Telephone: 555-5551002 Address 2472 Rocky place, Beaverton,OR-97006"
              }
            }
          }
         }
        ]
    }
    

    Responses

    Status Meaning Description Schema
    200 OK Success Inline

    ReferralRequest

    GET /ReferralRequest

    Code samples

    # You can also use wget
    curl -X GET https://carefluence.acumenehr.com/fhir/ReferralRequest \
      -H 'Accept: application/json+fhir'
    
    GET https://carefluence.acumenehr.com/fhir/ReferralRequest HTTP/1.1
    Host: localhost
    Accept: application/json+fhir
    
    var headers = {
                'Accept':'application/json+fhir'
    };
    $.ajax({
                url: 'https://carefluence.acumenehr.com/fhir/ReferralRequest',
                method: 'get',
                headers: headers,
                success: function(data) {
                console.log(JSON.stringify(data));
                }
    })
    
    const request = require('node-fetch');
    const headers = {
                'Accept':'application/json+fhir'
    };
    fetch('https://carefluence.acumenehr.com/fhir/ReferralRequest',
    {
                method: 'GET',
                headers: headers
    })
    .then(function(res) {
                return res.json();
    }).then(function(body) {
                console.log(body);
    });
    
    require 'rest-client'
    require 'json'
    headers = {
                'Accept' => 'application/json+fhir'
    }
    result = RestClient.get 'https://carefluence.acumenehr.com/fhir/ReferralRequest',
                params: {
                }, headers: headers
    p JSON.parse(result)
    
    import requests
    headers = {
                'Accept': 'application/json+fhir'
    }
    r = requests.get('https://carefluence.acumenehr.com/fhir/ReferralRequest', params={
    }, headers = headers)
    print r.json()
    
    URL obj = new URL("https://carefluence.acumenehr.com/fhir/ReferralRequest");
    HttpURLConnection con = (HttpURLConnection) obj.openConnection();
    con.setRequestMethod("GET");
    int responseCode = con.getResponseCode();
    BufferedReader in = new BufferedReader(
                new InputStreamReader(con.getInputStream()));
    String inputLine;
    StringBuffer response = new StringBuffer();
    while ((inputLine = in.readLine()) != null) {
                response.append(inputLine);
    }
    in.close();
    System.out.println(response.toString());
    
        public class APIManager
                {
                private string SMARTServerURL = "https://carefluence.acumenehr.com/fhir/"; //FHIR server.
                private string SMARTAuthorizeURL = ConfigurationSettings.AppSettings["SMARTAuthorizeURL"];
                private string SMARTTokenURL = ConfigurationSettings.AppSettings["SMARTTokenURL"]; 
                private string ClientId = ConfigurationSettings.AppSettings["ClientId"];
                private string ClientSecret = ConfigurationSettings.AppSettings["ClientSecret"];
                private string Scope = ConfigurationSettings.AppSettings["Scope"];
                private string Format = "json";
                private FhirClient Client;
                public APIManager()
                {
                InitializeClient();
                }
                public APIManager(string iServerURL, string iTokenURL, string iClientId, string iClientSecret, string iScope)
                {
                SMARTServerURL = iServerURL;
                SMARTTokenURL = iTokenURL;
                ClientId = iClientId;
                ClientSecret = iClientSecret;
                Scope = iScope;
                InitializeClient();
                }
                public void InitializeClient()
                {
                Client = new FhirClient(SMARTServerURL, SMARTTokenURL, ClientId, ClientSecret, Scope, "user_id", "user_password");
                Client.TimeOut = 60000;
                }
                public string SearchResource(string pType, List<string> pSearchParams)
                { 
                Stream ReadStream = Client.Read(pType, pResourceId);
                StreamReader reader = new StreamReader(ReadStream);
                string Result = reader.ReadToEnd();
                return Result;
                }
                }
                public static void Main(string[] args)
                {
                APIManager Mgr = new APIManager();
                //Search Patient's allergies By patient account number
                List<string> SearchParameters = new List<string>();
                string param = "patient=" + "2";
                SearchParameters.Add(param);
                string PatientSearchResult = Mgr.SearchResource("ReferralRequest", SearchParameters);
                System.Console.WriteLine(PatientSearchResult); 
                }
    

    *Search Referral requests with the given keys.

    Parameters

    Parameter In Type Required Description
    patient query string false Patient ID (Org_ChartNumber).
    date query string(date) false Search resource category by the date range

    Example responses


    {
      "resourceType": "Bundle",
      "id": "bundle-example",
      "meta": {
        "lastUpdated": ""
      },
      "type": "searchset",
      "base": "",
      "total": 50,
      "link": [
        {
          "relation": "self",
          "url": "https://carefluence.acumenehr.com/fhir/ReferralRequest?patient=ORG_CHART"
        },
        {
          "relation": "next",
          "url": "https://carefluence.acumenehr.com/fhir/ReferralRequest?patient=ORG_CHART&searchId=gx3_11212&page=2"
        }
      ],
      "entry": [
        {
          "resource": {
            "resourceType": "ReferralRequest",
            "id": {
              "-value": "_tReferralRequest_oP0H9pc50"
            },
            "description": {
              "-value": "Ms Alice Newman is being referred to Community Health Hospitals Inpatient facility because of the high fever noticed and suspected Anemia."
            },
            "fulfillmentTime": {
              "start": {
                "-value": "05/24/2017 16:08:42"
              }
            }
          }
         }
        ]
    }
    

    Responses

    Status Meaning Description Schema
    200 OK Success Inline