index.astro 1.74 KB
---
import { getSitePage } from '@lib/api.ts'
import { Replace } from '@lib/astro.ts'
import BaseLayout from '@layouts/base.astro'
import { Demographics } from '@components/EventDetails.jsx'

const { data: layoutHtml } = await getSitePage('msd', '/')
const { data: pageHtml } = await getSitePage('msd', '/provider-portal')
const pageReplacements = {
  ['#w-node-_3615b991-cc00-f776-58c2-a728a0fba1a9-70cc1f5d']: 'Demographics',
  ['#w-node-eaef93e0-275c-ff2c-39b3-0cc9b81495f3-70cc1f5d .div-block-11']: 'DELETE',
  ['#w-node-eaef93e0-275c-ff2c-39b3-0cc9b81495f3-70cc1f5d > .div-block-8 img']: 'custom',
  ['#w-node-eaef93e0-275c-ff2c-39b3-0cc9b81495f3-70cc1f5d > .div-block-8']: 'Comms',
  ['#w-node-a9641a71-b768-107f-2209-4491bf21ed0a-70cc1f5d > .textblock']: 'ChiefComplaint',
  ['#w-node-bbdf8d21-dc38-5a20-e2b8-38fbe2e0f88a-70cc1f5d > .textblock']: 'HealthHistory',
  ['#w-node-_4b7383d7-9725-37cd-1d15-d6292436eb85-70cc1f5d .textblock']: 'Subjective',
//  ['#w-node-a97d0be9-a1a9-af1d-a30b-f54664c79b09-70cc1f5d > .textblock']: 'ObjectiveLevels',
  ['#w-node-_8c10d845-8d0d-25e6-d1da-42fc4c0faa17-70cc1f5d > .textblock']: 'Objective',
  ['#w-node-_77cf40d0-cb39-d173-d0ed-0a30bcbbda03-70cc1f5d ~ .div-block-15 > .textblock']: 'Assessment',
  ['#w-node-f55c4197-553d-142d-be0f-1364e3d5ce27-70cc1f5d .textblock']: 'Assessment',
  ['#w-node-_993bee43-3117-30d9-0b03-cb9d32541bb9-70cc1f5d > .textblock']: 'Formulary',
  ['#w-node-_1817664f-14e2-687e-1460-429ef0a62ab3-70cc1f5d .textblock']: 'Plan',
}
---
<BaseLayout>
  <Replace html={pageHtml} xpath='.container-2.w-container' replacements={pageReplacements}>
    <define slot='DELETE'>{(node, context) => ''}</define>
    <define slot='Demographics'>{(node, context) => <Demographics/>}</define>
  </Replace>
</BaseLayout>