/** * Method setHeader() */ private function setHeader() { $this->xmlData['realmCode'] = ['@attributes' => ['code' => 'US']]; $this->xmlData['typeId'] = ['@attributes' => ['root' => '2.16.840.1.113883.1.3', 'extension' => 'POCD_HD000040']]; // QRDA templateId $this->xmlData['templateId'][] = ['@attributes' => ['root' => '2.16.840.1.113883.10.20.22.1.1']]; // QDM-based QRDA templateId $this->xmlData['templateId'][] = ['@attributes' => ['root' => '2.16.840.1.113883.10.20.22.1.2']]; // QRDA templateId $this->xmlData['templateId'][] = ['@attributes' => ['root' => '2.16.840.1.113883.10.20.24.1.1']]; // QDM-based QRDA templateId $this->xmlData['templateId'][] = ['@attributes' => ['root' => '2.16.840.1.113883.10.20.24.1.2']]; $this->xmlData['id'] = ['@attributes' => ['root' => 'MDHT', 'extension' => '1912668293']]; $this->xmlData['code'] = ['@attributes' => ['code' => '34133-9', 'displayName' => 'Summary of episode note', 'codeSystem' => '2.16.840.1.113883.6.1', 'codeSystemName' => 'LOINC']]; if (isset($this->encounter)) { $this->xmlData['title'] = $this->facility['name'] . ' - Clinical Office Visit Summary'; } else { $this->xmlData['title'] = $this->facility['name'] . ' - Continuity of Care Document'; } $this->xmlData['effectiveTime'] = ['@attributes' => ['value' => $this->timeNow]]; $this->xmlData['confidentialityCode'] = ['@attributes' => ['code' => 'N', 'codeSystem' => '2.16.840.1.113883.5.25']]; $this->xmlData['languageCode'] = ['@attributes' => ['code' => 'en-US']]; $this->patientData = $this->Patient->getPatientDemographicDataByPid($this->pid); $this->user = $this->User->getCurrentUserData(); $this->primaryProvider = $this->User->getUserByUid($this->patientData['primary_provider']); $this->xmlData['recordTarget'] = $this->getRecordTarget(); $this->xmlData['author'] = $this->getAuthor(); $this->xmlData['dataEnterer'] = $this->getDataEnterer(); $this->xmlData['informant'] = $this->getInformant(); $this->xmlData['custodian'] = $this->getCustodian(); $this->xmlData['informationRecipient'] = $this->getInformationRecipient(); $this->xmlData['legalAuthenticator'] = $this->getAuthenticator(); $this->xmlData['authenticator'] = $this->getAuthenticator(); $this->xmlData['documentationOf'] = $this->getDocumentationOf(); if (isset($this->encounter)) { $this->xmlData['componentOf'] = $this->getComponentOf(); } $this->xmlData['component']['structuredBody']['component'] = []; }