Skip to content

Instantly share code, notes, and snippets.

@svict4
Created December 10, 2019 02:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save svict4/c1817ead0390947b2c32d7924d996e5c to your computer and use it in GitHub Desktop.
Save svict4/c1817ead0390947b2c32d7924d996e5c to your computer and use it in GitHub Desktop.
AGPT General/Rural Pathway Eligibility Flow
// determine if OTD and FGAMS applicants are subject to Section 19AB of the Health Insurance Act 1973
// https://www.agpt.com.au/ArticleDocuments/185/AGPT-Eligibility-Guidelines-2020-Pathway.pdf.aspx
// Conditions
// a You obtained your medical qualification overseas
// b ANZ citizen when you enrolled in your medical degree and current resident
// c By Feb 2020 you have been medically registered for 10 years or more
// e Assessed as eligible to sit AMC examinations prior to 1 Jan 1997
// truth table
// T F T F T F T F T F T F T F T F
// T F T F T F T F
// T T F F F T T T F F F
// T T F F F
// -------------------------------
// T T T T T T T F T T T T F T F F
// boolean algebra
// (a && b && !d) || (b && c && d);
export default function isSubjectToMoratorium(state) {
debugger;
return (
(a(state) && b(state) && !d(state)) || (b(state) && c(state) && d(state))
);
}
// TODO implementation details
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment