diff --git a/src/Wb/BigRegister/SoapClient/ResponseParser.php b/src/Wb/BigRegister/SoapClient/ResponseParser.php index 40beaf8..4819d8d 100644 --- a/src/Wb/BigRegister/SoapClient/ResponseParser.php +++ b/src/Wb/BigRegister/SoapClient/ResponseParser.php @@ -38,6 +38,7 @@ public function parse(ListHcpApproxResponse4 $response) $article['end'] = new \DateTime($registration->ArticleRegistrationEndDate); } $article['profession'] = $this->getProfession($registration->ProfessionalGroupCode); + $article['professionCode'] = $registration->ProfessionalGroupCode; $return['articles'][] = $article; } diff --git a/tests/Wb/Test/BigRegister/SoapClient/ResponseParserTest.php b/tests/Wb/Test/BigRegister/SoapClient/ResponseParserTest.php index 3d65084..9f7c8a4 100644 --- a/tests/Wb/Test/BigRegister/SoapClient/ResponseParserTest.php +++ b/tests/Wb/Test/BigRegister/SoapClient/ResponseParserTest.php @@ -44,6 +44,7 @@ public function testParse() $this->assertSame('1998-02-06', $result['articles'][0]['start']->format('Y-m-d')); $this->assertNull($result['articles'][0]['end']); $this->assertSame('Artsen', $result['articles'][0]['profession']); + $this->assertSame('01', $result['articles'][0]['professionCode']); // Specialisms $this->assertArrayHasKey('specialisms', $result);