A Laravel package to use the Medidoc API.
You need an account to access the documentation and use the API.
composer require smartprax/medidoc
Set the follwing variables in .env
:
MEDIDOC_ENDPOINT="" # Defaults to 'https://test.medidoc.ch/webservices/MedidocSoapAccessV2.asmx?WSDL'
MEDIDOC_GLN=""
MEDIDOC_PASSWORD=""
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
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'),
])
)
The MIT License (MIT). Please see License File for more information.