fix(wellness): remove SNOMED 419891008 from Composition.type to avoid PHR app displaying HealthDocumentRecord
This commit is contained in:
parent
a44256b530
commit
6f5d3113b6
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -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 {
|
||||
|
|
|
|||
|
|
@ -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',
|
||||
];
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user