The concept ID of the pregnancy outcome and ID of the short code of type 'Diagnosis Outcome'.
object.OutcomeID
Part | Attribute | Type | Description |
---|---|---|---|
object |
Required | The object always implements the
ISPatientProblem interface |
int
Display the codes, descriptions and outcomes for the patient's problems of 'Pregnancy' and 'Diagnosis' types.
sub main()
Dim aPatient
Dim aProblemList
Dim aCategories
Dim aMessage
Set aPatient = Profile.SelectPatient
set aProblemList = aPatient.ProblemList
set aCategories = aProblemList.Categories
aMessage = GetDiagnosisProblemsInfo(aCategories.Item(0)) &_
GetPregnancyProblemsInfo(aCategories.Item(5))
Profile.MsgBox(aMessage)
end sub
function GetDiagnosisProblemsInfo(aCategory)
Dim aMessage
Dim aProblems, aProblem
Dim aShortCode
aMessage = aMessage & vbNewLine & vbNewLine &_
"---------" & aCategory.Description & "---------" & vbNewLine
set aProblems = aCategory.Problems
for each aProblem in aProblems
aMessage = aMessage & vbNewLine & " " &_
"Code: " & aProblem.DxCode & "; Description: " & aProblem.DxDescription
if aProblem.OutcomeID > 0 then
set aShortCode = Profile.LoadShortCode(aProblem.OutcomeID)
aMessage = aMessage & "; Outcome: " & aShortCode.Description
end if
next
GetDiagnosisProblemsInfo = aMessage
end function
function GetPregnancyProblemsInfo(aCategory)
Dim aMessage
Dim aProblems, aProblem
Dim aConcept
aMessage = aMessage & vbNewLine & vbNewLine &_
"---------" & aCategory.Description & "---------" & vbNewLine
set aProblems = aCategory.Problems
for each aProblem in aProblems
aMessage = aMessage & vbNewLine & " " &_
"Code: " & aProblem.DxCode & "; Description: " & aProblem.DxDescription
if aProblem.OutcomeID > 0 then
set aConcept = Profile.ProfileInternal.LoadConcept(aProblem.OutcomeID)
aMessage = aMessage & "; Outcome: " & aConcept.Name
end if
next
GetPregnancyProblemsInfo = aMessage
end function
In Profile Client v8 on User Interface ID of the concept cannot be found, but Outcome can be found in
, in or in . ID of the short code cannot be found, but Outcome can be found in in or in .