Download the PHP package legit-health/medical-device-sdk without Composer

On this page you can find all versions of the php package legit-health/medical-device-sdk. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package medical-device-sdk

PHP SDK for Integrating with Legit.Health's Medical Device API

Official SDK for integrating with Legit.Health's Medical Device API 🩺🤖

Before You Start

Ensure that you have a registered username and password for our API before making any requests.

Instructions

To start sending requests to Legit.Health's Dermatology API, create an instance of the LegitHealth\MedicalDevice\MedicalDeviceClient class. There are several ways to instantiate this object, but the simplest is by using the createWithBaseUri method. This static method accepts a single argument: the API's base URL, which varies depending on the environment you're working in. For development purposes, use https://medical-device-pre.legit.health.

The MedicalDeviceClient class provides three main methods:

Login Request

Before invoking the diagnosis support or severity assessment methods, you need to obtain an access token. This is done by calling the login method of the MedicalDeviceClient class. This method expects a username and a password and returns an AccessToken object. This object contains the access token and its expiration time in minutes.

Diagnosis Support Request

The diagnosisSupport method of the MedicalDeviceClient class accepts three arguments:

Once you've created a DiagnosisSupportArguments object, you can send the request as follows:

The response object, which is an instance of DiagnosisSupportResponse, contains several properties with the information returned by the API about the analyzed images:

Severity Assessment Requests

The severityAssessment method of the MedicalDeviceClient class accepts three arguments:

Example: Severity Assessment Request for Psoriasis

Here’s how to send a severity assessment request for a patient diagnosed with psoriasis.

First, create the objects representing the questionnaires used to track the evolution of psoriasis:

Then, create an object of the SeverityAssessmentArguments class:

Unlike diagnosis support requests, severity assessment requests support the following additional arguments:

Once the SeverityAssessmentArguments object is created, send the request as follows:

The response object contains several properties with information returned by the API about the analyzed image:

The PatientEvolutionInstance Class

The PatientEvolutionInstance contains all the information about a scoring system, for example, APASI_LOCAL.

You can access the value of a scoring system using the getPatientEvolutionInstance method:

This object contains the following properties:

Once you have a PatientEvolutionInstance object, you can access the value of each item using the getEvolutionItem(string $itemCode) method. Each item contains its code and the calculated value. For example, the APASI_LOCAL scoring system includes 4 items: desquamation, erythema, induration, and surface.

Full example:


All versions of medical-device-sdk with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2
symfony/http-client Version ^7.1
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package legit-health/medical-device-sdk contains the following files

Loading the files please wait ....