ISCareVisit.Sex

Description

The gender the intervention template is applicable to (M, F or B).

Syntax

object.Sex

Part Attribute Type Description
object Required
The object always implements the ISCareVisit interface

Return Value

string

Example

Display the first character of the gender the intervention template is applicable to.

Dim aCarePlan
Dim aMessage
Dim aVisits
Dim aVisit

Set aCarePlan = Profile.LoadCarePlanByCode ("FLU") 
set aVisits = aCarePlan.Visits

if aVisits.Count = 0 then
  aMessage = aMessage & vbNewLine & "There are no care visits!"
else
  
  for i = 0 to aVisits.Count - 1
    set aVisit = aVisits.Item(i)
    aMessage = aMessage & vbNewLine & "The gender " &_
    "for the intervention template '" &_
    aVisit.Description & "'" & " is "  & aVisit.Sex
  next

end if       
   
Profile.MsgBox (aMessage) 
Note:

In Profile Client v8 on User Interface Sex checkbox can be checked in Maintain > Care Plans > Open Plan > Interventions > Alter Intervention > Valid for.

Version information

Added in v7.8.0