ISPatientEnrolment.ServicePractitionerCPN

Description

The HPI CPN of the Service Practitioner who is primarily providing the service for the patient's NES Enrolment.

Syntax

object.ServicePractitionerCPN

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

Return Value

string

Example

Display the number of the patient's NES Enrolments, CPN of their service practitioner and the date and time of their creation.

Dim aPatient  
Dim aEnrolments
Dim aEnrolment
Dim aMessage

Set aPatient = Profile.SelectPatient 
set aEnrolments = aPatient.GetEnrolments
aMessage = "Enrolments Count = " & aEnrolments.Count

for i = 0 to aEnrolments.Count - 1
  set aEnrolment = aEnrolments.Item(i) 
  aMessage = aMessage & vbNewLine
  aMessage = aMessage & "Created: " & aEnrolment.CreatedDate &_
   ", Service Practitioner CPN: " & aEnrolment.ServicePractitionerCPN
next 

Profile.MsgBox(aMessage)   
Note:

In Profile Client v8 on User Interface Service Practitioner CPN can be found in Patient > Alter Patient > General > Enrolment > History > Enrolment detail > ServicePractitionerCPN.

Version information

Added in v8.1.0