Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(chore) Mapped MOH 731 #133

Open
wants to merge 8 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
},
"devDependencies": {
"@babel/core": "^7.11.6",
"@openmrs/esm-framework": "^5.7.2-pre.2101",
"@openmrs/esm-framework": "^5.7.3-pre.2113",
"@openmrs/esm-patient-common-lib": "next",
"@playwright/test": "1.40.1",
"@swc/core": "^1.2.165",
Expand Down Expand Up @@ -72,7 +72,7 @@
"jest-cli": "^29.7.0",
"jest-environment-jsdom": "^29.7.0",
"lint-staged": "^15.2.1",
"openmrs": "^5.7.2-pre.2101",
"openmrs": "^5.7.3-pre.2113",
"prettier": "^3.1.1",
"react": "^18.1.0",
"react-dom": "^18.1.0",
Expand Down
97 changes: 52 additions & 45 deletions packages/esm-report-app/src/registers/MOH-731/MOH_731.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,54 +5,61 @@ import PartOne from './PartOne';
import PartTwo from './PartTwo';
import PartThree from './PartThree';

const MOH731: React.FC = () => {
const MOH731: React.FC<{ reportData: any }> = ({ reportData }) => {
return (
<>
<TableContainer className={styles['table']}>
<Table>
<TableHead>
<TableRow>
<TableHeader>
<h2 className={styles['center']}>National AIDS & STI Control Program- NASCOP</h2>
<h4 className={styles['center']}>Comprehensive HIV/AIDS reporting form</h4>
<p className={styles['right']}>(MOH 731-Ver. July 2023)</p>
</TableHeader>
</TableRow>
<TableRow>
<TableHeader className={styles['space']}>
County_______________Sub
County_________________Facility__________________MFL____________Month_________year_________
</TableHeader>
</TableRow>
<TableRow className={styles['height']}></TableRow>
</TableHead>
</Table>
</TableContainer>
{reportData &&
reportData.map((row, index) => (
<>
<TableContainer className={styles['table']}>
<Table>
<TableHead>
<TableRow>
<TableHeader>
<h2 className={styles['center']}>National AIDS & STI Control Program- NASCOP</h2>
<h4 className={styles['center']}>Comprehensive HIV/AIDS reporting form</h4>
<p className={styles['right']}>(MOH 731-Ver. July 2023)</p>
</TableHeader>
</TableRow>
<TableRow>
<TableHeader className={styles['space']}>
County______{row.county || null}_________Sub County_______{row.sub_county || null}
__________Facility____
{row.facility}
______________MFL___{row.mfl || null}_________Month_________year_________
</TableHeader>
</TableRow>
<TableRow className={styles['height']}></TableRow>
</TableHead>
</Table>
</TableContainer>

<TableContainer className={styles['table-two']}>
<Table>
<TableBody>
<TableRow>
<TableHeader className={styles['border-one']} colSpan={12}>
<h5>HIV Testing Services & Pre exposure Prophylaxis</h5>
</TableHeader>
</TableRow>
<PartOne />
<TableRow>
<TableHeader className={styles['border-two']} colSpan={12}>
<h5>2. Elimination of Mother-to-Child Transmission (EMTCT)</h5>
</TableHeader>
</TableRow>
<PartTwo />
<TableRow>
<TableHeader className={styles['border-two']} colSpan={12}>
<h5>3. HIV and TB treatment</h5>
</TableHeader>
</TableRow>
<PartThree />
</TableBody>
</Table>
</TableContainer>
<TableContainer className={styles['table-two']}>
<Table>
<TableBody>
<TableRow>
<TableHeader className={styles['border-one']} colSpan={12}>
<h5>HIV Testing Services & Pre exposure Prophylaxis</h5>
</TableHeader>
</TableRow>
<PartOne reportData={reportData} />
<TableRow>
<TableHeader className={styles['border-two']} colSpan={12}>
<h5>2. Elimination of Mother-to-Child Transmission (EMTCT)</h5>
</TableHeader>
</TableRow>
<PartTwo reportData={reportData} />
<TableRow>
<TableHeader className={styles['border-two']} colSpan={12}>
<h5>3. HIV and TB treatment</h5>
</TableHeader>
</TableRow>
<PartThree reportData={reportData} />
</TableBody>
</Table>
</TableContainer>
</>
))}
</>
);
};
Expand Down
Loading
Loading