Skip to content

armgit / pdfcn

Public Imported from GitHub
0

Beautiful pdf components, built on Takumi and Forme. 100% Free, Zero config, one command setup.

feat(registry): add medical intake form block

dineshv972d646a56f66a
diff --git a/apps/web/content/docs/blocks/takumi/medical-intake-form.mdx b/apps/web/content/docs/blocks/takumi/medical-intake-form.mdx
new file mode 100644
index 0000000..a0db2d8
--- /dev/null
+++ b/apps/web/content/docs/blocks/takumi/medical-intake-form.mdx
@@ -0,0 +1,158 @@
+---
+title: "Medical Intake Form"
+description: "Printable patient intake and registration form with personal, insurance, medical history, and consent sections."
+---
+
+<ComponentPreview base="takumi" name="medical-intake-form" hideCode />
+
+## Installation
+
+<CodeTabs>
+
+<TabsList>
+ <TabsTrigger value="cli">Command</TabsTrigger>
+ <TabsTrigger value="manual">Manual</TabsTrigger>
+</TabsList>
+
+<TabsContent value="cli">
+
+```bash
+npx shadcn@latest add @pdfcn/takumi/medical-intake-form
+```
+
+</TabsContent>
+
+<TabsContent value="manual">
+
+<Steps>
+
+<Step>Install the following dependencies:</Step>
+
+```bash
+npm install takumi-pdf @takumi-rs/helpers
+```
+
+<Step>Copy and paste the following code into your project.</Step>
+
+<ComponentSource
+ src="registry/bases/takumi/blocks/medical-intake-form/medical-intake-form.tsx"
+ base="takumi"
+ title="components/pdf/blocks/medical-intake-form/medical-intake-form.tsx"
+/>
+
+<ComponentSource
+ src="registry/bases/takumi/blocks/medical-intake-form/medical-intake-form.types.ts"
+ base="takumi"
+ title="components/pdf/blocks/medical-intake-form/medical-intake-form.types.ts"
+/>
+
+<ComponentSource
+ src="registry/bases/takumi/components/theme-provider.tsx"
+ base="takumi"
+ title="components/pdf/theme-provider.tsx"
+/>
+
+<ComponentSource
+ src="registry/bases/takumi/lib/resolve-color.ts"
+ base="takumi"
+ title="lib/resolve-color.ts"
+/>
+
+<ComponentSource
+ src="registry/bases/takumi/lib/pdf-primitives.tsx"
+ base="takumi"
+ title="lib/pdf-primitives.tsx"
+/>
+
+<ComponentSource
+ src="registry/bases/takumi/lib/pdf-svg.tsx"
+ base="takumi"
+ title="lib/pdf-svg.tsx"
+/>
+
+<ComponentSource
+ src="registry/themes/professional.ts"
+ base="takumi"
+ title="lib/pdf-themes/professional.ts"
+/>
+
+<ComponentSource
+ src="registry/themes/primitives.ts"
+ base="takumi"
+ title="lib/pdf-themes/primitives.ts"
+/>
+
+<ComponentSource
+ src="registry/types/pdf-themes.ts"
+ base="takumi"
+ title="types/pdf-themes.ts"
+/>
+
+<ComponentSource
+ src="registry/types/pdf-components.ts"
+ base="takumi"
+ title="types/pdf-components.ts"
+/>
+
+<Step>Update the import paths to match your project setup.</Step>
+
+</Steps>
+
+</TabsContent>
+
+</CodeTabs>
+
+## Usage
+
+```tsx
+import { MedicalIntakeFormDocument } from "@/components/pdf/blocks/medical-intake-form/medical-intake-form";
+```
+
+```tsx
+<MedicalIntakeFormDocument
+ clinicName="Sunrise Family Medicine"
+ clinicAddress="200 Health Plaza, Denver, CO 80202"
+ clinicPhone="(303) 555-0180"
+ accentColor="#0d9488"
+/>
+```
+
+## Sections
+
+Every section is rendered by default and can be hidden by setting its prop to `false`.
+
+```tsx
+<MedicalIntakeFormDocument
+ clinicName="Sunrise Family Medicine"
+ personalInfo
+ emergencyContact
+ insurance
+ medicalHistory
+ medications
+ allergies
+ reasonForVisit
+ consent
+/>
+```
+
+| Prop | Section |
+| ------------------ | ------------------------------------------------------------- |
+| `personalInfo` | Name, date of birth, gender, phone, email, and address fields |
+| `emergencyContact` | Contact name, relationship, and phone fields |
+| `insurance` | Provider, policy, group, and subscriber fields |
+| `medicalHistory` | Condition checklist with allergy and medication prompts |
+| `medications` | Medication, dosage, frequency, and prescribing doctor table |
+| `allergies` | Allergen, reaction, and severity table |
+| `reasonForVisit` | Free-text area for symptoms and reason for the visit |
+| `consent` | HIPAA authorization, treatment consent, and signature lines |
+
+## Props
+
+| Prop | Type | Description |
+| --------------- | ------------ | ----------------------------------------------------------- |
+| `clinicName` | `string` | Clinic name shown in the header and consent text |
+| `clinicLogo` | `string` | Optional logo image source |
+| `clinicAddress` | `string` | Address shown in the header and footer |
+| `clinicPhone` | `string` | Phone number shown in the header and footer |
+| `accentColor` | `string` | Theme token or CSS color used for section rules and accents |
+| `theme` | `PdfcnTheme` | Theme override for the whole document |
diff --git a/apps/web/content/docs/blocks/takumi/meta.json b/apps/web/content/docs/blocks/takumi/meta.json
index ed12e4d..0283956 100644
--- a/apps/web/content/docs/blocks/takumi/meta.json
+++ b/apps/web/content/docs/blocks/takumi/meta.json
@@ -7,6 +7,7 @@
"invoice-creative",
"invoice-minimal",
"invoice-modern",
+ "medical-intake-form",
"report-financial",
"report-marketing",
"report-operations",
diff --git a/apps/web/examples/__index__.ts b/apps/web/examples/__index__.ts
index 0e8dcb1..bd39a02 100644
--- a/apps/web/examples/__index__.ts
+++ b/apps/web/examples/__index__.ts
@@ -52,6 +52,7 @@ import takumi_keep_together from "@/examples/takumi/keep-together";
import takumi_key_value from "@/examples/takumi/key-value";
import takumi_link from "@/examples/takumi/link";
import takumi_list from "@/examples/takumi/list";
+import takumi_medical_intake_form from "@/examples/takumi/medical-intake-form";
import takumi_page_break from "@/examples/takumi/page-break";
import takumi_page_footer from "@/examples/takumi/page-footer";
import takumi_page_header from "@/examples/takumi/page-header";
@@ -128,6 +129,7 @@ export const demos: Record<BaseName, DemoMap> = {
"key-value": takumi_key_value,
link: takumi_link,
list: takumi_list,
+ "medical-intake-form": takumi_medical_intake_form,
"page-break": takumi_page_break,
"page-footer": takumi_page_footer,
"page-header": takumi_page_header,
diff --git a/apps/web/examples/preview-config.tsx b/apps/web/examples/preview-config.tsx
index 8bb2ad3..0d637d3 100644
--- a/apps/web/examples/preview-config.tsx
+++ b/apps/web/examples/preview-config.tsx
@@ -11,6 +11,7 @@ const BLOCK_NAMES = new Set([
"invoice-creative",
"invoice-minimal",
"invoice-modern",
+ "medical-intake-form",
"report-financial",
"report-marketing",
"report-operations",
diff --git a/apps/web/examples/takumi/medical-intake-form.tsx b/apps/web/examples/takumi/medical-intake-form.tsx
new file mode 100644
index 0000000..66461cf
--- /dev/null
+++ b/apps/web/examples/takumi/medical-intake-form.tsx
@@ -0,0 +1,11 @@
+import { MedicalIntakeFormDocument } from "@/registry/bases/takumi/blocks/medical-intake-form/medical-intake-form";
+
+const Demo = () => (
+ <MedicalIntakeFormDocument
+ accentColor="#0d9488"
+ clinicAddress="200 Health Plaza, Denver, CO 80202"
+ clinicName="Sunrise Family Medicine"
+ clinicPhone="(303) 555-0180"
+ />
+);
+export default Demo;
diff --git a/apps/web/public/r/registry.json b/apps/web/public/r/registry.json
index 349a0dc..336d83c 100644
--- a/apps/web/public/r/registry.json
+++ b/apps/web/public/r/registry.json
@@ -758,6 +758,37 @@
"title": "Report Security",
"type": "registry:block"
},
+ {
+ "dependencies": ["takumi-pdf", "@takumi-rs/helpers"],
+ "description": "Medical Intake Form PDF block (takumi)",
+ "files": [
+ {
+ "path": "registry/bases/takumi/blocks/medical-intake-form/medical-intake-form.tsx",
+ "type": "registry:block",
+ "target": "components/pdf/blocks/medical-intake-form/medical-intake-form.tsx"
+ },
+ {
+ "path": "registry/bases/takumi/blocks/medical-intake-form/medical-intake-form.types.ts",
+ "type": "registry:block",
+ "target": "components/pdf/blocks/medical-intake-form/medical-intake-form.types.ts"
+ }
+ ],
+ "name": "takumi/medical-intake-form",
+ "registryDependencies": [
+ "@pdfcn/takumi/utils",
+ "@pdfcn/takumi/form",
+ "@pdfcn/takumi/list",
+ "@pdfcn/takumi/page-footer",
+ "@pdfcn/takumi/page-header",
+ "@pdfcn/takumi/pdf-image",
+ "@pdfcn/takumi/section",
+ "@pdfcn/takumi/signature",
+ "@pdfcn/takumi/table",
+ "@pdfcn/takumi/text"
+ ],
+ "title": "Medical Intake Form",
+ "type": "registry:block"
+ },
{
"description": "professional theme tokens",
"files": [
diff --git a/apps/web/public/r/takumi/medical-intake-form.json b/apps/web/public/r/takumi/medical-intake-form.json
new file mode 100644
index 0000000..d79f705
--- /dev/null
+++ b/apps/web/public/r/takumi/medical-intake-form.json
@@ -0,0 +1,37 @@
+{
+ "$schema": "https://ui.shadcn.com/schema/registry-item.json",
+ "name": "takumi/medical-intake-form",
+ "title": "Medical Intake Form",
+ "description": "Medical Intake Form PDF block (takumi)",
+ "dependencies": [
+ "takumi-pdf",
+ "@takumi-rs/helpers"
+ ],
+ "registryDependencies": [
+ "@pdfcn/takumi/utils",
+ "@pdfcn/takumi/form",
+ "@pdfcn/takumi/list",
+ "@pdfcn/takumi/page-footer",
+ "@pdfcn/takumi/page-header",
+ "@pdfcn/takumi/pdf-image",
+ "@pdfcn/takumi/section",
+ "@pdfcn/takumi/signature",
+ "@pdfcn/takumi/table",
+ "@pdfcn/takumi/text"
+ ],
+ "files": [
+ {
+ "path": "registry/bases/takumi/blocks/medical-intake-form/medical-intake-form.tsx",
+ "content": "import { PdfForm } from \"@/registry/bases/takumi/components/form/form\";\nimport { PdfList } from \"@/registry/bases/takumi/components/list/list\";\nimport { PageFooter } from \"@/registry/bases/takumi/components/page-footer/page-footer\";\nimport { PageHeader } from \"@/registry/bases/takumi/components/page-header/page-header\";\nimport { PdfImage } from \"@/registry/bases/takumi/components/pdf-image/pdf-image\";\nimport { Section } from \"@/registry/bases/takumi/components/section/section\";\nimport { PdfSignatureBlock } from \"@/registry/bases/takumi/components/signature/signature\";\nimport {\n Table,\n TableBody,\n TableCell,\n TableHeader,\n TableRow,\n} from \"@/registry/bases/takumi/components/table/table\";\nimport { Text } from \"@/registry/bases/takumi/components/text/text\";\nimport {\n PdfcnThemeProvider,\n usePdfcnTheme,\n useSafeMemo,\n} from \"@/registry/bases/takumi/components/theme-provider\";\nimport {\n View,\n StyleSheet,\n Document,\n Page,\n} from \"@/registry/bases/takumi/lib/pdf-primitives\";\nimport { resolveColor } from \"@/registry/bases/takumi/lib/resolve-color\";\nimport type { PdfcnTheme } from \"@/registry/types/pdf-themes\";\n\nimport type { MedicalIntakeFormProps } from \"./medical-intake-form.types\";\n\nconst FORM_VERSION = \"Form v1.0 · Revised 09/2026\";\nconst FORM_STYLE = { marginBottom: 0 };\n\nconst MEDICAL_CONDITIONS = [\n \"Diabetes\",\n \"High Blood Pressure\",\n \"Heart Disease\",\n \"Asthma\",\n \"COPD\",\n \"Cancer\",\n \"Stroke\",\n \"Thyroid Disorder\",\n \"Kidney Disease\",\n \"Liver Disease\",\n \"Seizures / Epilepsy\",\n \"Other\",\n];\n\nconst CONSENT_ACKNOWLEDGMENTS = [\n { checked: false, text: \"I have read and understand the consent above.\" },\n { checked: false, text: \"I have received the Notice of Privacy Practices.\" },\n];\n\nconst MEDICATION_ROWS = [\n \"medication-1\",\n \"medication-2\",\n \"medication-3\",\n \"medication-4\",\n];\n\nconst ALLERGY_ROWS = [\"allergy-1\", \"allergy-2\", \"allergy-3\"];\n\nconst BLANK_CELL = <View style={{ minHeight: 14 }} />;\n\nconst blankChecklist = (labels: string[]) =>\n labels.map((text) => ({ checked: false, text }));\n\nconst createIntakeStyles = (t: PdfcnTheme) =>\n StyleSheet.create({\n column: { flex: 1 },\n consentText: {\n fontSize: t.primitives.typography.xs,\n lineHeight: 1.4,\n marginBottom: 6,\n },\n labelText: { fontSize: 9, fontWeight: \"bold\", letterSpacing: 0.6 },\n page: {\n backgroundColor: t.colors.background,\n boxSizing: \"border-box\",\n minHeight: 841,\n paddingBottom: t.spacing.page.marginBottom,\n paddingLeft: t.spacing.page.marginLeft,\n paddingRight: t.spacing.page.marginRight,\n paddingTop: t.spacing.page.marginTop,\n position: \"relative\",\n },\n pageBreak: { breakAfter: \"page\" },\n pageTwo: { paddingBottom: 44, paddingTop: 24 },\n pageTwoHeader: {\n alignItems: \"flex-end\",\n flexDirection: \"row\",\n justifyContent: \"space-between\",\n marginBottom: 8,\n },\n reasonBox: {\n borderColor: t.colors.border,\n borderRadius: t.primitives.borderRadius.sm,\n borderStyle: \"solid\",\n borderWidth: 1,\n minHeight: 40,\n },\n row: { flexDirection: \"row\", gap: 20 },\n section: { marginBottom: 4 },\n signature: { marginBottom: 0, marginTop: 8 },\n title: { fontSize: 13, fontWeight: \"bold\" },\n });\n\ntype IntakeStyles = ReturnType<typeof createIntakeStyles>;\n\nconst useIntakeStyles = (): { styles: IntakeStyles; theme: PdfcnTheme } => {\n const theme = usePdfcnTheme();\n const styles = useSafeMemo(() => createIntakeStyles(theme), [theme]);\n return { styles, theme };\n};\n\nconst SectionLabel = ({ accent, label }: { accent: string; label: string }) => {\n const { styles } = useIntakeStyles();\n\n return (\n <View\n style={{\n borderBottomColor: accent,\n borderBottomStyle: \"solid\",\n borderBottomWidth: 1,\n marginBottom: 4,\n paddingBottom: 2,\n }}\n >\n <Text noMargin style={styles.labelText} transform=\"uppercase\">\n {label}\n </Text>\n </View>\n );\n};\n\nconst IntakeHeader = ({\n clinicAddress,\n clinicLogo,\n clinicName,\n clinicPhone,\n}: Pick<\n MedicalIntakeFormProps,\n \"clinicAddress\" | \"clinicLogo\" | \"clinicName\" | \"clinicPhone\"\n>) => (\n <PageHeader\n logo={\n clinicLogo ? (\n <PdfImage\n height={48}\n src={clinicLogo}\n style={{ margin: 0 }}\n width={48}\n />\n ) : undefined\n }\n marginBottom={16}\n rightSubText={clinicAddress}\n rightText={clinicPhone}\n subtitle=\"Patient Intake Form\"\n title={clinicName}\n variant=\"logo-left\"\n />\n);\n\nconst SecondPageHeader = ({\n clinicName,\n clinicPhone,\n}: Pick<MedicalIntakeFormProps, \"clinicName\" | \"clinicPhone\">) => {\n const { styles } = useIntakeStyles();\n\n return (\n <View style={styles.pageTwoHeader}>\n <Text noMargin style={styles.title}>\n {`${clinicName} — Patient Intake Form (continued)`}\n </Text>\n <Text color=\"mutedForeground\" noMargin variant=\"xs\">\n {clinicPhone}\n </Text>\n </View>\n );\n};\n\nconst IntakeFooter = ({\n clinicAddress,\n clinicPhone,\n page,\n totalPages,\n}: Pick<MedicalIntakeFormProps, \"clinicAddress\" | \"clinicPhone\"> & {\n page: number;\n totalPages: number;\n}) => {\n const { theme } = useIntakeStyles();\n\n return (\n <PageFooter\n address={clinicAddress}\n leftText={FORM_VERSION}\n pagePadding={theme.spacing.page.marginLeft}\n phone={clinicPhone}\n rightText={`Page ${page} of ${totalPages}`}\n sticky\n variant=\"three-column\"\n />\n );\n};\n\nconst PersonalInfoSection = () => (\n <PdfForm\n groups={[\n {\n fields: [\n { height: 14, label: \"Full Name\" },\n { height: 14, hint: \"DD / MM / YYYY\", label: \"Date of Birth\" },\n { height: 14, label: \"Gender\" },\n { height: 14, hint: \"+1 (555) 000-0000\", label: \"Phone Number\" },\n { height: 14, label: \"Email Address\" },\n ],\n layout: \"two-column\",\n title: \"Patient Information\",\n },\n {\n fields: [\n { height: 14, label: \"Street Address\", width: \"100%\" },\n { height: 14, label: \"City\" },\n { height: 14, label: \"State / Province\" },\n { height: 14, label: \"Postal Code\" },\n ],\n layout: \"two-column\",\n title: \"Address\",\n },\n ]}\n style={FORM_STYLE}\n variant=\"underline\"\n />\n);\n\nconst EmergencyContactSection = () => (\n <PdfForm\n groups={[\n {\n fields: [\n { height: 14, label: \"Emergency Contact Name\" },\n { height: 14, label: \"Relationship\" },\n { height: 14, label: \"Phone Number\" },\n ],\n layout: \"two-column\",\n title: \"Emergency Contact\",\n },\n ]}\n style={FORM_STYLE}\n variant=\"underline\"\n />\n);\n\nconst InsuranceSection = () => (\n <PdfForm\n groups={[\n {\n fields: [\n { height: 14, label: \"Insurance Provider\" },\n { height: 14, label: \"Policy Number\" },\n { height: 14, label: \"Group Number\" },\n { height: 14, label: \"Subscriber Name\" },\n ],\n layout: \"two-column\",\n title: \"Insurance\",\n },\n ]}\n style={FORM_STYLE}\n variant=\"underline\"\n />\n);\n\nconst MedicalHistorySection = ({ accent }: { accent: string }) => {\n const { styles } = useIntakeStyles();\n\n return (\n <View style={styles.section}>\n <SectionLabel accent={accent} label=\"Medical History\" />\n <View style={styles.row}>\n <View style={styles.column}>\n <PdfList\n gap=\"xs\"\n items={blankChecklist(MEDICAL_CONDITIONS.slice(0, 4))}\n variant=\"checklist\"\n />\n </View>\n <View style={styles.column}>\n <PdfList\n gap=\"xs\"\n items={blankChecklist(MEDICAL_CONDITIONS.slice(4, 8))}\n variant=\"checklist\"\n />\n </View>\n <View style={styles.column}>\n <PdfList\n gap=\"xs\"\n items={blankChecklist(MEDICAL_CONDITIONS.slice(8))}\n variant=\"checklist\"\n />\n </View>\n </View>\n </View>\n );\n};\n\nconst MedicationsSection = ({ accent }: { accent: string }) => {\n const { styles } = useIntakeStyles();\n\n return (\n <View style={styles.section}>\n <SectionLabel accent={accent} label=\"Current Medications\" />\n <Table variant=\"grid\">\n <TableHeader>\n <TableRow header>\n <TableCell>Medication</TableCell>\n <TableCell>Dosage</TableCell>\n <TableCell>Frequency</TableCell>\n <TableCell>Prescribing Doctor</TableCell>\n </TableRow>\n </TableHeader>\n <TableBody>\n {MEDICATION_ROWS.map((row) => (\n <TableRow key={row}>\n <TableCell>{BLANK_CELL}</TableCell>\n <TableCell>{BLANK_CELL}</TableCell>\n <TableCell>{BLANK_CELL}</TableCell>\n <TableCell>{BLANK_CELL}</TableCell>\n </TableRow>\n ))}\n </TableBody>\n </Table>\n </View>\n );\n};\n\nconst AllergiesSection = ({ accent }: { accent: string }) => {\n const { styles } = useIntakeStyles();\n\n return (\n <View style={styles.section}>\n <SectionLabel accent={accent} label=\"Allergies\" />\n <Table variant=\"grid\">\n <TableHeader>\n <TableRow header>\n <TableCell>Allergen</TableCell>\n <TableCell>Reaction</TableCell>\n <TableCell>Severity</TableCell>\n </TableRow>\n </TableHeader>\n <TableBody>\n {ALLERGY_ROWS.map((row) => (\n <TableRow key={row}>\n <TableCell>{BLANK_CELL}</TableCell>\n <TableCell>{BLANK_CELL}</TableCell>\n <TableCell>{BLANK_CELL}</TableCell>\n </TableRow>\n ))}\n </TableBody>\n </Table>\n </View>\n );\n};\n\nconst ReasonForVisitSection = ({ accent }: { accent: string }) => {\n const { styles } = useIntakeStyles();\n\n return (\n <View style={styles.section}>\n <SectionLabel accent={accent} label=\"Reason for Visit\" />\n <View style={styles.reasonBox} />\n </View>\n );\n};\n\nconst ConsentSection = ({\n accent,\n accentColor,\n clinicName,\n}: Pick<MedicalIntakeFormProps, \"accentColor\" | \"clinicName\"> & {\n accent: string;\n}) => {\n const { styles } = useIntakeStyles();\n\n return (\n <View style={styles.section}>\n <SectionLabel accent={accent} label=\"Consent & Authorization\" />\n <Section\n accentColor={accentColor}\n padding=\"sm\"\n spacing=\"none\"\n variant=\"highlight\"\n >\n <Text color=\"mutedForeground\" noMargin style={styles.consentText}>\n {`I authorize ${clinicName} to provide treatment and to release the information required to process insurance claims for this visit, and I acknowledge that I have received the Notice of Privacy Practices (HIPAA) explaining how my health information may be used.`}\n </Text>\n <PdfList gap=\"xs\" items={CONSENT_ACKNOWLEDGMENTS} variant=\"checklist\" />\n </Section>\n <PdfSignatureBlock\n signers={[{ label: \"Patient / Guardian Signature\" }, { label: \"Date\" }]}\n style={styles.signature}\n variant=\"double\"\n />\n </View>\n );\n};\n\ntype IntakeSections = Required<\n Pick<\n MedicalIntakeFormProps,\n | \"allergies\"\n | \"consent\"\n | \"emergencyContact\"\n | \"insurance\"\n | \"medicalHistory\"\n | \"medications\"\n | \"personalInfo\"\n | \"reasonForVisit\"\n >\n>;\n\nconst resolveSections = (props: MedicalIntakeFormProps): IntakeSections => ({\n allergies: props.allergies ?? true,\n consent: props.consent ?? true,\n emergencyContact: props.emergencyContact ?? true,\n insurance: props.insurance ?? true,\n medicalHistory: props.medicalHistory ?? true,\n medications: props.medications ?? true,\n personalInfo: props.personalInfo ?? true,\n reasonForVisit: props.reasonForVisit ?? true,\n});\n\nconst hasSecondPage = (sections: IntakeSections) =>\n sections.allergies ||\n sections.consent ||\n sections.medications ||\n sections.reasonForVisit;\n\nconst FirstPage = ({\n clinicAddress,\n clinicLogo,\n clinicName,\n clinicPhone,\n sections,\n totalPages,\n}: Pick<\n MedicalIntakeFormProps,\n \"clinicAddress\" | \"clinicLogo\" | \"clinicName\" | \"clinicPhone\"\n> & {\n sections: IntakeSections;\n totalPages: number;\n}) => {\n const { styles } = useIntakeStyles();\n\n return (\n <Page\n size=\"A4\"\n style={totalPages > 1 ? [styles.page, styles.pageBreak] : styles.page}\n >\n <IntakeHeader\n clinicAddress={clinicAddress}\n clinicLogo={clinicLogo}\n clinicName={clinicName}\n clinicPhone={clinicPhone}\n />\n {sections.personalInfo ? <PersonalInfoSection /> : null}\n {sections.emergencyContact ? <EmergencyContactSection /> : null}\n {sections.insurance ? <InsuranceSection /> : null}\n <IntakeFooter\n clinicAddress={clinicAddress}\n clinicPhone={clinicPhone}\n page={1}\n totalPages={totalPages}\n />\n </Page>\n );\n};\n\nconst SecondPage = ({\n accent,\n accentColor,\n clinicAddress,\n clinicName,\n clinicPhone,\n sections,\n totalPages,\n}: Pick<\n MedicalIntakeFormProps,\n \"accentColor\" | \"clinicAddress\" | \"clinicName\" | \"clinicPhone\"\n> & {\n accent: string;\n sections: IntakeSections;\n totalPages: number;\n}) => {\n const { styles } = useIntakeStyles();\n\n return (\n <Page size=\"A4\" style={[styles.page, styles.pageTwo]}>\n <SecondPageHeader clinicName={clinicName} clinicPhone={clinicPhone} />\n {sections.medicalHistory ? (\n <MedicalHistorySection accent={accent} />\n ) : null}\n {sections.medications ? <MedicationsSection accent={accent} /> : null}\n {sections.allergies ? <AllergiesSection accent={accent} /> : null}\n {sections.reasonForVisit ? (\n <ReasonForVisitSection accent={accent} />\n ) : null}\n {sections.consent ? (\n <ConsentSection\n accent={accent}\n accentColor={accentColor}\n clinicName={clinicName}\n />\n ) : null}\n <IntakeFooter\n clinicAddress={clinicAddress}\n clinicPhone={clinicPhone}\n page={2}\n totalPages={totalPages}\n />\n </Page>\n );\n};\n\nconst MedicalIntakeFormContent = (props: MedicalIntakeFormProps) => {\n const { theme } = useIntakeStyles();\n const sections = resolveSections(props);\n const accent = props.accentColor\n ? resolveColor(props.accentColor, theme.colors)\n : theme.colors.primary;\n const totalPages = hasSecondPage(sections) ? 2 : 1;\n\n return (\n <Document title={`${props.clinicName} — Patient Intake Form`}>\n <FirstPage\n clinicAddress={props.clinicAddress}\n clinicLogo={props.clinicLogo}\n clinicName={props.clinicName}\n clinicPhone={props.clinicPhone}\n sections={sections}\n totalPages={totalPages}\n />\n {totalPages > 1 ? (\n <SecondPage\n accent={accent}\n accentColor={props.accentColor}\n clinicAddress={props.clinicAddress}\n clinicName={props.clinicName}\n clinicPhone={props.clinicPhone}\n sections={sections}\n totalPages={totalPages}\n />\n ) : null}\n </Document>\n );\n};\n\n/**\n * Print-ready medical intake form with patient, emergency contact, insurance,\n * medical history, medication, allergy, reason for visit, and consent\n * sections. Every section can be hidden through its boolean prop, and all\n * fields are left blank for the patient to complete by hand.\n */\nexport const MedicalIntakeFormDocument = ({\n theme,\n ...props\n}: MedicalIntakeFormProps) => (\n <PdfcnThemeProvider theme={theme}>\n <MedicalIntakeFormContent {...props} />\n </PdfcnThemeProvider>\n);\n",
+ "type": "registry:block",
+ "target": "components/pdf/blocks/medical-intake-form/medical-intake-form.tsx"
+ },
+ {
+ "path": "registry/bases/takumi/blocks/medical-intake-form/medical-intake-form.types.ts",
+ "content": "import type { PdfcnTheme } from \"@/registry/types/pdf-themes\";\n\n/**\n * Medical intake form properties.\n * Props - `clinicName` | `clinicLogo` | `clinicAddress` | `clinicPhone` |\n * `personalInfo` | `emergencyContact` | `insurance` | `medicalHistory` |\n * `medications` | `allergies` | `reasonForVisit` | `consent` | `accentColor` | `theme`\n * @see {@link MedicalIntakeFormDocument}\n */\nexport interface MedicalIntakeFormProps {\n clinicName: string;\n clinicLogo?: string;\n clinicAddress?: string;\n clinicPhone?: string;\n /**\n * @default true\n */\n personalInfo?: boolean;\n /**\n * @default true\n */\n emergencyContact?: boolean;\n /**\n * @default true\n */\n insurance?: boolean;\n /**\n * @default true\n */\n medicalHistory?: boolean;\n /**\n * @default true\n */\n medications?: boolean;\n /**\n * @default true\n */\n allergies?: boolean;\n /**\n * @default true\n */\n reasonForVisit?: boolean;\n /**\n * @default true\n */\n consent?: boolean;\n /**\n * Theme color token (e.g. `\"primary\"`) or raw CSS color (e.g. `\"#0d9488\"`)\n * applied to section rules, table accents, and the consent callout.\n */\n accentColor?: string;\n theme?: PdfcnTheme;\n}\n",
+ "type": "registry:block",
+ "target": "components/pdf/blocks/medical-intake-form/medical-intake-form.types.ts"
+ }
+ ],
+ "type": "registry:block"
+}
\ No newline at end of file
diff --git a/apps/web/registry.json b/apps/web/registry.json
index 349a0dc..336d83c 100644
--- a/apps/web/registry.json
+++ b/apps/web/registry.json
@@ -758,6 +758,37 @@
"title": "Report Security",
"type": "registry:block"
},
+ {
+ "dependencies": ["takumi-pdf", "@takumi-rs/helpers"],
+ "description": "Medical Intake Form PDF block (takumi)",
+ "files": [
+ {
+ "path": "registry/bases/takumi/blocks/medical-intake-form/medical-intake-form.tsx",
+ "type": "registry:block",
+ "target": "components/pdf/blocks/medical-intake-form/medical-intake-form.tsx"
+ },
+ {
+ "path": "registry/bases/takumi/blocks/medical-intake-form/medical-intake-form.types.ts",
+ "type": "registry:block",
+ "target": "components/pdf/blocks/medical-intake-form/medical-intake-form.types.ts"
+ }
+ ],
+ "name": "takumi/medical-intake-form",
+ "registryDependencies": [
+ "@pdfcn/takumi/utils",
+ "@pdfcn/takumi/form",
+ "@pdfcn/takumi/list",
+ "@pdfcn/takumi/page-footer",
+ "@pdfcn/takumi/page-header",
+ "@pdfcn/takumi/pdf-image",
+ "@pdfcn/takumi/section",
+ "@pdfcn/takumi/signature",
+ "@pdfcn/takumi/table",
+ "@pdfcn/takumi/text"
+ ],
+ "title": "Medical Intake Form",
+ "type": "registry:block"
+ },
{
"description": "professional theme tokens",
"files": [
diff --git a/apps/web/registry/bases/takumi/blocks/medical-intake-form/medical-intake-form.tsx b/apps/web/registry/bases/takumi/blocks/medical-intake-form/medical-intake-form.tsx
new file mode 100644
index 0000000..833e39e
--- /dev/null
+++ b/apps/web/registry/bases/takumi/blocks/medical-intake-form/medical-intake-form.tsx
@@ -0,0 +1,572 @@
+import { PdfForm } from "@/registry/bases/takumi/components/form/form";
+import { PdfList } from "@/registry/bases/takumi/components/list/list";
+import { PageFooter } from "@/registry/bases/takumi/components/page-footer/page-footer";
+import { PageHeader } from "@/registry/bases/takumi/components/page-header/page-header";
+import { PdfImage } from "@/registry/bases/takumi/components/pdf-image/pdf-image";
+import { Section } from "@/registry/bases/takumi/components/section/section";
+import { PdfSignatureBlock } from "@/registry/bases/takumi/components/signature/signature";
+import {
+ Table,
+ TableBody,
+ TableCell,
+ TableHeader,
+ TableRow,
+} from "@/registry/bases/takumi/components/table/table";
+import { Text } from "@/registry/bases/takumi/components/text/text";
+import {
+ PdfcnThemeProvider,
+ usePdfcnTheme,
+ useSafeMemo,
+} from "@/registry/bases/takumi/components/theme-provider";
+import {
+ View,
+ StyleSheet,
+ Document,
+ Page,
+} from "@/registry/bases/takumi/lib/pdf-primitives";
+import { resolveColor } from "@/registry/bases/takumi/lib/resolve-color";
+import type { PdfcnTheme } from "@/registry/types/pdf-themes";
+
+import type { MedicalIntakeFormProps } from "./medical-intake-form.types";
+
+const FORM_VERSION = "Form v1.0 · Revised 09/2026";
+const FORM_STYLE = { marginBottom: 0 };
+
+const MEDICAL_CONDITIONS = [
+ "Diabetes",
+ "High Blood Pressure",
+ "Heart Disease",
+ "Asthma",
+ "COPD",
+ "Cancer",
+ "Stroke",
+ "Thyroid Disorder",
+ "Kidney Disease",
+ "Liver Disease",
+ "Seizures / Epilepsy",
+ "Other",
+];
+
+const CONSENT_ACKNOWLEDGMENTS = [
+ { checked: false, text: "I have read and understand the consent above." },
+ { checked: false, text: "I have received the Notice of Privacy Practices." },
+];
+
+const MEDICATION_ROWS = [
+ "medication-1",
+ "medication-2",
+ "medication-3",
+ "medication-4",
+];
+
+const ALLERGY_ROWS = ["allergy-1", "allergy-2", "allergy-3"];
+
+const BLANK_CELL = <View style={{ minHeight: 14 }} />;
+
+const blankChecklist = (labels: string[]) =>
+ labels.map((text) => ({ checked: false, text }));
+
+const createIntakeStyles = (t: PdfcnTheme) =>
+ StyleSheet.create({
+ column: { flex: 1 },
+ consentText: {
+ fontSize: t.primitives.typography.xs,
+ lineHeight: 1.4,
+ marginBottom: 6,
+ },
+ labelText: { fontSize: 9, fontWeight: "bold", letterSpacing: 0.6 },
+ page: {
+ backgroundColor: t.colors.background,
+ boxSizing: "border-box",
+ minHeight: 841,
+ paddingBottom: t.spacing.page.marginBottom,
+ paddingLeft: t.spacing.page.marginLeft,
+ paddingRight: t.spacing.page.marginRight,
+ paddingTop: t.spacing.page.marginTop,
+ position: "relative",
+ },
+ pageBreak: { breakAfter: "page" },
+ pageTwo: { paddingBottom: 44, paddingTop: 24 },
+ pageTwoHeader: {
+ alignItems: "flex-end",
+ flexDirection: "row",
+ justifyContent: "space-between",
+ marginBottom: 8,
+ },
+ reasonBox: {
+ borderColor: t.colors.border,
+ borderRadius: t.primitives.borderRadius.sm,
+ borderStyle: "solid",
+ borderWidth: 1,
+ minHeight: 40,
+ },
+ row: { flexDirection: "row", gap: 20 },
+ section: { marginBottom: 4 },
+ signature: { marginBottom: 0, marginTop: 8 },
+ title: { fontSize: 13, fontWeight: "bold" },
+ });
+
+type IntakeStyles = ReturnType<typeof createIntakeStyles>;
+
+const useIntakeStyles = (): { styles: IntakeStyles; theme: PdfcnTheme } => {
+ const theme = usePdfcnTheme();
+ const styles = useSafeMemo(() => createIntakeStyles(theme), [theme]);
+ return { styles, theme };
+};
+
+const SectionLabel = ({ accent, label }: { accent: string; label: string }) => {
+ const { styles } = useIntakeStyles();
+
+ return (
+ <View
+ style={{
+ borderBottomColor: accent,
+ borderBottomStyle: "solid",
+ borderBottomWidth: 1,
+ marginBottom: 4,
+ paddingBottom: 2,
+ }}
+ >
+ <Text noMargin style={styles.labelText} transform="uppercase">
+ {label}
+ </Text>
+ </View>
+ );
+};
+
+const IntakeHeader = ({
+ clinicAddress,
+ clinicLogo,
+ clinicName,
+ clinicPhone,
+}: Pick<
+ MedicalIntakeFormProps,
+ "clinicAddress" | "clinicLogo" | "clinicName" | "clinicPhone"
+>) => (
+ <PageHeader
+ logo={
+ clinicLogo ? (
+ <PdfImage
+ height={48}
+ src={clinicLogo}
+ style={{ margin: 0 }}
+ width={48}
+ />
+ ) : undefined
+ }
+ marginBottom={16}
+ rightSubText={clinicAddress}
+ rightText={clinicPhone}
+ subtitle="Patient Intake Form"
+ title={clinicName}
+ variant="logo-left"
+ />
+);
+
+const SecondPageHeader = ({
+ clinicName,
+ clinicPhone,
+}: Pick<MedicalIntakeFormProps, "clinicName" | "clinicPhone">) => {
+ const { styles } = useIntakeStyles();
+
+ return (
+ <View style={styles.pageTwoHeader}>
+ <Text noMargin style={styles.title}>
+ {`${clinicName} — Patient Intake Form (continued)`}
+ </Text>
+ <Text color="mutedForeground" noMargin variant="xs">
+ {clinicPhone}
+ </Text>
+ </View>
+ );
+};
+
+const IntakeFooter = ({
+ clinicAddress,
+ clinicPhone,
+ page,
+ totalPages,
+}: Pick<MedicalIntakeFormProps, "clinicAddress" | "clinicPhone"> & {
+ page: number;
+ totalPages: number;
+}) => {
+ const { theme } = useIntakeStyles();
+
+ return (
+ <PageFooter
+ address={clinicAddress}
+ leftText={FORM_VERSION}
+ pagePadding={theme.spacing.page.marginLeft}
+ phone={clinicPhone}
+ rightText={`Page ${page} of ${totalPages}`}
+ sticky
+ variant="three-column"
+ />
+ );
+};
+
+const PersonalInfoSection = () => (
+ <PdfForm
+ groups={[
+ {
+ fields: [
+ { height: 14, label: "Full Name" },
+ { height: 14, hint: "DD / MM / YYYY", label: "Date of Birth" },
+ { height: 14, label: "Gender" },
+ { height: 14, hint: "+1 (555) 000-0000", label: "Phone Number" },
+ { height: 14, label: "Email Address" },
+ ],
+ layout: "two-column",
+ title: "Patient Information",
+ },
+ {
+ fields: [
+ { height: 14, label: "Street Address", width: "100%" },
+ { height: 14, label: "City" },
+ { height: 14, label: "State / Province" },
+ { height: 14, label: "Postal Code" },
+ ],
+ layout: "two-column",
+ title: "Address",
+ },
+ ]}
+ style={FORM_STYLE}
+ variant="underline"
+ />
+);
+
+const EmergencyContactSection = () => (
+ <PdfForm
+ groups={[
+ {
+ fields: [
+ { height: 14, label: "Emergency Contact Name" },
+ { height: 14, label: "Relationship" },
+ { height: 14, label: "Phone Number" },
+ ],
+ layout: "two-column",
+ title: "Emergency Contact",
+ },
+ ]}
+ style={FORM_STYLE}
+ variant="underline"
+ />
+);
+
+const InsuranceSection = () => (
+ <PdfForm
+ groups={[
+ {
+ fields: [
+ { height: 14, label: "Insurance Provider" },
+ { height: 14, label: "Policy Number" },
+ { height: 14, label: "Group Number" },
+ { height: 14, label: "Subscriber Name" },
+ ],
+ layout: "two-column",
+ title: "Insurance",
+ },
+ ]}
+ style={FORM_STYLE}
+ variant="underline"
+ />
+);
+
+const MedicalHistorySection = ({ accent }: { accent: string }) => {
+ const { styles } = useIntakeStyles();
+
+ return (
+ <View style={styles.section}>
+ <SectionLabel accent={accent} label="Medical History" />
+ <View style={styles.row}>
+ <View style={styles.column}>
+ <PdfList
+ gap="xs"
+ items={blankChecklist(MEDICAL_CONDITIONS.slice(0, 4))}
+ variant="checklist"
+ />
+ </View>
+ <View style={styles.column}>
+ <PdfList
+ gap="xs"
+ items={blankChecklist(MEDICAL_CONDITIONS.slice(4, 8))}
+ variant="checklist"
+ />
+ </View>
+ <View style={styles.column}>
+ <PdfList
+ gap="xs"
+ items={blankChecklist(MEDICAL_CONDITIONS.slice(8))}
+ variant="checklist"
+ />
+ </View>
+ </View>
+ </View>
+ );
+};
+
+const MedicationsSection = ({ accent }: { accent: string }) => {
+ const { styles } = useIntakeStyles();
+
+ return (
+ <View style={styles.section}>
+ <SectionLabel accent={accent} label="Current Medications" />
+ <Table variant="grid">
+ <TableHeader>
+ <TableRow header>
+ <TableCell>Medication</TableCell>
+ <TableCell>Dosage</TableCell>
+ <TableCell>Frequency</TableCell>
+ <TableCell>Prescribing Doctor</TableCell>
+ </TableRow>
+ </TableHeader>
+ <TableBody>
+ {MEDICATION_ROWS.map((row) => (
+ <TableRow key={row}>
+ <TableCell>{BLANK_CELL}</TableCell>
+ <TableCell>{BLANK_CELL}</TableCell>
+ <TableCell>{BLANK_CELL}</TableCell>
+ <TableCell>{BLANK_CELL}</TableCell>
+ </TableRow>
+ ))}
+ </TableBody>
+ </Table>
+ </View>
+ );
+};
+
+const AllergiesSection = ({ accent }: { accent: string }) => {
+ const { styles } = useIntakeStyles();
+
+ return (
+ <View style={styles.section}>
+ <SectionLabel accent={accent} label="Allergies" />
+ <Table variant="grid">
+ <TableHeader>
+ <TableRow header>
+ <TableCell>Allergen</TableCell>
+ <TableCell>Reaction</TableCell>
+ <TableCell>Severity</TableCell>
+ </TableRow>
+ </TableHeader>
+ <TableBody>
+ {ALLERGY_ROWS.map((row) => (
+ <TableRow key={row}>
+ <TableCell>{BLANK_CELL}</TableCell>
+ <TableCell>{BLANK_CELL}</TableCell>
+ <TableCell>{BLANK_CELL}</TableCell>
+ </TableRow>
+ ))}
+ </TableBody>
+ </Table>
+ </View>
+ );
+};
+
+const ReasonForVisitSection = ({ accent }: { accent: string }) => {
+ const { styles } = useIntakeStyles();
+
+ return (
+ <View style={styles.section}>
+ <SectionLabel accent={accent} label="Reason for Visit" />
+ <View style={styles.reasonBox} />
+ </View>
+ );
+};
+
+const ConsentSection = ({
+ accent,
+ accentColor,
+ clinicName,
+}: Pick<MedicalIntakeFormProps, "accentColor" | "clinicName"> & {
+ accent: string;
+}) => {
+ const { styles } = useIntakeStyles();
+
+ return (
+ <View style={styles.section}>
+ <SectionLabel accent={accent} label="Consent & Authorization" />
+ <Section
+ accentColor={accentColor}
+ padding="sm"
+ spacing="none"
+ variant="highlight"
+ >
+ <Text color="mutedForeground" noMargin style={styles.consentText}>
+ {`I authorize ${clinicName} to provide treatment and to release the information required to process insurance claims for this visit, and I acknowledge that I have received the Notice of Privacy Practices (HIPAA) explaining how my health information may be used.`}
+ </Text>
+ <PdfList gap="xs" items={CONSENT_ACKNOWLEDGMENTS} variant="checklist" />
+ </Section>
+ <PdfSignatureBlock
+ signers={[{ label: "Patient / Guardian Signature" }, { label: "Date" }]}
+ style={styles.signature}
+ variant="double"
+ />
+ </View>
+ );
+};
+
+type IntakeSections = Required<
+ Pick<
+ MedicalIntakeFormProps,
+ | "allergies"
+ | "consent"
+ | "emergencyContact"
+ | "insurance"
+ | "medicalHistory"
+ | "medications"
+ | "personalInfo"
+ | "reasonForVisit"
+ >
+>;
+
+const resolveSections = (props: MedicalIntakeFormProps): IntakeSections => ({
+ allergies: props.allergies ?? true,
+ consent: props.consent ?? true,
+ emergencyContact: props.emergencyContact ?? true,
+ insurance: props.insurance ?? true,
+ medicalHistory: props.medicalHistory ?? true,
+ medications: props.medications ?? true,
+ personalInfo: props.personalInfo ?? true,
+ reasonForVisit: props.reasonForVisit ?? true,
+});
+
+const hasSecondPage = (sections: IntakeSections) =>
+ sections.allergies ||
+ sections.consent ||
+ sections.medications ||
+ sections.reasonForVisit;
+
+const FirstPage = ({
+ clinicAddress,
+ clinicLogo,
+ clinicName,
+ clinicPhone,
+ sections,
+ totalPages,
+}: Pick<
+ MedicalIntakeFormProps,
+ "clinicAddress" | "clinicLogo" | "clinicName" | "clinicPhone"
+> & {
+ sections: IntakeSections;
+ totalPages: number;
+}) => {
+ const { styles } = useIntakeStyles();
+
+ return (
+ <Page
+ size="A4"
+ style={totalPages > 1 ? [styles.page, styles.pageBreak] : styles.page}
+ >
+ <IntakeHeader
+ clinicAddress={clinicAddress}
+ clinicLogo={clinicLogo}
+ clinicName={clinicName}
+ clinicPhone={clinicPhone}
+ />
+ {sections.personalInfo ? <PersonalInfoSection /> : null}
+ {sections.emergencyContact ? <EmergencyContactSection /> : null}
+ {sections.insurance ? <InsuranceSection /> : null}
+ <IntakeFooter
+ clinicAddress={clinicAddress}
+ clinicPhone={clinicPhone}
+ page={1}
+ totalPages={totalPages}
+ />
+ </Page>
+ );
+};
+
+const SecondPage = ({
+ accent,
+ accentColor,
+ clinicAddress,
+ clinicName,
+ clinicPhone,
+ sections,
+ totalPages,
+}: Pick<
+ MedicalIntakeFormProps,
+ "accentColor" | "clinicAddress" | "clinicName" | "clinicPhone"
+> & {
+ accent: string;
+ sections: IntakeSections;
+ totalPages: number;
+}) => {
+ const { styles } = useIntakeStyles();
+
+ return (
+ <Page size="A4" style={[styles.page, styles.pageTwo]}>
+ <SecondPageHeader clinicName={clinicName} clinicPhone={clinicPhone} />
+ {sections.medicalHistory ? (
+ <MedicalHistorySection accent={accent} />
+ ) : null}
+ {sections.medications ? <MedicationsSection accent={accent} /> : null}
+ {sections.allergies ? <AllergiesSection accent={accent} /> : null}
+ {sections.reasonForVisit ? (
+ <ReasonForVisitSection accent={accent} />
+ ) : null}
+ {sections.consent ? (
+ <ConsentSection
+ accent={accent}
+ accentColor={accentColor}
+ clinicName={clinicName}
+ />
+ ) : null}
+ <IntakeFooter
+ clinicAddress={clinicAddress}
+ clinicPhone={clinicPhone}
+ page={2}
+ totalPages={totalPages}
+ />
+ </Page>
+ );
+};
+
+const MedicalIntakeFormContent = (props: MedicalIntakeFormProps) => {
+ const { theme } = useIntakeStyles();
+ const sections = resolveSections(props);
+ const accent = props.accentColor
+ ? resolveColor(props.accentColor, theme.colors)
+ : theme.colors.primary;
+ const totalPages = hasSecondPage(sections) ? 2 : 1;
+
+ return (
+ <Document title={`${props.clinicName} — Patient Intake Form`}>
+ <FirstPage
+ clinicAddress={props.clinicAddress}
+ clinicLogo={props.clinicLogo}
+ clinicName={props.clinicName}
+ clinicPhone={props.clinicPhone}
+ sections={sections}
+ totalPages={totalPages}
+ />
+ {totalPages > 1 ? (
+ <SecondPage
+ accent={accent}
+ accentColor={props.accentColor}
+ clinicAddress={props.clinicAddress}
+ clinicName={props.clinicName}
+ clinicPhone={props.clinicPhone}
+ sections={sections}
+ totalPages={totalPages}
+ />
+ ) : null}
+ </Document>
+ );
+};
+
+/**
+ * Print-ready medical intake form with patient, emergency contact, insurance,
+ * medical history, medication, allergy, reason for visit, and consent
+ * sections. Every section can be hidden through its boolean prop, and all
+ * fields are left blank for the patient to complete by hand.
+ */
+export const MedicalIntakeFormDocument = ({
+ theme,
+ ...props
+}: MedicalIntakeFormProps) => (
+ <PdfcnThemeProvider theme={theme}>
+ <MedicalIntakeFormContent {...props} />
+ </PdfcnThemeProvider>
+);
diff --git a/apps/web/registry/bases/takumi/blocks/medical-intake-form/medical-intake-form.types.ts b/apps/web/registry/bases/takumi/blocks/medical-intake-form/medical-intake-form.types.ts
new file mode 100644
index 0000000..3041812
--- /dev/null
+++ b/apps/web/registry/bases/takumi/blocks/medical-intake-form/medical-intake-form.types.ts
@@ -0,0 +1,53 @@
+import type { PdfcnTheme } from "@/registry/types/pdf-themes";
+
+/**
+ * Medical intake form properties.
+ * Props - `clinicName` | `clinicLogo` | `clinicAddress` | `clinicPhone` |
+ * `personalInfo` | `emergencyContact` | `insurance` | `medicalHistory` |
+ * `medications` | `allergies` | `reasonForVisit` | `consent` | `accentColor` | `theme`
+ * @see {@link MedicalIntakeFormDocument}
+ */
+export interface MedicalIntakeFormProps {
+ clinicName: string;
+ clinicLogo?: string;
+ clinicAddress?: string;
+ clinicPhone?: string;
+ /**
+ * @default true
+ */
+ personalInfo?: boolean;
+ /**
+ * @default true
+ */
+ emergencyContact?: boolean;
+ /**
+ * @default true
+ */
+ insurance?: boolean;
+ /**
+ * @default true
+ */
+ medicalHistory?: boolean;
+ /**
+ * @default true
+ */
+ medications?: boolean;
+ /**
+ * @default true
+ */
+ allergies?: boolean;
+ /**
+ * @default true
+ */
+ reasonForVisit?: boolean;
+ /**
+ * @default true
+ */
+ consent?: boolean;
+ /**
+ * Theme color token (e.g. `"primary"`) or raw CSS color (e.g. `"#0d9488"`)
+ * applied to section rules, table accents, and the consent callout.
+ */
+ accentColor?: string;
+ theme?: PdfcnTheme;
+}