Laguna ONhE API

Analysis

analysis_discCup

Optic nerve disc and cup image

Endpoint that allows to obtain an image representing the segmentation of the optic nerve disc and the optic nerve cup.


/analysis/discCup

Usage and SDK Samples

curl -X GET\
-H "Accept: image/png"\
"https://laguna.insoft.es/api/analysis/discCup?client=&token=&id="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.AnalysisApi;

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

public class AnalysisApiExample {

    public static void main(String[] args) {
        
        AnalysisApi apiInstance = new AnalysisApi();
        String client = client_example; // String | username for authentication
        String token = token_example; // String | token for authentication
        Integer id = 56; // Integer | ID of the analysis
        try {
            byte[] result = apiInstance.analysis_discCup(client, token, id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AnalysisApi#analysis_discCup");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.AnalysisApi;

public class AnalysisApiExample {

    public static void main(String[] args) {
        AnalysisApi apiInstance = new AnalysisApi();
        String client = client_example; // String | username for authentication
        String token = token_example; // String | token for authentication
        Integer id = 56; // Integer | ID of the analysis
        try {
            byte[] result = apiInstance.analysis_discCup(client, token, id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AnalysisApi#analysis_discCup");
            e.printStackTrace();
        }
    }
}
String *client = client_example; // username for authentication
String *token = token_example; // token for authentication
Integer *id = 56; // ID of the analysis

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

// Optic nerve disc and cup image
[apiInstance analysis_discCupWith:client
    token:token
    id:id
              completionHandler: ^(byte[] output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var LagunaONhEApi = require('laguna_o_nh_e_api');

var api = new LagunaONhEApi.AnalysisApi()
var client = client_example; //  username for authentication
var token = token_example; //  token for authentication
var id = 56; //  ID of the analysis

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

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

            var apiInstance = new AnalysisApi();
            var client = client_example;  // String | username for authentication
            var token = token_example;  // String | token for authentication
            var id = 56;  // Integer | ID of the analysis

            try
            {
                // Optic nerve disc and cup image
                byte[] result = apiInstance.analysis_discCup(client, token, id);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling AnalysisApi.analysis_discCup: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiAnalysisApi();
$client = client_example; // String | username for authentication
$token = token_example; // String | token for authentication
$id = 56; // Integer | ID of the analysis

try {
    $result = $api_instance->analysis_discCup($client, $token, $id);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling AnalysisApi->analysis_discCup: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::AnalysisApi;

my $api_instance = WWW::SwaggerClient::AnalysisApi->new();
my $client = client_example; # String | username for authentication
my $token = token_example; # String | token for authentication
my $id = 56; # Integer | ID of the analysis

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

# create an instance of the API class
api_instance = swagger_client.AnalysisApi()
client = client_example # String | username for authentication
token = token_example # String | token for authentication
id = 56 # Integer | ID of the analysis

try: 
    # Optic nerve disc and cup image
    api_response = api_instance.analysis_disc_cup(client, token, id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling AnalysisApi->analysis_discCup: %s\n" % e)

Parameters

Query parameters
Name Description
client*
String
username for authentication
Required
token*
String
token for authentication
Required
id*
Integer
ID of the analysis
Required

Responses

Status: 200 - An image with PNG format representing the segmentation of the optic nerve disc and the optic nerve cup. It can only be obtained with status 4, once the analysis has been successfully completed. The dimensions of the image are the same as those of the original, and the optic nerve is located in the same position. The rest of the image that does not belong to the optic nerve is transparent, making use of the alpha channel of the PNG format. Thanks to that, it is easy to use this image as a layer that can be painted on top of the original retinography


analysis_hb

Hemoglobin concentration image

Endpoint that allows to obtain an image representing the hemoglobin concentration in the optic nerve of the retinography


/analysis/hb

Usage and SDK Samples

curl -X GET\
-H "Accept: image/png"\
"https://laguna.insoft.es/api/analysis/hb?client=&token=&id="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.AnalysisApi;

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

public class AnalysisApiExample {

    public static void main(String[] args) {
        
        AnalysisApi apiInstance = new AnalysisApi();
        String client = client_example; // String | username for authentication
        String token = token_example; // String | token for authentication
        Integer id = 56; // Integer | ID of the analysis
        try {
            byte[] result = apiInstance.analysis_hb(client, token, id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AnalysisApi#analysis_hb");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.AnalysisApi;

public class AnalysisApiExample {

    public static void main(String[] args) {
        AnalysisApi apiInstance = new AnalysisApi();
        String client = client_example; // String | username for authentication
        String token = token_example; // String | token for authentication
        Integer id = 56; // Integer | ID of the analysis
        try {
            byte[] result = apiInstance.analysis_hb(client, token, id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AnalysisApi#analysis_hb");
            e.printStackTrace();
        }
    }
}
String *client = client_example; // username for authentication
String *token = token_example; // token for authentication
Integer *id = 56; // ID of the analysis

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

// Hemoglobin concentration image
[apiInstance analysis_hbWith:client
    token:token
    id:id
              completionHandler: ^(byte[] output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var LagunaONhEApi = require('laguna_o_nh_e_api');

var api = new LagunaONhEApi.AnalysisApi()
var client = client_example; //  username for authentication
var token = token_example; //  token for authentication
var id = 56; //  ID of the analysis

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

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

            var apiInstance = new AnalysisApi();
            var client = client_example;  // String | username for authentication
            var token = token_example;  // String | token for authentication
            var id = 56;  // Integer | ID of the analysis

            try
            {
                // Hemoglobin concentration image
                byte[] result = apiInstance.analysis_hb(client, token, id);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling AnalysisApi.analysis_hb: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiAnalysisApi();
$client = client_example; // String | username for authentication
$token = token_example; // String | token for authentication
$id = 56; // Integer | ID of the analysis

try {
    $result = $api_instance->analysis_hb($client, $token, $id);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling AnalysisApi->analysis_hb: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::AnalysisApi;

my $api_instance = WWW::SwaggerClient::AnalysisApi->new();
my $client = client_example; # String | username for authentication
my $token = token_example; # String | token for authentication
my $id = 56; # Integer | ID of the analysis

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

# create an instance of the API class
api_instance = swagger_client.AnalysisApi()
client = client_example # String | username for authentication
token = token_example # String | token for authentication
id = 56 # Integer | ID of the analysis

try: 
    # Hemoglobin concentration image
    api_response = api_instance.analysis_hb(client, token, id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling AnalysisApi->analysis_hb: %s\n" % e)

Parameters

Query parameters
Name Description
client*
String
username for authentication
Required
token*
String
token for authentication
Required
id*
Integer
ID of the analysis
Required

Responses

Status: 200 - An image with PNG format, representing the hemoglobin concentration in the optic nerve of the retinography. It can only be obtained with status 4, once the analysis has been successfully completed. The dimensions of the image are the same as those of the original, and the optic nerve is located in the same position. The rest of the image that does not belong to the optic nerve is transparent, making use of the alpha channel of the PNG format. Thanks to that, it is easy to use this image as a layer that can be painted on top of the original retinography


analysis_hbProgression

Hemoglobin concentration image by sectors, prepared to be used in the timeline of the patient


/analysis/hbProg

Usage and SDK Samples

curl -X GET\
-H "Accept: image/png"\
"https://laguna.insoft.es/api/analysis/hbProg?client=&token=&id="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.AnalysisApi;

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

public class AnalysisApiExample {

    public static void main(String[] args) {
        
        AnalysisApi apiInstance = new AnalysisApi();
        String client = client_example; // String | username for authentication
        String token = token_example; // String | token for authentication
        Integer id = 56; // Integer | ID of the analysis
        try {
            byte[] result = apiInstance.analysis_hbProgression(client, token, id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AnalysisApi#analysis_hbProgression");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.AnalysisApi;

public class AnalysisApiExample {

    public static void main(String[] args) {
        AnalysisApi apiInstance = new AnalysisApi();
        String client = client_example; // String | username for authentication
        String token = token_example; // String | token for authentication
        Integer id = 56; // Integer | ID of the analysis
        try {
            byte[] result = apiInstance.analysis_hbProgression(client, token, id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AnalysisApi#analysis_hbProgression");
            e.printStackTrace();
        }
    }
}
String *client = client_example; // username for authentication
String *token = token_example; // token for authentication
Integer *id = 56; // ID of the analysis

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

// Hemoglobin concentration image by sectors, prepared to be used in the timeline of the patient
[apiInstance analysis_hbProgressionWith:client
    token:token
    id:id
              completionHandler: ^(byte[] output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var LagunaONhEApi = require('laguna_o_nh_e_api');

var api = new LagunaONhEApi.AnalysisApi()
var client = client_example; //  username for authentication
var token = token_example; //  token for authentication
var id = 56; //  ID of the analysis

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

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

            var apiInstance = new AnalysisApi();
            var client = client_example;  // String | username for authentication
            var token = token_example;  // String | token for authentication
            var id = 56;  // Integer | ID of the analysis

            try
            {
                // Hemoglobin concentration image by sectors, prepared to be used in the timeline of the patient
                byte[] result = apiInstance.analysis_hbProgression(client, token, id);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling AnalysisApi.analysis_hbProgression: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiAnalysisApi();
$client = client_example; // String | username for authentication
$token = token_example; // String | token for authentication
$id = 56; // Integer | ID of the analysis

try {
    $result = $api_instance->analysis_hbProgression($client, $token, $id);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling AnalysisApi->analysis_hbProgression: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::AnalysisApi;

my $api_instance = WWW::SwaggerClient::AnalysisApi->new();
my $client = client_example; # String | username for authentication
my $token = token_example; # String | token for authentication
my $id = 56; # Integer | ID of the analysis

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

# create an instance of the API class
api_instance = swagger_client.AnalysisApi()
client = client_example # String | username for authentication
token = token_example # String | token for authentication
id = 56 # Integer | ID of the analysis

try: 
    # Hemoglobin concentration image by sectors, prepared to be used in the timeline of the patient
    api_response = api_instance.analysis_hb_progression(client, token, id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling AnalysisApi->analysis_hbProgression: %s\n" % e)

Parameters

Query parameters
Name Description
client*
String
username for authentication
Required
token*
String
token for authentication
Required
id*
Integer
ID of the analysis
Required

Responses

Status: 200 - An image with PNG format, representing the hemoglobin concentration in each sector of the ring and in the cup. It can only be obtained with status 4, once the analysis has been successfully completed. The dimensions of the image are always 310x310.


analysis_hbSectors

Hemoglobin concentration image by sectors

Endpoint that allows to obtain an image representing the hemoglobin concentration in each sector of the ring and in the cup


/analysis/hbSectors

Usage and SDK Samples

curl -X GET\
-H "Accept: image/png"\
"https://laguna.insoft.es/api/analysis/hbSectors?client=&token=&id="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.AnalysisApi;

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

public class AnalysisApiExample {

    public static void main(String[] args) {
        
        AnalysisApi apiInstance = new AnalysisApi();
        String client = client_example; // String | username for authentication
        String token = token_example; // String | token for authentication
        Integer id = 56; // Integer | ID of the analysis
        try {
            byte[] result = apiInstance.analysis_hbSectors(client, token, id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AnalysisApi#analysis_hbSectors");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.AnalysisApi;

public class AnalysisApiExample {

    public static void main(String[] args) {
        AnalysisApi apiInstance = new AnalysisApi();
        String client = client_example; // String | username for authentication
        String token = token_example; // String | token for authentication
        Integer id = 56; // Integer | ID of the analysis
        try {
            byte[] result = apiInstance.analysis_hbSectors(client, token, id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AnalysisApi#analysis_hbSectors");
            e.printStackTrace();
        }
    }
}
String *client = client_example; // username for authentication
String *token = token_example; // token for authentication
Integer *id = 56; // ID of the analysis

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

// Hemoglobin concentration image by sectors
[apiInstance analysis_hbSectorsWith:client
    token:token
    id:id
              completionHandler: ^(byte[] output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var LagunaONhEApi = require('laguna_o_nh_e_api');

var api = new LagunaONhEApi.AnalysisApi()
var client = client_example; //  username for authentication
var token = token_example; //  token for authentication
var id = 56; //  ID of the analysis

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

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

            var apiInstance = new AnalysisApi();
            var client = client_example;  // String | username for authentication
            var token = token_example;  // String | token for authentication
            var id = 56;  // Integer | ID of the analysis

            try
            {
                // Hemoglobin concentration image by sectors
                byte[] result = apiInstance.analysis_hbSectors(client, token, id);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling AnalysisApi.analysis_hbSectors: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiAnalysisApi();
$client = client_example; // String | username for authentication
$token = token_example; // String | token for authentication
$id = 56; // Integer | ID of the analysis

try {
    $result = $api_instance->analysis_hbSectors($client, $token, $id);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling AnalysisApi->analysis_hbSectors: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::AnalysisApi;

my $api_instance = WWW::SwaggerClient::AnalysisApi->new();
my $client = client_example; # String | username for authentication
my $token = token_example; # String | token for authentication
my $id = 56; # Integer | ID of the analysis

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

# create an instance of the API class
api_instance = swagger_client.AnalysisApi()
client = client_example # String | username for authentication
token = token_example # String | token for authentication
id = 56 # Integer | ID of the analysis

try: 
    # Hemoglobin concentration image by sectors
    api_response = api_instance.analysis_hb_sectors(client, token, id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling AnalysisApi->analysis_hbSectors: %s\n" % e)

Parameters

Query parameters
Name Description
client*
String
username for authentication
Required
token*
String
token for authentication
Required
id*
Integer
ID of the analysis
Required

Responses

Status: 200 - An image with PNG format, representing the hemoglobin concentration in each sector of the ring and in the cup. It can only be obtained with status 4, once the analysis has been successfully completed. The dimensions of the image are the same as those of the original, and the optic nerve is located in the same position. The rest of the image that does not belong to the optic nerve is transparent, making use of the alpha channel of the PNG format. Thanks to that, it is easy to use this image as a layer that can be painted on top of the original retinography


analysis_patient

Endpoint to set or modify the patient to which a certain analysis belongs. You can also change the date the patient was examined.


/analysis/patient

Usage and SDK Samples

curl -X POST\
-H "Accept: application/json"\
"https://laguna.insoft.es/api/analysis/patient?client=&token=&id=&idPatient=&exam=&timeline="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.AnalysisApi;

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

public class AnalysisApiExample {

    public static void main(String[] args) {
        
        AnalysisApi apiInstance = new AnalysisApi();
        String client = client_example; // String | username for authentication
        String token = token_example; // String | token for authentication
        Integer id = 56; // Integer | ID of the analysis
        date exam = 2013-10-20; // date | date when the examination was made
        Integer idPatient = 56; // Integer | ID of the patient to associante with this analysis. No patient is associated if this parameter is not included
        Boolean timeline = true; // Boolean | Indicates if the analysis must be include in the patient's timeline for progression. True by default
        try {
            inline_response_200_2 result = apiInstance.analysis_patient(client, token, id, exam, idPatient, timeline);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AnalysisApi#analysis_patient");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.AnalysisApi;

public class AnalysisApiExample {

    public static void main(String[] args) {
        AnalysisApi apiInstance = new AnalysisApi();
        String client = client_example; // String | username for authentication
        String token = token_example; // String | token for authentication
        Integer id = 56; // Integer | ID of the analysis
        date exam = 2013-10-20; // date | date when the examination was made
        Integer idPatient = 56; // Integer | ID of the patient to associante with this analysis. No patient is associated if this parameter is not included
        Boolean timeline = true; // Boolean | Indicates if the analysis must be include in the patient's timeline for progression. True by default
        try {
            inline_response_200_2 result = apiInstance.analysis_patient(client, token, id, exam, idPatient, timeline);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AnalysisApi#analysis_patient");
            e.printStackTrace();
        }
    }
}
String *client = client_example; // username for authentication
String *token = token_example; // token for authentication
Integer *id = 56; // ID of the analysis
date *exam = 2013-10-20; // date when the examination was made
Integer *idPatient = 56; // ID of the patient to associante with this analysis. No patient is associated if this parameter is not included (optional)
Boolean *timeline = true; // Indicates if the analysis must be include in the patient's timeline for progression. True by default (optional)

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

[apiInstance analysis_patientWith:client
    token:token
    id:id
    exam:exam
    idPatient:idPatient
    timeline:timeline
              completionHandler: ^(inline_response_200_2 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var LagunaONhEApi = require('laguna_o_nh_e_api');

var api = new LagunaONhEApi.AnalysisApi()
var client = client_example; //  username for authentication
var token = token_example; //  token for authentication
var id = 56; //  ID of the analysis
var exam = 2013-10-20; //  date when the examination was made
var opts = { 
  'idPatient': 56, //  ID of the patient to associante with this analysis. No patient is associated if this parameter is not included
  'timeline': true //  Indicates if the analysis must be include in the patient's timeline for progression. True by default
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.analysis_patient(client, token, id, exam, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

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

            var apiInstance = new AnalysisApi();
            var client = client_example;  // String | username for authentication
            var token = token_example;  // String | token for authentication
            var id = 56;  // Integer | ID of the analysis
            var exam = 2013-10-20;  // date | date when the examination was made
            var idPatient = 56;  // Integer | ID of the patient to associante with this analysis. No patient is associated if this parameter is not included (optional) 
            var timeline = true;  // Boolean | Indicates if the analysis must be include in the patient's timeline for progression. True by default (optional) 

            try
            {
                inline_response_200_2 result = apiInstance.analysis_patient(client, token, id, exam, idPatient, timeline);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling AnalysisApi.analysis_patient: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiAnalysisApi();
$client = client_example; // String | username for authentication
$token = token_example; // String | token for authentication
$id = 56; // Integer | ID of the analysis
$exam = 2013-10-20; // date | date when the examination was made
$idPatient = 56; // Integer | ID of the patient to associante with this analysis. No patient is associated if this parameter is not included
$timeline = true; // Boolean | Indicates if the analysis must be include in the patient's timeline for progression. True by default

try {
    $result = $api_instance->analysis_patient($client, $token, $id, $exam, $idPatient, $timeline);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling AnalysisApi->analysis_patient: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::AnalysisApi;

my $api_instance = WWW::SwaggerClient::AnalysisApi->new();
my $client = client_example; # String | username for authentication
my $token = token_example; # String | token for authentication
my $id = 56; # Integer | ID of the analysis
my $exam = 2013-10-20; # date | date when the examination was made
my $idPatient = 56; # Integer | ID of the patient to associante with this analysis. No patient is associated if this parameter is not included
my $timeline = true; # Boolean | Indicates if the analysis must be include in the patient's timeline for progression. True by default

eval { 
    my $result = $api_instance->analysis_patient(client => $client, token => $token, id => $id, exam => $exam, idPatient => $idPatient, timeline => $timeline);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling AnalysisApi->analysis_patient: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.AnalysisApi()
client = client_example # String | username for authentication
token = token_example # String | token for authentication
id = 56 # Integer | ID of the analysis
exam = 2013-10-20 # date | date when the examination was made
idPatient = 56 # Integer | ID of the patient to associante with this analysis. No patient is associated if this parameter is not included (optional)
timeline = true # Boolean | Indicates if the analysis must be include in the patient's timeline for progression. True by default (optional)

try: 
    api_response = api_instance.analysis_patient(client, token, id, exam, idPatient=idPatient, timeline=timeline)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling AnalysisApi->analysis_patient: %s\n" % e)

Parameters

Query parameters
Name Description
client*
String
username for authentication
Required
token*
String
token for authentication
Required
id*
Integer
ID of the analysis
Required
idPatient
Integer
ID of the patient to associante with this analysis. No patient is associated if this parameter is not included
exam*
date (date)
date when the examination was made
Required
timeline
Boolean
Indicates if the analysis must be include in the patient's timeline for progression. True by default

Responses

Status: 200 - Codes available for this response: 1, 2, 3, 4, 6, 7, 10


analysis_report

Get a zip file containing a report and the images associated with the analysis


/analysis/report

Usage and SDK Samples

curl -X GET\
-H "Accept: application/zip"\
"https://laguna.insoft.es/api/analysis/report?client=&token=&id="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.AnalysisApi;

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

public class AnalysisApiExample {

    public static void main(String[] args) {
        
        AnalysisApi apiInstance = new AnalysisApi();
        String client = client_example; // String | username for authentication
        String token = token_example; // String | token for authentication
        Integer id = 56; // Integer | ID of the analysis
        try {
            byte[] result = apiInstance.analysis_report(client, token, id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AnalysisApi#analysis_report");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.AnalysisApi;

public class AnalysisApiExample {

    public static void main(String[] args) {
        AnalysisApi apiInstance = new AnalysisApi();
        String client = client_example; // String | username for authentication
        String token = token_example; // String | token for authentication
        Integer id = 56; // Integer | ID of the analysis
        try {
            byte[] result = apiInstance.analysis_report(client, token, id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AnalysisApi#analysis_report");
            e.printStackTrace();
        }
    }
}
String *client = client_example; // username for authentication
String *token = token_example; // token for authentication
Integer *id = 56; // ID of the analysis

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

[apiInstance analysis_reportWith:client
    token:token
    id:id
              completionHandler: ^(byte[] output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var LagunaONhEApi = require('laguna_o_nh_e_api');

var api = new LagunaONhEApi.AnalysisApi()
var client = client_example; //  username for authentication
var token = token_example; //  token for authentication
var id = 56; //  ID of the analysis

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

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

            var apiInstance = new AnalysisApi();
            var client = client_example;  // String | username for authentication
            var token = token_example;  // String | token for authentication
            var id = 56;  // Integer | ID of the analysis

            try
            {
                byte[] result = apiInstance.analysis_report(client, token, id);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling AnalysisApi.analysis_report: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiAnalysisApi();
$client = client_example; // String | username for authentication
$token = token_example; // String | token for authentication
$id = 56; // Integer | ID of the analysis

try {
    $result = $api_instance->analysis_report($client, $token, $id);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling AnalysisApi->analysis_report: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::AnalysisApi;

my $api_instance = WWW::SwaggerClient::AnalysisApi->new();
my $client = client_example; # String | username for authentication
my $token = token_example; # String | token for authentication
my $id = 56; # Integer | ID of the analysis

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

# create an instance of the API class
api_instance = swagger_client.AnalysisApi()
client = client_example # String | username for authentication
token = token_example # String | token for authentication
id = 56 # Integer | ID of the analysis

try: 
    api_response = api_instance.analysis_report(client, token, id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling AnalysisApi->analysis_report: %s\n" % e)

Parameters

Query parameters
Name Description
client*
String
username for authentication
Required
token*
String
token for authentication
Required
id*
Integer
ID of the analysis
Required

Responses

Status: 200 - zip file


analysis_status

Check the status of an analysis

Endpoint that allows to ask, throughout the entire lifecycle of the process, the state of the analysis of the retinography


/analysis/status

Usage and SDK Samples

curl -X GET\
-H "Accept: application/json"\
"https://laguna.insoft.es/api/analysis/status?client=&token=&id="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.AnalysisApi;

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

public class AnalysisApiExample {

    public static void main(String[] args) {
        
        AnalysisApi apiInstance = new AnalysisApi();
        String client = client_example; // String | username for authentication
        String token = token_example; // String | token for authentication
        Integer id = 56; // Integer | ID of the analysis
        try {
            inline_response_200_1 result = apiInstance.analysis_status(client, token, id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AnalysisApi#analysis_status");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.AnalysisApi;

public class AnalysisApiExample {

    public static void main(String[] args) {
        AnalysisApi apiInstance = new AnalysisApi();
        String client = client_example; // String | username for authentication
        String token = token_example; // String | token for authentication
        Integer id = 56; // Integer | ID of the analysis
        try {
            inline_response_200_1 result = apiInstance.analysis_status(client, token, id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AnalysisApi#analysis_status");
            e.printStackTrace();
        }
    }
}
String *client = client_example; // username for authentication
String *token = token_example; // token for authentication
Integer *id = 56; // ID of the analysis

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

// Check the status of an analysis
[apiInstance analysis_statusWith:client
    token:token
    id:id
              completionHandler: ^(inline_response_200_1 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var LagunaONhEApi = require('laguna_o_nh_e_api');

var api = new LagunaONhEApi.AnalysisApi()
var client = client_example; //  username for authentication
var token = token_example; //  token for authentication
var id = 56; //  ID of the analysis

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

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

            var apiInstance = new AnalysisApi();
            var client = client_example;  // String | username for authentication
            var token = token_example;  // String | token for authentication
            var id = 56;  // Integer | ID of the analysis

            try
            {
                // Check the status of an analysis
                inline_response_200_1 result = apiInstance.analysis_status(client, token, id);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling AnalysisApi.analysis_status: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiAnalysisApi();
$client = client_example; // String | username for authentication
$token = token_example; // String | token for authentication
$id = 56; // Integer | ID of the analysis

try {
    $result = $api_instance->analysis_status($client, $token, $id);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling AnalysisApi->analysis_status: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::AnalysisApi;

my $api_instance = WWW::SwaggerClient::AnalysisApi->new();
my $client = client_example; # String | username for authentication
my $token = token_example; # String | token for authentication
my $id = 56; # Integer | ID of the analysis

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

# create an instance of the API class
api_instance = swagger_client.AnalysisApi()
client = client_example # String | username for authentication
token = token_example # String | token for authentication
id = 56 # Integer | ID of the analysis

try: 
    # Check the status of an analysis
    api_response = api_instance.analysis_status(client, token, id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling AnalysisApi->analysis_status: %s\n" % e)

Parameters

Query parameters
Name Description
client*
String
username for authentication
Required
token*
String
token for authentication
Required
id*
Integer
ID of the analysis
Required

Responses

Status: 200 - Codes available for this response: 1, 2, 3, 4, 6, 7, 10


analysis_upload

Upload a retinography to the server, in order to be analyzed

Initial endpoint, by which the retinography is uploaded to the Laguna server, along with the identifier of the camera with which the retinography was made, and if it is the left or right eye. All these data are mandatory for the analysis request to be accepted by the server. In response, the fields available at that time of the retinography in question are obtained, among them the ID of the consultation can be highlighted, which will be used to identify the retinography in the subsequent endpoints. Once the consultation is received, the retinography is placed in a waiting queue to perform the background task that analyze the image to produce a diagnostic. Using the endpoint /status, it will be possible to know the status of the retinography at any time, which will allow to know if the analysis has finished or not.


/analysis/upload

Usage and SDK Samples

curl -X POST\
-H "Accept: application/json"\
"https://laguna.insoft.es/api/analysis/upload?client=&token=&camera=&eye=&image=&age=&externalId=&userId=&userType=&role=&chain=&demo="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.AnalysisApi;

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

public class AnalysisApiExample {

    public static void main(String[] args) {
        
        AnalysisApi apiInstance = new AnalysisApi();
        String client = client_example; // String | username for authentication
        String token = token_example; // String | token for authentication
        String camera = camera_example; // String | Indicates the identifier of the camera model to which the retinography belongs. Each camera model has associated a list of parameters that are used in the segmentation and in the analysis
        String image = image_example; // String | File which contains the retinography to be analyzed
        String eye = eye_example; // String | Indicates if the eye is left or right. 'L' for left, 'R' for right. This parameter is optional, since it is used only as a hint, and the final decision is made by Laguna
        Integer age = 56; // Integer | Indicates the age of the patient
        String externalId = externalId_example; // String | Identifier of the retinography in the database of the client
        String userId = userId_example; // String | Identifier of the user in the database of the client
        Integer userType = 56; // Integer | Type of user in the database of the client.
 1: Glaucoma basic
 2: Glaucoma extended
 3: Progression

        String role = role_example; // String | Role of the user uploading the image
        String chain = chain_example; // String | Name of the optical chain from where the image was uploaded
        Boolean demo = true; // Boolean | Indicates whether the analysis was part of a demonstration or not
        try {
            inline_response_200_1 result = apiInstance.analysis_upload(client, token, camera, image, eye, age, externalId, userId, userType, role, chain, demo);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AnalysisApi#analysis_upload");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.AnalysisApi;

public class AnalysisApiExample {

    public static void main(String[] args) {
        AnalysisApi apiInstance = new AnalysisApi();
        String client = client_example; // String | username for authentication
        String token = token_example; // String | token for authentication
        String camera = camera_example; // String | Indicates the identifier of the camera model to which the retinography belongs. Each camera model has associated a list of parameters that are used in the segmentation and in the analysis
        String image = image_example; // String | File which contains the retinography to be analyzed
        String eye = eye_example; // String | Indicates if the eye is left or right. 'L' for left, 'R' for right. This parameter is optional, since it is used only as a hint, and the final decision is made by Laguna
        Integer age = 56; // Integer | Indicates the age of the patient
        String externalId = externalId_example; // String | Identifier of the retinography in the database of the client
        String userId = userId_example; // String | Identifier of the user in the database of the client
        Integer userType = 56; // Integer | Type of user in the database of the client.
 1: Glaucoma basic
 2: Glaucoma extended
 3: Progression

        String role = role_example; // String | Role of the user uploading the image
        String chain = chain_example; // String | Name of the optical chain from where the image was uploaded
        Boolean demo = true; // Boolean | Indicates whether the analysis was part of a demonstration or not
        try {
            inline_response_200_1 result = apiInstance.analysis_upload(client, token, camera, image, eye, age, externalId, userId, userType, role, chain, demo);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AnalysisApi#analysis_upload");
            e.printStackTrace();
        }
    }
}
String *client = client_example; // username for authentication
String *token = token_example; // token for authentication
String *camera = camera_example; // Indicates the identifier of the camera model to which the retinography belongs. Each camera model has associated a list of parameters that are used in the segmentation and in the analysis
String *image = image_example; // File which contains the retinography to be analyzed
String *eye = eye_example; // Indicates if the eye is left or right. 'L' for left, 'R' for right. This parameter is optional, since it is used only as a hint, and the final decision is made by Laguna (optional)
Integer *age = 56; // Indicates the age of the patient (optional)
String *externalId = externalId_example; // Identifier of the retinography in the database of the client (optional)
String *userId = userId_example; // Identifier of the user in the database of the client (optional)
Integer *userType = 56; // Type of user in the database of the client.
 1: Glaucoma basic
 2: Glaucoma extended
 3: Progression
 (optional)
String *role = role_example; // Role of the user uploading the image (optional)
String *chain = chain_example; // Name of the optical chain from where the image was uploaded (optional)
Boolean *demo = true; // Indicates whether the analysis was part of a demonstration or not (optional)

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

// Upload a retinography to the server, in order to be analyzed
[apiInstance analysis_uploadWith:client
    token:token
    camera:camera
    image:image
    eye:eye
    age:age
    externalId:externalId
    userId:userId
    userType:userType
    role:role
    chain:chain
    demo:demo
              completionHandler: ^(inline_response_200_1 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var LagunaONhEApi = require('laguna_o_nh_e_api');

var api = new LagunaONhEApi.AnalysisApi()
var client = client_example; //  username for authentication
var token = token_example; //  token for authentication
var camera = camera_example; //  Indicates the identifier of the camera model to which the retinography belongs. Each camera model has associated a list of parameters that are used in the segmentation and in the analysis
var image = image_example; //  File which contains the retinography to be analyzed
var opts = { 
  'eye': eye_example, //  Indicates if the eye is left or right. 'L' for left, 'R' for right. This parameter is optional, since it is used only as a hint, and the final decision is made by Laguna
  'age': 56, //  Indicates the age of the patient
  'externalId': externalId_example, //  Identifier of the retinography in the database of the client
  'userId': userId_example, //  Identifier of the user in the database of the client
  'userType': 56, //  Type of user in the database of the client.
 1: Glaucoma basic
 2: Glaucoma extended
 3: Progression

  'role': role_example, //  Role of the user uploading the image
  'chain': chain_example, //  Name of the optical chain from where the image was uploaded
  'demo': true //  Indicates whether the analysis was part of a demonstration or not
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.analysis_upload(client, token, camera, image, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

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

            var apiInstance = new AnalysisApi();
            var client = client_example;  // String | username for authentication
            var token = token_example;  // String | token for authentication
            var camera = camera_example;  // String | Indicates the identifier of the camera model to which the retinography belongs. Each camera model has associated a list of parameters that are used in the segmentation and in the analysis
            var image = image_example;  // String | File which contains the retinography to be analyzed
            var eye = eye_example;  // String | Indicates if the eye is left or right. 'L' for left, 'R' for right. This parameter is optional, since it is used only as a hint, and the final decision is made by Laguna (optional) 
            var age = 56;  // Integer | Indicates the age of the patient (optional) 
            var externalId = externalId_example;  // String | Identifier of the retinography in the database of the client (optional) 
            var userId = userId_example;  // String | Identifier of the user in the database of the client (optional) 
            var userType = 56;  // Integer | Type of user in the database of the client.
 1: Glaucoma basic
 2: Glaucoma extended
 3: Progression
 (optional) 
            var role = role_example;  // String | Role of the user uploading the image (optional)
            var chain = chain_example;  // String | Name of the optical chain from where the image was uploaded (optional) 
            var demo = true;  // Boolean | Indicates whether the analysis was part of a demonstration or not (optional) 

            try
            {
                // Upload a retinography to the server, in order to be analyzed
                inline_response_200_1 result = apiInstance.analysis_upload(client, token, camera, image, eye, age, externalId, userId, userType, role, chain, demo);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling AnalysisApi.analysis_upload: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiAnalysisApi();
$client = client_example; // String | username for authentication
$token = token_example; // String | token for authentication
$camera = camera_example; // String | Indicates the identifier of the camera model to which the retinography belongs. Each camera model has associated a list of parameters that are used in the segmentation and in the analysis
$image = image_example; // String | File which contains the retinography to be analyzed
$eye = eye_example; // String | Indicates if the eye is left or right. 'L' for left, 'R' for right. This parameter is optional, since it is used only as a hint, and the final decision is made by Laguna
$age = 56; // Integer | Indicates the age of the patient
$externalId = externalId_example; // String | Identifier of the retinography in the database of the client
$userId = userId_example; // String | Identifier of the user in the database of the client
$userType = 56; // Integer | Type of user in the database of the client.
 1: Glaucoma basic
 2: Glaucoma extended
 3: Progression

$role = role_example; // String | Role of the user uploading the image
$chain = chain_example; // String | Name of the optical chain from where the image was uploaded
$demo = true; // Boolean | Indicates whether the analysis was part of a demonstration or not

try {
    $result = $api_instance->analysis_upload($client, $token, $camera, $image, $eye, $age, $externalId, $userId, $userType, $role, $chain, $demo);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling AnalysisApi->analysis_upload: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::AnalysisApi;

my $api_instance = WWW::SwaggerClient::AnalysisApi->new();
my $client = client_example; # String | username for authentication
my $token = token_example; # String | token for authentication
my $camera = camera_example; # String | Indicates the identifier of the camera model to which the retinography belongs. Each camera model has associated a list of parameters that are used in the segmentation and in the analysis
my $image = image_example; # String | File which contains the retinography to be analyzed
my $eye = eye_example; # String | Indicates if the eye is left or right. 'L' for left, 'R' for right. This parameter is optional, since it is used only as a hint, and the final decision is made by Laguna
my $age = 56; # Integer | Indicates the age of the patient
my $externalId = externalId_example; # String | Identifier of the retinography in the database of the client
my $userId = userId_example; # String | Identifier of the user in the database of the client
my $userType = 56; # Integer | Type of user in the database of the client.
 1: Glaucoma basic
 2: Glaucoma extended
 3: Progression

my $role = role_example; # String | Role of the user uploading the image
my $chain = chain_example; # String | Name of the optical chain from where the image was uploaded
my $demo = true; # Boolean | Indicates whether the analysis was part of a demonstration or not

eval { 
    my $result = $api_instance->analysis_upload(client => $client, token => $token, camera => $camera, image => $image, eye => $eye, age => $age, externalId => $externalId, userId => $userId, userType => $userType, role => $role, chain => $chain, demo => $demo);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling AnalysisApi->analysis_upload: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.AnalysisApi()
client = client_example # String | username for authentication
token = token_example # String | token for authentication
camera = camera_example # String | Indicates the identifier of the camera model to which the retinography belongs. Each camera model has associated a list of parameters that are used in the segmentation and in the analysis
image = image_example # String | File which contains the retinography to be analyzed
eye = eye_example # String | Indicates if the eye is left or right. 'L' for left, 'R' for right. This parameter is optional, since it is used only as a hint, and the final decision is made by Laguna (optional)
age = 56 # Integer | Indicates the age of the patient (optional)
externalId = externalId_example # String | Identifier of the retinography in the database of the client (optional)
userId = userId_example # String | Identifier of the user in the database of the client (optional)
userType = 56 # Integer | Type of user in the database of the client.
 1: Glaucoma basic
 2: Glaucoma extended
 3: Progression
 (optional)
role = role_example # String | Role of the user uploading the image (optional)
chain = chain_example # String | Name of the optical chain from where the image was uploaded (optional)
demo = true # Boolean | Indicates whether the analysis was part of a demonstration or not (optional)

try: 
    # Upload a retinography to the server, in order to be analyzed
    api_response = api_instance.analysis_upload(client, token, camera, image, eye=eye, age=age, externalId=externalId, userId=userId, userType=userType, role=role, chain=chain, demo=demo)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling AnalysisApi->analysis_upload: %s\n" % e)

Parameters

Query parameters
Name Description
client*
String
username for authentication
Required
token*
String
token for authentication
Required
camera*
String
Indicates the identifier of the camera model to which the retinography belongs. Each camera model has associated a list of parameters that are used in the segmentation and in the analysis
Required
eye
String
Indicates if the eye is left or right. 'L' for left, 'R' for right. This parameter is optional, since it is used only as a hint, and the final decision is made by Laguna
image*
String
File which contains the retinography to be analyzed
Required
age
Integer
Indicates the age of the patient
externalId
String
Identifier of the retinography in the database of the client
userId
String
Identifier of the user in the database of the client
userType
Integer
Type of user in the database of the client. 1: Glaucoma basic 2: Glaucoma extended 3: Progression
role
String
Role of the user uploading the image
chain
String
Name of the optical chain from where the image was uploaded
demo
Boolean
Indicates whether the analysis was part of a demonstration or not

Responses

Status: 200 - Codes available for this response: 1, 2, 6, 7, 8


visual_field_PSD

Set the PSD visual field information related with this analysis and it produces the GDF_PSD index, available through the /status endpoint

The PSD index (sLV in Octopus) is transformed to become relatively linear with respect to MD using a formula previously described (Europ J Ophthalmol 19:416-424, 2009).


/analysis/vf/psd

Usage and SDK Samples

curl -X POST\
-H "Accept: application/json"\
"https://laguna.insoft.es/api/analysis/vf/psd?client=&token=&id=&perimeter=&md=&psd="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.AnalysisApi;

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

public class AnalysisApiExample {

    public static void main(String[] args) {
        
        AnalysisApi apiInstance = new AnalysisApi();
        String client = client_example; // String | username for authentication
        String token = token_example; // String | token for authentication
        Integer id = 56; // Integer | ID of the analysis
        Integer perimeter = 56; // Integer | Model of perimeter used.
 1: Oculus (Spark)
 2: Octopus (TOP)
 3: Humphrey (SITA)

        Float md = 3.4; // Float | Mean Defect
        Float psd = 3.4; // Float | Pattern Standard Deviation
        try {
            inline_response_200_2 result = apiInstance.visual_field_PSD(client, token, id, perimeter, md, psd);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AnalysisApi#visual_field_PSD");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.AnalysisApi;

public class AnalysisApiExample {

    public static void main(String[] args) {
        AnalysisApi apiInstance = new AnalysisApi();
        String client = client_example; // String | username for authentication
        String token = token_example; // String | token for authentication
        Integer id = 56; // Integer | ID of the analysis
        Integer perimeter = 56; // Integer | Model of perimeter used.
 1: Oculus (Spark)
 2: Octopus (TOP)
 3: Humphrey (SITA)

        Float md = 3.4; // Float | Mean Defect
        Float psd = 3.4; // Float | Pattern Standard Deviation
        try {
            inline_response_200_2 result = apiInstance.visual_field_PSD(client, token, id, perimeter, md, psd);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AnalysisApi#visual_field_PSD");
            e.printStackTrace();
        }
    }
}
String *client = client_example; // username for authentication
String *token = token_example; // token for authentication
Integer *id = 56; // ID of the analysis
Integer *perimeter = 56; // Model of perimeter used.
 1: Oculus (Spark)
 2: Octopus (TOP)
 3: Humphrey (SITA)

Float *md = 3.4; // Mean Defect
Float *psd = 3.4; // Pattern Standard Deviation

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

// Set the PSD visual field information related with this analysis and it produces the GDF_PSD index, available through the /status endpoint
[apiInstance visual_field_PSDWith:client
    token:token
    id:id
    perimeter:perimeter
    md:md
    psd:psd
              completionHandler: ^(inline_response_200_2 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var LagunaONhEApi = require('laguna_o_nh_e_api');

var api = new LagunaONhEApi.AnalysisApi()
var client = client_example; //  username for authentication
var token = token_example; //  token for authentication
var id = 56; //  ID of the analysis
var perimeter = 56; //  Model of perimeter used.
 1: Oculus (Spark)
 2: Octopus (TOP)
 3: Humphrey (SITA)

var md = 3.4; //  Mean Defect
var psd = 3.4; //  Pattern Standard Deviation

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.visual_field_PSD(client, token, id, perimeter, md, psd, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

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

            var apiInstance = new AnalysisApi();
            var client = client_example;  // String | username for authentication
            var token = token_example;  // String | token for authentication
            var id = 56;  // Integer | ID of the analysis
            var perimeter = 56;  // Integer | Model of perimeter used.
 1: Oculus (Spark)
 2: Octopus (TOP)
 3: Humphrey (SITA)

            var md = 3.4;  // Float | Mean Defect
            var psd = 3.4;  // Float | Pattern Standard Deviation

            try
            {
                // Set the PSD visual field information related with this analysis and it produces the GDF_PSD index, available through the /status endpoint
                inline_response_200_2 result = apiInstance.visual_field_PSD(client, token, id, perimeter, md, psd);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling AnalysisApi.visual_field_PSD: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiAnalysisApi();
$client = client_example; // String | username for authentication
$token = token_example; // String | token for authentication
$id = 56; // Integer | ID of the analysis
$perimeter = 56; // Integer | Model of perimeter used.
 1: Oculus (Spark)
 2: Octopus (TOP)
 3: Humphrey (SITA)

$md = 3.4; // Float | Mean Defect
$psd = 3.4; // Float | Pattern Standard Deviation

try {
    $result = $api_instance->visual_field_PSD($client, $token, $id, $perimeter, $md, $psd);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling AnalysisApi->visual_field_PSD: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::AnalysisApi;

my $api_instance = WWW::SwaggerClient::AnalysisApi->new();
my $client = client_example; # String | username for authentication
my $token = token_example; # String | token for authentication
my $id = 56; # Integer | ID of the analysis
my $perimeter = 56; # Integer | Model of perimeter used.
 1: Oculus (Spark)
 2: Octopus (TOP)
 3: Humphrey (SITA)

my $md = 3.4; # Float | Mean Defect
my $psd = 3.4; # Float | Pattern Standard Deviation

eval { 
    my $result = $api_instance->visual_field_PSD(client => $client, token => $token, id => $id, perimeter => $perimeter, md => $md, psd => $psd);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling AnalysisApi->visual_field_PSD: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.AnalysisApi()
client = client_example # String | username for authentication
token = token_example # String | token for authentication
id = 56 # Integer | ID of the analysis
perimeter = 56 # Integer | Model of perimeter used.
 1: Oculus (Spark)
 2: Octopus (TOP)
 3: Humphrey (SITA)

md = 3.4 # Float | Mean Defect
psd = 3.4 # Float | Pattern Standard Deviation

try: 
    # Set the PSD visual field information related with this analysis and it produces the GDF_PSD index, available through the /status endpoint
    api_response = api_instance.visual_field_psd(client, token, id, perimeter, md, psd)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling AnalysisApi->visual_field_PSD: %s\n" % e)

Parameters

Query parameters
Name Description
client*
String
username for authentication
Required
token*
String
token for authentication
Required
id*
Integer
ID of the analysis
Required
perimeter*
Integer
Model of perimeter used. 1: Oculus (Spark) 2: Octopus (TOP) 3: Humphrey (SITA)
Required
md*
Float (float)
Mean Defect
Required
psd*
Float (float)
Pattern Standard Deviation
Required

Responses

Status: 200 - Codes available for this response: 1, 2, 4, 5, 6, 7


visual_field_Remove

Remove all the visual field information related with this analysis


/analysis/vf/remove

Usage and SDK Samples

curl -X POST\
-H "Accept: application/json"\
"https://laguna.insoft.es/api/analysis/vf/remove?client=&token=&id="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.AnalysisApi;

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

public class AnalysisApiExample {

    public static void main(String[] args) {
        
        AnalysisApi apiInstance = new AnalysisApi();
        String client = client_example; // String | username for authentication
        String token = token_example; // String | token for authentication
        Integer id = 56; // Integer | ID of the analysis
        try {
            inline_response_200_2 result = apiInstance.visual_field_Remove(client, token, id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AnalysisApi#visual_field_Remove");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.AnalysisApi;

public class AnalysisApiExample {

    public static void main(String[] args) {
        AnalysisApi apiInstance = new AnalysisApi();
        String client = client_example; // String | username for authentication
        String token = token_example; // String | token for authentication
        Integer id = 56; // Integer | ID of the analysis
        try {
            inline_response_200_2 result = apiInstance.visual_field_Remove(client, token, id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AnalysisApi#visual_field_Remove");
            e.printStackTrace();
        }
    }
}
String *client = client_example; // username for authentication
String *token = token_example; // token for authentication
Integer *id = 56; // ID of the analysis

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

[apiInstance visual_field_RemoveWith:client
    token:token
    id:id
              completionHandler: ^(inline_response_200_2 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var LagunaONhEApi = require('laguna_o_nh_e_api');

var api = new LagunaONhEApi.AnalysisApi()
var client = client_example; //  username for authentication
var token = token_example; //  token for authentication
var id = 56; //  ID of the analysis

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

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

            var apiInstance = new AnalysisApi();
            var client = client_example;  // String | username for authentication
            var token = token_example;  // String | token for authentication
            var id = 56;  // Integer | ID of the analysis

            try
            {
                inline_response_200_2 result = apiInstance.visual_field_Remove(client, token, id);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling AnalysisApi.visual_field_Remove: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiAnalysisApi();
$client = client_example; // String | username for authentication
$token = token_example; // String | token for authentication
$id = 56; // Integer | ID of the analysis

try {
    $result = $api_instance->visual_field_Remove($client, $token, $id);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling AnalysisApi->visual_field_Remove: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::AnalysisApi;

my $api_instance = WWW::SwaggerClient::AnalysisApi->new();
my $client = client_example; # String | username for authentication
my $token = token_example; # String | token for authentication
my $id = 56; # Integer | ID of the analysis

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

# create an instance of the API class
api_instance = swagger_client.AnalysisApi()
client = client_example # String | username for authentication
token = token_example # String | token for authentication
id = 56 # Integer | ID of the analysis

try: 
    api_response = api_instance.visual_field_remove(client, token, id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling AnalysisApi->visual_field_Remove: %s\n" % e)

Parameters

Query parameters
Name Description
client*
String
username for authentication
Required
token*
String
token for authentication
Required
id*
Integer
ID of the analysis
Required

Responses

Status: 200 - Codes available for this response: 1, 2, 6, 7


visual_field_TCV

Set the TCV visual field information related with this analysis and it produces the GDF_PSD index, available through the /status endpoint

Thresholds Coefficient of Variation (TCV) is a new index of irregularity and harmony, independent of the age of the subject, which aims to be more sensitive than PSD. In this version, it uses 16 threshold values located in strategic and symmetrical positions. On the other hand, unlike PSD, it grows continuously with the progress of the disease (Eur J Ophthalmol 28:590-597. INSOFT Patent US 10,143,367 B2).


/analysis/vf/tcv

Usage and SDK Samples

curl -X POST\
-H "Accept: application/json"\
"https://laguna.insoft.es/api/analysis/vf/tcv?client=&token=&id=&tcv1=&tcv2=&tcv3=&tcv4=&tcv5=&tcv6=&tcv7=&tcv8=&tcv9=&tcv10=&tcv11=&tcv12=&tcv13=&tcv14=&tcv15=&tcv16="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.AnalysisApi;

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

public class AnalysisApiExample {

    public static void main(String[] args) {
        
        AnalysisApi apiInstance = new AnalysisApi();
        String client = client_example; // String | username for authentication
        String token = token_example; // String | token for authentication
        Integer id = 56; // Integer | ID of the analysis
        Float tcv1 = 3.4; // Float | Thresholds value number 1
        Float tcv2 = 3.4; // Float | Thresholds value number 2
        Float tcv3 = 3.4; // Float | Thresholds value number 3
        Float tcv4 = 3.4; // Float | Thresholds value number 4
        Float tcv5 = 3.4; // Float | Thresholds value number 5
        Float tcv6 = 3.4; // Float | Thresholds value number 6
        Float tcv7 = 3.4; // Float | Thresholds value number 7
        Float tcv8 = 3.4; // Float | Thresholds value number 8
        Float tcv9 = 3.4; // Float | Thresholds value number 9
        Float tcv10 = 3.4; // Float | Thresholds value number 10
        Float tcv11 = 3.4; // Float | Thresholds value number 11
        Float tcv12 = 3.4; // Float | Thresholds value number 12
        Float tcv13 = 3.4; // Float | Thresholds value number 13
        Float tcv14 = 3.4; // Float | Thresholds value number 14
        Float tcv15 = 3.4; // Float | Thresholds value number 15
        Float tcv16 = 3.4; // Float | Thresholds value number 16
        try {
            inline_response_200_2 result = apiInstance.visual_field_TCV(client, token, id, tcv1, tcv2, tcv3, tcv4, tcv5, tcv6, tcv7, tcv8, tcv9, tcv10, tcv11, tcv12, tcv13, tcv14, tcv15, tcv16);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AnalysisApi#visual_field_TCV");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.AnalysisApi;

public class AnalysisApiExample {

    public static void main(String[] args) {
        AnalysisApi apiInstance = new AnalysisApi();
        String client = client_example; // String | username for authentication
        String token = token_example; // String | token for authentication
        Integer id = 56; // Integer | ID of the analysis
        Float tcv1 = 3.4; // Float | Thresholds value number 1
        Float tcv2 = 3.4; // Float | Thresholds value number 2
        Float tcv3 = 3.4; // Float | Thresholds value number 3
        Float tcv4 = 3.4; // Float | Thresholds value number 4
        Float tcv5 = 3.4; // Float | Thresholds value number 5
        Float tcv6 = 3.4; // Float | Thresholds value number 6
        Float tcv7 = 3.4; // Float | Thresholds value number 7
        Float tcv8 = 3.4; // Float | Thresholds value number 8
        Float tcv9 = 3.4; // Float | Thresholds value number 9
        Float tcv10 = 3.4; // Float | Thresholds value number 10
        Float tcv11 = 3.4; // Float | Thresholds value number 11
        Float tcv12 = 3.4; // Float | Thresholds value number 12
        Float tcv13 = 3.4; // Float | Thresholds value number 13
        Float tcv14 = 3.4; // Float | Thresholds value number 14
        Float tcv15 = 3.4; // Float | Thresholds value number 15
        Float tcv16 = 3.4; // Float | Thresholds value number 16
        try {
            inline_response_200_2 result = apiInstance.visual_field_TCV(client, token, id, tcv1, tcv2, tcv3, tcv4, tcv5, tcv6, tcv7, tcv8, tcv9, tcv10, tcv11, tcv12, tcv13, tcv14, tcv15, tcv16);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AnalysisApi#visual_field_TCV");
            e.printStackTrace();
        }
    }
}
String *client = client_example; // username for authentication
String *token = token_example; // token for authentication
Integer *id = 56; // ID of the analysis
Float *tcv1 = 3.4; // Thresholds value number 1
Float *tcv2 = 3.4; // Thresholds value number 2
Float *tcv3 = 3.4; // Thresholds value number 3
Float *tcv4 = 3.4; // Thresholds value number 4
Float *tcv5 = 3.4; // Thresholds value number 5
Float *tcv6 = 3.4; // Thresholds value number 6
Float *tcv7 = 3.4; // Thresholds value number 7
Float *tcv8 = 3.4; // Thresholds value number 8
Float *tcv9 = 3.4; // Thresholds value number 9
Float *tcv10 = 3.4; // Thresholds value number 10
Float *tcv11 = 3.4; // Thresholds value number 11
Float *tcv12 = 3.4; // Thresholds value number 12
Float *tcv13 = 3.4; // Thresholds value number 13
Float *tcv14 = 3.4; // Thresholds value number 14
Float *tcv15 = 3.4; // Thresholds value number 15
Float *tcv16 = 3.4; // Thresholds value number 16

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

// Set the TCV visual field information related with this analysis and it produces the GDF_PSD index, available through the /status endpoint
[apiInstance visual_field_TCVWith:client
    token:token
    id:id
    tcv1:tcv1
    tcv2:tcv2
    tcv3:tcv3
    tcv4:tcv4
    tcv5:tcv5
    tcv6:tcv6
    tcv7:tcv7
    tcv8:tcv8
    tcv9:tcv9
    tcv10:tcv10
    tcv11:tcv11
    tcv12:tcv12
    tcv13:tcv13
    tcv14:tcv14
    tcv15:tcv15
    tcv16:tcv16
              completionHandler: ^(inline_response_200_2 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var LagunaONhEApi = require('laguna_o_nh_e_api');

var api = new LagunaONhEApi.AnalysisApi()
var client = client_example; //  username for authentication
var token = token_example; //  token for authentication
var id = 56; //  ID of the analysis
var tcv1 = 3.4; //  Thresholds value number 1
var tcv2 = 3.4; //  Thresholds value number 2
var tcv3 = 3.4; //  Thresholds value number 3
var tcv4 = 3.4; //  Thresholds value number 4
var tcv5 = 3.4; //  Thresholds value number 5
var tcv6 = 3.4; //  Thresholds value number 6
var tcv7 = 3.4; //  Thresholds value number 7
var tcv8 = 3.4; //  Thresholds value number 8
var tcv9 = 3.4; //  Thresholds value number 9
var tcv10 = 3.4; //  Thresholds value number 10
var tcv11 = 3.4; //  Thresholds value number 11
var tcv12 = 3.4; //  Thresholds value number 12
var tcv13 = 3.4; //  Thresholds value number 13
var tcv14 = 3.4; //  Thresholds value number 14
var tcv15 = 3.4; //  Thresholds value number 15
var tcv16 = 3.4; //  Thresholds value number 16

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.visual_field_TCV(client, token, id, tcv1, tcv2, tcv3, tcv4, tcv5, tcv6, tcv7, tcv8, tcv9, tcv10, tcv11, tcv12, tcv13, tcv14, tcv15, tcv16, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

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

            var apiInstance = new AnalysisApi();
            var client = client_example;  // String | username for authentication
            var token = token_example;  // String | token for authentication
            var id = 56;  // Integer | ID of the analysis
            var tcv1 = 3.4;  // Float | Thresholds value number 1
            var tcv2 = 3.4;  // Float | Thresholds value number 2
            var tcv3 = 3.4;  // Float | Thresholds value number 3
            var tcv4 = 3.4;  // Float | Thresholds value number 4
            var tcv5 = 3.4;  // Float | Thresholds value number 5
            var tcv6 = 3.4;  // Float | Thresholds value number 6
            var tcv7 = 3.4;  // Float | Thresholds value number 7
            var tcv8 = 3.4;  // Float | Thresholds value number 8
            var tcv9 = 3.4;  // Float | Thresholds value number 9
            var tcv10 = 3.4;  // Float | Thresholds value number 10
            var tcv11 = 3.4;  // Float | Thresholds value number 11
            var tcv12 = 3.4;  // Float | Thresholds value number 12
            var tcv13 = 3.4;  // Float | Thresholds value number 13
            var tcv14 = 3.4;  // Float | Thresholds value number 14
            var tcv15 = 3.4;  // Float | Thresholds value number 15
            var tcv16 = 3.4;  // Float | Thresholds value number 16

            try
            {
                // Set the TCV visual field information related with this analysis and it produces the GDF_PSD index, available through the /status endpoint
                inline_response_200_2 result = apiInstance.visual_field_TCV(client, token, id, tcv1, tcv2, tcv3, tcv4, tcv5, tcv6, tcv7, tcv8, tcv9, tcv10, tcv11, tcv12, tcv13, tcv14, tcv15, tcv16);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling AnalysisApi.visual_field_TCV: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiAnalysisApi();
$client = client_example; // String | username for authentication
$token = token_example; // String | token for authentication
$id = 56; // Integer | ID of the analysis
$tcv1 = 3.4; // Float | Thresholds value number 1
$tcv2 = 3.4; // Float | Thresholds value number 2
$tcv3 = 3.4; // Float | Thresholds value number 3
$tcv4 = 3.4; // Float | Thresholds value number 4
$tcv5 = 3.4; // Float | Thresholds value number 5
$tcv6 = 3.4; // Float | Thresholds value number 6
$tcv7 = 3.4; // Float | Thresholds value number 7
$tcv8 = 3.4; // Float | Thresholds value number 8
$tcv9 = 3.4; // Float | Thresholds value number 9
$tcv10 = 3.4; // Float | Thresholds value number 10
$tcv11 = 3.4; // Float | Thresholds value number 11
$tcv12 = 3.4; // Float | Thresholds value number 12
$tcv13 = 3.4; // Float | Thresholds value number 13
$tcv14 = 3.4; // Float | Thresholds value number 14
$tcv15 = 3.4; // Float | Thresholds value number 15
$tcv16 = 3.4; // Float | Thresholds value number 16

try {
    $result = $api_instance->visual_field_TCV($client, $token, $id, $tcv1, $tcv2, $tcv3, $tcv4, $tcv5, $tcv6, $tcv7, $tcv8, $tcv9, $tcv10, $tcv11, $tcv12, $tcv13, $tcv14, $tcv15, $tcv16);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling AnalysisApi->visual_field_TCV: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::AnalysisApi;

my $api_instance = WWW::SwaggerClient::AnalysisApi->new();
my $client = client_example; # String | username for authentication
my $token = token_example; # String | token for authentication
my $id = 56; # Integer | ID of the analysis
my $tcv1 = 3.4; # Float | Thresholds value number 1
my $tcv2 = 3.4; # Float | Thresholds value number 2
my $tcv3 = 3.4; # Float | Thresholds value number 3
my $tcv4 = 3.4; # Float | Thresholds value number 4
my $tcv5 = 3.4; # Float | Thresholds value number 5
my $tcv6 = 3.4; # Float | Thresholds value number 6
my $tcv7 = 3.4; # Float | Thresholds value number 7
my $tcv8 = 3.4; # Float | Thresholds value number 8
my $tcv9 = 3.4; # Float | Thresholds value number 9
my $tcv10 = 3.4; # Float | Thresholds value number 10
my $tcv11 = 3.4; # Float | Thresholds value number 11
my $tcv12 = 3.4; # Float | Thresholds value number 12
my $tcv13 = 3.4; # Float | Thresholds value number 13
my $tcv14 = 3.4; # Float | Thresholds value number 14
my $tcv15 = 3.4; # Float | Thresholds value number 15
my $tcv16 = 3.4; # Float | Thresholds value number 16

eval { 
    my $result = $api_instance->visual_field_TCV(client => $client, token => $token, id => $id, tcv1 => $tcv1, tcv2 => $tcv2, tcv3 => $tcv3, tcv4 => $tcv4, tcv5 => $tcv5, tcv6 => $tcv6, tcv7 => $tcv7, tcv8 => $tcv8, tcv9 => $tcv9, tcv10 => $tcv10, tcv11 => $tcv11, tcv12 => $tcv12, tcv13 => $tcv13, tcv14 => $tcv14, tcv15 => $tcv15, tcv16 => $tcv16);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling AnalysisApi->visual_field_TCV: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.AnalysisApi()
client = client_example # String | username for authentication
token = token_example # String | token for authentication
id = 56 # Integer | ID of the analysis
tcv1 = 3.4 # Float | Thresholds value number 1
tcv2 = 3.4 # Float | Thresholds value number 2
tcv3 = 3.4 # Float | Thresholds value number 3
tcv4 = 3.4 # Float | Thresholds value number 4
tcv5 = 3.4 # Float | Thresholds value number 5
tcv6 = 3.4 # Float | Thresholds value number 6
tcv7 = 3.4 # Float | Thresholds value number 7
tcv8 = 3.4 # Float | Thresholds value number 8
tcv9 = 3.4 # Float | Thresholds value number 9
tcv10 = 3.4 # Float | Thresholds value number 10
tcv11 = 3.4 # Float | Thresholds value number 11
tcv12 = 3.4 # Float | Thresholds value number 12
tcv13 = 3.4 # Float | Thresholds value number 13
tcv14 = 3.4 # Float | Thresholds value number 14
tcv15 = 3.4 # Float | Thresholds value number 15
tcv16 = 3.4 # Float | Thresholds value number 16

try: 
    # Set the TCV visual field information related with this analysis and it produces the GDF_PSD index, available through the /status endpoint
    api_response = api_instance.visual_field_tcv(client, token, id, tcv1, tcv2, tcv3, tcv4, tcv5, tcv6, tcv7, tcv8, tcv9, tcv10, tcv11, tcv12, tcv13, tcv14, tcv15, tcv16)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling AnalysisApi->visual_field_TCV: %s\n" % e)

Parameters

Query parameters
Name Description
client*
String
username for authentication
Required
token*
String
token for authentication
Required
id*
Integer
ID of the analysis
Required
tcv1*
Float (float)
Thresholds value number 1
Required
tcv2*
Float (float)
Thresholds value number 2
Required
tcv3*
Float (float)
Thresholds value number 3
Required
tcv4*
Float (float)
Thresholds value number 4
Required
tcv5*
Float (float)
Thresholds value number 5
Required
tcv6*
Float (float)
Thresholds value number 6
Required
tcv7*
Float (float)
Thresholds value number 7
Required
tcv8*
Float (float)
Thresholds value number 8
Required
tcv9*
Float (float)
Thresholds value number 9
Required
tcv10*
Float (float)
Thresholds value number 10
Required
tcv11*
Float (float)
Thresholds value number 11
Required
tcv12*
Float (float)
Thresholds value number 12
Required
tcv13*
Float (float)
Thresholds value number 13
Required
tcv14*
Float (float)
Thresholds value number 14
Required
tcv15*
Float (float)
Thresholds value number 15
Required
tcv16*
Float (float)
Thresholds value number 16
Required

Responses

Status: 200 - Codes available for this response: 1, 2, 4, 5, 6, 7


Legacy

discCup

Deprecated. Use [/analysis/discCup](/api/analysis/discCup) instead


/discCup

Usage and SDK Samples

curl -X GET\
"https://laguna.insoft.es/api/discCup"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.LegacyApi;

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

public class LegacyApiExample {

    public static void main(String[] args) {
        
        LegacyApi apiInstance = new LegacyApi();
        try {
            apiInstance.discCup();
        } catch (ApiException e) {
            System.err.println("Exception when calling LegacyApi#discCup");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.LegacyApi;

public class LegacyApiExample {

    public static void main(String[] args) {
        LegacyApi apiInstance = new LegacyApi();
        try {
            apiInstance.discCup();
        } catch (ApiException e) {
            System.err.println("Exception when calling LegacyApi#discCup");
            e.printStackTrace();
        }
    }
}

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

[apiInstance discCupWithCompletionHandler: 
              ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var LagunaONhEApi = require('laguna_o_nh_e_api');

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

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

            var apiInstance = new LegacyApi();

            try
            {
                apiInstance.discCup();
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling LegacyApi.discCup: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiLegacyApi();

try {
    $api_instance->discCup();
} catch (Exception $e) {
    echo 'Exception when calling LegacyApi->discCup: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::LegacyApi;

my $api_instance = WWW::SwaggerClient::LegacyApi->new();

eval { 
    $api_instance->discCup();
};
if ($@) {
    warn "Exception when calling LegacyApi->discCup: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.LegacyApi()

try: 
    api_instance.disc_cup()
except ApiException as e:
    print("Exception when calling LegacyApi->discCup: %s\n" % e)

Parameters

Responses

Status: 200 - .


hb

Deprecated. Use [/analysis/hb](/api/analysis/hb) instead


/hb

Usage and SDK Samples

curl -X GET\
"https://laguna.insoft.es/api/hb"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.LegacyApi;

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

public class LegacyApiExample {

    public static void main(String[] args) {
        
        LegacyApi apiInstance = new LegacyApi();
        try {
            apiInstance.hb();
        } catch (ApiException e) {
            System.err.println("Exception when calling LegacyApi#hb");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.LegacyApi;

public class LegacyApiExample {

    public static void main(String[] args) {
        LegacyApi apiInstance = new LegacyApi();
        try {
            apiInstance.hb();
        } catch (ApiException e) {
            System.err.println("Exception when calling LegacyApi#hb");
            e.printStackTrace();
        }
    }
}

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

[apiInstance hbWithCompletionHandler: 
              ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var LagunaONhEApi = require('laguna_o_nh_e_api');

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

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

            var apiInstance = new LegacyApi();

            try
            {
                apiInstance.hb();
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling LegacyApi.hb: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiLegacyApi();

try {
    $api_instance->hb();
} catch (Exception $e) {
    echo 'Exception when calling LegacyApi->hb: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::LegacyApi;

my $api_instance = WWW::SwaggerClient::LegacyApi->new();

eval { 
    $api_instance->hb();
};
if ($@) {
    warn "Exception when calling LegacyApi->hb: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.LegacyApi()

try: 
    api_instance.hb()
except ApiException as e:
    print("Exception when calling LegacyApi->hb: %s\n" % e)

Parameters

Responses

Status: 200 - .


hbSectors

Deprecated. Use [/analysis/hbSectors](/api/analysis/hbSectors) instead


/hbSectors

Usage and SDK Samples

curl -X GET\
"https://laguna.insoft.es/api/hbSectors"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.LegacyApi;

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

public class LegacyApiExample {

    public static void main(String[] args) {
        
        LegacyApi apiInstance = new LegacyApi();
        try {
            apiInstance.hbSectors();
        } catch (ApiException e) {
            System.err.println("Exception when calling LegacyApi#hbSectors");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.LegacyApi;

public class LegacyApiExample {

    public static void main(String[] args) {
        LegacyApi apiInstance = new LegacyApi();
        try {
            apiInstance.hbSectors();
        } catch (ApiException e) {
            System.err.println("Exception when calling LegacyApi#hbSectors");
            e.printStackTrace();
        }
    }
}

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

[apiInstance hbSectorsWithCompletionHandler: 
              ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var LagunaONhEApi = require('laguna_o_nh_e_api');

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

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

            var apiInstance = new LegacyApi();

            try
            {
                apiInstance.hbSectors();
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling LegacyApi.hbSectors: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiLegacyApi();

try {
    $api_instance->hbSectors();
} catch (Exception $e) {
    echo 'Exception when calling LegacyApi->hbSectors: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::LegacyApi;

my $api_instance = WWW::SwaggerClient::LegacyApi->new();

eval { 
    $api_instance->hbSectors();
};
if ($@) {
    warn "Exception when calling LegacyApi->hbSectors: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.LegacyApi()

try: 
    api_instance.hb_sectors()
except ApiException as e:
    print("Exception when calling LegacyApi->hbSectors: %s\n" % e)

Parameters

Responses

Status: 200 - .


status

Deprecated. Use [/analysis/status](/api/analysis/status) instead


/status

Usage and SDK Samples

curl -X GET\
"https://laguna.insoft.es/api/status"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.LegacyApi;

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

public class LegacyApiExample {

    public static void main(String[] args) {
        
        LegacyApi apiInstance = new LegacyApi();
        try {
            apiInstance.status();
        } catch (ApiException e) {
            System.err.println("Exception when calling LegacyApi#status");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.LegacyApi;

public class LegacyApiExample {

    public static void main(String[] args) {
        LegacyApi apiInstance = new LegacyApi();
        try {
            apiInstance.status();
        } catch (ApiException e) {
            System.err.println("Exception when calling LegacyApi#status");
            e.printStackTrace();
        }
    }
}

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

[apiInstance statusWithCompletionHandler: 
              ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var LagunaONhEApi = require('laguna_o_nh_e_api');

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

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

            var apiInstance = new LegacyApi();

            try
            {
                apiInstance.status();
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling LegacyApi.status: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiLegacyApi();

try {
    $api_instance->status();
} catch (Exception $e) {
    echo 'Exception when calling LegacyApi->status: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::LegacyApi;

my $api_instance = WWW::SwaggerClient::LegacyApi->new();

eval { 
    $api_instance->status();
};
if ($@) {
    warn "Exception when calling LegacyApi->status: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.LegacyApi()

try: 
    api_instance.status()
except ApiException as e:
    print("Exception when calling LegacyApi->status: %s\n" % e)

Parameters

Responses

Status: 200 - .


upload

Deprecated. Use [/analysis/upload](/api/analysis/upload) instead


/upload

Usage and SDK Samples

curl -X GET\
"https://laguna.insoft.es/api/upload"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.LegacyApi;

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

public class LegacyApiExample {

    public static void main(String[] args) {
        
        LegacyApi apiInstance = new LegacyApi();
        try {
            apiInstance.upload();
        } catch (ApiException e) {
            System.err.println("Exception when calling LegacyApi#upload");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.LegacyApi;

public class LegacyApiExample {

    public static void main(String[] args) {
        LegacyApi apiInstance = new LegacyApi();
        try {
            apiInstance.upload();
        } catch (ApiException e) {
            System.err.println("Exception when calling LegacyApi#upload");
            e.printStackTrace();
        }
    }
}

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

[apiInstance uploadWithCompletionHandler: 
              ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var LagunaONhEApi = require('laguna_o_nh_e_api');

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

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

            var apiInstance = new LegacyApi();

            try
            {
                apiInstance.upload();
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling LegacyApi.upload: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiLegacyApi();

try {
    $api_instance->upload();
} catch (Exception $e) {
    echo 'Exception when calling LegacyApi->upload: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::LegacyApi;

my $api_instance = WWW::SwaggerClient::LegacyApi->new();

eval { 
    $api_instance->upload();
};
if ($@) {
    warn "Exception when calling LegacyApi->upload: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.LegacyApi()

try: 
    api_instance.upload()
except ApiException as e:
    print("Exception when calling LegacyApi->upload: %s\n" % e)

Parameters

Responses

Status: 200 - .


version

Deprecated. Use [/version/get](/api/version/get) instead


/

Usage and SDK Samples

curl -X GET\
"https://laguna.insoft.es/api/"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.LegacyApi;

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

public class LegacyApiExample {

    public static void main(String[] args) {
        
        LegacyApi apiInstance = new LegacyApi();
        try {
            apiInstance.version();
        } catch (ApiException e) {
            System.err.println("Exception when calling LegacyApi#version");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.LegacyApi;

public class LegacyApiExample {

    public static void main(String[] args) {
        LegacyApi apiInstance = new LegacyApi();
        try {
            apiInstance.version();
        } catch (ApiException e) {
            System.err.println("Exception when calling LegacyApi#version");
            e.printStackTrace();
        }
    }
}

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

[apiInstance versionWithCompletionHandler: 
              ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var LagunaONhEApi = require('laguna_o_nh_e_api');

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

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

            var apiInstance = new LegacyApi();

            try
            {
                apiInstance.version();
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling LegacyApi.version: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiLegacyApi();

try {
    $api_instance->version();
} catch (Exception $e) {
    echo 'Exception when calling LegacyApi->version: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::LegacyApi;

my $api_instance = WWW::SwaggerClient::LegacyApi->new();

eval { 
    $api_instance->version();
};
if ($@) {
    warn "Exception when calling LegacyApi->version: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.LegacyApi()

try: 
    api_instance.version()
except ApiException as e:
    print("Exception when calling LegacyApi->version: %s\n" % e)

Parameters

Responses

Status: 200 - .


Patient

patient_create

Endpoint to create a patient


/patient/create

Usage and SDK Samples

curl -X POST\
-H "Accept: application/json"\
"https://laguna.insoft.es/api/patient/create?client=&token=&reference="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.PatientApi;

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

public class PatientApiExample {

    public static void main(String[] args) {
        
        PatientApi apiInstance = new PatientApi();
        String client = client_example; // String | username for authentication
        String token = token_example; // String | token for authentication
        String reference = reference_example; // String | Name that will be used to identify the patient. It can be an actual name, or a code, etc
        try {
            inline_response_200_3 result = apiInstance.patient_create(client, token, reference);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PatientApi#patient_create");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.PatientApi;

public class PatientApiExample {

    public static void main(String[] args) {
        PatientApi apiInstance = new PatientApi();
        String client = client_example; // String | username for authentication
        String token = token_example; // String | token for authentication
        String reference = reference_example; // String | Name that will be used to identify the patient. It can be an actual name, or a code, etc
        try {
            inline_response_200_3 result = apiInstance.patient_create(client, token, reference);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PatientApi#patient_create");
            e.printStackTrace();
        }
    }
}
String *client = client_example; // username for authentication
String *token = token_example; // token for authentication
String *reference = reference_example; // Name that will be used to identify the patient. It can be an actual name, or a code, etc

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

[apiInstance patient_createWith:client
    token:token
    reference:reference
              completionHandler: ^(inline_response_200_3 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var LagunaONhEApi = require('laguna_o_nh_e_api');

var api = new LagunaONhEApi.PatientApi()
var client = client_example; //  username for authentication
var token = token_example; //  token for authentication
var reference = reference_example; //  Name that will be used to identify the patient. It can be an actual name, or a code, etc

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

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

            var apiInstance = new PatientApi();
            var client = client_example;  // String | username for authentication
            var token = token_example;  // String | token for authentication
            var reference = reference_example;  // String | Name that will be used to identify the patient. It can be an actual name, or a code, etc

            try
            {
                inline_response_200_3 result = apiInstance.patient_create(client, token, reference);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling PatientApi.patient_create: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiPatientApi();
$client = client_example; // String | username for authentication
$token = token_example; // String | token for authentication
$reference = reference_example; // String | Name that will be used to identify the patient. It can be an actual name, or a code, etc

try {
    $result = $api_instance->patient_create($client, $token, $reference);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling PatientApi->patient_create: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::PatientApi;

my $api_instance = WWW::SwaggerClient::PatientApi->new();
my $client = client_example; # String | username for authentication
my $token = token_example; # String | token for authentication
my $reference = reference_example; # String | Name that will be used to identify the patient. It can be an actual name, or a code, etc

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

# create an instance of the API class
api_instance = swagger_client.PatientApi()
client = client_example # String | username for authentication
token = token_example # String | token for authentication
reference = reference_example # String | Name that will be used to identify the patient. It can be an actual name, or a code, etc

try: 
    api_response = api_instance.patient_create(client, token, reference)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling PatientApi->patient_create: %s\n" % e)

Parameters

Query parameters
Name Description
client*
String
username for authentication
Required
token*
String
token for authentication
Required
reference*
String
Name that will be used to identify the patient. It can be an actual name, or a code, etc
Required

Responses

Status: 200 - Codes available for this response: 1, 2, 6, 7, 9


patient_delete

Endpoint to delete a patient. All the analysis belonging to the patient are not deleted, and remain in the server


/patient/delete

Usage and SDK Samples

curl -X POST\
-H "Accept: application/json"\
"https://laguna.insoft.es/api/patient/delete?client=&token=&idPatient="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.PatientApi;

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

public class PatientApiExample {

    public static void main(String[] args) {
        
        PatientApi apiInstance = new PatientApi();
        String client = client_example; // String | username for authentication
        String token = token_example; // String | token for authentication
        Integer idPatient = 56; // Integer | ID of the patient
        try {
            inline_response_200_2 result = apiInstance.patient_delete(client, token, idPatient);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PatientApi#patient_delete");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.PatientApi;

public class PatientApiExample {

    public static void main(String[] args) {
        PatientApi apiInstance = new PatientApi();
        String client = client_example; // String | username for authentication
        String token = token_example; // String | token for authentication
        Integer idPatient = 56; // Integer | ID of the patient
        try {
            inline_response_200_2 result = apiInstance.patient_delete(client, token, idPatient);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PatientApi#patient_delete");
            e.printStackTrace();
        }
    }
}
String *client = client_example; // username for authentication
String *token = token_example; // token for authentication
Integer *idPatient = 56; // ID of the patient

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

[apiInstance patient_deleteWith:client
    token:token
    idPatient:idPatient
              completionHandler: ^(inline_response_200_2 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var LagunaONhEApi = require('laguna_o_nh_e_api');

var api = new LagunaONhEApi.PatientApi()
var client = client_example; //  username for authentication
var token = token_example; //  token for authentication
var idPatient = 56; //  ID of the patient

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

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

            var apiInstance = new PatientApi();
            var client = client_example;  // String | username for authentication
            var token = token_example;  // String | token for authentication
            var idPatient = 56;  // Integer | ID of the patient

            try
            {
                inline_response_200_2 result = apiInstance.patient_delete(client, token, idPatient);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling PatientApi.patient_delete: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiPatientApi();
$client = client_example; // String | username for authentication
$token = token_example; // String | token for authentication
$idPatient = 56; // Integer | ID of the patient

try {
    $result = $api_instance->patient_delete($client, $token, $idPatient);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling PatientApi->patient_delete: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::PatientApi;

my $api_instance = WWW::SwaggerClient::PatientApi->new();
my $client = client_example; # String | username for authentication
my $token = token_example; # String | token for authentication
my $idPatient = 56; # Integer | ID of the patient

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

# create an instance of the API class
api_instance = swagger_client.PatientApi()
client = client_example # String | username for authentication
token = token_example # String | token for authentication
idPatient = 56 # Integer | ID of the patient

try: 
    api_response = api_instance.patient_delete(client, token, idPatient)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling PatientApi->patient_delete: %s\n" % e)

Parameters

Query parameters
Name Description
client*
String
username for authentication
Required
token*
String
token for authentication
Required
idPatient*
Integer
ID of the patient
Required

Responses

Status: 200 - Codes available for this response: 1, 2, 3, 4, 6, 7, 10


patient_get

Retrieve all the information of the patient. Including the data necessary to create charts in the patient's timeline view


/patient/get

Usage and SDK Samples

curl -X GET\
-H "Accept: application/json"\
"https://laguna.insoft.es/api/patient/get?client=&token=&idPatient="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.PatientApi;

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

public class PatientApiExample {

    public static void main(String[] args) {
        
        PatientApi apiInstance = new PatientApi();
        String client = client_example; // String | username for authentication
        String token = token_example; // String | token for authentication
        Integer idPatient = 56; // Integer | ID of the patient
        try {
            inline_response_200_4 result = apiInstance.patient_get(client, token, idPatient);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PatientApi#patient_get");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.PatientApi;

public class PatientApiExample {

    public static void main(String[] args) {
        PatientApi apiInstance = new PatientApi();
        String client = client_example; // String | username for authentication
        String token = token_example; // String | token for authentication
        Integer idPatient = 56; // Integer | ID of the patient
        try {
            inline_response_200_4 result = apiInstance.patient_get(client, token, idPatient);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PatientApi#patient_get");
            e.printStackTrace();
        }
    }
}
String *client = client_example; // username for authentication
String *token = token_example; // token for authentication
Integer *idPatient = 56; // ID of the patient

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

[apiInstance patient_getWith:client
    token:token
    idPatient:idPatient
              completionHandler: ^(inline_response_200_4 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var LagunaONhEApi = require('laguna_o_nh_e_api');

var api = new LagunaONhEApi.PatientApi()
var client = client_example; //  username for authentication
var token = token_example; //  token for authentication
var idPatient = 56; //  ID of the patient

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

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

            var apiInstance = new PatientApi();
            var client = client_example;  // String | username for authentication
            var token = token_example;  // String | token for authentication
            var idPatient = 56;  // Integer | ID of the patient

            try
            {
                inline_response_200_4 result = apiInstance.patient_get(client, token, idPatient);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling PatientApi.patient_get: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiPatientApi();
$client = client_example; // String | username for authentication
$token = token_example; // String | token for authentication
$idPatient = 56; // Integer | ID of the patient

try {
    $result = $api_instance->patient_get($client, $token, $idPatient);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling PatientApi->patient_get: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::PatientApi;

my $api_instance = WWW::SwaggerClient::PatientApi->new();
my $client = client_example; # String | username for authentication
my $token = token_example; # String | token for authentication
my $idPatient = 56; # Integer | ID of the patient

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

# create an instance of the API class
api_instance = swagger_client.PatientApi()
client = client_example # String | username for authentication
token = token_example # String | token for authentication
idPatient = 56 # Integer | ID of the patient

try: 
    api_response = api_instance.patient_get(client, token, idPatient)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling PatientApi->patient_get: %s\n" % e)

Parameters

Query parameters
Name Description
client*
String
username for authentication
Required
token*
String
token for authentication
Required
idPatient*
Integer
ID of the patient
Required

Responses

Status: 200 - Codes available for this response: 1, 2, 3, 4, 6, 7, 10


patient_report

Get a zip file containing reports and the images associated with all the analysis of this patient


/patient/report

Usage and SDK Samples

curl -X GET\
-H "Accept: application/zip"\
"https://laguna.insoft.es/api/patient/report?client=&token=&idPatient="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.PatientApi;

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

public class PatientApiExample {

    public static void main(String[] args) {
        
        PatientApi apiInstance = new PatientApi();
        String client = client_example; // String | username for authentication
        String token = token_example; // String | token for authentication
        Integer idPatient = 56; // Integer | ID of the patient
        try {
            byte[] result = apiInstance.patient_report(client, token, idPatient);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PatientApi#patient_report");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.PatientApi;

public class PatientApiExample {

    public static void main(String[] args) {
        PatientApi apiInstance = new PatientApi();
        String client = client_example; // String | username for authentication
        String token = token_example; // String | token for authentication
        Integer idPatient = 56; // Integer | ID of the patient
        try {
            byte[] result = apiInstance.patient_report(client, token, idPatient);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PatientApi#patient_report");
            e.printStackTrace();
        }
    }
}
String *client = client_example; // username for authentication
String *token = token_example; // token for authentication
Integer *idPatient = 56; // ID of the patient

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

[apiInstance patient_reportWith:client
    token:token
    idPatient:idPatient
              completionHandler: ^(byte[] output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var LagunaONhEApi = require('laguna_o_nh_e_api');

var api = new LagunaONhEApi.PatientApi()
var client = client_example; //  username for authentication
var token = token_example; //  token for authentication
var idPatient = 56; //  ID of the patient

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

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

            var apiInstance = new PatientApi();
            var client = client_example;  // String | username for authentication
            var token = token_example;  // String | token for authentication
            var idPatient = 56;  // Integer | ID of the patient

            try
            {
                byte[] result = apiInstance.patient_report(client, token, idPatient);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling PatientApi.patient_report: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiPatientApi();
$client = client_example; // String | username for authentication
$token = token_example; // String | token for authentication
$idPatient = 56; // Integer | ID of the patient

try {
    $result = $api_instance->patient_report($client, $token, $idPatient);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling PatientApi->patient_report: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::PatientApi;

my $api_instance = WWW::SwaggerClient::PatientApi->new();
my $client = client_example; # String | username for authentication
my $token = token_example; # String | token for authentication
my $idPatient = 56; # Integer | ID of the patient

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

# create an instance of the API class
api_instance = swagger_client.PatientApi()
client = client_example # String | username for authentication
token = token_example # String | token for authentication
idPatient = 56 # Integer | ID of the patient

try: 
    api_response = api_instance.patient_report(client, token, idPatient)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling PatientApi->patient_report: %s\n" % e)

Parameters

Query parameters
Name Description
client*
String
username for authentication
Required
token*
String
token for authentication
Required
idPatient*
Integer
ID of the patient
Required

Responses

Status: 200 - zip file


patient_update

All the analysis of the patient that were not performed with the latest version of the software are marked to be analyzed again, in the background. After this call it is necessary to check if there are images pending to be analyzed yet


/patient/update

Usage and SDK Samples

curl -X POST\
-H "Accept: application/json"\
"https://laguna.insoft.es/api/patient/update?client=&token=&idPatient="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.PatientApi;

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

public class PatientApiExample {

    public static void main(String[] args) {
        
        PatientApi apiInstance = new PatientApi();
        String client = client_example; // String | username for authentication
        String token = token_example; // String | token for authentication
        Integer idPatient = 56; // Integer | ID of the patient
        try {
            inline_response_200_2 result = apiInstance.patient_update(client, token, idPatient);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PatientApi#patient_update");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.PatientApi;

public class PatientApiExample {

    public static void main(String[] args) {
        PatientApi apiInstance = new PatientApi();
        String client = client_example; // String | username for authentication
        String token = token_example; // String | token for authentication
        Integer idPatient = 56; // Integer | ID of the patient
        try {
            inline_response_200_2 result = apiInstance.patient_update(client, token, idPatient);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PatientApi#patient_update");
            e.printStackTrace();
        }
    }
}
String *client = client_example; // username for authentication
String *token = token_example; // token for authentication
Integer *idPatient = 56; // ID of the patient

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

[apiInstance patient_updateWith:client
    token:token
    idPatient:idPatient
              completionHandler: ^(inline_response_200_2 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var LagunaONhEApi = require('laguna_o_nh_e_api');

var api = new LagunaONhEApi.PatientApi()
var client = client_example; //  username for authentication
var token = token_example; //  token for authentication
var idPatient = 56; //  ID of the patient

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

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

            var apiInstance = new PatientApi();
            var client = client_example;  // String | username for authentication
            var token = token_example;  // String | token for authentication
            var idPatient = 56;  // Integer | ID of the patient

            try
            {
                inline_response_200_2 result = apiInstance.patient_update(client, token, idPatient);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling PatientApi.patient_update: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiPatientApi();
$client = client_example; // String | username for authentication
$token = token_example; // String | token for authentication
$idPatient = 56; // Integer | ID of the patient

try {
    $result = $api_instance->patient_update($client, $token, $idPatient);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling PatientApi->patient_update: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::PatientApi;

my $api_instance = WWW::SwaggerClient::PatientApi->new();
my $client = client_example; # String | username for authentication
my $token = token_example; # String | token for authentication
my $idPatient = 56; # Integer | ID of the patient

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

# create an instance of the API class
api_instance = swagger_client.PatientApi()
client = client_example # String | username for authentication
token = token_example # String | token for authentication
idPatient = 56 # Integer | ID of the patient

try: 
    api_response = api_instance.patient_update(client, token, idPatient)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling PatientApi->patient_update: %s\n" % e)

Parameters

Query parameters
Name Description
client*
String
username for authentication
Required
token*
String
token for authentication
Required
idPatient*
Integer
ID of the patient
Required

Responses

Status: 200 - Codes available for this response: 1, 2, 3, 4, 6, 7, 10, 11


Version

version_get

Get the information and parameters of the selected Laguna algorithm version.


/version/get

Usage and SDK Samples

curl -X GET\
-H "Accept: application/json"\
"https://laguna.insoft.es/api/version/get?client=&token=&number="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.VersionApi;

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

public class VersionApiExample {

    public static void main(String[] args) {
        
        VersionApi apiInstance = new VersionApi();
        String client = client_example; // String | username for authentication
        String token = token_example; // String | token for authentication
        Integer number = 56; // Integer | Numeric identifier of the version. If no identifier is supplied, the latest version is retrieved.
        try {
            inline_response_200 result = apiInstance.version_get(client, token, number);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling VersionApi#version_get");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.VersionApi;

public class VersionApiExample {

    public static void main(String[] args) {
        VersionApi apiInstance = new VersionApi();
        String client = client_example; // String | username for authentication
        String token = token_example; // String | token for authentication
        Integer number = 56; // Integer | Numeric identifier of the version. If no identifier is supplied, the latest version is retrieved.
        try {
            inline_response_200 result = apiInstance.version_get(client, token, number);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling VersionApi#version_get");
            e.printStackTrace();
        }
    }
}
String *client = client_example; // username for authentication
String *token = token_example; // token for authentication
Integer *number = 56; // Numeric identifier of the version. If no identifier is supplied, the latest version is retrieved. (optional)

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

[apiInstance version_getWith:client
    token:token
    number:number
              completionHandler: ^(inline_response_200 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var LagunaONhEApi = require('laguna_o_nh_e_api');

var api = new LagunaONhEApi.VersionApi()
var client = client_example; //  username for authentication
var token = token_example; //  token for authentication
var opts = { 
  'number': 56 //  Numeric identifier of the version. If no identifier is supplied, the latest version is retrieved.
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.version_get(client, token, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

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

            var apiInstance = new VersionApi();
            var client = client_example;  // String | username for authentication
            var token = token_example;  // String | token for authentication
            var number = 56;  // Integer | Numeric identifier of the version. If no identifier is supplied, the latest version is retrieved. (optional) 

            try
            {
                inline_response_200 result = apiInstance.version_get(client, token, number);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling VersionApi.version_get: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiVersionApi();
$client = client_example; // String | username for authentication
$token = token_example; // String | token for authentication
$number = 56; // Integer | Numeric identifier of the version. If no identifier is supplied, the latest version is retrieved.

try {
    $result = $api_instance->version_get($client, $token, $number);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling VersionApi->version_get: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::VersionApi;

my $api_instance = WWW::SwaggerClient::VersionApi->new();
my $client = client_example; # String | username for authentication
my $token = token_example; # String | token for authentication
my $number = 56; # Integer | Numeric identifier of the version. If no identifier is supplied, the latest version is retrieved.

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

# create an instance of the API class
api_instance = swagger_client.VersionApi()
client = client_example # String | username for authentication
token = token_example # String | token for authentication
number = 56 # Integer | Numeric identifier of the version. If no identifier is supplied, the latest version is retrieved. (optional)

try: 
    api_response = api_instance.version_get(client, token, number=number)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling VersionApi->version_get: %s\n" % e)

Parameters

Query parameters
Name Description
client*
String
username for authentication
Required
token*
String
token for authentication
Required
number
Integer
Numeric identifier of the version. If no identifier is supplied, the latest version is retrieved.

Responses

Status: 200 - Codes available for this response: 1, 3, 4, 6, 7