Exemplo n.º 1
0
        public void AddPerformer(NPFIT_000091_Role template,
                                 p_performer_000091.serviceEventPerformer typeCode,
                                 IVLTS_Helper timespan)
        {
            if (Performer == null)
            {
                Performer = new List <p_performer_000091>();
            }

            p_performer_000091 newPerformer = new p_performer_000091(typeCode);

            newPerformer.role = template;

            if (timespan != null)
            {
                newPerformer.time = timespan.IVLTS;
            }

            newPerformer.templateId   = TEMPLATEID;
            newPerformer.templateText = TEMPLATETEXT;

            Performer.Add(newPerformer);
        }
Exemplo n.º 2
0
 /// <summary>
 /// Set the effective time using the IVL<TS> helper class.
 /// </summary>
 public void SetEffectiveTime(IVLTS_Helper time)
 {
     act.SetEffectiveTime(time);
 }
Exemplo n.º 3
0
        public void AddEncounterParticipantTemplate(NPFIT_000089_Role template, p_participation_000089.EncounterParticipationType participantType, IVLTS_Helper time)
        {
            GeneralParticipationClass participation = new GeneralParticipationClass();

            participation.typeCode = "RESP";
            participation.Role     = template;
            participation.typeCode = StringEnum.GetStringValue(participantType);
            participation.time     = time.IVLTS;

            participation.itsParticipantTag = "responsibleParty";
            participation.itsRoleTag        = "assignedEntity";

            act.AddParticipantTemplate(participation);
        }
Exemplo n.º 4
0
 //internal void SetEffectiveTime(IVL<TS> intervalValue)
 //{
 //    effectiveTime = new IVL<TS>();
 //    effectiveTime = intervalValue;
 //}
 internal void SetEffectiveTime(IVLTS_Helper timeInterval)
 {
     effectiveTime = new IVL <TS>();
     effectiveTime = timeInterval.IVLTS;
 }
Exemplo n.º 5
0
        public void AddPerformer(NPFIT_000091_Role template,
                                 p_performer_000091.serviceEventPerformer typeCode,
                                 p_performer_000091.participationFunction functionCode,
                                 IVLTS_Helper timespan)
        {
            if (Performer == null)
            {
                Performer = new List <p_performer_000091>();
            }

            #region functionCode
            string thisFunctionCode = "";
            string thisDisplayName  = "";

            switch (functionCode)
            {
            case p_performer_000091.participationFunction.NotSet:
                thisFunctionCode = null;
                thisDisplayName  = null;
                break;

            case p_performer_000091.participationFunction.ADMPHYS:
                thisFunctionCode = "ADMPHYS";
                thisDisplayName  = "admitting physician";
                break;

            case p_performer_000091.participationFunction.ANEST:
                thisFunctionCode = "ANEST";
                thisDisplayName  = "Anaesthetist";
                break;

            case p_performer_000091.participationFunction.ANRS:
                thisFunctionCode = "ANRS";
                thisDisplayName  = "Anaesthesia nurse";
                break;

            case p_performer_000091.participationFunction.ATTPHYS:
                thisFunctionCode = "ATTPHYS";
                thisDisplayName  = "admitting physician";
                break;

            case p_performer_000091.participationFunction.DISPHYS:
                thisFunctionCode = "DISPHYS";
                thisDisplayName  = "discharging physician";
                break;

            case p_performer_000091.participationFunction.FASST:
                thisFunctionCode = "FASST";
                thisDisplayName  = "first assistant";
                break;

            case p_performer_000091.participationFunction.MDWF:
                thisFunctionCode = "MDWF";
                thisDisplayName  = "midwife";
                break;

            case p_performer_000091.participationFunction.NASST:
                thisFunctionCode = "NASST";
                thisDisplayName  = "nurse assitant";
                break;

            case p_performer_000091.participationFunction.PCP:
                thisFunctionCode = "PCP";
                thisDisplayName  = "primary care physician";
                break;

            case p_performer_000091.participationFunction.PRISURG:
                thisFunctionCode = "PRISURG";
                thisDisplayName  = "primary surgeon";
                break;

            case p_performer_000091.participationFunction.RNDPHYS:
                thisFunctionCode = "RNDPHYS";
                thisDisplayName  = "rounding physician";
                break;

            case p_performer_000091.participationFunction.SASST:
                thisFunctionCode = "SASST";
                thisDisplayName  = "second assistant";
                break;

            case p_performer_000091.participationFunction.SNRS:
                thisFunctionCode = "SNRS";
                thisDisplayName  = "scrub nurse";
                break;

            case p_performer_000091.participationFunction.TASST:
                thisFunctionCode = "TASST";
                thisDisplayName  = "third assistant";
                break;

            default:
                break;
            }
            #endregion

            p_performer_000091 newPerformer = new p_performer_000091(typeCode);
            newPerformer.role = template;


            if (thisFunctionCode != null)
            {
                newPerformer.functionCode             = new CV <string>(thisFunctionCode, "2.16.840.1.113883.5.88");
                newPerformer.functionCode.DisplayName = thisDisplayName;
            }

            if (timespan != null)
            {
                newPerformer.time = timespan.IVLTS;
            }

            newPerformer.templateId   = TEMPLATEID;
            newPerformer.templateText = TEMPLATETEXT;

            Performer.Add(newPerformer);
        }
Exemplo n.º 6
0
 public void SetEffectiveTime(IVLTS_Helper effectiveTive)
 {
     ServiceEvent.SetEffectiveTime(effectiveTive);
 }
 internal new void SetEffectiveTime(IVLTS_Helper timeInterval)
 {
     base.SetEffectiveTime(timeInterval);
 }