MiPro API

OrganisationData

organisationExtOrganisationIdStatusGet

Check Organisation Status

Used to check the status of your organisation with MiPro


/organisation/{extOrganisationId}/status

Usage and SDK Samples

curl -X GET\
-H "X-API-KEY: [[apiKey]]"\
-H "Accept: application/json"\
"https://api.mipro.com/organisation/{extOrganisationId}/status"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.OrganisationDataApi;

import java.io.File;
import java.util.*;

public class OrganisationDataApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();

        // Configure API key authorization: apiKey
        ApiKeyAuth apiKey = (ApiKeyAuth) defaultClient.getAuthentication("apiKey");
        apiKey.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //apiKey.setApiKeyPrefix("Token");

        OrganisationDataApi apiInstance = new OrganisationDataApi();
        String xAPIKEY = xAPIKEY_example; // String | API authentication key
        String extOrganisationId = extOrganisationId_example; // String | External organisation identifier
        try {
            OrganisationStatus result = apiInstance.organisationExtOrganisationIdStatusGet(xAPIKEY, extOrganisationId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling OrganisationDataApi#organisationExtOrganisationIdStatusGet");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.OrganisationDataApi;

public class OrganisationDataApiExample {

    public static void main(String[] args) {
        OrganisationDataApi apiInstance = new OrganisationDataApi();
        String xAPIKEY = xAPIKEY_example; // String | API authentication key
        String extOrganisationId = extOrganisationId_example; // String | External organisation identifier
        try {
            OrganisationStatus result = apiInstance.organisationExtOrganisationIdStatusGet(xAPIKEY, extOrganisationId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling OrganisationDataApi#organisationExtOrganisationIdStatusGet");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure API key authorization: (authentication scheme: apiKey)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"X-API-KEY"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"X-API-KEY"];
String *xAPIKEY = xAPIKEY_example; // API authentication key
String *extOrganisationId = extOrganisationId_example; // External organisation identifier

OrganisationDataApi *apiInstance = [[OrganisationDataApi alloc] init];

// Check Organisation Status
[apiInstance organisationExtOrganisationIdStatusGetWith:xAPIKEY
    extOrganisationId:extOrganisationId
              completionHandler: ^(OrganisationStatus output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var MiProApi = require('mi_pro_api');
var defaultClient = MiProApi.ApiClient.instance;

// Configure API key authorization: apiKey
var apiKey = defaultClient.authentications['apiKey'];
apiKey.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//apiKey.apiKeyPrefix['X-API-KEY'] = "Token"

var api = new MiProApi.OrganisationDataApi()
var xAPIKEY = xAPIKEY_example; // {{String}} API authentication key
var extOrganisationId = extOrganisationId_example; // {{String}} External organisation identifier

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.organisationExtOrganisationIdStatusGet(xAPIKEY, extOrganisationId, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class organisationExtOrganisationIdStatusGetExample
    {
        public void main()
        {

            // Configure API key authorization: apiKey
            Configuration.Default.ApiKey.Add("X-API-KEY", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("X-API-KEY", "Bearer");

            var apiInstance = new OrganisationDataApi();
            var xAPIKEY = xAPIKEY_example;  // String | API authentication key
            var extOrganisationId = extOrganisationId_example;  // String | External organisation identifier

            try
            {
                // Check Organisation Status
                OrganisationStatus result = apiInstance.organisationExtOrganisationIdStatusGet(xAPIKEY, extOrganisationId);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling OrganisationDataApi.organisationExtOrganisationIdStatusGet: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: apiKey
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('X-API-KEY', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('X-API-KEY', 'Bearer');

$api_instance = new Swagger\Client\ApiOrganisationDataApi();
$xAPIKEY = xAPIKEY_example; // String | API authentication key
$extOrganisationId = extOrganisationId_example; // String | External organisation identifier

try {
    $result = $api_instance->organisationExtOrganisationIdStatusGet($xAPIKEY, $extOrganisationId);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling OrganisationDataApi->organisationExtOrganisationIdStatusGet: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::OrganisationDataApi;

# Configure API key authorization: apiKey
$WWW::SwaggerClient::Configuration::api_key->{'X-API-KEY'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'X-API-KEY'} = "Bearer";

my $api_instance = WWW::SwaggerClient::OrganisationDataApi->new();
my $xAPIKEY = xAPIKEY_example; # String | API authentication key
my $extOrganisationId = extOrganisationId_example; # String | External organisation identifier

eval { 
    my $result = $api_instance->organisationExtOrganisationIdStatusGet(xAPIKEY => $xAPIKEY, extOrganisationId => $extOrganisationId);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling OrganisationDataApi->organisationExtOrganisationIdStatusGet: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# Configure API key authorization: apiKey
swagger_client.configuration.api_key['X-API-KEY'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['X-API-KEY'] = 'Bearer'

# create an instance of the API class
api_instance = swagger_client.OrganisationDataApi()
xAPIKEY = xAPIKEY_example # String | API authentication key
extOrganisationId = extOrganisationId_example # String | External organisation identifier

try: 
    # Check Organisation Status
    api_response = api_instance.organisation_ext_organisation_id_status_get(xAPIKEY, extOrganisationId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling OrganisationDataApi->organisationExtOrganisationIdStatusGet: %s\n" % e)

Parameters

Path parameters
Name Description
extOrganisationId*
String
External organisation identifier
Required
Header parameters
Name Description
X-API-KEY*
String
API authentication key
Required

Responses

Status: 200 - Organisation status retrieved successfully

Status: 404 - Organisation not found


PatientData

getPatientMedicalRecords

Retrieve Medical Records

Returns several lists of the different medical records according to the query parameters.


/patient/{extPatientId}/medical-record

Usage and SDK Samples

curl -X GET\
-H "X-API-KEY: [[apiKey]]"\
-H "Accept: application/json"\
"https://api.mipro.com/patient/{extPatientId}/medical-record?extOrganisationId =&start_date=&end_date=&all=&allergies=&problems=&consultations=&medications=&investigations=&immunisations=&documents="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.PatientDataApi;

import java.io.File;
import java.util.*;

public class PatientDataApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();

        // Configure API key authorization: apiKey
        ApiKeyAuth apiKey = (ApiKeyAuth) defaultClient.getAuthentication("apiKey");
        apiKey.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //apiKey.setApiKeyPrefix("Token");

        PatientDataApi apiInstance = new PatientDataApi();
        String xAPIKEY = xAPIKEY_example; // String | API authentication key
        String extOrganisationId  = extOrganisationId _example; // String | Medical organisation identifier
        String extPatientId = extPatientId_example; // String | Unique identifier for the patient
        date startDate = 2013-10-20; // date | Filter records from this date (YYYY-MM-DD)
        date endDate = 2013-10-20; // date | Filter records up to this date (YYYY-MM-DD)
        String all = all_example; // String | Marks when all lists should be returned
        String allergies = allergies_example; // String | Marks when allergies lists should be returned
        String problems = problems_example; // String | Marks when problems lists should be returned
        String consultations = consultations_example; // String | Marks when consultations lists should be returned
        String medications = medications_example; // String | Marks when medications lists should be returned
        String investigations = investigations_example; // String | Marks when investigations lists should be returned
        String immunisations = immunisations_example; // String | Marks when immunisations lists should be returned
        String documents = documents_example; // String | Marks when documents lists should be returned
        try {
            MedicalRecords result = apiInstance.getPatientMedicalRecords(xAPIKEY, extOrganisationId , extPatientId, startDate, endDate, all, allergies, problems, consultations, medications, investigations, immunisations, documents);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PatientDataApi#getPatientMedicalRecords");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.PatientDataApi;

public class PatientDataApiExample {

    public static void main(String[] args) {
        PatientDataApi apiInstance = new PatientDataApi();
        String xAPIKEY = xAPIKEY_example; // String | API authentication key
        String extOrganisationId  = extOrganisationId _example; // String | Medical organisation identifier
        String extPatientId = extPatientId_example; // String | Unique identifier for the patient
        date startDate = 2013-10-20; // date | Filter records from this date (YYYY-MM-DD)
        date endDate = 2013-10-20; // date | Filter records up to this date (YYYY-MM-DD)
        String all = all_example; // String | Marks when all lists should be returned
        String allergies = allergies_example; // String | Marks when allergies lists should be returned
        String problems = problems_example; // String | Marks when problems lists should be returned
        String consultations = consultations_example; // String | Marks when consultations lists should be returned
        String medications = medications_example; // String | Marks when medications lists should be returned
        String investigations = investigations_example; // String | Marks when investigations lists should be returned
        String immunisations = immunisations_example; // String | Marks when immunisations lists should be returned
        String documents = documents_example; // String | Marks when documents lists should be returned
        try {
            MedicalRecords result = apiInstance.getPatientMedicalRecords(xAPIKEY, extOrganisationId , extPatientId, startDate, endDate, all, allergies, problems, consultations, medications, investigations, immunisations, documents);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PatientDataApi#getPatientMedicalRecords");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure API key authorization: (authentication scheme: apiKey)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"X-API-KEY"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"X-API-KEY"];
String *xAPIKEY = xAPIKEY_example; // API authentication key
String *extOrganisationId  = extOrganisationId _example; // Medical organisation identifier
String *extPatientId = extPatientId_example; // Unique identifier for the patient
date *startDate = 2013-10-20; // Filter records from this date (YYYY-MM-DD) (optional)
date *endDate = 2013-10-20; // Filter records up to this date (YYYY-MM-DD) (optional)
String *all = all_example; // Marks when all lists should be returned (optional)
String *allergies = allergies_example; // Marks when allergies lists should be returned (optional)
String *problems = problems_example; // Marks when problems lists should be returned (optional)
String *consultations = consultations_example; // Marks when consultations lists should be returned (optional)
String *medications = medications_example; // Marks when medications lists should be returned (optional)
String *investigations = investigations_example; // Marks when investigations lists should be returned (optional)
String *immunisations = immunisations_example; // Marks when immunisations lists should be returned (optional)
String *documents = documents_example; // Marks when documents lists should be returned (optional)

PatientDataApi *apiInstance = [[PatientDataApi alloc] init];

// Retrieve Medical Records
[apiInstance getPatientMedicalRecordsWith:xAPIKEY
    extOrganisationId :extOrganisationId 
    extPatientId:extPatientId
    startDate:startDate
    endDate:endDate
    all:all
    allergies:allergies
    problems:problems
    consultations:consultations
    medications:medications
    investigations:investigations
    immunisations:immunisations
    documents:documents
              completionHandler: ^(MedicalRecords output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var MiProApi = require('mi_pro_api');
var defaultClient = MiProApi.ApiClient.instance;

// Configure API key authorization: apiKey
var apiKey = defaultClient.authentications['apiKey'];
apiKey.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//apiKey.apiKeyPrefix['X-API-KEY'] = "Token"

var api = new MiProApi.PatientDataApi()
var xAPIKEY = xAPIKEY_example; // {{String}} API authentication key
var extOrganisationId  = extOrganisationId _example; // {{String}} Medical organisation identifier
var extPatientId = extPatientId_example; // {{String}} Unique identifier for the patient
var opts = { 
  'startDate': 2013-10-20, // {{date}} Filter records from this date (YYYY-MM-DD)
  'endDate': 2013-10-20, // {{date}} Filter records up to this date (YYYY-MM-DD)
  'all': all_example, // {{String}} Marks when all lists should be returned
  'allergies': allergies_example, // {{String}} Marks when allergies lists should be returned
  'problems': problems_example, // {{String}} Marks when problems lists should be returned
  'consultations': consultations_example, // {{String}} Marks when consultations lists should be returned
  'medications': medications_example, // {{String}} Marks when medications lists should be returned
  'investigations': investigations_example, // {{String}} Marks when investigations lists should be returned
  'immunisations': immunisations_example, // {{String}} Marks when immunisations lists should be returned
  'documents': documents_example // {{String}} Marks when documents lists should be returned
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getPatientMedicalRecords(xAPIKEY, extOrganisationId , extPatientId, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class getPatientMedicalRecordsExample
    {
        public void main()
        {

            // Configure API key authorization: apiKey
            Configuration.Default.ApiKey.Add("X-API-KEY", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("X-API-KEY", "Bearer");

            var apiInstance = new PatientDataApi();
            var xAPIKEY = xAPIKEY_example;  // String | API authentication key
            var extOrganisationId  = extOrganisationId _example;  // String | Medical organisation identifier
            var extPatientId = extPatientId_example;  // String | Unique identifier for the patient
            var startDate = 2013-10-20;  // date | Filter records from this date (YYYY-MM-DD) (optional) 
            var endDate = 2013-10-20;  // date | Filter records up to this date (YYYY-MM-DD) (optional) 
            var all = all_example;  // String | Marks when all lists should be returned (optional) 
            var allergies = allergies_example;  // String | Marks when allergies lists should be returned (optional) 
            var problems = problems_example;  // String | Marks when problems lists should be returned (optional) 
            var consultations = consultations_example;  // String | Marks when consultations lists should be returned (optional) 
            var medications = medications_example;  // String | Marks when medications lists should be returned (optional) 
            var investigations = investigations_example;  // String | Marks when investigations lists should be returned (optional) 
            var immunisations = immunisations_example;  // String | Marks when immunisations lists should be returned (optional) 
            var documents = documents_example;  // String | Marks when documents lists should be returned (optional) 

            try
            {
                // Retrieve Medical Records
                MedicalRecords result = apiInstance.getPatientMedicalRecords(xAPIKEY, extOrganisationId , extPatientId, startDate, endDate, all, allergies, problems, consultations, medications, investigations, immunisations, documents);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling PatientDataApi.getPatientMedicalRecords: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: apiKey
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('X-API-KEY', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('X-API-KEY', 'Bearer');

$api_instance = new Swagger\Client\ApiPatientDataApi();
$xAPIKEY = xAPIKEY_example; // String | API authentication key
$extOrganisationId  = extOrganisationId _example; // String | Medical organisation identifier
$extPatientId = extPatientId_example; // String | Unique identifier for the patient
$startDate = 2013-10-20; // date | Filter records from this date (YYYY-MM-DD)
$endDate = 2013-10-20; // date | Filter records up to this date (YYYY-MM-DD)
$all = all_example; // String | Marks when all lists should be returned
$allergies = allergies_example; // String | Marks when allergies lists should be returned
$problems = problems_example; // String | Marks when problems lists should be returned
$consultations = consultations_example; // String | Marks when consultations lists should be returned
$medications = medications_example; // String | Marks when medications lists should be returned
$investigations = investigations_example; // String | Marks when investigations lists should be returned
$immunisations = immunisations_example; // String | Marks when immunisations lists should be returned
$documents = documents_example; // String | Marks when documents lists should be returned

try {
    $result = $api_instance->getPatientMedicalRecords($xAPIKEY, $extOrganisationId , $extPatientId, $startDate, $endDate, $all, $allergies, $problems, $consultations, $medications, $investigations, $immunisations, $documents);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling PatientDataApi->getPatientMedicalRecords: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::PatientDataApi;

# Configure API key authorization: apiKey
$WWW::SwaggerClient::Configuration::api_key->{'X-API-KEY'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'X-API-KEY'} = "Bearer";

my $api_instance = WWW::SwaggerClient::PatientDataApi->new();
my $xAPIKEY = xAPIKEY_example; # String | API authentication key
my $extOrganisationId  = extOrganisationId _example; # String | Medical organisation identifier
my $extPatientId = extPatientId_example; # String | Unique identifier for the patient
my $startDate = 2013-10-20; # date | Filter records from this date (YYYY-MM-DD)
my $endDate = 2013-10-20; # date | Filter records up to this date (YYYY-MM-DD)
my $all = all_example; # String | Marks when all lists should be returned
my $allergies = allergies_example; # String | Marks when allergies lists should be returned
my $problems = problems_example; # String | Marks when problems lists should be returned
my $consultations = consultations_example; # String | Marks when consultations lists should be returned
my $medications = medications_example; # String | Marks when medications lists should be returned
my $investigations = investigations_example; # String | Marks when investigations lists should be returned
my $immunisations = immunisations_example; # String | Marks when immunisations lists should be returned
my $documents = documents_example; # String | Marks when documents lists should be returned

eval { 
    my $result = $api_instance->getPatientMedicalRecords(xAPIKEY => $xAPIKEY, extOrganisationId  => $extOrganisationId , extPatientId => $extPatientId, startDate => $startDate, endDate => $endDate, all => $all, allergies => $allergies, problems => $problems, consultations => $consultations, medications => $medications, investigations => $investigations, immunisations => $immunisations, documents => $documents);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling PatientDataApi->getPatientMedicalRecords: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# Configure API key authorization: apiKey
swagger_client.configuration.api_key['X-API-KEY'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['X-API-KEY'] = 'Bearer'

# create an instance of the API class
api_instance = swagger_client.PatientDataApi()
xAPIKEY = xAPIKEY_example # String | API authentication key
extOrganisationId  = extOrganisationId _example # String | Medical organisation identifier
extPatientId = extPatientId_example # String | Unique identifier for the patient
startDate = 2013-10-20 # date | Filter records from this date (YYYY-MM-DD) (optional)
endDate = 2013-10-20 # date | Filter records up to this date (YYYY-MM-DD) (optional)
all = all_example # String | Marks when all lists should be returned (optional)
allergies = allergies_example # String | Marks when allergies lists should be returned (optional)
problems = problems_example # String | Marks when problems lists should be returned (optional)
consultations = consultations_example # String | Marks when consultations lists should be returned (optional)
medications = medications_example # String | Marks when medications lists should be returned (optional)
investigations = investigations_example # String | Marks when investigations lists should be returned (optional)
immunisations = immunisations_example # String | Marks when immunisations lists should be returned (optional)
documents = documents_example # String | Marks when documents lists should be returned (optional)

try: 
    # Retrieve Medical Records
    api_response = api_instance.get_patient_medical_records(xAPIKEY, extOrganisationId , extPatientId, startDate=startDate, endDate=endDate, all=all, allergies=allergies, problems=problems, consultations=consultations, medications=medications, investigations=investigations, immunisations=immunisations, documents=documents)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling PatientDataApi->getPatientMedicalRecords: %s\n" % e)

Parameters

Path parameters
Name Description
extPatientId*
String
Unique identifier for the patient
Required
Header parameters
Name Description
X-API-KEY*
String
API authentication key
Required
Query parameters
Name Description
extOrganisationId *
String
Medical organisation identifier
Required
start_date
date (date)
Filter records from this date (YYYY-MM-DD)
end_date
date (date)
Filter records up to this date (YYYY-MM-DD)
all
String
Marks when all lists should be returned
allergies
String
Marks when allergies lists should be returned
problems
String
Marks when problems lists should be returned
consultations
String
Marks when consultations lists should be returned
medications
String
Marks when medications lists should be returned
investigations
String
Marks when investigations lists should be returned
immunisations
String
Marks when immunisations lists should be returned
documents
String
Marks when documents lists should be returned

Responses

Status: 200 - Successful response containing a list of problems.


patientExtPatientIdAccessGet

Check Patient Access Rights

Retrieve the current access rights granted by the patient to the organisation


/patient/{extPatientId}/access

Usage and SDK Samples

curl -X GET\
-H "X-API-KEY: [[apiKey]]"\
-H "Accept: application/json"\
"https://api.mipro.com/patient/{extPatientId}/access?extOrganisationId="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.PatientDataApi;

import java.io.File;
import java.util.*;

public class PatientDataApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();

        // Configure API key authorization: apiKey
        ApiKeyAuth apiKey = (ApiKeyAuth) defaultClient.getAuthentication("apiKey");
        apiKey.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //apiKey.setApiKeyPrefix("Token");

        PatientDataApi apiInstance = new PatientDataApi();
        String xAPIKEY = xAPIKEY_example; // String | API authentication key
        String extPatientId = extPatientId_example; // String | External patient identifier
        String extOrganisationId = extOrganisationId_example; // String | External organisation identifier
        try {
            PatientAccessRights result = apiInstance.patientExtPatientIdAccessGet(xAPIKEY, extPatientId, extOrganisationId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PatientDataApi#patientExtPatientIdAccessGet");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.PatientDataApi;

public class PatientDataApiExample {

    public static void main(String[] args) {
        PatientDataApi apiInstance = new PatientDataApi();
        String xAPIKEY = xAPIKEY_example; // String | API authentication key
        String extPatientId = extPatientId_example; // String | External patient identifier
        String extOrganisationId = extOrganisationId_example; // String | External organisation identifier
        try {
            PatientAccessRights result = apiInstance.patientExtPatientIdAccessGet(xAPIKEY, extPatientId, extOrganisationId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PatientDataApi#patientExtPatientIdAccessGet");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure API key authorization: (authentication scheme: apiKey)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"X-API-KEY"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"X-API-KEY"];
String *xAPIKEY = xAPIKEY_example; // API authentication key
String *extPatientId = extPatientId_example; // External patient identifier
String *extOrganisationId = extOrganisationId_example; // External organisation identifier

PatientDataApi *apiInstance = [[PatientDataApi alloc] init];

// Check Patient Access Rights
[apiInstance patientExtPatientIdAccessGetWith:xAPIKEY
    extPatientId:extPatientId
    extOrganisationId:extOrganisationId
              completionHandler: ^(PatientAccessRights output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var MiProApi = require('mi_pro_api');
var defaultClient = MiProApi.ApiClient.instance;

// Configure API key authorization: apiKey
var apiKey = defaultClient.authentications['apiKey'];
apiKey.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//apiKey.apiKeyPrefix['X-API-KEY'] = "Token"

var api = new MiProApi.PatientDataApi()
var xAPIKEY = xAPIKEY_example; // {{String}} API authentication key
var extPatientId = extPatientId_example; // {{String}} External patient identifier
var extOrganisationId = extOrganisationId_example; // {{String}} External organisation identifier

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.patientExtPatientIdAccessGet(xAPIKEY, extPatientId, extOrganisationId, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class patientExtPatientIdAccessGetExample
    {
        public void main()
        {

            // Configure API key authorization: apiKey
            Configuration.Default.ApiKey.Add("X-API-KEY", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("X-API-KEY", "Bearer");

            var apiInstance = new PatientDataApi();
            var xAPIKEY = xAPIKEY_example;  // String | API authentication key
            var extPatientId = extPatientId_example;  // String | External patient identifier
            var extOrganisationId = extOrganisationId_example;  // String | External organisation identifier

            try
            {
                // Check Patient Access Rights
                PatientAccessRights result = apiInstance.patientExtPatientIdAccessGet(xAPIKEY, extPatientId, extOrganisationId);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling PatientDataApi.patientExtPatientIdAccessGet: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: apiKey
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('X-API-KEY', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('X-API-KEY', 'Bearer');

$api_instance = new Swagger\Client\ApiPatientDataApi();
$xAPIKEY = xAPIKEY_example; // String | API authentication key
$extPatientId = extPatientId_example; // String | External patient identifier
$extOrganisationId = extOrganisationId_example; // String | External organisation identifier

try {
    $result = $api_instance->patientExtPatientIdAccessGet($xAPIKEY, $extPatientId, $extOrganisationId);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling PatientDataApi->patientExtPatientIdAccessGet: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::PatientDataApi;

# Configure API key authorization: apiKey
$WWW::SwaggerClient::Configuration::api_key->{'X-API-KEY'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'X-API-KEY'} = "Bearer";

my $api_instance = WWW::SwaggerClient::PatientDataApi->new();
my $xAPIKEY = xAPIKEY_example; # String | API authentication key
my $extPatientId = extPatientId_example; # String | External patient identifier
my $extOrganisationId = extOrganisationId_example; # String | External organisation identifier

eval { 
    my $result = $api_instance->patientExtPatientIdAccessGet(xAPIKEY => $xAPIKEY, extPatientId => $extPatientId, extOrganisationId => $extOrganisationId);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling PatientDataApi->patientExtPatientIdAccessGet: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# Configure API key authorization: apiKey
swagger_client.configuration.api_key['X-API-KEY'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['X-API-KEY'] = 'Bearer'

# create an instance of the API class
api_instance = swagger_client.PatientDataApi()
xAPIKEY = xAPIKEY_example # String | API authentication key
extPatientId = extPatientId_example # String | External patient identifier
extOrganisationId = extOrganisationId_example # String | External organisation identifier

try: 
    # Check Patient Access Rights
    api_response = api_instance.patient_ext_patient_id_access_get(xAPIKEY, extPatientId, extOrganisationId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling PatientDataApi->patientExtPatientIdAccessGet: %s\n" % e)

Parameters

Path parameters
Name Description
extPatientId*
String
External patient identifier
Required
Header parameters
Name Description
X-API-KEY*
String
API authentication key
Required
Query parameters
Name Description
extOrganisationId*
String
External organisation identifier
Required

Responses

Status: 200 - Access rights retrieved successfully

Status: 400 - Bad request

Status: 404 - Patient not found


patientExtPatientIdConnectPost

Connect/Create MiPro Patient

To connect your Patient to a Patient in MiPro. If the Patient is not found in the MiPro database an invitation to join MiPro will be sent to the Patient asking them to register and share their medical records with the requesting organisation. If the Patient is found, a request will be sent to the Patient asking them to allow the requesting organisation access to their medical records.


/patient/{extPatientId}/connect

Usage and SDK Samples

curl -X POST\
-H "X-API-KEY: [[apiKey]]"\
-H "Content-Type: application/json"\
"https://api.mipro.com/patient/{extPatientId}/connect?extOrganisationId="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.PatientDataApi;

import java.io.File;
import java.util.*;

public class PatientDataApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();

        // Configure API key authorization: apiKey
        ApiKeyAuth apiKey = (ApiKeyAuth) defaultClient.getAuthentication("apiKey");
        apiKey.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //apiKey.setApiKeyPrefix("Token");

        PatientDataApi apiInstance = new PatientDataApi();
        PatientConnectRequest body = ; // PatientConnectRequest | 
        String xAPIKEY = xAPIKEY_example; // String | API authentication key
        String extOrganisationId = extOrganisationId_example; // String | Unique identifier used to reference the requesting organisation in external systems
        String extPatientId = extPatientId_example; // String | Unique identifier used to reference the patient in external systems
        try {
            apiInstance.patientExtPatientIdConnectPost(body, xAPIKEY, extOrganisationId, extPatientId);
        } catch (ApiException e) {
            System.err.println("Exception when calling PatientDataApi#patientExtPatientIdConnectPost");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.PatientDataApi;

public class PatientDataApiExample {

    public static void main(String[] args) {
        PatientDataApi apiInstance = new PatientDataApi();
        PatientConnectRequest body = ; // PatientConnectRequest | 
        String xAPIKEY = xAPIKEY_example; // String | API authentication key
        String extOrganisationId = extOrganisationId_example; // String | Unique identifier used to reference the requesting organisation in external systems
        String extPatientId = extPatientId_example; // String | Unique identifier used to reference the patient in external systems
        try {
            apiInstance.patientExtPatientIdConnectPost(body, xAPIKEY, extOrganisationId, extPatientId);
        } catch (ApiException e) {
            System.err.println("Exception when calling PatientDataApi#patientExtPatientIdConnectPost");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure API key authorization: (authentication scheme: apiKey)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"X-API-KEY"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"X-API-KEY"];
PatientConnectRequest *body = ; // 
String *xAPIKEY = xAPIKEY_example; // API authentication key
String *extOrganisationId = extOrganisationId_example; // Unique identifier used to reference the requesting organisation in external systems
String *extPatientId = extPatientId_example; // Unique identifier used to reference the patient in external systems

PatientDataApi *apiInstance = [[PatientDataApi alloc] init];

// Connect/Create MiPro Patient
[apiInstance patientExtPatientIdConnectPostWith:body
    xAPIKEY:xAPIKEY
    extOrganisationId:extOrganisationId
    extPatientId:extPatientId
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var MiProApi = require('mi_pro_api');
var defaultClient = MiProApi.ApiClient.instance;

// Configure API key authorization: apiKey
var apiKey = defaultClient.authentications['apiKey'];
apiKey.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//apiKey.apiKeyPrefix['X-API-KEY'] = "Token"

var api = new MiProApi.PatientDataApi()
var body = ; // {{PatientConnectRequest}} 
var xAPIKEY = xAPIKEY_example; // {{String}} API authentication key
var extOrganisationId = extOrganisationId_example; // {{String}} Unique identifier used to reference the requesting organisation in external systems
var extPatientId = extPatientId_example; // {{String}} Unique identifier used to reference the patient in external systems

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.patientExtPatientIdConnectPost(bodyxAPIKEYextOrganisationIdextPatientId, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class patientExtPatientIdConnectPostExample
    {
        public void main()
        {

            // Configure API key authorization: apiKey
            Configuration.Default.ApiKey.Add("X-API-KEY", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("X-API-KEY", "Bearer");

            var apiInstance = new PatientDataApi();
            var body = new PatientConnectRequest(); // PatientConnectRequest | 
            var xAPIKEY = xAPIKEY_example;  // String | API authentication key
            var extOrganisationId = extOrganisationId_example;  // String | Unique identifier used to reference the requesting organisation in external systems
            var extPatientId = extPatientId_example;  // String | Unique identifier used to reference the patient in external systems

            try
            {
                // Connect/Create MiPro Patient
                apiInstance.patientExtPatientIdConnectPost(body, xAPIKEY, extOrganisationId, extPatientId);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling PatientDataApi.patientExtPatientIdConnectPost: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: apiKey
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('X-API-KEY', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('X-API-KEY', 'Bearer');

$api_instance = new Swagger\Client\ApiPatientDataApi();
$body = ; // PatientConnectRequest | 
$xAPIKEY = xAPIKEY_example; // String | API authentication key
$extOrganisationId = extOrganisationId_example; // String | Unique identifier used to reference the requesting organisation in external systems
$extPatientId = extPatientId_example; // String | Unique identifier used to reference the patient in external systems

try {
    $api_instance->patientExtPatientIdConnectPost($body, $xAPIKEY, $extOrganisationId, $extPatientId);
} catch (Exception $e) {
    echo 'Exception when calling PatientDataApi->patientExtPatientIdConnectPost: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::PatientDataApi;

# Configure API key authorization: apiKey
$WWW::SwaggerClient::Configuration::api_key->{'X-API-KEY'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'X-API-KEY'} = "Bearer";

my $api_instance = WWW::SwaggerClient::PatientDataApi->new();
my $body = WWW::SwaggerClient::Object::PatientConnectRequest->new(); # PatientConnectRequest | 
my $xAPIKEY = xAPIKEY_example; # String | API authentication key
my $extOrganisationId = extOrganisationId_example; # String | Unique identifier used to reference the requesting organisation in external systems
my $extPatientId = extPatientId_example; # String | Unique identifier used to reference the patient in external systems

eval { 
    $api_instance->patientExtPatientIdConnectPost(body => $body, xAPIKEY => $xAPIKEY, extOrganisationId => $extOrganisationId, extPatientId => $extPatientId);
};
if ($@) {
    warn "Exception when calling PatientDataApi->patientExtPatientIdConnectPost: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# Configure API key authorization: apiKey
swagger_client.configuration.api_key['X-API-KEY'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['X-API-KEY'] = 'Bearer'

# create an instance of the API class
api_instance = swagger_client.PatientDataApi()
body =  # PatientConnectRequest | 
xAPIKEY = xAPIKEY_example # String | API authentication key
extOrganisationId = extOrganisationId_example # String | Unique identifier used to reference the requesting organisation in external systems
extPatientId = extPatientId_example # String | Unique identifier used to reference the patient in external systems

try: 
    # Connect/Create MiPro Patient
    api_instance.patient_ext_patient_id_connect_post(body, xAPIKEY, extOrganisationId, extPatientId)
except ApiException as e:
    print("Exception when calling PatientDataApi->patientExtPatientIdConnectPost: %s\n" % e)

Parameters

Path parameters
Name Description
extPatientId*
String
Unique identifier used to reference the patient in external systems
Required
Header parameters
Name Description
X-API-KEY*
String
API authentication key
Required
Body parameters
Name Description
body *
Query parameters
Name Description
extOrganisationId*
String
Unique identifier used to reference the requesting organisation in external systems
Required

Responses

Status: 200 - Patient exists in MiPro

Status: 201 - Patient has been created in MiPro

Status: 400 - Bad request

Status: 404 - Patient not found


patientExtPatientIdConnectStatusGet

Get patient connection status

Retrieves the current status of a patient's connection with MiPro, including any relevant details about the connection state


/patient/{extPatientId}/connect/status

Usage and SDK Samples

curl -X GET\
-H "X-API-KEY: [[apiKey]]"\
-H "Accept: application/json"\
"https://api.mipro.com/patient/{extPatientId}/connect/status?extOrganisationId="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.PatientDataApi;

import java.io.File;
import java.util.*;

public class PatientDataApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();

        // Configure API key authorization: apiKey
        ApiKeyAuth apiKey = (ApiKeyAuth) defaultClient.getAuthentication("apiKey");
        apiKey.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //apiKey.setApiKeyPrefix("Token");

        PatientDataApi apiInstance = new PatientDataApi();
        String xAPIKEY = xAPIKEY_example; // String | API authentication key
        String extPatientId = extPatientId_example; // String | External patient identifier
        String extOrganisationId = extOrganisationId_example; // String | External organisation identifier
        try {
            ConnectionStatusResponse result = apiInstance.patientExtPatientIdConnectStatusGet(xAPIKEY, extPatientId, extOrganisationId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PatientDataApi#patientExtPatientIdConnectStatusGet");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.PatientDataApi;

public class PatientDataApiExample {

    public static void main(String[] args) {
        PatientDataApi apiInstance = new PatientDataApi();
        String xAPIKEY = xAPIKEY_example; // String | API authentication key
        String extPatientId = extPatientId_example; // String | External patient identifier
        String extOrganisationId = extOrganisationId_example; // String | External organisation identifier
        try {
            ConnectionStatusResponse result = apiInstance.patientExtPatientIdConnectStatusGet(xAPIKEY, extPatientId, extOrganisationId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PatientDataApi#patientExtPatientIdConnectStatusGet");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure API key authorization: (authentication scheme: apiKey)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"X-API-KEY"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"X-API-KEY"];
String *xAPIKEY = xAPIKEY_example; // API authentication key
String *extPatientId = extPatientId_example; // External patient identifier
String *extOrganisationId = extOrganisationId_example; // External organisation identifier

PatientDataApi *apiInstance = [[PatientDataApi alloc] init];

// Get patient connection status
[apiInstance patientExtPatientIdConnectStatusGetWith:xAPIKEY
    extPatientId:extPatientId
    extOrganisationId:extOrganisationId
              completionHandler: ^(ConnectionStatusResponse output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var MiProApi = require('mi_pro_api');
var defaultClient = MiProApi.ApiClient.instance;

// Configure API key authorization: apiKey
var apiKey = defaultClient.authentications['apiKey'];
apiKey.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//apiKey.apiKeyPrefix['X-API-KEY'] = "Token"

var api = new MiProApi.PatientDataApi()
var xAPIKEY = xAPIKEY_example; // {{String}} API authentication key
var extPatientId = extPatientId_example; // {{String}} External patient identifier
var extOrganisationId = extOrganisationId_example; // {{String}} External organisation identifier

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.patientExtPatientIdConnectStatusGet(xAPIKEY, extPatientId, extOrganisationId, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class patientExtPatientIdConnectStatusGetExample
    {
        public void main()
        {

            // Configure API key authorization: apiKey
            Configuration.Default.ApiKey.Add("X-API-KEY", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("X-API-KEY", "Bearer");

            var apiInstance = new PatientDataApi();
            var xAPIKEY = xAPIKEY_example;  // String | API authentication key
            var extPatientId = extPatientId_example;  // String | External patient identifier
            var extOrganisationId = extOrganisationId_example;  // String | External organisation identifier

            try
            {
                // Get patient connection status
                ConnectionStatusResponse result = apiInstance.patientExtPatientIdConnectStatusGet(xAPIKEY, extPatientId, extOrganisationId);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling PatientDataApi.patientExtPatientIdConnectStatusGet: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: apiKey
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('X-API-KEY', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('X-API-KEY', 'Bearer');

$api_instance = new Swagger\Client\ApiPatientDataApi();
$xAPIKEY = xAPIKEY_example; // String | API authentication key
$extPatientId = extPatientId_example; // String | External patient identifier
$extOrganisationId = extOrganisationId_example; // String | External organisation identifier

try {
    $result = $api_instance->patientExtPatientIdConnectStatusGet($xAPIKEY, $extPatientId, $extOrganisationId);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling PatientDataApi->patientExtPatientIdConnectStatusGet: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::PatientDataApi;

# Configure API key authorization: apiKey
$WWW::SwaggerClient::Configuration::api_key->{'X-API-KEY'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'X-API-KEY'} = "Bearer";

my $api_instance = WWW::SwaggerClient::PatientDataApi->new();
my $xAPIKEY = xAPIKEY_example; # String | API authentication key
my $extPatientId = extPatientId_example; # String | External patient identifier
my $extOrganisationId = extOrganisationId_example; # String | External organisation identifier

eval { 
    my $result = $api_instance->patientExtPatientIdConnectStatusGet(xAPIKEY => $xAPIKEY, extPatientId => $extPatientId, extOrganisationId => $extOrganisationId);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling PatientDataApi->patientExtPatientIdConnectStatusGet: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# Configure API key authorization: apiKey
swagger_client.configuration.api_key['X-API-KEY'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['X-API-KEY'] = 'Bearer'

# create an instance of the API class
api_instance = swagger_client.PatientDataApi()
xAPIKEY = xAPIKEY_example # String | API authentication key
extPatientId = extPatientId_example # String | External patient identifier
extOrganisationId = extOrganisationId_example # String | External organisation identifier

try: 
    # Get patient connection status
    api_response = api_instance.patient_ext_patient_id_connect_status_get(xAPIKEY, extPatientId, extOrganisationId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling PatientDataApi->patientExtPatientIdConnectStatusGet: %s\n" % e)

Parameters

Path parameters
Name Description
extPatientId*
String
External patient identifier
Required
Header parameters
Name Description
X-API-KEY*
String
API authentication key
Required
Query parameters
Name Description
extOrganisationId*
String
External organisation identifier
Required

Responses

Status: 200 - Patient connection status retrieved successfully

Status: 400 - Bad request - invalid parameters

Status: 404 - Patient not found