- createFamily
Creates an empty family.
- currentUserCanDeleteFamily
Checks if the current user can delete the family (or the family and all the
members).
- deleteFamily
Delete family, modifying the both the family and patient records to reflect the
change. For the pati
- getFamilyById
Returns family object, or null if doesn't exist or current user has no rights.
- getFamilyForPatient
Returns a family ID the patient belongs to.
- addMember
Adds a patient to the family, modifying both the family and patient records to
reflect the change.
- canAddToFamily
Checks of the given user can add the given patient to the given family.
- familyExists
Checks if a family with the given identifier exists, but does not check access
rights.
- forceRemoveAllMembers
Similar to deleteFamily, but does not delete the family document (unlinkes all
patients from the fam
- getPedigreeForFamily
Returns family pedigree. Essentially this is a shortcut for
getFamilyById().getPedigree() with a che
- getPedigreeForPatient
Returns patient's pedigree, which is the pedigree of a family that patient
belongs to.
- removeMember
Removes a patient from the family, modifying the both the family and patient
records to reflect the