Skip to content

Commit

Permalink
Adjust ServiceRequest dashboard
Browse files Browse the repository at this point in the history
Add more technical details
  • Loading branch information
ir4y committed Mar 22, 2024
1 parent e56e0cc commit 5527847
Showing 1 changed file with 12 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -317,17 +317,24 @@ export function prepareServiceRequest(
width: 100,
},
{
title: t`External id`,
title: t`External ids`,
key: 'externalid',
render: (r: ServiceRequest) => {
const identifier = r.identifier?.[0];
if (identifier) {
const { value, system } = identifier;
const link = `${system}/${value}`;
const srLink = `${system}/${value}`;
const taskLink = `https://sparked.npd.telstrahealth.com/ereq/fhir/Task?focus=${value}`;
return (
<a href={link} target="_blank" rel="noreferrer">
{value}
</a>
<div>
<a href={srLink} target="_blank" rel="noreferrer">
ServiceRrequest
</a>
<br />
<a href={taskLink} target="_blank" rel="noreferrer">
Task
</a>
</div>
);
} else {
return '';
Expand Down

0 comments on commit 5527847

Please # to comment.