@@ -70,33 +70,33 @@ |
||
| 70 | 70 | public function __construct(string $value) |
| 71 | 71 | { |
| 72 | 72 | $acceptable_values = array( |
| 73 | - self::Alley, |
|
| 74 | - self::Arcade, |
|
| 75 | - self::Avenue, |
|
| 76 | - self::Boulevard, |
|
| 77 | - self::Bypass, |
|
| 78 | - self::Circuit, |
|
| 79 | - self::Close, |
|
| 80 | - self::Corner, |
|
| 81 | - self::Court, |
|
| 82 | - self::Crescent, |
|
| 83 | - self::CulDeSac, |
|
| 84 | - self::Drive, |
|
| 85 | - self::Esplanade, |
|
| 86 | - self::Green, |
|
| 87 | - self::Grove, |
|
| 88 | - self::Highway, |
|
| 89 | - self::Junction, |
|
| 90 | - self::Lane, |
|
| 91 | - self::Link, |
|
| 92 | - self::Mews, |
|
| 93 | - self::Parade, |
|
| 94 | - self::Place, |
|
| 95 | - self::Ridge, |
|
| 96 | - self::Road, |
|
| 97 | - self::Square, |
|
| 98 | - self::Street, |
|
| 99 | - self::Terrace, |
|
| 73 | + self::Alley, |
|
| 74 | + self::Arcade, |
|
| 75 | + self::Avenue, |
|
| 76 | + self::Boulevard, |
|
| 77 | + self::Bypass, |
|
| 78 | + self::Circuit, |
|
| 79 | + self::Close, |
|
| 80 | + self::Corner, |
|
| 81 | + self::Court, |
|
| 82 | + self::Crescent, |
|
| 83 | + self::CulDeSac, |
|
| 84 | + self::Drive, |
|
| 85 | + self::Esplanade, |
|
| 86 | + self::Green, |
|
| 87 | + self::Grove, |
|
| 88 | + self::Highway, |
|
| 89 | + self::Junction, |
|
| 90 | + self::Lane, |
|
| 91 | + self::Link, |
|
| 92 | + self::Mews, |
|
| 93 | + self::Parade, |
|
| 94 | + self::Place, |
|
| 95 | + self::Ridge, |
|
| 96 | + self::Road, |
|
| 97 | + self::Square, |
|
| 98 | + self::Street, |
|
| 99 | + self::Terrace, |
|
| 100 | 100 | ); |
| 101 | 101 | if (\in_array($value, $acceptable_values, true) === false) { |
| 102 | 102 | throw new \InvalidArgumentException("The street type value of $value is not acceptable!"); |
@@ -67,12 +67,12 @@ |
||
| 67 | 67 | { |
| 68 | 68 | if (! |
| 69 | 69 | ( |
| 70 | - $quantity instanceof PhysicalQuantity |
|
| 70 | + $quantity instanceof PhysicalQuantity |
|
| 71 | 71 | || $quantity instanceof AbstractInterval |
| 72 | 72 | ) |
| 73 | 73 | ) { |
| 74 | 74 | throw new \UnexpectedValueException(sprintf('The value of quantity should be an instance of %s or %s', |
| 75 | - PhysicalQuantity::class, AbstractInterval::class)); |
|
| 75 | + PhysicalQuantity::class, AbstractInterval::class)); |
|
| 76 | 76 | } |
| 77 | 77 | |
| 78 | 78 | $this->quantity = $quantity; |
@@ -65,8 +65,7 @@ |
||
| 65 | 65 | */ |
| 66 | 66 | public function setQuantity($quantity): self |
| 67 | 67 | { |
| 68 | - if (! |
|
| 69 | - ( |
|
| 68 | + if (!( |
|
| 70 | 69 | $quantity instanceof PhysicalQuantity |
| 71 | 70 | || $quantity instanceof AbstractInterval |
| 72 | 71 | ) |
@@ -50,7 +50,7 @@ |
||
| 50 | 50 | ? $choice |
| 51 | 51 | : ''); |
| 52 | 52 | $this->setXSIType('') |
| 53 | - ->setMediaType(''); |
|
| 53 | + ->setMediaType(''); |
|
| 54 | 54 | if ($choice && \is_string($choice) === false) { |
| 55 | 55 | $this->addTag($choice); |
| 56 | 56 | } |
@@ -78,9 +78,9 @@ |
||
| 78 | 78 | : TableCell::TD; |
| 79 | 79 | } |
| 80 | 80 | $cell = new TableCell( |
| 81 | - $type, |
|
| 82 | - $this, |
|
| 83 | - $content); |
|
| 81 | + $type, |
|
| 82 | + $this, |
|
| 83 | + $content); |
|
| 84 | 84 | $this->addCell($cell); |
| 85 | 85 | return $cell; |
| 86 | 86 | } |
@@ -80,12 +80,12 @@ |
||
| 80 | 80 | { |
| 81 | 81 | if (! |
| 82 | 82 | ( |
| 83 | - $quantity instanceof PhysicalQuantity |
|
| 83 | + $quantity instanceof PhysicalQuantity |
|
| 84 | 84 | || $quantity instanceof AbstractInterval |
| 85 | 85 | ) |
| 86 | 86 | ) { |
| 87 | 87 | throw new \UnexpectedValueException(sprintf('The value of quantity should be an instance of %s or %s', |
| 88 | - PhysicalQuantity::class, AbstractInterval::class)); |
|
| 88 | + PhysicalQuantity::class, AbstractInterval::class)); |
|
| 89 | 89 | } |
| 90 | 90 | |
| 91 | 91 | $this->quantity = $quantity; |
@@ -78,8 +78,7 @@ |
||
| 78 | 78 | */ |
| 79 | 79 | public function setQuantity($quantity): self |
| 80 | 80 | { |
| 81 | - if (! |
|
| 82 | - ( |
|
| 81 | + if (!( |
|
| 83 | 82 | $quantity instanceof PhysicalQuantity |
| 84 | 83 | || $quantity instanceof AbstractInterval |
| 85 | 84 | ) |
@@ -120,10 +120,10 @@ discard block |
||
| 120 | 120 | public static function SNOMED(string $code, string $displayName, bool $xsi_attribute = true): Value |
| 121 | 121 | { |
| 122 | 122 | $value = (new Value()) |
| 123 | - ->setCode($code) |
|
| 124 | - ->setDisplayName($displayName) |
|
| 125 | - ->setCodeSystem('2.16.840.1.113883.6.96') |
|
| 126 | - ->setCodeSystemName('SNOMED CT'); |
|
| 123 | + ->setCode($code) |
|
| 124 | + ->setDisplayName($displayName) |
|
| 125 | + ->setCodeSystem('2.16.840.1.113883.6.96') |
|
| 126 | + ->setCodeSystemName('SNOMED CT'); |
|
| 127 | 127 | if ($xsi_attribute) { |
| 128 | 128 | $value->setXSIType(XSITypeInterface::CONCEPT_DESCRIPTOR); |
| 129 | 129 | } |
@@ -133,10 +133,10 @@ discard block |
||
| 133 | 133 | public static function NCTISValue(string $code, string $displayName, bool $xsi_attribute = true): Value |
| 134 | 134 | { |
| 135 | 135 | $value = (new Value()) |
| 136 | - ->setCode($code) |
|
| 137 | - ->setDisplayName($displayName) |
|
| 138 | - ->setCodeSystem('2.16.840.1.113883.6.96') |
|
| 139 | - ->setCodeSystemName('SNOMED CT'); |
|
| 136 | + ->setCode($code) |
|
| 137 | + ->setDisplayName($displayName) |
|
| 138 | + ->setCodeSystem('2.16.840.1.113883.6.96') |
|
| 139 | + ->setCodeSystemName('SNOMED CT'); |
|
| 140 | 140 | if ($xsi_attribute) { |
| 141 | 141 | $value->setXSIType(XSITypeInterface::CONCEPT_DESCRIPTOR); |
| 142 | 142 | } |
@@ -146,10 +146,10 @@ discard block |
||
| 146 | 146 | public static function HL7ResultStatus(string $code, string $displayName, bool $xsi_attribute = true): Value |
| 147 | 147 | { |
| 148 | 148 | $value = (new Value()) |
| 149 | - ->setCode($code) |
|
| 150 | - ->setDisplayName($displayName) |
|
| 151 | - ->setCodeSystem('2.16.840.1.113883.12.123') |
|
| 152 | - ->setCodeSystemName('HL7 Result Status'); |
|
| 149 | + ->setCode($code) |
|
| 150 | + ->setDisplayName($displayName) |
|
| 151 | + ->setCodeSystem('2.16.840.1.113883.12.123') |
|
| 152 | + ->setCodeSystemName('HL7 Result Status'); |
|
| 153 | 153 | if ($xsi_attribute) { |
| 154 | 154 | $value->setXSIType(XSITypeInterface::CONCEPT_DESCRIPTOR); |
| 155 | 155 | } |
@@ -172,7 +172,7 @@ discard block |
||
| 172 | 172 | */ |
| 173 | 173 | public function setCode(string $code): self |
| 174 | 174 | { |
| 175 | - $this->code = new ValueType ($code, 'code'); |
|
| 175 | + $this->code = new ValueType($code, 'code'); |
|
| 176 | 176 | return $this; |
| 177 | 177 | } |
| 178 | 178 | |
@@ -191,7 +191,7 @@ discard block |
||
| 191 | 191 | */ |
| 192 | 192 | public function setCodeSystem(string $code_system): self |
| 193 | 193 | { |
| 194 | - $this->code_system = new ValueType ($code_system, 'codeSystem'); |
|
| 194 | + $this->code_system = new ValueType($code_system, 'codeSystem'); |
|
| 195 | 195 | return $this; |
| 196 | 196 | } |
| 197 | 197 | |
@@ -210,7 +210,7 @@ discard block |
||
| 210 | 210 | */ |
| 211 | 211 | public function setCodeSystemName(string $code_system_name): self |
| 212 | 212 | { |
| 213 | - $this->code_system_name = new ValueType ($code_system_name, 'codeSystemName'); |
|
| 213 | + $this->code_system_name = new ValueType($code_system_name, 'codeSystemName'); |
|
| 214 | 214 | return $this; |
| 215 | 215 | } |
| 216 | 216 | |
@@ -229,7 +229,7 @@ discard block |
||
| 229 | 229 | */ |
| 230 | 230 | public function setDisplayName(string $display_name): self |
| 231 | 231 | { |
| 232 | - $this->display_name = new ValueType ($display_name, 'displayName'); |
|
| 232 | + $this->display_name = new ValueType($display_name, 'displayName'); |
|
| 233 | 233 | return $this; |
| 234 | 234 | } |
| 235 | 235 | |
@@ -248,7 +248,7 @@ discard block |
||
| 248 | 248 | */ |
| 249 | 249 | public function setUnits(string $units): self |
| 250 | 250 | { |
| 251 | - $this->units = new ValueType ($units, 'unit'); |
|
| 251 | + $this->units = new ValueType($units, 'unit'); |
|
| 252 | 252 | return $this; |
| 253 | 253 | } |
| 254 | 254 | |
@@ -73,7 +73,7 @@ |
||
| 73 | 73 | public function __construct($choice = null) |
| 74 | 74 | { |
| 75 | 75 | $this->setAcceptableTypeCodes(TypeCodeInterface::x_ActRelationshipEntry) |
| 76 | - ->setTypeCode(TypeCodeInterface::COMPONENT); |
|
| 76 | + ->setTypeCode(TypeCodeInterface::COMPONENT); |
|
| 77 | 77 | if ($choice instanceof Act) { |
| 78 | 78 | $this->setAct($choice); |
| 79 | 79 | } elseif ($choice instanceof Encounter) { |
@@ -290,8 +290,8 @@ |
||
| 290 | 290 | // attributes have finished, now start adding the elements. |
| 291 | 291 | // realm codes are used to store data like the organisation/country etc this tag conforms to. |
| 292 | 292 | $this->renderRealmCodes($el, $doc) |
| 293 | - ->renderTypeId($el, $doc) |
|
| 294 | - ->renderTemplateIds($el, $doc); |
|
| 293 | + ->renderTypeId($el, $doc) |
|
| 294 | + ->renderTemplateIds($el, $doc); |
|
| 295 | 295 | return $el; |
| 296 | 296 | } |
| 297 | 297 | |
@@ -82,7 +82,7 @@ |
||
| 82 | 82 | $this->value = $value; |
| 83 | 83 | } else { |
| 84 | 84 | throw new \UnexpectedValueException(sprintf('The timestamp must implements %s, %s or %s', |
| 85 | - PeriodicIntervalOfTime::class, TimeStamp::class, IntervalOfTime::class)); |
|
| 85 | + PeriodicIntervalOfTime::class, TimeStamp::class, IntervalOfTime::class)); |
|
| 86 | 86 | } |
| 87 | 87 | return $this; |
| 88 | 88 | } |