| @@ 66-78 (lines=13) @@ | ||
| 63 | $return['specialisms'][] = $specialism; |
|
| 64 | } |
|
| 65 | } |
|
| 66 | if (isset($hcpResult->Mention->MentionExtApp)) { |
|
| 67 | foreach ($hcpResult->Mention->MentionExtApp as $row) { |
|
| 68 | $mention = array(); |
|
| 69 | $mention['bigNumber'] = $row->ArticleRegistrationNumber; |
|
| 70 | $mention['start'] = new \DateTime($row->StartDate); |
|
| 71 | $mention['end'] = null; |
|
| 72 | if ($row->EndDate) { |
|
| 73 | $mention['end'] = new \DateTime($row->EndDate); |
|
| 74 | } |
|
| 75 | $mention['name'] = $this->getMention($row->TypeOfMentionId); |
|
| 76 | $return['mentions'][] = $mention; |
|
| 77 | } |
|
| 78 | } |
|
| 79 | if (isset($hcpResult->JudgmentProvision->JudgmentProvisionExtApp)) { |
|
| 80 | foreach ($hcpResult->JudgmentProvision->JudgmentProvisionExtApp as $row) { |
|
| 81 | $judgement = array(); |
|
| @@ 79-91 (lines=13) @@ | ||
| 76 | $return['mentions'][] = $mention; |
|
| 77 | } |
|
| 78 | } |
|
| 79 | if (isset($hcpResult->JudgmentProvision->JudgmentProvisionExtApp)) { |
|
| 80 | foreach ($hcpResult->JudgmentProvision->JudgmentProvisionExtApp as $row) { |
|
| 81 | $judgement = array(); |
|
| 82 | $judgement['bigNumber'] = $row->ArticleNumber; |
|
| 83 | $judgement['start'] = new \DateTime($row->StartDate); |
|
| 84 | $judgement['end'] = null; |
|
| 85 | if ($row->EndDate) { |
|
| 86 | $judgement['end'] = new \DateTime($row->EndDate); |
|
| 87 | } |
|
| 88 | $judgement['description'] = $row->PublicDescription; |
|
| 89 | $return['judgements'][] = $judgement; |
|
| 90 | } |
|
| 91 | } |
|
| 92 | if (isset($hcpResult->Limitation->LimitationExtApp)) { |
|
| 93 | foreach ($hcpResult->Limitation->LimitationExtApp as $row) { |
|
| 94 | $limitation = array(); |
|
| @@ 92-105 (lines=14) @@ | ||
| 89 | $return['judgements'][] = $judgement; |
|
| 90 | } |
|
| 91 | } |
|
| 92 | if (isset($hcpResult->Limitation->LimitationExtApp)) { |
|
| 93 | foreach ($hcpResult->Limitation->LimitationExtApp as $row) { |
|
| 94 | $limitation = array(); |
|
| 95 | $limitation['bigNumber'] = $row->ArticleRegistrationNumber; |
|
| 96 | $limitation['start'] = new \DateTime($row->StartDate); |
|
| 97 | $limitation['end'] = null; |
|
| 98 | if ($row->EndDate) { |
|
| 99 | $limitation['end'] = new \DateTime($row->EndDate); |
|
| 100 | } |
|
| 101 | $limitation['name'] = $this->getLimitation($row->TypeLimitationId); |
|
| 102 | $limitation['description'] = $row->Description; |
|
| 103 | $return['limitations'][] = $limitation; |
|
| 104 | } |
|
| 105 | } |
|
| 106 | ||
| 107 | $ret[] = $return; |
|
| 108 | } |
|