Skip to content

Commit

Permalink
Added COSD Observation notes. Added data orgin information.
Browse files Browse the repository at this point in the history
  • Loading branch information
james-cockayne-ad committed Mar 28, 2024
1 parent ce38bef commit a1ef81a
Show file tree
Hide file tree
Showing 94 changed files with 352 additions and 166 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

namespace OmopTransformer.COSD.Observation.CosdV8AdultComorbidityEvaluation;

[Notes("Notes", DocumentationNotes.ApproximatedDatesWarning)]
internal class CosdV8AdultComorbidityEvaluation : OmopObservation<CosdV8AdultComorbidityEvaluationRecord>
{
[CopyValue(nameof(Source.NhsNumber))]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,8 @@ where o.AdultComorbidityEvaluation is not null
<Origin>NHS NUMBER</Origin>
</Explanation>
<Explanation columnName="AdultComorbidityEvaluation">
<Description></Description>
<Origin></Origin>
<Description>The PERSON SCORE recorded during a Cancer Care Spell, where the ASSESSMENT TOOL is 'Adult Comorbidity Evaluation - 27'.</Description>
<Origin>ADULT COMORBIDITY EVALUATION - 27 SCORE</Origin>
</Explanation>
<Explanation columnName="Date" >
<Description>Observation date</Description>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

namespace OmopTransformer.COSD.Observation.CosdV8AdultPerformanceStatus;

[Notes("Notes", DocumentationNotes.ApproximatedDatesWarning)]
internal class CosdV8AdultPerformanceStatus : OmopObservation<CosdV8AdultPerformanceStatusRecord>
{
[CopyValue(nameof(Source.NhsNumber))]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,8 @@ where o.AdultPerformanceStatus is not null
<Origin>NHS NUMBER</Origin>
</Explanation>
<Explanation columnName="AdultPerformanceStatus">
<Description></Description>
<Origin></Origin>
<Description>A World Health Organisation classification indicating a PERSON's status relating to activity/DISABILITY.</Description>
<Origin>PERFORMANCE STATUS (ADULT)</Origin>
</Explanation>
<Explanation columnName="Date" >
<Description>Observation date</Description>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

namespace OmopTransformer.COSD.Observation.CosdV8AlcoholHistoryCancerBeforeLastThreeMonths;

[Notes("Notes", DocumentationNotes.ApproximatedDatesWarning)]
internal class CosdV8AlcoholHistoryCancerBeforeLastThreeMonths : OmopObservation<CosdV8AlcoholHistoryCancerBeforeLastThreeMonthsRecord>
{
[CopyValue(nameof(Source.NhsNumber))]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,8 @@ where o.AlcoholHistoryCancerBeforeLastThreeMonths is not null
<Origin>NHS NUMBER</Origin>
</Explanation>
<Explanation columnName="AlcoholHistoryCancerBeforeLastThreeMonths">
<Description></Description>
<Origin></Origin>
<Description>The past history of alcohol consumption for the PATIENT during a Cancer Care Spell.</Description>
<Origin>ALCOHOL HISTORY (CANCER BEFORE LAST THREE MONTHS)</Origin>
</Explanation>
<Explanation columnName="Date" >
<Description>Observation date</Description>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

namespace OmopTransformer.COSD.Observation.CosdV8AlcoholHistoryCancerInLastThreeMonths;

[Notes("Notes", DocumentationNotes.ApproximatedDatesWarning)]
internal class CosdV8AlcoholHistoryCancerInLastThreeMonths : OmopObservation<CosdV8AlcoholHistoryCancerInLastThreeMonthsRecord>
{
[CopyValue(nameof(Source.NhsNumber))]
Expand All @@ -24,6 +25,6 @@ internal class CosdV8AlcoholHistoryCancerInLastThreeMonths : OmopObservation<Cos
[CopyValue(nameof(Source.AlcoholHistoryCancerInLastThreeMonths))]
public override string? value_as_string { get; set; }

[ConstantValue(2000500004, "History Of Alcohol (Past)")]
[ConstantValue(2000500003, "History Of Alcohol (Current)")]
public override int? observation_source_concept_id { get; set; }
}
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,8 @@ where o.AlcoholHistoryCancerInLastThreeMonths is not null
<Origin>NHS NUMBER</Origin>
</Explanation>
<Explanation columnName="AlcoholHistoryCancerInLastThreeMonths">
<Description></Description>
<Origin></Origin>
<Description>The current history of alcohol consumption for the PATIENT during a Cancer Care Spell.</Description>
<Origin>ALCOHOL HISTORY (CANCER IN LAST THREE MONTHS)</Origin>
</Explanation>
<Explanation columnName="Date" >
<Description>Observation date</Description>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,13 @@

namespace OmopTransformer.COSD.Observation.CosdV8FamilialCancerSyndromeIndicator;

[Notes("Notes", DocumentationNotes.ApproximatedDatesWarning)]
internal class CosdV8FamilialCancerSyndromeIndicator : OmopObservation<CosdV8FamilialCancerSyndromeIndicatorRecord>
{
[CopyValue(nameof(Source.NhsNumber))]
public override string? nhs_number { get; set; }

[ConstantValue(4229852, "Knowledge level: procedure")]
[ConstantValue(44782478, "Hereditary cancer-predisposing syndrome")]
public override int? observation_concept_id { get; set; }

[Transform(typeof(DateConverter), nameof(Source.Date))]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,8 @@ where o.FamilialCancerSyndromeIndicator is not null
<Origin>NHS NUMBER</Origin>
</Explanation>
<Explanation columnName="FamilialCancerSyndromeIndicator">
<Description></Description>
<Origin></Origin>
<Description>An indication of whether there is a possible or confirmed familial cancer syndrome during a Cancer Care Spell.</Description>
<Origin>FAMILIAL CANCER SYNDROME INDICATOR</Origin>
</Explanation>
<Explanation columnName="Date" >
<Description>Observation date</Description>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

namespace OmopTransformer.COSD.Observation.CosdV8PersonStatedSexualOrientationCodeAtDiagnosis;

[Notes("Notes", DocumentationNotes.ApproximatedDatesWarning)]
internal class CosdV8PersonStatedSexualOrientationCodeAtDiagnosis : OmopObservation<CosdV8PersonStatedSexualOrientationCodeAtDiagnosisRecord>
{
[CopyValue(nameof(Source.NhsNumber))]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@ where o.PersonStatedSexualOrientationCodeAtDiagnosis is not null
<Origin>NHS NUMBER</Origin>
</Explanation>
<Explanation columnName="PersonStatedSexualOrientationCodeAtDiagnosis">
<Description></Description>
<Origin></Origin>
<Description>PERSON STATED SEXUAL ORIENTATION CODE (AT DIAGNOSIS) is the PERSON STATED SEXUAL ORIENTATION CODE at the time of the PATIENT DIAGNOSIS.</Description>
<Origin>PERSON STATED SEXUAL ORIENTATION CODE (AT DIAGNOSIS)</Origin>
</Explanation>
<Explanation columnName="Date" >
<Description>Observation date</Description>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

namespace OmopTransformer.COSD.Observation.CosdV8SmokingStatusCode;

[Notes("Notes", DocumentationNotes.ApproximatedDatesWarning)]
internal class CosdV8SmokingStatusCode : OmopObservation<CosdV8SmokingStatusCodeRecord>
{
[CopyValue(nameof(Source.NhsNumber))]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,8 @@ where o.SmokingStatusCode is not null
<Origin>NHS NUMBER</Origin>
</Explanation>
<Explanation columnName="SmokingStatusCode">
<Description></Description>
<Origin></Origin>
<Description>SMOKING STATUS (CANCER) is for use in the Cancer Outcomes and Services Data Set: Core to identify if the PATIENT smokes tobacco only.</Description>
<Origin>SMOKING STATUS (CANCER)</Origin>
</Explanation>
<Explanation columnName="Date" >
<Description>Observation date</Description>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

namespace OmopTransformer.COSD.Observation.CosdV8SourceOfReferralForOutPatientsNonPrimaryCancerPathway;

[Notes("Notes", DocumentationNotes.ApproximatedDatesWarning)]
internal class CosdV8SourceOfReferralForOutPatientsNonPrimaryCancerPathway : OmopObservation<CosdV8SourceOfReferralForOutPatientsNonPrimaryCancerPathwayRecord>
{
[CopyValue(nameof(Source.NhsNumber))]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,8 @@ where o.SourceOfReferralForOutPatientsNonPrimaryCancerPathway is not null
<Origin>NHS NUMBER</Origin>
</Explanation>
<Explanation columnName="SourceOfReferralForOutPatientsNonPrimaryCancerPathway">
<Description></Description>
<Origin></Origin>
<Description>SOURCE OF REFERRAL FOR OUT-PATIENTS (NON PRIMARY CANCER PATHWAY) identifies the source of referral for a Non Primary Cancer Pathway.</Description>
<Origin>SOURCE OF REFERRAL FOR OUT-PATIENTS (NON PRIMARY CANCER PATHWAY)</Origin>
</Explanation>
<Explanation columnName="Date" >
<Description>Observation date</Description>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

namespace OmopTransformer.COSD.Observation.CosdV8SourceOfReferralOutPatients;

[Notes("Notes", DocumentationNotes.ApproximatedDatesWarning)]
internal class CosdV8SourceOfReferralOutPatients : OmopObservation<CosdV8SourceOfReferralOutPatientsRecord>
{
[CopyValue(nameof(Source.NhsNumber))]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,8 @@ where o.SourceOfReferralOutPatients is not null
<Origin>NHS NUMBER</Origin>
</Explanation>
<Explanation columnName="SourceOfReferralOutPatients">
<Description></Description>
<Origin></Origin>
<Description>For specific National Code usage, see SOURCE OF REFERRAL FOR OUT-PATIENTS.</Description>
<Origin>SOURCE OF REFERRAL FOR OUT-PATIENTS</Origin>
</Explanation>
<Explanation columnName="Date" >
<Description>Observation date</Description>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

namespace OmopTransformer.COSD.Observation.CosdV9AdultComorbidityEvaluation;

[Notes("Notes", DocumentationNotes.ApproximatedDatesWarning)]
internal class CosdV9AdultComorbidityEvaluation : OmopObservation<CosdV9AdultComorbidityEvaluationRecord>
{
[CopyValue(nameof(Source.NhsNumber))]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,8 @@ where o.AdultComorbidityEvaluation is not null
<Origin>NHS NUMBER</Origin>
</Explanation>
<Explanation columnName="AdultComorbidityEvaluation">
<Description></Description>
<Origin></Origin>
<Description>The PERSON SCORE recorded during a Cancer Care Spell, where the ASSESSMENT TOOL is 'Adult Comorbidity Evaluation - 27'.</Description>
<Origin>ADULT COMORBIDITY EVALUATION - 27 SCORE</Origin>
</Explanation>
<Explanation columnName="Date" >
<Description>Observation date</Description>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

namespace OmopTransformer.COSD.Observation.CosdV9AsaScore;

[Notes("Notes", DocumentationNotes.ApproximatedDatesWarning)]
internal class CosdV9AsaScore : OmopObservation<CosdV9AsaScoreRecord>
{
[CopyValue(nameof(Source.NhsNumber))]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,8 @@ where o.AsaScore is not null
<Origin>NHS NUMBER</Origin>
</Explanation>
<Explanation columnName="AsaScore">
<Description></Description>
<Origin></Origin>
<Description>The physical status of the PATIENT as recorded by an anaesthetist for the operative procedure.</Description>
<Origin>ASA PHYSICAL STATUS CLASSIFICATION SYSTEM CODE</Origin>
</Explanation>
<Explanation columnName="Date" >
<Description>Observation date</Description>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,13 @@

namespace OmopTransformer.COSD.Observation.CosdV9FamilialCancerSyndrome;

[Notes("Notes", DocumentationNotes.ApproximatedDatesWarning)]
internal class CosdV9FamilialCancerSyndrome : OmopObservation<CosdV9FamilialCancerSyndromeRecord>
{
[CopyValue(nameof(Source.NhsNumber))]
public override string? nhs_number { get; set; }

[ConstantValue(4229852, "Knowledge level: procedure")]
[ConstantValue(44782478, "Hereditary cancer-predisposing syndrome")]
public override int? observation_concept_id { get; set; }

[Transform(typeof(DateConverter), nameof(Source.Date))]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,8 @@ where o.FamilialCancerSyndrome is not null
<Origin>NHS NUMBER</Origin>
</Explanation>
<Explanation columnName="FamilialCancerSyndrome">
<Description></Description>
<Origin></Origin>
<Description>An indication of whether there is a possible or confirmed familial cancer syndrome during a Cancer Care Spell.</Description>
<Origin>FAMILIAL CANCER SYNDROME INDICATOR</Origin>
</Explanation>
<Explanation columnName="Date" >
<Description>Observation date</Description>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,13 @@

namespace OmopTransformer.COSD.Observation.CosdV9FamilialCancerSyndromeSubsidiaryComment;

[Notes("Notes", DocumentationNotes.ApproximatedDatesWarning)]
internal class CosdV9FamilialCancerSyndromeSubsidiaryComment : OmopObservation<CosdV9FamilialCancerSyndromeSubsidiaryCommentRecord>
{
[CopyValue(nameof(Source.NhsNumber))]
public override string? nhs_number { get; set; }

[ConstantValue(4229852, "Knowledge level: procedure")]
[ConstantValue(44782478, "Hereditary cancer-predisposing syndrome")]
public override int? observation_concept_id { get; set; }

[Transform(typeof(DateConverter), nameof(Source.Date))]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,8 @@ where o.FamilialCancerSyndromeSubsidiaryComment is not null
<Origin>NHS NUMBER</Origin>
</Explanation>
<Explanation columnName="FamilialCancerSyndromeSubsidiaryComment">
<Description></Description>
<Origin></Origin>
<Description>FAMILIAL CANCER SYNDROME COMMENT is free text further information recorded where the FAMILIAL CANCER SYNDROME INDICATOR is National Code 'Y - Yes' or 'P - Possible', to identify distinct syndromes which may have different treatment decisions or outcomes that cannot be coded separately during a Cancer Care Spell.</Description>
<Origin>FAMILIAL CANCER SYNDROME COMMENT</Origin>
</Explanation>
<Explanation columnName="Date" >
<Description>Observation date</Description>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

namespace OmopTransformer.COSD.Observation.CosdV9HistoryOfAlcoholCurrent;

[Notes("Notes", DocumentationNotes.ApproximatedDatesWarning)]
internal class CosdV9HistoryOfAlcoholCurrent : OmopObservation<CosdV9HistoryOfAlcoholCurrentRecord>
{
[CopyValue(nameof(Source.NhsNumber))]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,8 @@ where o.HistoryOfAlcoholCurrent is not null
<Origin>NHS NUMBER</Origin>
</Explanation>
<Explanation columnName="HistoryOfAlcoholCurrent">
<Description></Description>
<Origin></Origin>
<Description>The current history of alcohol consumption for the PATIENT during a Cancer Care Spell.</Description>
<Origin>ALCOHOL HISTORY (CANCER IN LAST THREE MONTHS)</Origin>
</Explanation>
<Explanation columnName="Date" >
<Description>Observation date</Description>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

namespace OmopTransformer.COSD.Observation.CosdV9HistoryOfAlcoholPast;

[Notes("Notes", DocumentationNotes.ApproximatedDatesWarning)]
internal class CosdV9HistoryOfAlcoholPast : OmopObservation<CosdV9HistoryOfAlcoholPastRecord>
{
[CopyValue(nameof(Source.NhsNumber))]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,8 @@ where o.HistoryOfAlcoholPast is not null
<Origin>NHS NUMBER</Origin>
</Explanation>
<Explanation columnName="HistoryOfAlcoholPast">
<Description></Description>
<Origin></Origin>
<Description>The past history of alcohol consumption for the PATIENT during a Cancer Care Spell.</Description>
<Origin>ALCOHOL HISTORY (CANCER BEFORE LAST THREE MONTHS)</Origin>
</Explanation>
<Explanation columnName="Date" >
<Description>Observation date</Description>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

namespace OmopTransformer.COSD.Observation.CosdV9MenopausalStatus;

[Notes("Notes", DocumentationNotes.ApproximatedDatesWarning)]
internal class CosdV9MenopausalStatus : OmopObservation<CosdV9MenopausalStatusRecord>
{
[CopyValue(nameof(Source.NhsNumber))]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@ where o.MenopausalStatus is not null
<Origin>NHS NUMBER</Origin>
</Explanation>
<Explanation columnName="MenopausalStatus">
<Description></Description>
<Origin></Origin>
<Description>MENOPAUSAL STATUS (AT DIAGNOSIS) is the MENOPAUSAL STATUS of a PATIENT at PATIENT DIAGNOSIS.</Description>
<Origin>MENOPAUSAL STATUS (AT DIAGNOSIS)</Origin>
</Explanation>
<Explanation columnName="Date" >
<Description>Observation date</Description>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

namespace OmopTransformer.COSD.Observation.CosdV9PerformanceStatusAdult;

[Notes("Notes", DocumentationNotes.ApproximatedDatesWarning)]
internal class CosdV9PerformanceStatusAdult : OmopObservation<CosdV9PerformanceStatusAdultRecord>
{
[CopyValue(nameof(Source.NhsNumber))]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,8 @@ where o.PerformanceStatusAdult is not null
<Origin>NHS NUMBER</Origin>
</Explanation>
<Explanation columnName="PerformanceStatusAdult">
<Description></Description>
<Origin></Origin>
<Description>A World Health Organisation classification indicating a PERSON's status relating to activity/DISABILITY.</Description>
<Origin>PERFORMANCE STATUS (ADULT)</Origin>
</Explanation>
<Explanation columnName="Date" >
<Description>Observation date</Description>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

namespace OmopTransformer.COSD.Observation.CosdV9PersonSexualOrientationCodeAtDiagnosis;

[Notes("Notes", DocumentationNotes.ApproximatedDatesWarning)]
internal class CosdV9PersonSexualOrientationCodeAtDiagnosis : OmopObservation<CosdV9PersonSexualOrientationCodeAtDiagnosisRecord>
{
[CopyValue(nameof(Source.NhsNumber))]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@ where o.PersonSexualOrientationCodeAtDiagnosis is not null
<Origin>NHS NUMBER</Origin>
</Explanation>
<Explanation columnName="PersonSexualOrientationCodeAtDiagnosis">
<Description></Description>
<Origin></Origin>
<Description>PERSON STATED SEXUAL ORIENTATION CODE (AT DIAGNOSIS) is the PERSON STATED SEXUAL ORIENTATION CODE at the time of the PATIENT DIAGNOSIS.</Description>
<Origin>PERSON STATED SEXUAL ORIENTATION CODE (AT DIAGNOSIS)</Origin>
</Explanation>
<Explanation columnName="Date" >
<Description>Observation date</Description>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

namespace OmopTransformer.COSD.Observation.CosdV9SourceOfReferralForNonPrimaryCancerPathway;

[Notes("Notes", DocumentationNotes.ApproximatedDatesWarning)]
internal class CosdV9SourceOfReferralForNonPrimaryCancerPathway : OmopObservation<CosdV9SourceOfReferralForNonPrimaryCancerPathwayRecord>
{
[CopyValue(nameof(Source.NhsNumber))]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,8 @@ where o.SourceOfReferralForNonPrimaryCancerPathway is not null
<Origin>NHS NUMBER</Origin>
</Explanation>
<Explanation columnName="SourceOfReferralForNonPrimaryCancerPathway">
<Description></Description>
<Origin></Origin>
<Description>SOURCE OF REFERRAL FOR OUT-PATIENTS (NON PRIMARY CANCER PATHWAY) identifies the source of referral for a Non Primary Cancer Pathway.</Description>
<Origin>SOURCE OF REFERRAL FOR OUT-PATIENTS (NON PRIMARY CANCER PATHWAY)</Origin>
</Explanation>
<Explanation columnName="Date" >
<Description>Observation date</Description>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

namespace OmopTransformer.COSD.Observation.CosdV9SourceOfReferralForOutpatients;

[Notes("Notes", DocumentationNotes.ApproximatedDatesWarning)]
internal class CosdV9SourceOfReferralForOutpatients : OmopObservation<CosdV9SourceOfReferralForOutpatientsRecord>
{
[CopyValue(nameof(Source.NhsNumber))]
Expand Down
Loading

0 comments on commit a1ef81a

Please sign in to comment.