Skip to content

Commit

Permalink
prettier fix
Browse files Browse the repository at this point in the history
  • Loading branch information
lmd59 committed May 13, 2024
1 parent 3803c08 commit 477c827
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions app/src/pages/review/[resourceType]/[id].tsx
Original file line number Diff line number Diff line change
Expand Up @@ -114,21 +114,24 @@ export default function CommentPage() {
newExtension.push({ url: 'authoredOn', valueDateTime: currentDate });
}

if(resource){
if (resource) {
if (resource.extension) {
resource.extension.push({
extension: newExtension,
url: 'http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-artifactComment'
});
additions.extension = resource.extension;
} else{
} else {
resource.extension = [
{ extension: newExtension, url: 'http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-artifactComment' }
{
extension: newExtension,
url: 'http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-artifactComment'
}
];
additions.extension = resource.extension;
}
// update resource dates

resource.date = currentDate;
additions.date = resource.date;
resource.lastReviewDate = currentDate;
Expand Down

0 comments on commit 477c827

Please sign in to comment.