| @@ -74,7 +74,7 @@ | ||
| 74 | 74 |          if (array_key_exists((int)$value, $values) === false) { | 
| 75 | 75 |              throw new \InvalidArgumentException("The ethnic group code {$value} is not allowed!"); | 
| 76 | 76 | } | 
| 77 | - $coded_value = new CodedValue ($value, | |
| 77 | + $coded_value = new CodedValue($value, | |
| 78 | 78 | $values[$value], | 
| 79 | 79 | '2.16.840.1.113883.3.879.291036', | 
| 80 | 80 | 'METeOR Indigenous Status'); | 
| @@ -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 | ) | 
| @@ -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 | |
| @@ -41,8 +41,8 @@ | ||
| 41 | 41 | */ | 
| 42 | 42 | class AddressCodeType extends AnyType | 
| 43 | 43 |  { | 
| 44 | - const BUSINESS = 'WP'; // An office address. First choice for business related con- tacts during business hours. | |
| 45 | - const HOME = 'H'; // A communication address at a home, attempted contacts for business purposes might | |
| 44 | + const BUSINESS = 'WP'; // An office address. First choice for business related con- tacts during business hours. | |
| 45 | + const HOME = 'H'; // A communication address at a home, attempted contacts for business purposes might | |
| 46 | 46 | // intrude privacy and chances are one will contact family or other household members | 
| 47 | 47 | // instead of the person one wishes to call. Typically used with urgent cases, or if no other contacts are available. | 
| 48 | 48 | const HOME_BUSINESS = 'WP H'; | 
| @@ -40,8 +40,8 @@ | ||
| 40 | 40 | * | 
| 41 | 41 | * @return string | 
| 42 | 42 | */ | 
| 43 | - const BUSINESS = 'WP'; // An office address. First choice for business related con- tacts during business hours. | |
| 44 | - const HOME = 'H'; // A communication address at a home, attempted contacts for business purposes might | |
| 43 | + const BUSINESS = 'WP'; // An office address. First choice for business related con- tacts during business hours. | |
| 44 | + const HOME = 'H'; // A communication address at a home, attempted contacts for business purposes might | |
| 45 | 45 | // intrude privacy and chances are one will contact family or other household members | 
| 46 | 46 | // instead of the person one wishes to call. Typically used with urgent cases, or if no other contacts are available. | 
| 47 | 47 | const HOME_BUSINESS = 'WP H'; | 
| @@ -56,12 +56,12 @@ discard block | ||
| 56 | 56 | self::APPLICATION_MSWORD, | 
| 57 | 57 | self::APPLICATION_PDF | 
| 58 | 58 | ); | 
| 59 | - const AudioMediaType = array( | |
| 59 | + const AudioMediaType = array( | |
| 60 | 60 | self::AUDIO_BASIC, | 
| 61 | 61 | self::AUDIO_K32ADPCM, | 
| 62 | 62 | self::AUDIO_MPEG | 
| 63 | 63 | ); | 
| 64 | - const ImageMediaType = array( | |
| 64 | + const ImageMediaType = array( | |
| 65 | 65 | self::IMAGE_G3FAX, | 
| 66 | 66 | self::IMAGE_GIF, | 
| 67 | 67 | self::IMAGE_JPEG, | 
| @@ -82,7 +82,7 @@ discard block | ||
| 82 | 82 | self::TEXT_X_HL7_FT, | 
| 83 | 83 | self::TEXT_XML | 
| 84 | 84 | ); | 
| 85 | - const VideoMediaType = array( | |
| 85 | + const VideoMediaType = array( | |
| 86 | 86 | self::VIDEO_MPEG, | 
| 87 | 87 | self::VIDEO_XAVI | 
| 88 | 88 | ); | 
| @@ -704,11 +704,11 @@ | ||
| 704 | 704 | self::CERTIFICATE_REPRESENTATION, | 
| 705 | 705 | self::IMAGING_MODALITY | 
| 706 | 706 | ); | 
| 707 | - const EntityClassDevice = array( | |
| 707 | + const EntityClassDevice = array( | |
| 708 | 708 | '', | 
| 709 | 709 | self::CLASS_DEVICE | 
| 710 | 710 | ); | 
| 711 | - const EntityClassOrganization = array( | |
| 711 | + const EntityClassOrganization = array( | |
| 712 | 712 | '', | 
| 713 | 713 | self::PUBLIC_INSTITUTION, | 
| 714 | 714 | self::ORGANISATION, | 
| @@ -412,7 +412,7 @@ discard block | ||
| 412 | 412 | self::HAS_SUBJECT, | 
| 413 | 413 | self::EXCERPTS | 
| 414 | 414 | ); | 
| 415 | - const SpecimenType = array( | |
| 415 | + const SpecimenType = array( | |
| 416 | 416 | '', | 
| 417 | 417 | self::SPECIMEN | 
| 418 | 418 | ); | 
| @@ -421,7 +421,7 @@ discard block | ||
| 421 | 421 | * @var array | 
| 422 | 422 | * @link http://cdatools.org/javadoc/org/openhealthtools/mdht/uml/hl7/vocab/ActRelationshipHasComponent.html | 
| 423 | 423 | */ | 
| 424 | - const ActRelationshipHasComponent = array( | |
| 424 | + const ActRelationshipHasComponent = array( | |
| 425 | 425 | '', | 
| 426 | 426 | self::ARRIVAL, | 
| 427 | 427 | self::COMPONENT, | 
| @@ -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 | ) |