Skip to content

Commit

Permalink
Rebuild documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
james-cockayne-ad committed Jan 23, 2025
1 parent 95a7f92 commit 301e54e
Show file tree
Hide file tree
Showing 80 changed files with 3,049 additions and 609 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,24 +38,6 @@
"query": "\nselect \n\tl1.NHSNumber, \n\tl1.RecordConnectionIdentifier, \n\tcoalesce(max(l8.DeliveryDate), max(l1.CDSActivityDate)) as observation_date, \n\tl8.AnaestheticDuringLabourDelivery\nfrom [omop_staging].[cds_line01] l1\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\tinner join [omop_staging].[cds_line08] l8\t\t\t\t\t\t\t\t\t\t\t\t\n\t\ton l1.MessageId = l8.MessageId\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\nwhere l8.AnaestheticDuringLabourDelivery is not null \n\tand l1.NHSNumber is not null \n\tand (l1.CdsRecordType = '140' or l1.CdsRecordType = '120')\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ngroup by \n\tl1.NHSNumber, \n\tl1.RecordConnectionIdentifier, \n\tl8.DeliveryDate, \n\tl8.AnaestheticDuringLabourDelivery\n\t",
"lookup_table_markdown": null
},
{
"name": "HospitalProviderSpellNumber",
"operation_description": "Value copied from `HospitalProviderSpellNumber`",
"dataSource": [
{
"name": "HospitalProviderSpellNumber",
"description": "CDS specific hospital spell number that binds many episodes together.",
"origins": [
{
"origin": "HOSPITAL PROVIDER SPELL NUMBER",
"url": "https://www.datadictionary.nhs.uk/data_elements/hospital_provider_spell_number.html"
}
]
}
],
"query": "\nselect \n\tl1.NHSNumber, \n\tl1.RecordConnectionIdentifier, \n\tcoalesce(max(l8.DeliveryDate), max(l1.CDSActivityDate)) as observation_date, \n\tl8.AnaestheticDuringLabourDelivery\nfrom [omop_staging].[cds_line01] l1\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\tinner join [omop_staging].[cds_line08] l8\t\t\t\t\t\t\t\t\t\t\t\t\n\t\ton l1.MessageId = l8.MessageId\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\nwhere l8.AnaestheticDuringLabourDelivery is not null \n\tand l1.NHSNumber is not null \n\tand (l1.CdsRecordType = '140' or l1.CdsRecordType = '120')\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ngroup by \n\tl1.NHSNumber, \n\tl1.RecordConnectionIdentifier, \n\tl8.DeliveryDate, \n\tl8.AnaestheticDuringLabourDelivery\n\t",
"lookup_table_markdown": null
},
{
"name": "observation_concept_id",
"operation_description": "Constant value set to `4163264`. Type of anesthetic",
Expand Down Expand Up @@ -132,6 +114,24 @@
"query": "\nselect \n\tl1.NHSNumber, \n\tl1.RecordConnectionIdentifier, \n\tcoalesce(max(l8.DeliveryDate), max(l1.CDSActivityDate)) as observation_date, \n\tl8.AnaestheticDuringLabourDelivery\nfrom [omop_staging].[cds_line01] l1\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\tinner join [omop_staging].[cds_line08] l8\t\t\t\t\t\t\t\t\t\t\t\t\n\t\ton l1.MessageId = l8.MessageId\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\nwhere l8.AnaestheticDuringLabourDelivery is not null \n\tand l1.NHSNumber is not null \n\tand (l1.CdsRecordType = '140' or l1.CdsRecordType = '120')\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ngroup by \n\tl1.NHSNumber, \n\tl1.RecordConnectionIdentifier, \n\tl8.DeliveryDate, \n\tl8.AnaestheticDuringLabourDelivery\n\t",
"lookup_table_markdown": null
},
{
"name": "HospitalProviderSpellNumber",
"operation_description": "Value copied from `HospitalProviderSpellNumber`",
"dataSource": [
{
"name": "HospitalProviderSpellNumber",
"description": "CDS specific hospital spell number that binds many episodes together.",
"origins": [
{
"origin": "HOSPITAL PROVIDER SPELL NUMBER",
"url": "https://www.datadictionary.nhs.uk/data_elements/hospital_provider_spell_number.html"
}
]
}
],
"query": "\nselect \n\tl1.NHSNumber, \n\tl1.RecordConnectionIdentifier, \n\tcoalesce(max(l8.DeliveryDate), max(l1.CDSActivityDate)) as observation_date, \n\tl8.AnaestheticDuringLabourDelivery\nfrom [omop_staging].[cds_line01] l1\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\tinner join [omop_staging].[cds_line08] l8\t\t\t\t\t\t\t\t\t\t\t\t\n\t\ton l1.MessageId = l8.MessageId\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\nwhere l8.AnaestheticDuringLabourDelivery is not null \n\tand l1.NHSNumber is not null \n\tand (l1.CdsRecordType = '140' or l1.CdsRecordType = '120')\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ngroup by \n\tl1.NHSNumber, \n\tl1.RecordConnectionIdentifier, \n\tl8.DeliveryDate, \n\tl8.AnaestheticDuringLabourDelivery\n\t",
"lookup_table_markdown": null
},
{
"name": "observation_source_concept_id",
"operation_description": "Constant value set to `2000500001`. ANAESTHETIC GIVEN DURING LABOUR OR DELIVERY CODE",
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -38,24 +38,6 @@
"query": "\nselect \n\tl1.NHSNumber, \n\tl1.RecordConnectionIdentifier,\n\tl5.HospitalProviderSpellNumber,\n\tcoalesce(max(l8.DeliveryDate), max(l1.CDSActivityDate)) as observation_date, \n\tl8.AnaestheticGivenPostLabourDelivery\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\nfrom omop_staging.cds_line01 l1\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\tinner join omop_staging.cds_line08 l8\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\ton l1.MessageId = l8.MessageId\n\tleft outer join omop_staging.cds_line05 l5\n\t\ton l1.MessageId = l5.MessageId\nwhere l8.AnaestheticGivenPostLabourDelivery is not null \n\tand l1.NHSNumber is not null \n\tand (l1.CdsRecordType = '140' or l1.CdsRecordType = '120')\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ngroup by \n\tl1.NHSNumber, \n\tl1.RecordConnectionIdentifier, \n\tl5.HospitalProviderSpellNumber,\n\tl8.DeliveryDate, \n\tl8.AnaestheticGivenPostLabourDelivery\n",
"lookup_table_markdown": null
},
{
"name": "HospitalProviderSpellNumber",
"operation_description": "Value copied from `HospitalProviderSpellNumber`",
"dataSource": [
{
"name": "HospitalProviderSpellNumber",
"description": "CDS specific hospital spell number that binds many episodes together.",
"origins": [
{
"origin": "HOSPITAL PROVIDER SPELL NUMBER",
"url": "https://www.datadictionary.nhs.uk/data_elements/hospital_provider_spell_number.html"
}
]
}
],
"query": "\nselect \n\tl1.NHSNumber, \n\tl1.RecordConnectionIdentifier,\n\tl5.HospitalProviderSpellNumber,\n\tcoalesce(max(l8.DeliveryDate), max(l1.CDSActivityDate)) as observation_date, \n\tl8.AnaestheticGivenPostLabourDelivery\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\nfrom omop_staging.cds_line01 l1\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\tinner join omop_staging.cds_line08 l8\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\ton l1.MessageId = l8.MessageId\n\tleft outer join omop_staging.cds_line05 l5\n\t\ton l1.MessageId = l5.MessageId\nwhere l8.AnaestheticGivenPostLabourDelivery is not null \n\tand l1.NHSNumber is not null \n\tand (l1.CdsRecordType = '140' or l1.CdsRecordType = '120')\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ngroup by \n\tl1.NHSNumber, \n\tl1.RecordConnectionIdentifier, \n\tl5.HospitalProviderSpellNumber,\n\tl8.DeliveryDate, \n\tl8.AnaestheticGivenPostLabourDelivery\n",
"lookup_table_markdown": null
},
{
"name": "observation_concept_id",
"operation_description": "Constant value set to `4163264`. Type of anesthetic",
Expand Down Expand Up @@ -124,6 +106,24 @@
"query": "\nselect \n\tl1.NHSNumber, \n\tl1.RecordConnectionIdentifier,\n\tl5.HospitalProviderSpellNumber,\n\tcoalesce(max(l8.DeliveryDate), max(l1.CDSActivityDate)) as observation_date, \n\tl8.AnaestheticGivenPostLabourDelivery\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\nfrom omop_staging.cds_line01 l1\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\tinner join omop_staging.cds_line08 l8\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\ton l1.MessageId = l8.MessageId\n\tleft outer join omop_staging.cds_line05 l5\n\t\ton l1.MessageId = l5.MessageId\nwhere l8.AnaestheticGivenPostLabourDelivery is not null \n\tand l1.NHSNumber is not null \n\tand (l1.CdsRecordType = '140' or l1.CdsRecordType = '120')\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ngroup by \n\tl1.NHSNumber, \n\tl1.RecordConnectionIdentifier, \n\tl5.HospitalProviderSpellNumber,\n\tl8.DeliveryDate, \n\tl8.AnaestheticGivenPostLabourDelivery\n",
"lookup_table_markdown": null
},
{
"name": "HospitalProviderSpellNumber",
"operation_description": "Value copied from `HospitalProviderSpellNumber`",
"dataSource": [
{
"name": "HospitalProviderSpellNumber",
"description": "CDS specific hospital spell number that binds many episodes together.",
"origins": [
{
"origin": "HOSPITAL PROVIDER SPELL NUMBER",
"url": "https://www.datadictionary.nhs.uk/data_elements/hospital_provider_spell_number.html"
}
]
}
],
"query": "\nselect \n\tl1.NHSNumber, \n\tl1.RecordConnectionIdentifier,\n\tl5.HospitalProviderSpellNumber,\n\tcoalesce(max(l8.DeliveryDate), max(l1.CDSActivityDate)) as observation_date, \n\tl8.AnaestheticGivenPostLabourDelivery\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\nfrom omop_staging.cds_line01 l1\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\tinner join omop_staging.cds_line08 l8\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\ton l1.MessageId = l8.MessageId\n\tleft outer join omop_staging.cds_line05 l5\n\t\ton l1.MessageId = l5.MessageId\nwhere l8.AnaestheticGivenPostLabourDelivery is not null \n\tand l1.NHSNumber is not null \n\tand (l1.CdsRecordType = '140' or l1.CdsRecordType = '120')\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ngroup by \n\tl1.NHSNumber, \n\tl1.RecordConnectionIdentifier, \n\tl5.HospitalProviderSpellNumber,\n\tl8.DeliveryDate, \n\tl8.AnaestheticGivenPostLabourDelivery\n",
"lookup_table_markdown": null
},
{
"name": "observation_source_concept_id",
"operation_description": "Constant value set to `2000500002`. ANAESTHETIC GIVEN POST LABOUR OR DELIVERY CODE",
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 301e54e

Please sign in to comment.