diff --git a/app/Controllers/AbdmGateway.php b/app/Controllers/AbdmGateway.php index 76a3796..97278f1 100644 --- a/app/Controllers/AbdmGateway.php +++ b/app/Controllers/AbdmGateway.php @@ -6668,7 +6668,7 @@ class AbdmGateway extends BaseController $hiType = str_starts_with($ccRef, 'WELLNESS-') ? 'WellnessRecord' : 'HealthDocumentRecord'; } $dateStr = date('d M Y', strtotime((string) ($row['created_at'] ?? $row['updated_at'] ?? 'now'))); - $display = ($hiType === 'WellnessRecord' ? 'Wellness and Vitals Record - ' : ($hiType . ' - ')) . $dateStr; + $display = ($hiType === 'WellnessRecord' ? 'Wellness Record - ' : ($hiType . ' - ')) . $dateStr; $addContext([ 'careContextId' => $ccRef, diff --git a/app/Controllers/Api/v1/NursingApi.php b/app/Controllers/Api/v1/NursingApi.php index 907bf54..9628980 100644 --- a/app/Controllers/Api/v1/NursingApi.php +++ b/app/Controllers/Api/v1/NursingApi.php @@ -949,7 +949,7 @@ class NursingApi extends BaseController // Build compliant ABDM NRCES FHIR R4 WellnessRecord Document Bundle $cleanDate = date('Ymd', strtotime($recordedAt)); $careContextRef = 'WELLNESS-' . $patientId . '-W' . $wellnessId . '-' . $cleanDate; - $careContextDisplay = 'Wellness and Vitals Record - ' . date('d M Y', strtotime($recordedAt)); + $careContextDisplay = 'Wellness Record - ' . date('d M Y', strtotime($recordedAt)); $fhirBundleJson = null; try { diff --git a/app/Libraries/Abdm/Fhir/Generators/WellnessFhirGenerator.php b/app/Libraries/Abdm/Fhir/Generators/WellnessFhirGenerator.php index 82b0544..d81f120 100644 --- a/app/Libraries/Abdm/Fhir/Generators/WellnessFhirGenerator.php +++ b/app/Libraries/Abdm/Fhir/Generators/WellnessFhirGenerator.php @@ -17,20 +17,13 @@ class WellnessFhirGenerator extends AbstractModuleFhirGenerator $visitDate = (string) ($source['visit_date'] ?? date('Y-m-d')); $careContextReference = 'WELLNESS-' . $recordId . ($sessionId !== '0' ? '-S' . $sessionId : '') . '-' . $visitDate . '-' . date('His'); - $careContextDisplay = 'Wellness and Vitals Record ' . $visitDate; + $careContextDisplay = 'Wellness Record ' . $visitDate; $builder = new \App\Libraries\Abdm\Fhir\FhirDocumentBuilder(); $composition = $this->buildBaseComposition($source, 'Wellness Record', '94500-6', 'Health and Wellness Record'); $composition['meta']['profile'] = ['https://nrces.in/ndhm/fhir/r4/StructureDefinition/WellnessRecord']; $composition['type'] = [ - 'coding' => [ - [ - 'system' => 'http://snomed.info/sct', - 'code' => '419891008', - 'display' => 'Wellness Record', - ], - ], 'text' => 'Wellness Record', ];