Navigation Menu

Skip to content

smartprax/medidoc

Repository files navigation

Medidoc API Client Library for Laravel

A Laravel package to use the Medidoc API.

You need an account to access the documentation and use the API.

Installation

composer require smartprax/medidoc

Configuration

Set the follwing variables in .env:

MEDIDOC_ENDPOINT="" # Defaults to 'https://test.medidoc.ch/webservices/MedidocSoapAccessV2.asmx?WSDL'
MEDIDOC_GLN=""
MEDIDOC_PASSWORD=""

Tests

Copy phpunit.xml.dist to phpunit.xml and set the env values:

<env name="MEDIDOC_GLN" value="" />
<env name="MEDIDOC_PASSWORD" value="" />

Run the tests:

composer test

Usage

The methods (SOAP functions) can be found in the Smartprax\Medidoc\Methods namespace and are implemented as Actions.

Meaning, you can just call the static run method, e.g.:

$can_connect = CheckConnection::run();

$insuranceListResponse = GetInsuranceList::run(
    new ArrayOfNameValue([
        new NameValue('Canton', 'AG'),
    ])
)

License

The MIT License (MIT). Please see License File for more information.

Languages