internal void AddParticipantTemplate(NPFIT_000089_Role template, p_participation_000089.EncounterParticipationType type, IVLTS_Helper time)
        {
            if (participant == null) participant = new List<p_participation_000089>();

            p_participation_000089 thisParticipant = new p_participation_000089(type);
            thisParticipant.Role = template;
            thisParticipant.time = time.IVLTS;

            participant.Add(thisParticipant);
        }
예제 #2
0
파일: AD.cs 프로젝트: yijutseng/cdaapi_core
 private void initHelper()
 {
     if (useablePeriod == null)
     {
         useablePeriodSet            = true;
         useablePeriod               = new IVLTS_Helper();
         useablePeriod.LowPrecision  = TS_Precision.Second;
         useablePeriod.HighPrecision = TS_Precision.Second;
     }
 }
        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);
        }
 internal new void SetEffectiveTime(IVLTS_Helper timeInterval)
 {
     base.SetEffectiveTime(timeInterval);
 }
예제 #5
0
파일: AD.cs 프로젝트: nagyist/cdaapi_core
 private void initHelper()
 {
     if (useablePeriod == null)
     {
         useablePeriodSet = true;
         useablePeriod = new IVLTS_Helper();
         useablePeriod.LowPrecision = TS_Precision.Second;
         useablePeriod.HighPrecision = TS_Precision.Second;
     }
 }
 public void AddEncounterParticipantTemplate(NPFIT_000089_Role template, p_participation_000089.EncounterParticipationType participantType, IVLTS_Helper time)
 {
     act.AddParticipantTemplate(template, participantType, time);
 }
 /// <summary>
 /// Set the effective time using the IVL<TS> helper class.
 /// </summary>
 public void SetEffectiveTime(IVLTS_Helper time)
 {
     act.SetEffectiveTime(time);
 }
        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);
        }
 public void SetEffectiveTime(IVLTS_Helper effectiveTive)
 {
     ServiceEvent.SetEffectiveTime(effectiveTive);
 }
        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);
        }
예제 #11
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;
 }