/// <summary> /// Initializes a new instance of the <see cref="Procedure"/> class. /// </summary> /// <param name="codingContext">The coding context.</param> /// <param name="procedureType">Type of the procedure.</param> /// <param name="activity">The activity.</param> /// <param name="procedureCode">The procedure code.</param> /// <param name="unitCount">The unit count.</param> protected internal Procedure(CodingContext codingContext, ProcedureType procedureType, Activity activity, CodedConcept procedureCode, UnitCount unitCount) : base(codingContext) { if (procedureType == ProcedureType.Activity) { Check.IsNotNull(activity, "Activity is required for activity procedure type."); } Check.IsNotNull(procedureCode, "Procedure code is required."); CodingContext = codingContext; ProcedureType = procedureType; Activity = activity; ProcedureCode = procedureCode; BillingUnitCount = unitCount; }
/// <summary> /// Destroys the activity. /// </summary> /// <param name="activity">The activity.</param> public void DestroyActivity(Activity activity) { DestroyPhq9((Phq9)activity); }
/// <summary> /// Destroys the activity. /// </summary> /// <param name="activity">The activity.</param> public void DestroyActivity(Activity activity) { DestroyDast10((Dast10)activity); }
/// <summary> /// Destroys the activity. /// </summary> /// <param name="activity">The activity.</param> public void DestroyActivity(Activity activity) { DestroyTedsDischargeInterview((TedsDischargeInterview)activity); }
/// <summary> /// Destroys the GainShortScreener activity. /// </summary> /// <param name="activity">The activity.</param> public void DestroyActivity(Activity activity) { DestroyGainShortScreener((GainShortScreener)activity); }
/// <summary> /// Destroys the activity. /// </summary> /// <param name="activity">The activity.</param> public void DestroyActivity( Activity activity ) { DestroySocialHistory((SocialHistory) activity); }
/// <summary> /// Destroys the activity. /// </summary> /// <param name="activity">The activity.</param> public void DestroyActivity(Activity activity) { DestroyIndividualCounseling((IndividualCounseling)activity); }
/// <summary> /// Destroys the activity. /// </summary> /// <param name="activity">The activity.</param> public void DestroyActivity( Activity activity ) { DestroyVitalSign ( ( VitalSign )activity ); }
private static List<VxuV4OrderDto> GetOrderDtos( Activity activity ) { var rxaDto = GetRxaDto ( activity ); return new List<VxuV4OrderDto> { new VxuV4OrderDto ( new OrcDto (), rxaDto ) }; }
private static MshDto GetMshDto( Activity activity ) { var clinicalCase = activity.ClinicalCase; return new MshDto { SendingApplicationNamespaceId = "EHR Application", SendingFacilityNamespaceId = clinicalCase.ClinicalCaseProfile.InitialLocation.LocationProfile.LocationName.Name, ReceivingApplicationNamespaceId = "PH Application", ReceivingFacilityNamespaceId = "PH Facility" }; }
/// <summary> /// Deletes the activity. /// </summary> /// <param name="activity">The activity.</param> public virtual void DeleteActivity( Activity activity ) { if ( _activities.Contains ( activity ) ) { _activities.Remove ( activity ); } else { throw new ArgumentException ( "Activity not found." ); } var activityRepository = IoC.CurrentContainer.Resolve<IActivityRepository>(); activityRepository.MakeTransient ( activity ); NotifyItemRemoved ( () => Activities, activity ); }
/// <summary> /// Adds the activity. /// </summary> /// <param name="activity">The activity.</param> public virtual void AddActivity(Activity activity) { _activities.Add(activity); NotifyItemAdded(() => Activities, activity); }
/// <summary> /// Destroys the activity. /// </summary> /// <param name="activity">The activity.</param> public void DestroyActivity(Activity activity) { DestroyTedsAdmissionInterview((TedsAdmissionInterview)activity); }
/// <summary> /// Destroys the activity. /// </summary> /// <param name="activity">The activity.</param> public void DestroyActivity(Activity activity) { DestroyImmunization((Immunization)activity); }
private static PidDto GetPidDto( Activity activity ) { var patient = activity.ClinicalCase.Patient; var pidDto = new PidDto { IdentifierTypeCodeset = IdentifierTypeCodeset.MedicalRecordNumber }; if ( patient.Profile.BirthDate.HasValue ) { pidDto.PatientDateOfBirth = patient.Profile.BirthDate.Value; } pidDto.IdNumber = patient.Key.ToString (); pidDto.PatientFirstName = patient.Name.First; if ( !string.IsNullOrWhiteSpace ( patient.Name.Middle ) ) { pidDto.PatientMiddleName = patient.Name.Middle; } pidDto.PatientLastName = patient.Name.Last; var patientAddress = patient.Addresses.FirstOrDefault (); if ( patientAddress != null ) { pidDto.PatientCity = patientAddress.Address.CityName; pidDto.PatientState = patientAddress.Address.StateProvince.ShortName; pidDto.PatientStreetAddress = ( string.IsNullOrWhiteSpace ( patientAddress.Address.FirstStreetAddress ) ? string.Empty : patientAddress.Address.FirstStreetAddress ) + ( string.IsNullOrWhiteSpace ( patientAddress.Address.SecondStreetAddress ) ? string.Empty : " " + patientAddress.Address.SecondStreetAddress ); pidDto.PatientZipCode = patientAddress.Address.PostalCode.Code; pidDto.PatientAddressType = Hl7TypeConverter.ConvertToHl7 ( patientAddress.PatientAddressType ); } pidDto.PatientAdministrativeSex = Hl7TypeConverter.ConvertToHl7 ( patient.Profile.PatientGender ); if ( patient.Ethnicity != null ) { pidDto.PatientEthnicity = Hl7TypeConverter.ConvertToHl7 ( patient.Ethnicity.Ethnicity ); } var patientPhoneNumber = patient.PhoneNumbers.FirstOrDefault (); if ( patientPhoneNumber != null ) { if ( patientPhoneNumber.PhoneNumber != null ) { var phoneNumber = patientPhoneNumber.PhoneNumber.Replace ( "-", string.Empty ); pidDto.PatientHomeTelephoneAreaCityCode = phoneNumber.Substring ( 0, 3 ); pidDto.PatientHomeTelephoneLocalNumber = phoneNumber.Substring ( 3, phoneNumber.Length - 3 ); } pidDto.PatientTelecommunicationUseCode = Hl7TypeConverter.ConvertToHl7 ( patientPhoneNumber.PatientPhoneType ); } var patientRace = patient.PrimaryPatientRace; if ( patientRace != null ) { pidDto.PatientRace = Hl7TypeConverter.ConvertToHl7 ( patientRace.Race ); } return pidDto; }
/// <summary> /// Destroys the activity. /// </summary> /// <param name="activity">The activity.</param> public void DestroyActivity(Activity activity) { DestroyNidaDrugQuestionnaire ( ( NidaDrugQuestionnaire ) activity ); }
private static RxaDto GetRxaDto( Activity activity ) { var immunization = ( Immunization )activity; var rxaDto = new RxaDto (); if ( immunization.ImmunizationAdministration != null ) { if ( immunization.ImmunizationAdministration.AdministeredAmount.HasValue ) { rxaDto.AdministeredAmount = immunization.ImmunizationAdministration.AdministeredAmount.Value.ToString (); } rxaDto.AdministredUnits = Hl7TypeConverter.ConvertToHl7 ( immunization.ImmunizationAdministration.ImmunizationUnitOfMeasure ); } if ( immunization.ImmunizationVaccineInfo != null ) { rxaDto.AdministeredCode = Hl7TypeConverter.ConvertToHl7 ( immunization.ImmunizationVaccineInfo.VaccineCodedConcept ); if ( immunization.ImmunizationVaccineInfo.ImmunizationVaccineManufacturer != null ) { if ( !string.IsNullOrWhiteSpace ( immunization.ImmunizationVaccineInfo.ImmunizationVaccineManufacturer.VaccineManufacturerCode ) ) { rxaDto.SubstanceManufacturer = VaccineManufacturer.GetVaccineManufacturerByCode ( immunization.ImmunizationVaccineInfo.ImmunizationVaccineManufacturer.VaccineManufacturerCode ); } else if ( !string.IsNullOrWhiteSpace ( immunization.ImmunizationVaccineInfo.ImmunizationVaccineManufacturer.VaccineManufacturerName ) ) { rxaDto.SubstanceManufacturer = VaccineManufacturer.GetVaccineManufacturerByName ( immunization.ImmunizationVaccineInfo.ImmunizationVaccineManufacturer.VaccineManufacturerName ); } else if ( ( !string.IsNullOrWhiteSpace ( immunization.ImmunizationVaccineInfo.ImmunizationVaccineManufacturer.VaccineManufacturerCode ) || !string.IsNullOrWhiteSpace ( immunization.ImmunizationVaccineInfo.ImmunizationVaccineManufacturer.VaccineManufacturerName ) ) ) { rxaDto.SubstanceManufacturer = VaccineManufacturer.UnknownManufacturer; } } rxaDto.SubstanceLotNumber = immunization.ImmunizationVaccineInfo.VaccineLotNumber; } if (activity.Visit != null && activity.Visit.CheckedInDateTime.HasValue) { rxaDto.AdministrationDate = activity.Visit.CheckedInDateTime.Value; } return rxaDto; }
/// <summary> /// Destroys the activity. /// </summary> /// <param name="activity">The activity.</param> public void DestroyActivity(Activity activity) { DestroyAudit((Audit)activity); }
/// <summary> /// Destroys the activity. /// </summary> /// <param name="activity">The activity.</param> public void DestroyActivity(Activity activity) { DestroyBriefIntervention((BriefIntervention)activity); }
/// <summary> /// Destroys the activity. /// </summary> /// <param name="activity">The activity.</param> public void DestroyActivity(Activity activity) { DestroyGpraInterview ( ( GpraInterview ) activity ); }
/// <summary> /// Destroys the activity. /// </summary> /// <param name="activity">The activity.</param> public void DestroyActivity(Activity activity) { DestroyDensAsiInterview((DensAsiInterview)activity); }
/// <summary> /// Destroys the activity. /// </summary> /// <param name="activity">The Activity.</param> public void DestroyActivity(Activity activity) { DestroyRadiologyOrder((RadiologyOrder)activity); }
/// <summary> /// Destroys the activity. /// </summary> /// <param name="activity">The activity.</param> public void DestroyActivity(Activity activity) { DestroyLabSpecimen((LabSpecimen)activity); }