diff --git a/.idea/dorieh.iml b/.idea/dorieh.iml
new file mode 100644
index 000000000..3790b893f
--- /dev/null
+++ b/.idea/dorieh.iml
@@ -0,0 +1,11 @@
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/runConfigurations/Aggregate_original_file___downscale__county__.xml b/.idea/runConfigurations/Aggregate_original_file___downscale__county__.xml
index 7699dda5e..dccb28fe2 100644
--- a/.idea/runConfigurations/Aggregate_original_file___downscale__county__.xml
+++ b/.idea/runConfigurations/Aggregate_original_file___downscale__county__.xml
@@ -1,6 +1,7 @@
+
@@ -24,7 +25,7 @@
-
+
diff --git a/.idea/runConfigurations/Build_docker_image_Amzn.xml b/.idea/runConfigurations/Build_docker_image_Amzn.xml
new file mode 100644
index 000000000..79d063d50
--- /dev/null
+++ b/.idea/runConfigurations/Build_docker_image_Amzn.xml
@@ -0,0 +1,17 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/runConfigurations/Build_documentation.xml b/.idea/runConfigurations/Build_documentation.xml
index ba7c09b1e..c4950212b 100644
--- a/.idea/runConfigurations/Build_documentation.xml
+++ b/.idea/runConfigurations/Build_documentation.xml
@@ -1,6 +1,6 @@
-
+
diff --git a/.idea/runConfigurations/Census_help.xml b/.idea/runConfigurations/Census_help.xml
index 8cffd956b..91b6bc583 100644
--- a/.idea/runConfigurations/Census_help.xml
+++ b/.idea/runConfigurations/Census_help.xml
@@ -1,18 +1,28 @@
-
-
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/.idea/runConfigurations/Create_AQS_SQL.xml b/.idea/runConfigurations/Create_AQS_SQL.xml
index 7d314d124..f2c5167e3 100644
--- a/.idea/runConfigurations/Create_AQS_SQL.xml
+++ b/.idea/runConfigurations/Create_AQS_SQL.xml
@@ -6,6 +6,7 @@
+
@@ -25,7 +26,7 @@
-
+
diff --git a/.idea/runConfigurations/Create_Airnow_SQL_.xml b/.idea/runConfigurations/Create_Airnow_SQL_.xml
new file mode 100644
index 000000000..182f1b382
--- /dev/null
+++ b/.idea/runConfigurations/Create_Airnow_SQL_.xml
@@ -0,0 +1,36 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/runConfigurations/Create_PM25_components_SQL_.xml b/.idea/runConfigurations/Create_PM25_components_SQL_.xml
new file mode 100644
index 000000000..e4219cdbb
--- /dev/null
+++ b/.idea/runConfigurations/Create_PM25_components_SQL_.xml
@@ -0,0 +1,37 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/runConfigurations/Create_climate_SQL__rmax.xml b/.idea/runConfigurations/Create_climate_SQL__rmax.xml
new file mode 100644
index 000000000..fb5ebdbbe
--- /dev/null
+++ b/.idea/runConfigurations/Create_climate_SQL__rmax.xml
@@ -0,0 +1,37 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/runConfigurations/Create_climate_SQL__rmin_.xml b/.idea/runConfigurations/Create_climate_SQL__rmin_.xml
new file mode 100644
index 000000000..f930e1b5a
--- /dev/null
+++ b/.idea/runConfigurations/Create_climate_SQL__rmin_.xml
@@ -0,0 +1,37 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/runConfigurations/DB_Handshake.xml b/.idea/runConfigurations/DB_Handshake.xml
new file mode 100644
index 000000000..2e793d2fa
--- /dev/null
+++ b/.idea/runConfigurations/DB_Handshake.xml
@@ -0,0 +1,36 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/runConfigurations/DB_Handshake__ref_runner__.xml b/.idea/runConfigurations/DB_Handshake__ref_runner__.xml
new file mode 100644
index 000000000..6a7a84043
--- /dev/null
+++ b/.idea/runConfigurations/DB_Handshake__ref_runner__.xml
@@ -0,0 +1,37 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/runConfigurations/DB_Montior__Ref_runner_.xml b/.idea/runConfigurations/DB_Montior__Ref_runner_.xml
new file mode 100644
index 000000000..775f9ed7e
--- /dev/null
+++ b/.idea/runConfigurations/DB_Montior__Ref_runner_.xml
@@ -0,0 +1,35 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/runConfigurations/Data_Loader__Climate_Example_.xml b/.idea/runConfigurations/Data_Loader__Climate_Example_.xml
new file mode 100644
index 000000000..888bae327
--- /dev/null
+++ b/.idea/runConfigurations/Data_Loader__Climate_Example_.xml
@@ -0,0 +1,26 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/runConfigurations/version.xml b/.idea/runConfigurations/Data_Loader__Help_.xml
similarity index 66%
rename from .idea/runConfigurations/version.xml
rename to .idea/runConfigurations/Data_Loader__Help_.xml
index 8cf38b337..d32f6ef97 100644
--- a/.idea/runConfigurations/version.xml
+++ b/.idea/runConfigurations/Data_Loader__Help_.xml
@@ -1,5 +1,5 @@
-
+
@@ -8,16 +8,16 @@
-
+
-
-
+
+
-
+
diff --git a/.idea/runConfigurations/Download_shapes.xml b/.idea/runConfigurations/Download_shapes.xml
index 53eb9700b..a9d929681 100644
--- a/.idea/runConfigurations/Download_shapes.xml
+++ b/.idea/runConfigurations/Download_shapes.xml
@@ -1,6 +1,7 @@
+
@@ -24,7 +25,7 @@
-
+
diff --git a/.idea/runConfigurations/Gold_Data_Transformer__Climate_Example__.xml b/.idea/runConfigurations/Gold_Data_Transformer__Climate_Example__.xml
new file mode 100644
index 000000000..0c0e0b78f
--- /dev/null
+++ b/.idea/runConfigurations/Gold_Data_Transformer__Climate_Example__.xml
@@ -0,0 +1,26 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/runConfigurations/Run_AQS_SQL.xml b/.idea/runConfigurations/Run_AQS_SQL.xml
new file mode 100644
index 000000000..548bb339a
--- /dev/null
+++ b/.idea/runConfigurations/Run_AQS_SQL.xml
@@ -0,0 +1,37 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/runConfigurations/Run_Airnow_SQL_.xml b/.idea/runConfigurations/Run_Airnow_SQL_.xml
new file mode 100644
index 000000000..b0aea5ff7
--- /dev/null
+++ b/.idea/runConfigurations/Run_Airnow_SQL_.xml
@@ -0,0 +1,36 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/runConfigurations/Run_climate_SQL.xml b/.idea/runConfigurations/Run_climate_SQL.xml
new file mode 100644
index 000000000..c667d040d
--- /dev/null
+++ b/.idea/runConfigurations/Run_climate_SQL.xml
@@ -0,0 +1,37 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/runConfigurations/Silver_Data_Transformer__Climate_Example__.xml b/.idea/runConfigurations/Silver_Data_Transformer__Climate_Example__.xml
new file mode 100644
index 000000000..04ab6a3a4
--- /dev/null
+++ b/.idea/runConfigurations/Silver_Data_Transformer__Climate_Example__.xml
@@ -0,0 +1,26 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/runConfigurations/Test_AQS__2009__2011_.xml b/.idea/runConfigurations/Test_AQS__2009__2011___old_.xml
similarity index 60%
rename from .idea/runConfigurations/Test_AQS__2009__2011_.xml
rename to .idea/runConfigurations/Test_AQS__2009__2011___old_.xml
index a1f9f6af0..721926ecd 100644
--- a/.idea/runConfigurations/Test_AQS__2009__2011_.xml
+++ b/.idea/runConfigurations/Test_AQS__2009__2011___old_.xml
@@ -1,5 +1,5 @@
-
+
@@ -8,14 +8,24 @@
-
+
+
+
+
+
+
+
+
+
+
+
-
+
diff --git a/.idea/runConfigurations/Test_Airnow.xml b/.idea/runConfigurations/Test_Airnow.xml
index 6b5b2174f..c90eda632 100644
--- a/.idea/runConfigurations/Test_Airnow.xml
+++ b/.idea/runConfigurations/Test_Airnow.xml
@@ -7,15 +7,25 @@
-
-
+
+
-
-
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/.idea/runConfigurations/Test_Connection.xml b/.idea/runConfigurations/Test_Connection.xml
new file mode 100644
index 000000000..dd8523475
--- /dev/null
+++ b/.idea/runConfigurations/Test_Connection.xml
@@ -0,0 +1,36 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/runConfigurations/Test_Exposures__County_Default_Annutal_Components_.xml b/.idea/runConfigurations/Test_Exposures__County_Default_Annutal_Components_.xml
index 8a169db4a..23d28f0a4 100644
--- a/.idea/runConfigurations/Test_Exposures__County_Default_Annutal_Components_.xml
+++ b/.idea/runConfigurations/Test_Exposures__County_Default_Annutal_Components_.xml
@@ -1,5 +1,5 @@
-
+
@@ -8,15 +8,25 @@
-
-
-
+
+
+
-
-
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/.idea/runConfigurations/Test_Humidity.xml b/.idea/runConfigurations/Test_Humidity.xml
index bdc599136..12478c001 100644
--- a/.idea/runConfigurations/Test_Humidity.xml
+++ b/.idea/runConfigurations/Test_Humidity.xml
@@ -1,5 +1,5 @@
-
+
@@ -7,8 +7,7 @@
-
-
+
diff --git a/.idea/runConfigurations/Validate_Census__ingest_.xml b/.idea/runConfigurations/Validate_Census__ingest_.xml
index 86907089f..61ec1313c 100644
--- a/.idea/runConfigurations/Validate_Census__ingest_.xml
+++ b/.idea/runConfigurations/Validate_Census__ingest_.xml
@@ -1,19 +1,28 @@
-
-
+
+
+
+
+
+
+
+
+
+
+
diff --git a/.idea/runConfigurations/Version__Toil__.xml b/.idea/runConfigurations/Version__Toil__.xml
new file mode 100644
index 000000000..7e063dcb3
--- /dev/null
+++ b/.idea/runConfigurations/Version__Toil__.xml
@@ -0,0 +1,35 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/runConfigurations/Version__ref_runner_.xml b/.idea/runConfigurations/Version__ref_runner_.xml
new file mode 100644
index 000000000..d93c59bd1
--- /dev/null
+++ b/.idea/runConfigurations/Version__ref_runner_.xml
@@ -0,0 +1,35 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/runConfigurations/dorieh_version.xml b/.idea/runConfigurations/dorieh_version.xml
new file mode 100644
index 000000000..85cfd6a57
--- /dev/null
+++ b/.idea/runConfigurations/dorieh_version.xml
@@ -0,0 +1,36 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/runConfigurations/init_core_db.xml b/.idea/runConfigurations/init_core_db.xml
index 55de75db7..7c15a9d60 100644
--- a/.idea/runConfigurations/init_core_db.xml
+++ b/.idea/runConfigurations/init_core_db.xml
@@ -8,12 +8,23 @@
-
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/.idea/runConfigurations/monitor__h.xml b/.idea/runConfigurations/monitor__h.xml
index fce98a96c..804c4b6a7 100644
--- a/.idea/runConfigurations/monitor__h.xml
+++ b/.idea/runConfigurations/monitor__h.xml
@@ -1,18 +1,28 @@
-
-
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/.idea/runConfigurations/pgpass.xml b/.idea/runConfigurations/pgpass.xml
index 2cd047dfa..eb135d198 100644
--- a/.idea/runConfigurations/pgpass.xml
+++ b/.idea/runConfigurations/pgpass.xml
@@ -1,19 +1,29 @@
-
-
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/README.md b/README.md
index 367176905..0d004587e 100644
--- a/README.md
+++ b/README.md
@@ -46,7 +46,7 @@ Install Dorieh (stable version):
If you prefer to install the latest version from GitHub:
- pip install git+https://github.com/NSAPH-Data-Platform/dorieh
+ pip install git+https://github.com/ForomePlatform/dorieh
If FST support is desired, [R](https://www.r-project.org/) runtime has to be installed and R_HOME environment
variable set up. One of the simples ways of installing R is to use
@@ -55,7 +55,7 @@ Dorieh with either of the following command:
pip install dorieh[FST]
- pip install "git+https://github.com/NSAPH-Data-Platform/dorieh[FST]"
+ pip install "git+https://github.com/ForomePlatform/dorieh[FST]"
### Docker Container
diff --git a/build_documentation.sh b/build_documentation.sh
index b1b174ed6..4b2653718 100755
--- a/build_documentation.sh
+++ b/build_documentation.sh
@@ -1,5 +1,5 @@
#!/bin/bash
-namespace="NSAPH-Data-Platform"
+namespace="ForomePlatform"
doc_source_branch="doc-builder"
branch="main"
@@ -47,7 +47,7 @@ fi
pip install -r doc-requirements.txt
-pip install .
+pip install ".[FST]"
pip uninstall -y markupsafe
pip install markupsafe==2.0.1
@@ -73,7 +73,7 @@ copy_section README.md doc/home.md readme
cp docker/README.md doc/docker_readme.md
# build documentation
-sphinx-build doc docs || exit
+sphinx-build -j auto doc docs || exit
touch docs/.nojekyll
echo "Build finished"
diff --git a/doc/AppPipelineGenerator.md b/doc/AppPipelineGenerator.md
index f3fb5f0e7..ad81d1c4e 100644
--- a/doc/AppPipelineGenerator.md
+++ b/doc/AppPipelineGenerator.md
@@ -45,7 +45,7 @@ Alternatively, *instead* of Docker one can set up a
Once virtual environment is set up, you should install Dorieh packages
in it with the following command:
- pip install git+https://github.com/NSAPH-Data-Platform/nsaph-core-platform.git@develop
+ pip install git+https://github.com/ForomePlatform/nsaph-core-platform.git@develop
### Setup DBMS Server
diff --git a/doc/DBT.md b/doc/DBT.md
index c6b93351e..94949f8c4 100644
--- a/doc/DBT.md
+++ b/doc/DBT.md
@@ -6,9 +6,9 @@ maxdepth: 4
glob: true
hidden:
---
-members/create_test.md
-members/dbt_runner.md
-members/getn_dbt_cwl.rst
+members/create_test
+members/dbt_runner
+members/gen_dbt_cwl
TestingWorkflows.md
guts.md
```
diff --git a/doc/Datamodels.md b/doc/Datamodels.md
index 68b6e91c5..0cc337a53 100644
--- a/doc/Datamodels.md
+++ b/doc/Datamodels.md
@@ -8,7 +8,9 @@ maxdepth: 4
hidden:
---
DataModellingExtensions
+members/domain_dictionary
Medicare
+MedicareLineage
Medicaid
```
@@ -19,7 +21,7 @@ local:
---
```
-## Introduction to data modelling for NSAPH Data Platform
+## Introduction to data modelling for Dorieh Data Platform
Data models consist of database tables, relations between them
(e.g. foreign keys), indices and conventions that govern things
@@ -38,6 +40,7 @@ following domains
* EPA
* Census
* Climate (gridMET data)
+* Exposure (Air pollution data)
Extended functionality for data transformations is provided by
[Data Modelling Extensions](DataModellingExtensions) that are used by
diff --git a/doc/Example-climate-workflow.md b/doc/Example-climate-workflow.md
index aa6b12d57..1e79af34a 100644
--- a/doc/Example-climate-workflow.md
+++ b/doc/Example-climate-workflow.md
@@ -6,6 +6,11 @@ local:
---
```
+``{seealso}
+[Tutorial: Building a Bronze–Silver–Gold Climate Pipeline with Dorieh](tutorial/climate/building-climate-pipeline.md)
+```
+
+
## What the sample workflow is doing: aggregating a climate variable
@@ -41,7 +46,7 @@ It accepts 1 required and 3 optional input arguments:
This architecture is reflected in this diagram: 
-The [source code for the workflow](https://github.com/NSAPH-Data-Platform/dorieh/blob/main/examples/climate-example.cwl)
+The [source code for the workflow](https://github.com/ForomePlatform/dorieh/blob/main/examples/climate-example.cwl)
is in examples directory. See more details in
[CWL Workflow Specifications](https://www.commonwl.org/v1.2/Workflow.html)
@@ -75,7 +80,7 @@ There is one required argument to the workflow - the date for which we will be a
Then you can run the following command:
toil-cwl-runner --retryCount 1 --cleanWorkDir never --outdir tmmx --workDir . \
- https://raw.githubusercontent.com/NSAPH-Data-Platform/dorieh/main/examples/climate-example.cwl \
+ https://raw.githubusercontent.com/ForomePlatform/dorieh/refs/heads/main/examples/no-db/climate-example.cwl \
--date 2020-10-03
(Replace the date with any date you fancy)
@@ -131,7 +136,7 @@ hints:
You can now run the workflow with the same command:
toil-cwl-runner --retryCount 1 --cleanWorkDir never --outdir tmmx --workDir . \
- https://raw.githubusercontent.com/NSAPH-Data-Platform/dorieh/main/examples/climate-example.cwl \
+ https://raw.githubusercontent.com/ForomePlatform/dorieh/refs/heads/main/examples/no-db/climate-example.cwl \
--date 2020-10-03
even without having dorieh package installed in you Python virtual environment.
@@ -142,7 +147,7 @@ You can also use a Docker container more like a virtual machine. Start it by exe
docker start forome/dorieh
-command and just run teh commands inside the container, using
+command and just run the commands inside the container, using
docker exec -it forome/dorieh ${commands}
diff --git a/doc/Medicaid.md b/doc/Medicaid.md
index 20d8d56cd..daace2a01 100644
--- a/doc/Medicaid.md
+++ b/doc/Medicaid.md
@@ -1,4 +1,4 @@
-# Handling Medicaid data
+# Medicaid: Building a Data Warehouse from ResDac Files
```{toctree}
---
diff --git a/doc/Medicare.md b/doc/Medicare.md
index b3abe0567..fa4b58c6c 100644
--- a/doc/Medicare.md
+++ b/doc/Medicare.md
@@ -1,4 +1,4 @@
-# Medicare Files Handling
+# Medicare: Building a Data Warehouse from ResDac Files
```{toctree}
---
@@ -9,6 +9,7 @@ members/mcr_sas2yaml.rst
members/mcr_sas2db.rst
members/fts2yaml.rst
members/medicare_yaml.md
+MedicareLineage.md
Medicaid.md
```
@@ -108,7 +109,9 @@ new columns are being added and column names are sometimes changed.
To add insult to injury, for years prior to 2011 (1999-2010) we do not
have original files, but preprocessed files with patient summary
(called denominators) and admissions. They are in SAS 7BDAT format,
-however columns are also different for different years.
+however columns are also different for different years. Please
+refer to [Files for 1999 to 2010](#files-for-1999-to-2010) section
+for details.
### Storing raw data in the Database
@@ -138,36 +141,180 @@ When a table has no natural primary key (admission tables) we add a record
number column. This column ha sno meaning but allows to trace a record to the
original data.
+(files-for-1999-to-2010)=
+### Files for 1999 to 2010
+Between 1999 and 2010, original Medicare ResDAC raw datasets are not available
+to NSAPH. Instead, only partially preprocessed files provided by external
+collaborators are available. These have been stored historically on RCE in two
+separate directories:
+
+* denominator/
+* inpatient/
+
+Each directory contains one file per year. These files use the SAS7BDAT
+format, which is a binary data format native to
+SAS analytics software. Each file embeds metadata about its schema
+(i.e., field names, types, order), but column names
+and formats still vary from year to year.
+
+To handle this variation:
+
+* Each file is individually introspected using the SAS Introspector.
+* A YAML schema is automatically generated and stored in a central
+ registry.
+* This schema is then used to create the appropriate database table for
+ ingestion.
+
+For more details on implementation:
+
+* See the [SAS Inrospector](members/mcr_sas2yaml.rst) for how
+metadata is extracted.
+* See the class [SAS Data Laoder](members/mcr_sas2db.rst) for how
+these files are ingested into the database.
+
+Because of schema variability:
+
+* Special heuristics are used to detect core fields like beneficiary ID (
+ bene_id), year, zip code, and state code, based
+ on a list of possible alternative names.
+* Missing expected columns (e.g., year) are sometimes generated using
+ information inferred from directory or file naming.
+
+Each resulting table includes:
+
+* A standardized structure with additional generated columns (e.g., record
+ ID, file name).
+* Uniform field naming conventions to support unioning across years.
+* Consistent indexing to support later join operations with downstream
+ tables (e.g., beneficiaries and admissions).
+
+> ⚠ Note: Because of the variability and limited provenance of these
+files, this step is distinct from the ResDAC
+ingestion workflow and is not based on FTS metadata.
+
+📚 Related References:
+
+:doc: members/mcr_sas2yaml for introspection logic
+:doc: members/mcr_sas2db for database file loading
+
+```{mermaid}
+graph TD;
+ A[SAS 7BDAT File] --> B[Inspect schema using SAS Introspector]
+ B --> C[Generate YAML metadata]
+ C --> D[Update main metadata registry: used for combining tables for all years]
+ C --> L[Generate DDL]
+ C --> E[Configure SAS Data Loader]
+ E --> F[Create SQL table]
+ L --> F
+ F --> I[Ingest data]
+ A --> I
+ I --> G[Add synthetic keys and indexes]
+```
-### Files for 1999 to 2010
+### Files for Years 2011 and later
-These files are in SAS7BDAT format. They have been stored on RCE
-in two directories:
+#### Metadata Extraction
+
+These files are original files from ResDac. They come in Fixed Width Format
+(FWF) typically using the .dat extension. Each data file
+delivered by ResDAC is accompanied
+by a plain-text metadata file known as a File Transfer Summary (FTS),
+which describes the structure of the corresponding data file—including:
+
+* Column names
+* Data types (e.g., NUM, CHAR, DATE)
+* Column widths and formats
+* Record and file length metadata
+
+These FTS files are designed primarily for human readability
+and are not machine-friendly. To address this,
+the Dorieh includes a partial FTS parser:
+
+👉 [fts2yaml module](members/fts2yaml.rst)
+
+This parser performs the following:
+
+* Extracts structured metadata directly from .fts files
+* Converts it to a standardized YAML-based data model.
+ * The YaML model describes table and column definitions.
+ * The YaML model includes types, column widths, descriptions,
+ and indexing hints
+* Supports both Medicare and Medicaid FTS formats
+
+Once the YAML schema is generated, it is used for:
+
+* Generating SQL DDL scripts to create staging tables
+* Feeding column layout metadata to the FWF reader (FWFReader)
+* Automatically identifying and indexing key fields such as:
+ * BENE_ID (Beneficiary ID)
+ * YEAR
+ * STATE
+ * ZIP
+
+##### Supported File Types
-* denominator
-* inpatient
+The parser supports:
-One file per year. SAS7BDAT format contains metadata with column
-names and types. We use this metadata to generate appropriate database schema.
+* Medicare files: identified based on prefixes like mbsf_abcd_XXXX.fts
+* Medicaid files: using filenames like maxdata_ps_STATE_YEAR.fts
-See the code for handling these files:
+#### Ingestion process
-* [Metadata and data model](members/mcr_sas2yaml.rst)
-* [Ingesting data](members/mcr_sas2db.rst)
+Once metadata extraction is complete, raw data ingestion
+takes place using:
-### Files for Years 2011 and later
+* [MedicareDataLoader](members/mcr_data_loader)
+ to parse FWF records row-by-row
+* [MedicareLoader](members/mcr_fts2db) to coordinate:
+ * FTS parsing
+ * Schema registration
+ * Loader selection (DAT or CSV)
+ * Data loading, indexing, and optimization (VACUUM)
-These files are original files from ResDac. They come in Fixed Width Format
-(FWF). For each file the structure is described in File Transfer
-Summary (FTS) file. Unfortunately these files are intended for reading by
-a human and is difficult to parse automatically. A
-[partial parser](members/fts2yaml.rst) that
-relies on a known file type is implemented in Python. The information
-extarcted by the parser is used to:
-
-* Generate data model (database schema)
-* Generate metadata for the FWF Reader
+The MedicareLoader module orchestrates the end-to-end process, including:
+
+* Scanning input directories recursively for *.fts files
+* Parsing each FTS file to generate a schema
+* Locating the corresponding *.dat (or *.csv.gz) files
+* Triggering the appropriate file loader
+* Writing data to the database
+
+
+```{mermaid}
+graph TD;
+ A[SAS FTS file] --> B[YAML schema via fts2yaml]
+ B --> C[Extract layout for fixed-width reader]
+ B --> E[Generate DDL]
+ S[SAS DAT FILE] --> D
+ C --> D[Run MedicareLoader calling MedicareDataLoader]
+ E --> D
+ D --> F[Load data to SQL table]
+ F --> G[Apply indexing and VACUUM]
+```
+
+#### Directory Layout Expectation
+
+To function correctly with the NSAPH ingestion pipeline,
+the directory layout for ResDAC raw files must follow this structure:
+```
+project_root/
+└── medicare/
+ └── 2018/
+ ├── mbsf_abcd_2018.fts
+ ├── mbsf_abcd_2018.dat
+ └── medpar_2018.fts
+```
+
+Specifically:
+
+* Each year must have its own directory
+* Table names are inferred from FTS file name and containing year
+* The FTS filename must match the .dat or .csv.gz data file (just differing in extension)
+
+💡 For a full example of metadata schema outputs, see:
+
+[Generated Medicare data model](members/medicare_yaml)
## Combining raw files into a single view
diff --git a/doc/MedicareLineage.md b/doc/MedicareLineage.md
new file mode 100644
index 000000000..c00d3e0bf
--- /dev/null
+++ b/doc/MedicareLineage.md
@@ -0,0 +1,38 @@
+# Data dictionary and lineage for Medicare processing
+
+```{toctree}
+---
+maxdepth: 1
+---
+lineage/medicare.dot.md
+lineage/table-list.md
+lineage/column-list.md
+members/domain_dictionary.md
+```
+
+The dictionary and the data lineage graphs are generated using the
+[Dorieh Data Dictionary tool](members/domain_dictionary).
+
+The general structure of the generated dictionary is:
+
+* Main [table-level data lineage diagram](lineage/medicare.dot.md) showing the order of the
+ data processing and the dependencies between tables.
+* If the diagram is generated using SVG format, then every table
+ is clickable, linked to a file with the table description.
+* Every table description file includes verbal description, SQL or DDL
+ used to create the table and the list of all columns in the table.
+ Each column is linked to another file with detailed description
+ for this column.
+* Each column description file contains a description of the column
+ and a lineage diagram for teh column showing what columns in which tables
+ have been used to compute the value of this column. The SVG
+ diagram is clickable and every element is linked to the description
+ file for the column.
+* File, containing [alphabetical list of all columns in all tables](lineage/column-list.md).
+ For every column a list of tables in which the column is present
+ is displayed. During transformation process columns are
+ transferred from one table to another, hence a column usually is present in
+ multiple tables.
+
+
+
diff --git a/doc/SampleQuery.md b/doc/SampleQuery.md
index cb27af0b5..47768ac5e 100644
--- a/doc/SampleQuery.md
+++ b/doc/SampleQuery.md
@@ -33,7 +33,7 @@ To run the software on older operating systems, use Conda environment.
### Install Dorieh package
-Next, we need to install NSAPH core packages. This can be done
+Next, we need to install Dorieh core packages. This can be done
using GitHub install:
```shell
diff --git a/doc/Structure.txt b/doc/Structure.txt
new file mode 100644
index 000000000..65f6d8a4a
--- /dev/null
+++ b/doc/Structure.txt
@@ -0,0 +1,140 @@
+
+- Introduction
+- What functionality the Data Platform provides?
+ -- Data management
+ -- Data Ingestion
+ -- Data manipulation
+ -- Reporting and Data Export
+ -- Reproducible data manipulation workflows
+ -- Building feature stores for ML, statistical computations and AI
+ -- Testing of data manipulation workflows
+- Data Platform Pillars
+ -- Data Ingestion tools and libraries
+ --- Automatic introspection and ingestion
+ --- Explicit data schema definitions in YaML files
+ --- Importing data schema from third party tools (SAS)
+ --- Automatic introspection + manual editing
+ -- Runtime execution environment
+ -- Data architecture tools and wokflow definition language
+ -- Data dictionary and data lineage tools
+- Data Domains
+ -- Domain specific tooling for the following knowledge domains:
+ --- Health (CMS: Medicare and Medicaid)
+ --- Climate
+ --- Exposure (Air pollution)
+ --- EPA data
+ --- Demographics
+- Python packages and libraries
+- Examples
+- Terms and acronyms
+- Building and executing containerized apps
+
+==================================
+
+Match Files to Sections:
+
+### Introduction
+
+#### Files:
+- `home.md`
+- `introduction.md`
+- `rationale.md`
+
+### What functionality the Data Platform provides?
+
+#### Files:
+- `functionality/data_management.md`
+- `functionality/data_ingestion.md`
+- `functionality/data_manipulation.md`
+- `functionality/reporting_data_export.md`
+- `functionality/reproducible_workflows.md`
+- `functionality/feature_stores.md`
+- `functionality/workflow_testing.md`
+
+### Data Platform Pillars
+
+#### Files:
+- `pillars/data_ingestion_tools.md`
+- `pillars/runtime_execution.md`
+- `pillars/data_architecture.md`
+- `pillars/data_dictionary_lineage.md`
+
+### Data Ingestion tools and libraries
+
+#### Files:
+- `pillars/ingestion/automatic_introspection.md`
+- `pillars/ingestion/explicit_schema_definitions.md`
+- `pillars/ingestion/importing_schemas.md`
+- `pillars/ingestion/introspection_manual_editing.md`
+
+### Data Domains
+
+#### Files:
+- `domains/cms.md`
+- `domains/climate.md`
+- `domains/exposure.md`
+- `domains/epa_data.md`
+- `domains/demographics.md`
+
+### CMS (Health) Domain
+
+#### Files:
+- `cms.md`
+- `Medicaid.md`
+- `Medicare.md`
+- `MedicareLineage.md`
+- `QueringMedicaid.md`
+
+### Python Packages and Libraries
+
+#### Files:
+- `CoreLibrary.md`
+- `CMSLibrary.md`
+- `cwl_tools.md`
+- `DataLoader.md`
+- `docutils.md`
+
+### Examples
+
+#### Files:
+- `examples.md`
+- `Example-climate-workflow.md`
+- `example_request_yaml.md`
+
+### Terms and Acronyms
+
+#### Files:
+- `terms_acronyms.md`
+- `glossary.md`
+
+### Building and Executing Containerized Apps
+
+#### Files:
+- `docker_readme.md`
+- `deployment.md`
+- `Dockerfile.amd64.md`
+- `Dockerfile.arm64.md`
+
+### Platform Internals
+
+#### Files:
+- `platform.md`
+- `MonitoringDB.md`
+- `ProjectLoader.md`
+- `DBConnections.md`
+- `core_prj_struct.md`
+
+### Supplementary Documents
+
+#### Files:
+- `DBT.md`
+- `fts.md`
+- `pipelines.md`
+- `AppPipelineGenerator.md`
+- `TerritorialCodes.md`
+- `TestingWorkflows.md`
+
+### General Documentation Indices
+
+#### Files:
+- `index.md`
diff --git a/doc/cms.md b/doc/cms.md
index 337cfe40c..53ca8c487 100644
--- a/doc/cms.md
+++ b/doc/cms.md
@@ -1,134 +1,21 @@
-# Dorieh CMS Package (manipulating with Health Data)
-
-**Pipelines to process CMS data: Medicaid and Medicare**
+# Dorieh CMS Package (manipulating ResDac Health Data)
+Dorieh CMS package provides a number of standalone
+command line (CLI) utilities to handle health data
+provided by ResDac and modules that are used in
+ETL pipelines that build Health Data Warehouse
+and Feature Store.
```{toctree}
---
maxdepth: 4
glob: true
-hidden:
+caption: Health Data Processing
---
-Medicaid.md
+health_data_overview.md
Medicare.md
+MedicareLineage.md
+Medicaid.md
QueringMedicaid.md
```
-```{contents}
----
-local:
----
-```
-
-
-## Overview of health data (Medicare and Medicaid)
-
-We use health data provided by
-[Centers for Medicare & Medicaid Services (CMS)](https://www.cms.gov/)
-
-Data processing pipelines included in this package
-create a data warehouse with health data (Medicare and Medicaid).
-They perform ingestion of raw data into the database, data
-cleansing and deduplication , when possible, data quality analysis
-and optimization of the tables for efficient queries.
-
-Please see the following documents for details:
-
-* Data model and processing of [Medicaid](Medicaid.md) data
-* Data model and processing of [Medicare](Medicare.md) data
-* Tips on [querying of Medicaid data](QueringMedicaid.md)
-
-Medicare processing now includes a
-[pipeline to automatically create QC Tables](Medicare.md#creating-qc-tables).
-These tables are used by Apache Superset dashboard that visualizes QC results.
-
-## Project Structure
-
-Top level directories are:
-
- - doc
- - src
-
-Doc directory contains documentation.
-
-Src directory contains software source code. The directories under sources are:
-
- - cwl
- - python
-
-### CWL
-
-CWL folder contains reusable workflows, packaged as tools
-that can and should be used by
-all Dorieh pipelines.
-
-Each processing step of CMS data is packaged as a
-standalone tool that can be run individually.
-Each tool is individually documented.
-The tools are combined into a workflow represented by
-[medicaid.cwl](pipeline/medicaid)
-and
-[medicare.cwl](pipeline/medicare) files.
-
-### Python
-
-Python packages and modules are described in the
-[Python Package Description](CMSLibrary.md) document.
-
-Included are utilities to:
-
-* Parse FTS format and generate database schema
-
-
-### Data Model for health data
-
-The data model in YAML format is used to generate database schema and
-processing code to ingest data into the database. Read more about
-the modeling in the
-[Data Modeling](Datamodels.md).
-
-The model for raw data is automatically generated by parsing FTS
-files or analyzing SAS data.
-
-The following models are defined here:
-
-* [Medicaid processed data](members/medicaid_yaml.md). See also [](Medicaid.md)
- * Tables
- * `medicaid.beneficiaries` [details](Medicaid.md#beneficiaries)
- * `medicaid.enrollments` [details](Medicaid.md#enrollments)
- * `medicaid.eligibility` [details](Medicaid.md#eligibility)
- * `medicaid.admissions` [details](Medicaid.md#inpatient-admissions)
- * SQL Views, used internally for data processing
- * `medicaid.monthly`
- * `medicaid._eligibility`
-* [Medicare processed data](members/medicare_yaml.md). See also [](Medicare.md)
- * Tables
- * `medicare.beneficiaries` [details](Medicare.md#creating-beneficiaries-table)
- * `medicare.enrollments` [details](Medicare.md#creating-enrollments-table)
- * `medicare.admissions` [details](Medicare.md#creating-inpatient-admissions-table)
- * SQL Views, used internally for data processing
- * `medicare.ps` [Combined raw data for patient summaries](Medicare.md#creating-federated-patient-summary)
- * `medicare.` [Combined raw data for inpatient admissions](Medicare.md#creating-federated-admissions-view)
- * `medicare._ps`
- * `medicare._beneficiaries`
- * `medicare._enrollments`
-
-### SQL
-
-File [procedures](members/procedures.md)
-addresses the problem that creating
-[Medicaid eligibility table](Medicaid.md#eligibility)
-in a single transaction requires too much time and memory.
-The stored procedures in this file split populating this table
-with data either by beneficiary or by year and state. Splitting by beneficiary
-(i.e. using one database transaction per beneficiary) works best.
-
-File [functions](members/functions.md) contain helper functions
-to parse dates in non-standard formats that are encountered in
-raw medicare files that we have.
-
-(cms-indices-and-tables)=
-## Documentation Indices
-
-* [](genindex)
-* [](modindex)
diff --git a/doc/conf.py b/doc/conf.py
index 93ef9c0b8..f3773b694 100644
--- a/doc/conf.py
+++ b/doc/conf.py
@@ -45,9 +45,17 @@
'sphinx.ext.viewcode',
'sphinx_paramlinks',
'sphinx.ext.autosectionlabel',
+ 'sphinx.ext.graphviz',
+ 'sphinxcontrib.mermaid',
'myst_parser',
]
myst_heading_anchors = 5
+# Enable MyST extensions
+myst_enable_extensions = [
+ "colon_fence",
+ # other extensions...
+]
+
# Add any paths that contain templates here, relative to this directory.
templates_path = ['_templates']
diff --git a/doc/glossary.md b/doc/glossary.md
index cb9e0d429..36cb0f884 100644
--- a/doc/glossary.md
+++ b/doc/glossary.md
@@ -1,28 +1,29 @@
# Terms and acronyms used in this documentation
-| Term | Expansion | More Info |
-|----------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------|
-| Airflow | A Workflow management system | [Wikipedia](https://en.wikipedia.org/wiki/Apache_Airflow) |
-| AirNow | US Government source for air quality data | [Website](https://www.airnow.gov/) |
-| AQS | Air Quality System: US Government source for air quality data | [Website](https://www.epa.gov/aqs) |
-| CCW | Chronic Condition Data Warehouse | [Website](https://www.healthypeople.gov/2020/data-source/chronic-condition-data-warehouse) |
-| CMS | Centers for Medicare & Medicaid Services | [Website](https://www.cms.gov/) |
-| CRS | Coordinate reference system | [Wikipedia](https://en.wikipedia.org/wiki/Spatial_reference_system) |
-| CSV | File format, comma separated values | [Wikipedia](https://en.wikipedia.org/wiki/Comma-separated_values) |
-| CWL | Common Workflow Language | [Wikipedia](https://en.wikipedia.org/wiki/Common_Workflow_Language) and [Website](https://www.commonwl.org/v1.2/) |
-| DBMS | Database Management System | [Wikipedia](https://en.wikipedia.org/wiki/Database#Database_management_system) |
-| EPA | U.S. Environmental Protection Agency | [Website](https://www.epa.gov/) |
-| EPSG | The IOGP's EPSG Geodetic Parameter Dataset is a collection of definitions of coordinate reference systems and coordinate transformations. 4326 is the EPSG identifier of WGS84 | [Website](https://epsg.org/home.html) |
-| FST | File format used by R | [Description](https://www.fstpackage.org/) |
-| FTS | File Transfer Summary, often created by SAS | [More details](fts) |
-| gridMET | a dataset of daily high-spatial resolution surface meteorological data | [Website](http://www.climatologylab.org/gridmet.html) |
-| HDF5 | File format (hierarchical) | [Wikipedia](https://en.wikipedia.org/wiki/Hierarchical_Data_Format) and [Website](https://www.hdfgroup.org/) |
-| HLL | HyperLogLog is an algorithm for approximating the number of distinct elements in resulting query | [Wikipedia](https://en.wikipedia.org/wiki/HyperLogLog) |
-| MAX data | Medicaid Medicaid Analytic eXtract (MAX) data | [Information](https://www.cms.gov/Research-Statistics-Data-and-Systems/Computer-Data-and-Systems/MedicaidDataSourcesGenInfo/MAXGeneralInformation) |
-| OOM | Out of Memory Error | |
-| SAS | Statistical Analysis System, a popular software tool | [Wikipedia](https://en.wikipedia.org/wiki/SAS_(software)) and [Company website](https://www.sas.com/) |
-| SQL | Structured Query Language | [Wikipedia](https://en.wikipedia.org/wiki/SQL) |
-| WGS 84 | The World Geodetic System (WGS) is a standard for use in cartography, geodesy, and satellite navigation including GPS. 4326 is the EPSG identifier of WGS84 | [Wikipedia](https://en.wikipedia.org/wiki/World_Geodetic_System) and [documentation](http://www.unoosa.org/pdf/icg/2012/template/WGS_84.pdf) |
+| Term | Expansion | More Info |
+|-------------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------|
+| 7BDAT | Proprietary binary data file format used by SAS software to store datasets (.sas7bdat extension). The file extension is .sas7bdat, but it's often referred to as 7BDAT in development workflows. SAS uses this format to store structured data tables, including metadata (column names, types, etc.). | [SAS Inrospector](members/mcr_sas2yaml.rst), [SAS Data Laoder](members/mcr_sas2db.rst) |
+| Airflow | A Workflow management system | [Wikipedia](https://en.wikipedia.org/wiki/Apache_Airflow) |
+| AirNow | US Government source for air quality data | [Website](https://www.airnow.gov/) |
+| AQS | Air Quality System: US Government source for air quality data | [Website](https://www.epa.gov/aqs) |
+| CCW | Chronic Condition Data Warehouse | [Website](https://www.healthypeople.gov/2020/data-source/chronic-condition-data-warehouse) |
+| CMS | Centers for Medicare & Medicaid Services | [Website](https://www.cms.gov/) |
+| CRS | Coordinate reference system | [Wikipedia](https://en.wikipedia.org/wiki/Spatial_reference_system) |
+| CSV | File format, comma separated values | [Wikipedia](https://en.wikipedia.org/wiki/Comma-separated_values) |
+| CWL | Common Workflow Language | [Wikipedia](https://en.wikipedia.org/wiki/Common_Workflow_Language) and [Website](https://www.commonwl.org/v1.2/) |
+| DBMS | Database Management System | [Wikipedia](https://en.wikipedia.org/wiki/Database#Database_management_system) |
+| EPA | U.S. Environmental Protection Agency | [Website](https://www.epa.gov/) |
+| EPSG | The IOGP's EPSG Geodetic Parameter Dataset is a collection of definitions of coordinate reference systems and coordinate transformations. 4326 is the EPSG identifier of WGS84 | [Website](https://epsg.org/home.html) |
+| FST | File format used by R | [Description](https://www.fstpackage.org/) |
+| FTS | File Transfer Summary, often created by SAS | [More details](fts) |
+| gridMET | a dataset of daily high-spatial resolution surface meteorological data | [Website](http://www.climatologylab.org/gridmet.html) |
+| HDF5 | File format (hierarchical) | [Wikipedia](https://en.wikipedia.org/wiki/Hierarchical_Data_Format) and [Website](https://www.hdfgroup.org/) |
+| HLL | HyperLogLog is an algorithm for approximating the number of distinct elements in resulting query | [Wikipedia](https://en.wikipedia.org/wiki/HyperLogLog) |
+| MAX data | Medicaid Medicaid Analytic eXtract (MAX) data | [Information](https://www.cms.gov/Research-Statistics-Data-and-Systems/Computer-Data-and-Systems/MedicaidDataSourcesGenInfo/MAXGeneralInformation) |
+| OOM | Out of Memory Error | |
+| SAS | Statistical Analysis System, a popular software tool | [Wikipedia](https://en.wikipedia.org/wiki/SAS_(software)) and [Company website](https://www.sas.com/) |
+| SQL | Structured Query Language | [Wikipedia](https://en.wikipedia.org/wiki/SQL) |
+| WGS 84 | The World Geodetic System (WGS) is a standard for use in cartography, geodesy, and satellite navigation including GPS. 4326 is the EPSG identifier of WGS84 | [Wikipedia](https://en.wikipedia.org/wiki/World_Geodetic_System) and [documentation](http://www.unoosa.org/pdf/icg/2012/template/WGS_84.pdf) |
diff --git a/doc/guts.md b/doc/guts.md
index 7b7db1df4..71037933b 100644
--- a/doc/guts.md
+++ b/doc/guts.md
@@ -8,6 +8,7 @@ caption: Data Platform Internals
platform
deployment
DBConnections
-Monitoring database activity
+Monitoring database activity
ProjectLoader
```
+
diff --git a/doc/health_data_overview.md b/doc/health_data_overview.md
new file mode 100644
index 000000000..75ee68c60
--- /dev/null
+++ b/doc/health_data_overview.md
@@ -0,0 +1,161 @@
+# Health Data in Dorieh (Medicare and Medicaid)
+
+```{contents}
+---
+local:
+---
+```
+
+
+## Overview of Health Data Processing
+
+Dorieh includes Data processing pipelines to
+ingest and process health datasets provided by the
+[Centers for Medicare & Medicaid Services (CMS)](https://www.cms.gov/) via
+[ResDac](https://resdac.org/).
+
+These pipelines build a data warehouse from ResDAC-delivered
+raw data files (both Medicare and Medicaid), preparing the data
+for analysis and visualization. The data warehouse can
+be used as Feature Store for building ML/AI models.
+
+The workflow performs:
+
+* Ingestion of raw fixed-width and SAS-based files into a relational database
+* Data cleansing and deduplication (where possible)
+* Creation of standardized and federated tables
+* Computation of quality metrics (QC)
+* Optimization for efficient querying
+
+For more details, refer to:
+
+* [Medicare](Medicare.md) processing workflow and data model (schema)
+* [Medicaid](Medicaid.md) processing workflow and data model (schema)
+* Tips on [querying of Medicaid data](QueringMedicaid.md)
+
+Medicare processing workflow includes a
+[pipeline to automatically generate Quality COntrol (QC) Tables](Medicare.md#creating-qc-tables).
+
+These tables can be visualized in the included Apache Superset dashboard.
+
+## Project Structure
+
+Top level directories at the repository root are:
+
+ - doc
+ - src
+
+* The `doc/` directory contains this documentation.
+* The `src/` directory contains source code, organized as follows:
+
+
+ - cwl
+ - python
+
+### CWL Workflows
+
+The `cwl/` folder contains reusable Common Workflow Language (CWL)
+tools and workflows. Each CMS data processing step (
+e.g. ingest, combine, transform) is implemented as a modular CWL tool.
+
+CWL tools are documented individually
+Tools are combined into full workflows, such as:
+
+* [Medicare Pipeline](pipeline/medicare) files.
+* [Medicaid Pipeline](pipeline/medicaid)
+
+
+### Python Utilities
+
+The `python/` directory provides CLI tools and
+reusable modules, documented in:
+
+* [CMS Python Package Overview](CMSLibrary.md).
+
+These include:
+
+* Parsing fixed-width data layouts from FTS files
+* Working with SAS7BDAT files
+* Generating dynamic schemas (YAML models)
+* Data loading and validation
+* PostgreSQL utilities (indexing, vacuuming)
+
+
+### Data Model for health data
+
+We define a YAML-based data model (schema) to describe each
+processing table.
+
+This model is used to:
+
+* Automatically generate SQL DDL statements
+* Control how data is read from files and loaded into the database
+* Standardize naming conventions, indexing, and transformations
+
+Schemas are:
+
+* Automatically generated via FTS parsing (for 2011+ ResDAC files)
+* Programmatically introspected from SAS7BDAT files (for 1999–2010 Medicare data)
+
+#### Medicare Tables
+
+See also:
+
+* 📄 [Medicare Data Model (YAML)](members/medicare_yaml.md)
+* 🔗 [Medicare pipeline documentation](Medicare.md)
+
+Main Tables:
+
+* `medicare.beneficiaries` [details](Medicare.md#creating-beneficiaries-table)
+* `medicare.enrollments` [details](Medicare.md#creating-enrollments-table)
+* `medicare.admissions` [details](Medicare.md#creating-inpatient-admissions-table)
+
+Federated / intermediate SQL Views:
+
+* `medicare.ps` [Union of raw data for patient summaries](Medicare.md#creating-federated-patient-summary)
+* `medicare.ip` [Union of raw data for inpatient admissions](Medicare.md#creating-federated-admissions-view)
+* `medicare._ps`
+* `medicare._beneficiaries`
+* `medicare._enrollments`
+
+
+#### Medicaid Tables
+
+See also:
+
+* 📄 [Medicaid Data Model (YAML)](members/medicaid_yaml.md)
+* 🔗 [Medicaid processing steps](Medicaid.md)
+
+Tables:
+
+* `medicaid.beneficiaries` [details](Medicaid.md#beneficiaries)
+* `medicaid.enrollments` [details](Medicaid.md#enrollments)
+* `medicaid.eligibility` [details](Medicaid.md#eligibility)
+* `medicaid.admissions` [details](Medicaid.md#inpatient-admissions)
+
+Federated / intermediate SQL Views:
+
+* `medicaid.monthly`
+* `medicaid._eligibility`
+
+### SQL Utilities
+
+#### Stored Procedures
+
+📄 [Procedures](members/procedures.md)
+help scale population of large tables like
+[eligibility](Medicaid.md#eligibility),
+by batching inserts by beneficiary, or by year and state.
+This avoids resource exhaustion in large transactions.
+
+#### Date Parsing Functions
+
+📄 [Custom SQL functions](members/functions.md) to parse
+non-standard date formats
+commonly found in legacy Medicare files and ResDAC data.
+
+(cms-indices-and-tables)=
+## Documentation Indices
+
+* [](genindex)
+* [](modindex)
diff --git a/doc/home.md b/doc/home.md
index b6f38967a..d69687d45 100644
--- a/doc/home.md
+++ b/doc/home.md
@@ -165,7 +165,7 @@ provide direct access to the Dorieh components.
## Building Platform documentation
-The [documentation](https://nsaph-data-platform.github.io/dorieh/)
+The [documentation](https://foromeplatform.github.io/dorieh//)
contains general documentation pages in
[MarkDown](https://www.markdownguide.org/)
format and a build script that goes over all other platform
@@ -177,14 +177,14 @@ To build documentation:
1. Clone Dorieh project:
- git clone https://github.com/NSAPH-Data-Platform/dorieh.git
+ git clone https://github.com/ForomePlatform/dorieh.git
2. Cd into the prject directory:
cd dorieh
3. Create virtual environment (e.g., named `.dorieh`):
python -m venv .dorieh
-4. Run [build_documentation](https://github.com/NSAPH-Data-Platform/dorieh/blob/main/build_documentation.sh) shell script:
+4. Run [build_documentation](https://github.com/ForomePlatform/dorieh/blob/main/build_documentation.sh) shell script:
source .dorieh/bin/activate && ./build_documentation.sh
diff --git a/doc/index.md b/doc/index.md
index 1612e4fec..e7e079845 100644
--- a/doc/index.md
+++ b/doc/index.md
@@ -10,7 +10,9 @@ What is Data Platform
domains
pipelines
Python Packages
+Datamodels
examples
+Tutorial: Building a Data preparation Workflow
guts
DBT
Adding more data
diff --git a/doc/members/airnow_ds_def.rst b/doc/members/airnow_ds_def.rst
index ff3759520..81d61ba0d 100644
--- a/doc/members/airnow_ds_def.rst
+++ b/doc/members/airnow_ds_def.rst
@@ -13,10 +13,12 @@ Abstract Context
.. autoclass:: dorieh.utils.context.Context
:members:
+ :noindex:
Argument
^^^^^^^^
.. autoclass:: dorieh.utils.context.Argument
:members:
+ :noindex:
diff --git a/doc/members/create_test.md b/doc/members/create_test.md
deleted file mode 100644
index caaff98a5..000000000
--- a/doc/members/create_test.md
+++ /dev/null
@@ -1,56 +0,0 @@
-Utility to generate test queries
-================================
-
-```{toctree}
----
-maxdepth: 2
-glob: true
-hidden:
----
-dbt_runner.md
-getn_dbt_cwl.rst
-```
-
-```{contents}
----
-local:
----
-```
-
-Generates SQL script that can be used with [dbt_runner](dbt_runner).
-These scripts are used by [](gen_dbt_cwl).
-
-
-Usage
------
-
- python -m dorieh.platform.dbt.create_test --script SCRIPT [SCRIPT ...]
- [--table TABLE]
- [--db DB]
- [--connection CONNECTION]
- [--autocommit]
- [-h]
- [--verbose]
-
-Options:
-
-| Option | Alias | Description |
-|-------------------------------|--------------------------------|------------------------------------------------------------------------------------------------|
-| `--help` | `-h` | Show this help message and exit |
-| `--script SCRIPT [SCRIPT...]` | `-s SCRIPT [SCRIPT...]` | Path to the file to write the test scripts |
-| `--autocommit` | | Use autocommit, default: False |
-| `--database DB` | `--db DB` | Path to a database connection parameters file, default: database.ini (in the working directory |
-| `--connection CONNECTION` | `--connection_name CONNECTION` | Section in the database connection parameters file |
-| `--table TABLE` | `-t TABLE` | Name of the table to being tested, default: None |
-| `--verbose` | | Verbose output, default: False |
-
-
-
-Details
--------
-
-```{automodule} dorieh.platform.dbt.create_test
-:members:
-:undoc-members:
-```
-
diff --git a/doc/members/create_test.rst b/doc/members/create_test.rst
new file mode 100644
index 000000000..0c356dece
--- /dev/null
+++ b/doc/members/create_test.rst
@@ -0,0 +1,67 @@
+Utility to generate test queries
+================================
+
+.. toctree::
+ :maxdepth: 2
+ :glob:
+ :hidden:
+
+ dbt_runner
+ gen_dbt_cwl
+
+.. contents::
+ :local:
+
+Generates SQL script that can be used with :doc:`dbt_runner`.
+These scripts are used by :doc:`gen_dbt_cwl`.
+
+Usage
+-----
+
+::
+
+ python -m dorieh.platform.dbt.create_test --script SCRIPT [SCRIPT ...]
+ [--table TABLE]
+ [--db DB]
+ [--connection CONNECTION]
+ [--autocommit]
+ [-h]
+ [--verbose]
+
+Options:
+
+.. list-table:: Options
+ :widths: 25 25 50
+ :header-rows: 1
+
+ * - Option
+ - Alias
+ - Description
+ * - ``--help``
+ - ``-h``
+ - Show this help message and exit
+ * - ``--script SCRIPT [SCRIPT...]``
+ - ``-s SCRIPT [SCRIPT...]``
+ - Path to the file to write the test scripts
+ * - ``--autocommit``
+ -
+ - Use autocommit, default: False
+ * - ``--database DB``
+ - ``--db DB``
+ - Path to a database connection parameters file, default: database.ini (in the working directory
+ * - ``--connection CONNECTION``
+ - ``--connection_name CONNECTION``
+ - Section in the database connection parameters file
+ * - ``--table TABLE``
+ - ``-t TABLE``
+ - Name of the table to being tested, default: None
+ * - ``--verbose``
+ -
+ - Verbose output, default: False
+
+Details
+-------
+
+.. automodule:: dorieh.platform.dbt.create_test
+ :members:
+ :undoc-members:
diff --git a/doc/members/data_loader.rst b/doc/members/data_loader.rst
index 1060f18ad..ab86a7e58 100644
--- a/doc/members/data_loader.rst
+++ b/doc/members/data_loader.rst
@@ -24,8 +24,10 @@ Configuration
-------------
.. automodule:: dorieh.platform.loader.common
:members:
+ :noindex:
.. automodule:: dorieh.platform.loader.loader_config
:members:
+ :noindex:
.. toctree::
diff --git a/doc/members/dbt_runner.md b/doc/members/dbt_runner.md
deleted file mode 100644
index 05135499a..000000000
--- a/doc/members/dbt_runner.md
+++ /dev/null
@@ -1,46 +0,0 @@
-Utility to generate test queries
-================================
-
-Runs SQL script(s) that tests that the content of the database has not changed.
-The scripts are presumed to be generated by [create_test](create_test) Python module,
-but can be also written manually or generated by other tools as long as the query produces
-a string column named "**passed**" that contains values `passed` or `failed`.
-
-Used by [](gen_dbt_cwl).
-
-
-Usage
------
-
- python -m dorieh.platform.dbt.dbt_runner [-h] --script SCRIPT [SCRIPT ...]
- [--autocommit] [--db DB] [--connection CONNECTION]
- [--verbose] [--table TABLE]
-
-Options:
-
-
-| Option | Alias | Description |
-|-------------------------------|--------------------------------|-------------------------------------------------------------------------------------------------|
-| `--help` | `-h` | Show this help message and exit |
-| `--script SCRIPT [SCRIPT...]` | `-s SCRIPT [SCRIPT...]` | Path to the file(s) containing test scripts to execute |
-| `--autocommit` | | Use autocommit, default: False |
-| `--database DB` | `--db DB` | Path to a database connection parameters file, default: database.ini (in the working directory) |
-| `--connection CONNECTION` | `--connection_name CONNECTION` | Section in the database connection parameters file |
-| `--table TABLE` | `-t TABLE` | Name of the table to test, default: None |
-| `--verbose` | | Verbose output, default: False |
-
-
-
-
-
-Details
--------
-
-
-```{automodule} dorieh.platform.dbt.dbt_runner
-:members:
-:undoc-members:
-```
-
-
-
diff --git a/doc/members/dbt_runner.rst b/doc/members/dbt_runner.rst
new file mode 100644
index 000000000..c6b669591
--- /dev/null
+++ b/doc/members/dbt_runner.rst
@@ -0,0 +1,57 @@
+Test runner: Utility to run generated tests
+===========================================
+
+Runs SQL script(s) that tests that the content of the database has not changed.
+The scripts are presumed to be generated by :doc:`create_test`.
+Python module, but can be also written manually or generated by other tools as long as the query produces
+a string column named "**passed**" that contains values ``passed`` or ``failed``.
+
+Used by :doc:`gen_dbt_cwl`.
+
+Usage
+-----
+
+::
+
+ python -m dorieh.platform.dbt.dbt_runner [-h] --script SCRIPT [SCRIPT ...]
+ [--autocommit] [--db DB] [--connection CONNECTION]
+ [--verbose] [--table TABLE]
+
+Options:
+
+.. list-table:: Options
+ :widths: 25 25 50
+ :header-rows: 1
+
+ * - Option
+ - Alias
+ - Description
+ * - ``--help``
+ - ``-h``
+ - Show this help message and exit
+ * - ``--script SCRIPT [SCRIPT...]``
+ - ``-s SCRIPT [SCRIPT...]``
+ - Path to the file(s) containing test scripts to execute
+ * - ``--autocommit``
+ -
+ - Use autocommit, default: False
+ * - ``--database DB``
+ - ``--db DB``
+ - Path to a database connection parameters file, default: database.ini (in the working directory)
+ * - ``--connection CONNECTION``
+ - ``--connection_name CONNECTION``
+ - Section in the database connection parameters file
+ * - ``--table TABLE``
+ - ``-t TABLE``
+ - Name of the table to test, default: None
+ * - ``--verbose``
+ -
+ - Verbose output, default: False
+
+Details
+-------
+
+.. automodule:: dorieh.platform.dbt.dbt_runner
+ :members:
+ :undoc-members:
+
diff --git a/doc/members/domain_dictionary.rst b/doc/members/domain_dictionary.rst
new file mode 100644
index 000000000..71c76f91e
--- /dev/null
+++ b/doc/members/domain_dictionary.rst
@@ -0,0 +1,105 @@
+The Data Dictionary Generation tool
+===================================
+
+Generating data dictionary
+--------------------------
+
+In Dorieh, one can define a data model, including tables
+(or views and materialized views), columns, indices and
+relations between tables (foreign keys) using
+:doc:`Dorieh DSL <../Datamodels>`. The DSL also describes
+how the original incoming data should be transformed to
+create the eventual data structure.
+
+The Data dictionary tool generates documentation for the data
+elements (such as tables and columns) in the data model and data lineage
+diagrams at the tables levels and at column levels for every column.
+
+The output of the tool is described below.
+
+Domain Dictionary Output
+-------------------------
+.. _domain-dictionary-output:
+
+* Main table-level data lineage diagram showing the order of the
+ data processing and the dependencies between tables.
+* If the diagram is generated using SVG format, then every table
+ is clickable, linked to a file with the table description.
+* Every table description file includes verbal description, SQL or DDL
+ used to create the table and the list of all columns in the table.
+ Each column is linked to another file with detailed description
+ for this column.
+* Each column description file contains a description of the column
+ and a lineage diagram for the column showing what columns in which tables
+ have been used to compute the value of this column. The SVG
+ diagram is clickable and every element is linked to the description
+ file for the column.
+* File, containing alphabetical list of all columns in all tables.
+ For every column a list of tables in which the column is present
+ is displayed. During the transformation process columns are
+ transferred from one table to another, hence a column usually is present in
+ multiple tables.
+
+
+The tool first generates Markdown files that can be subsequently converted to HTML.
+
+There are two modes for Markdown generation:
+
+* Standalone mode, when Pandoc is used to generate HTML
+* Sphinx mode designed to produce files that will be included in the Sphinx generated documentation
+
+Usage
+-----
+
+::
+
+ python -m dorieh.platform.dictionary.domain_dictionary
+ [-h] [--fmt {none,png,gif,ps2,svg,cmapx,jpeg}]
+ [--lod {full,none,min}]
+ [--mode {standalone,sphinx}]
+ [--output OUTPUT]
+ yaml [yaml ...]
+
+Positional arguments:
+
+.. list-table:: Positional Arguments
+ :widths: 20 80
+ :header-rows: 1
+
+ * - Argument
+ - Description
+ * - ``yaml``
+ - Paths to YAML files with domain definitions
+
+Options:
+
+.. list-table:: Options
+ :widths: 25 25 50
+ :header-rows: 1
+
+ * - Option
+ - Alias
+ - Description
+ * - ``--help``
+ - ``-h``
+ - Show this help message and exit
+ * - ``--fmt {none,png,gif,ps2,svg,cmapx,jpeg}``
+ - ``-f {none,png,gif,ps2,svg,cmapx,jpeg}``
+ - Format of generated image, if 'none', then no image is generated
+ * - ``--lod {full,none,min}``
+ -
+ - Level of details
+ * - ``--mode {standalone,sphinx}``
+ -
+ - Documentation generation mode
+ * - ``--output OUTPUT``
+ - ``--of OUTPUT, -o OUTPUT``
+ - Path to the main output file with Table-level data lineage diagram
+
+Details
+-------
+
+.. automodule:: dorieh.platform.dictionary.domain_dictionary
+ :members:
+ :undoc-members:
+
diff --git a/doc/members/gis_constants.rst b/doc/members/gis_constants.rst
index 7242e65ec..f4fc84f18 100644
--- a/doc/members/gis_constants.rst
+++ b/doc/members/gis_constants.rst
@@ -5,14 +5,17 @@ GIS Related Enums
.. autoclass:: dorieh.gis.downloader.CensusShapeCollection
:members:
:undoc-members:
+ :noindex:
.. autoclass:: dorieh.gis.constants.Geography
:members:
:undoc-members:
+ :noindex:
.. autoclass:: dorieh.gis.constants.RasterizationStrategy
:members:
:undoc-members:
+ :noindex:
diff --git a/doc/members/pg_export_parquet.rst b/doc/members/pg_export_parquet.rst
index c9ae0d9da..f6d222fce 100644
--- a/doc/members/pg_export_parquet.rst
+++ b/doc/members/pg_export_parquet.rst
@@ -16,7 +16,8 @@ Usage
.. code-block::
- pg_export_parquet.py [-h] [--sql SQL] [--schema SCHEMA] [--table TABLE]
+ python -u -m dorieh.platform.util.pg_export_parquet
+ [-h] [--sql SQL] [--schema SCHEMA] [--table TABLE]
[--partition PARTITION [PARTITION ...]] --output
OUTPUT --db DB --connection CONNECTION
[--batch_size BATCH_SIZE] [--hard]
diff --git a/doc/pipeline-by-claude.dot b/doc/pipeline-by-claude.dot
new file mode 100644
index 000000000..41e3d1706
--- /dev/null
+++ b/doc/pipeline-by-claude.dot
@@ -0,0 +1,202 @@
+digraph medicare_pipeline {
+ // Global graph settings
+ rankdir=TB;
+ splines=ortho;
+ nodesep=0.7;
+ ranksep=1.2;
+ bgcolor="#FAFAFA";
+ fontname="Helvetica";
+
+ // Edge defaults
+ edge [penwidth=2.5, arrowsize=0.8];
+
+ // ========== RAW DATA SOURCES ==========
+ subgraph cluster_sources {
+ label=<📦 Raw Data Sources>;
+ style="rounded,filled";
+ color="#B71C1C";
+ fillcolor="#FFEBEE";
+ penwidth=2;
+ fontsize=16;
+ margin=20;
+
+ node [shape=cylinder, style="filled", fillcolor="#EF5350",
+ fontcolor=white, color="#C62828", penwidth=2, height=0.8];
+
+ ey1 [label="Enrollments\n2019"];
+ ey2 [label="Enrollments\n2020"];
+ ey3 [label="Enrollments\n2021"];
+ ay1 [label="Admissions\n2019"];
+ ay2 [label="Admissions\n2020"];
+ ay3 [label="Admissions\n2021"];
+ }
+
+ // ========== BRONZE LAYER ==========
+ subgraph cluster_bronze {
+ label=<🥉 Bronze Layer: Raw Ingestion>;
+ style="rounded,filled";
+ color="#E65100";
+ fillcolor="#FFF3E0";
+ penwidth=2;
+ fontsize=16;
+ margin=20;
+
+ node [shape=box, style="rounded,filled,bold", fillcolor="#FFB74D",
+ color="#F57C00", penwidth=2, fontsize=11];
+
+ bronzee1 [label="📥 Ingest"];
+ bronzee2 [label="📥 Ingest"];
+ bronzee3 [label="📥 Ingest"];
+ bronzea1 [label="📥 Ingest"];
+ bronzea2 [label="📥 Ingest"];
+ bronzea3 [label="📥 Ingest"];
+ }
+
+ // ========== HARMONIZATION LAYER ==========
+ subgraph cluster_harmonize {
+ label=<🔧 Harmonization: Schema Alignment>;
+ style="rounded,filled";
+ color="#F57F17";
+ fillcolor="#FFFDE7";
+ penwidth=2;
+ fontsize=16;
+ margin=20;
+
+ node [shape=hexagon, style="filled", fillcolor="#FFF59D",
+ color="#F9A825", penwidth=2, fontsize=11];
+
+ harmonizee1 [label="⚙️ Harmonize"];
+ harmonizee2 [label="⚙️ Harmonize"];
+ harmonizee3 [label="⚙️ Harmonize"];
+ harmonizea1 [label="⚙️ Harmonize"];
+ harmonizea2 [label="⚙️ Harmonize"];
+ harmonizea3 [label="⚙️ Harmonize"];
+ }
+
+ // ========== CONSOLIDATION ==========
+ node [shape=diamond, style="filled,bold", fillcolor="#81C784",
+ color="#388E3C", penwidth=3, fontsize=12, width=2, height=1.2];
+
+ consoledatee [label="🔗 Consolidate\nEnrollments"];
+ consoledatea [label="🔗 Consolidate\nAdmissions"];
+
+ // ========== SILVER LAYER ==========
+ subgraph cluster_silver {
+ label=<🥈 Silver Layer: Curated and Validated>;
+ style="rounded,filled";
+ color="#455A64";
+ fillcolor="#ECEFF1";
+ penwidth=3;
+ fontsize=16;
+ margin=25;
+
+ // Normalization nodes
+ node [shape=parallelogram, style="filled,bold", fillcolor="#90CAF9",
+ color="#1976D2", penwidth=2, fontsize=11, skew=0.3];
+
+ normalizee [label="📊 Normalize\nEnrollments"];
+ normalizea [label="📊 Normalize\nAdmissions"];
+
+ // Master index - special node
+ node [shape=octagon, style="filled,bold", fillcolor="#CE93D8",
+ color="#7B1FA2", penwidth=3, fontsize=12, width=2.2];
+
+ build_master_bene [label="🔑 Master\nBeneficiaries\nIndex"];
+
+ // Cleansing nodes
+ node [shape=component, style="filled,rounded", fillcolor="#80DEEA",
+ color="#00838F", penwidth=2, fontsize=11];
+
+ cleanse_enrollments [label="🧹 Cleanse\nEnrollments"];
+ cleanse_admissions [label="🧹 Cleanse\nAdmissions"];
+
+ // Build nodes
+ node [shape=folder, style="filled,rounded,bold", fillcolor="#A5D6A7",
+ color="#2E7D32", penwidth=2, fontsize=11];
+
+ build_enrollments [label="✅ Build\nEnrollments\nTable"];
+ build_admissions [label="✅ Build\nAdmissions\nTable"];
+ }
+
+ // ========== GOLD LAYER ==========
+ node [shape=star, style="filled,bold", fillcolor="#FFD54F",
+ color="#F57F17", penwidth=4, fontsize=13, width=2.5, height=2.5];
+
+ build_gold1 [label="⭐ Gold:\nAdmissions\nQC Metrics"];
+
+ // ========== EDGES: Raw to Bronze ==========
+ edge [color="#E53935", penwidth=2, style=solid, arrowhead=normal];
+ ey1 -> bronzee1;
+ ey2 -> bronzee2;
+ ey3 -> bronzee3;
+ ay1 -> bronzea1;
+ ay2 -> bronzea2;
+ ay3 -> bronzea3;
+
+ // ========== EDGES: Bronze to Harmonize ==========
+ edge [color="#FB8C00", penwidth=2, style=solid, arrowhead=vee];
+ bronzee1 -> harmonizee1;
+ bronzee2 -> harmonizee2;
+ bronzee3 -> harmonizee3;
+ bronzea1 -> harmonizea1;
+ bronzea2 -> harmonizea2;
+ bronzea3 -> harmonizea3;
+
+ // ========== EDGES: Harmonize to Consolidate ==========
+ edge [color="#FDD835", penwidth=2.5, style=bold, arrowhead=diamond];
+ harmonizee1 -> consoledatee;
+ harmonizee2 -> consoledatee;
+ harmonizee3 -> consoledatee;
+ harmonizea1 -> consoledatea;
+ harmonizea2 -> consoledatea;
+ harmonizea3 -> consoledatea;
+
+ // ========== EDGES: Enrollments Silver Path ==========
+ edge [color="#1976D2", penwidth=3, style=solid, arrowhead=normal];
+ consoledatee -> normalizee;
+ normalizee -> build_master_bene;
+ build_master_bene -> cleanse_enrollments;
+ cleanse_enrollments -> build_enrollments;
+
+ // ========== EDGES: Admissions Silver Path ==========
+ edge [color="#00838F", penwidth=3, style=solid, arrowhead=normal];
+ consoledatea -> normalizea;
+ normalizea -> cleanse_admissions;
+ cleanse_admissions -> build_admissions;
+
+ // ========== EDGES: Cross-Dependencies (CRITICAL) ==========
+ edge [color="#D32F2F", penwidth=4, style=dashed, arrowhead=normal, constraint=false];
+ build_master_bene -> cleanse_admissions [xlabel="referential\nintegrity", fontsize=9, fontcolor="#D32F2F"];
+ build_enrollments -> cleanse_admissions [xlabel="referential\nintegrity", fontsize=9, fontcolor="#D32F2F"];
+
+ // ========== EDGES: Silver to Gold ==========
+ edge [color="#F9A825", penwidth=4, style=bold, arrowhead=odiamond];
+ build_admissions -> build_gold1;
+
+ // ========== LEGEND ==========
+ subgraph cluster_legend {
+ label=<📖 Legend>;
+ style="rounded,filled";
+ color="#757575";
+ fillcolor="#FFFFFF";
+ penwidth=2;
+ fontsize=12;
+ margin=15;
+
+ node [shape=plaintext, fontsize=10];
+ legend [label=<
+
🔴 Raw Data Flow
+
🟠 Ingestion and Harmonization
+
🔵 Silver Processing
+
🔴⚠️ Critical Dependencies
+
🟡 Gold Analytics
+
+
Shapes:
+
🗄️ Cylinder = Data Source
+
⬢ Hexagon = Transformation
+
💎 Diamond = Merge/Union
+
🔑 Octagon = Master Index
+
⭐ Star = Final Output
+
>];
+ }
+}
\ No newline at end of file
diff --git a/doc/pipeline.dot b/doc/pipeline.dot
new file mode 100644
index 000000000..e537f2d10
--- /dev/null
+++ b/doc/pipeline.dot
@@ -0,0 +1,57 @@
+digraph {
+ ey1 [label = "Enrollments Data for YEAR1"];
+ ey2 [label = "Enrollments Data for YEAR2"];
+ ey3 [label = "Enrollments Data for YEAR3"];
+
+ ay1 [label = "Inpatient Admissions Data for YEAR1"];
+ ay2 [label = "Inpatient Admissions Data for YEAR2"];
+ ay3 [label = "Inpatient Admissions Data for YEAR3"];
+
+ bronzee1 [label = "Ingest into Bronze Layer"];
+ bronzee2 [label = "Ingest into Bronze Layer"];
+ bronzee3 [label = "Ingest into Bronze Layer"];
+
+ bronzea1 [label = "Ingest into Bronze Layer"];
+ bronzea2 [label = "Ingest into Bronze Layer"];
+ bronzea3 [label = "Ingest into Bronze Layer"];
+
+ harmonizee1 [label = "Harmonize Data"];
+ harmonizee2 [label = "Harmonize Data"];
+ harmonizee3 [label = "Harmonize Data"];
+ harmonizea1 [label = "Harmonize Data"];
+ harmonizea2 [label = "Harmonize Data"];
+ harmonizea3 [label = "Harmonize Data"];
+
+ consoledatee [label = "Consolidate Enrollments Data"];
+ consoledatea [label = "Consolidate Admissions Data"];
+
+ normalizee [label = "Normalize Data"];
+ normalizea [label = "Normalize Data"];
+
+ build_master_bene [label = "Aggregate and build Master Beneficiaries Index"];
+ cleanse_enrollments [label = "Cleanse Enrollments Data"];
+ build_enrollments [label = "Build Enrollments Silver Layer"];
+
+ cleanse_admissions [label = "Cleanse Admissions Data"];
+ build_admissions [label = "Build Admissions Silver Layer"];
+
+ build_gold1 [label = "Build Gold Layer: Admissions QC"];
+
+ ey1 -> bronzee1 -> harmonizee1 -> consoledatee;
+ ey2 -> bronzee2 -> harmonizee2 -> consoledatee;
+ ey3 -> bronzee3 -> harmonizee3 -> consoledatee;
+
+ consoledatee -> normalizee -> build_master_bene -> cleanse_enrollments -> build_enrollments;
+
+ ay1 -> bronzea1 -> harmonizea1 -> consoledatea;
+ ay2 -> bronzea2 -> harmonizea2 -> consoledatea;
+ ay3 -> bronzea3 -> harmonizea3 -> consoledatea;
+
+ consoledatea -> normalizea;
+ normalizea -> cleanse_admissions;
+ build_master_bene -> cleanse_admissions;
+ build_enrollments -> cleanse_admissions;
+ cleanse_admissions -> build_admissions;
+
+ build_admissions -> build_gold1;
+}
\ No newline at end of file
diff --git a/doc/pipeline/jobs/test_gridmet_job.md b/doc/pipeline/jobs/test_gridmet_job.md
index d3c9b1de0..dd2b71258 100644
--- a/doc/pipeline/jobs/test_gridmet_job.md
+++ b/doc/pipeline/jobs/test_gridmet_job.md
@@ -1,6 +1,6 @@
# Sample arguments to test gridMET Climate Workflow
-```{literalinclude} ../../../src/cwl/test_gridmet_job.yml
+```{literalinclude} ../../../src/cwl/jobs/test_gridmet_job.yml
---
language: yaml
---
diff --git a/doc/pipelines.md b/doc/pipelines.md
index 385f74c82..c79b2bd7f 100644
--- a/doc/pipelines.md
+++ b/doc/pipelines.md
@@ -8,68 +8,73 @@ local:
## Introduction
-For the majority of computational studies, their data acquisition workflow can
-be represented as a data processing pipeline. A data processing pipeline
-consists of steps, each step being either a script, a binary executable, or a
-specific data transformation within a data warehouse. Some steps are dependent
-on the results of other steps. Therefore, every workflow can be represented as a
-directed acyclic graph (DAG), where steps are the nodes of the graph and
-dependencies are its edges. Pipeline topologies are complex as they provide for
-massive parallelization and multiple dependencies. When pipeline logic is
-expressed in a procedural programming language, the result is a very convoluted
-program that is economically ineffective to maintain. Fortunately, alternatives
-to procedural languages have been proposed and are widely used.
-
-To the full extent both repeatability and reproducibility of data processing
-pipelines is addressed by special descriptive domain specific languages (DSL).
-Three such languages have been developed by different communities that work
-primarily in bioinformatics. The most widely adopted is
-[Common Workflow Language (CWL)](https://www.commonwl.org/),
-the most popular in terms of studies that use it, the number of
-published workflows and the number of runtime platforms supporting execution of
-the workflows defined in CWL. The pipelines we publish here are all written
-in CWL.
-
-Descriptive workflow languages focus on explicit definition of the pipeline
-topology and insulation of the topology, inputs, requirements and outputs from
-the actual processing algorithms. Developed primarily by bioinformatics
-communities and mostly used by bioinformatics projects they expect the inputs to
-be in a few well-defined formats and orchestrate the work of a limited set of
-known tools. In other areas, for example, in population health research, the
-data comes from much more diverse sources, in diverse and often incompatible
-formats. Therefore, many steps (nodes in the pipeline topology) will be
-responsible for various data transformation operations.
-
-> Some workflows require database connection to perform all steps.
+Most computational studies acquire and process data using a data
+processing pipeline. Such pipelines are composed of multiple steps,
+where each step may be a script, binary executable, or a specific data
+transformation. These steps often depend on the completion and outcome
+of previous steps, so the entire workflow can be naturally represented
+as a **Directed Acyclic Graph (DAG)**: nodes represent workflow steps,
+and
+edges indicate their dependencies.
+
+This DAG-based representation allows for complex pipeline topologies,
+including parallelization and multiple dependencies. However, describing
+such logic in procedural programming languages quickly becomes unwieldy
+and hard to maintain. To address this challenge, **domain-specific
+workflow description languages (DSLs)** have been developed.
+
+## Workflow Description Languages
+
+For reproducibility and repeatability, pipelines are commonly specified
+using descriptive workflow DSLs. In bioinformatics and other scientific
+domains, three such languages are widely used. The most prevalent is the
+[Common Workflow Language (CWL)](https://www.commonwl.org/),
+due to its extensive community support,
+number of published workflows, and broad platform compatibility. All
+pipelines published in this documentation use CWL.
+
+Descriptive workflow languages separate the definition of pipeline
+structure (topology, inputs, outputs, requirements) from the
+implementation of processing steps. While these languages were pioneered
+in bioinformatics—often operating on well-defined inputs and known
+tools—they are also applicable to fields with more diverse and less
+standardized data, such as population health research. In these domains,
+many workflow steps may focus on complex data transformation and
+harmonization.
+
+> Some workflows require database connection during the execution.
> See [](DBConnections) section. for details
## Running Workflows
-
+
### Tested runners
-CWL is "write once run anywhere" language. If a piepline one has developed
-runs on the developer's laptop it is more or less guaranteed it will run
-in any on-prem cluster or cloud environment, provided a runner supporting
-a given environment is used. One can find the list of currently
-supported runners in
+CWL is a "write once, run anywhere" language. A pipeline developed and
+tested in one environment (such as a laptop) will run on clusters and
+cloud platforms using any compliant runner. For the latest list of
+compatible runners, visit the
[CWL Implementations](https://www.commonwl.org/implementations/) page.
-We have used cwltool, CWL-Airflow and Toil in our development
-and production. Toil's output is a little too verbose, but it has
-great features like ability to restart a pipeline from a failed
-step (even after minor corrections) and native support for AWS Batch.
-CWL-Airflow provides a nice graphical user interface.
+We have successfully used **cwltool**, **CWL-Airflow**, and **Toil**:
+
+* **Toil**: Highly featured, supports AWS Batch and pipeline resumption
+ after failures. Output can be quite verbose. We recommend it for
+ production and development use.
+* **CWL-Airflow**: Provides a graphical interface for managing and
+ visualizing workflows.
+* **cwltool**: Lightweight reference implementation, ideal for
+ development for those who prefer to avoid Toil.
+
+See the [Toil documentation](https://toil.readthedocs.io/en/latest/)
+for additional details on using Toil for running CWL workflows.
-See [Toil documentation](https://toil.readthedocs.io/en/latest/)
-for some details of running CWL workflows.
-
### Providing parameters to the pipelines
-Parameters can be provided either as command line options
-with two dashes `--` or in YaML or JSON file.
+Pipeline parameters are supplied on the command line
+(as double-dash `--` options) or via YAML or JSON files.
-Note, that when using a YaML file, files and directories
-have to be specified in the following way:
+When using YAML to specify files or directories as inputs,
+use this structure:
```yaml
my_file:
@@ -83,16 +88,24 @@ my_directory:
### Using Toil
-A few hints if you are using Toil:
+For hands-on examples, refer to the
+[Dorieh Examples Folder](https://github.com/ForomePlatform/dorieh/tree/main/examples)
+on GitHub. There you will find:
+
+* [Instructions for environment setup](https://github.com/ForomePlatform/dorieh/tree/main/examples#running-cwl-examples)
+* [Running workflows that do not require a database backend](Example-climate-workflow.md)
+* [Workflows with PostgreSQL backend](https://github.com/ForomePlatform/dorieh/tree/main/examples/with-postgres)
-1. Install Toil with aws and cwl options:
+#### Quick Start with Toil
+
+1. Install Toil with AWS and CWL support:
pip install toil[aws,cwl]
-2. If you want to be able to restart a pipeline from a failed step you need to
- provide `--jobStore` option. To restart - give exactly the same options
- adding `--restart`
+2. Enable pipeline resumption:
+ Use the `--jobStore` option when running the pipeline.
+ To resume after a failure, use the same command plus `--restart`.
-Here is an example of a command to execute a pipeline:
+**Sample command**:
```shell
toil-cwl-runner --retryCount 1 --cleanWorkDir never \
@@ -101,21 +114,89 @@ toil-cwl-runner --retryCount 1 --cleanWorkDir never \
--jobStore /scratch/work/someDir123
pm25_yearly_download.cwl test_exposure_job.yml
```
-
-## Testing workflows
-Pipelines can be tested using included
-[DBT Pipeline Testing Framework](DBT)
+Most Dorieh workflows consist of multiple steps, each producing two log
+files: a progress log (`*.log`) and an error log (`*.err`). On success,
+error logs are usually empty; all logs are collected under the
+`--outdir` directory.
+
+A successful pipeline run typically emits a JSON object in standard
+output or log file, for example:
+
+```json
+{
+ "qc_ev_create_log": {
+ "location": "file:///shared/dorieh-logs/data_loader-2025-03-05-09-48-27.log_2",
+ "basename": "data_loader-2025-03-05-09-48-27.log",
+ "nameroot": "data_loader-2025-03-05-09-48-27",
+ "nameext": ".log",
+ "class": "File",
+ "checksum": "sha1$fa01481303c9030c8095387661a3bdc6851fc1ed",
+ "size": 12060,
+ "path": "/shared/dorieh-logs/data_loader-2025-03-05-09-48-27.log_2"
+ },
+ "registry": {
+ "location": "file:///shared/dorieh-logs/data.yaml",
+ "basename": "data.yaml",
+ "nameroot": "data",
+ "nameext": ".yaml",
+ "class": "File",
+ "checksum": "sha1$73700ade239b3a0c5f755ef694f05aebb4442c68",
+ "size": 140457,
+ "path": "/shared/dorieh-logs/ingestion/2015/outputs/cms.yaml"
+ }
+}
+```
-More detailed document that describes testing is: [](TestingWorkflows).
+Alternatively, you can confirm successful completion by searching the
+logs for either of: `Finished toil run successfully` or
+`CWL run complete!`:
+
+```shell
+grep 'Finished toil run successfully' 1_2015prod.log
+grep 'CWL run complete!' 1_2015prod.log
+```
+
+A failed run usually ends with a `PermanentFail` message, although
+abrupt
+system failures may not log this. If a log file remains unmodified for
+several hours, the workflow is likely not running.
+
+> Some workflow steps, especially those involving database
+> transformations, may run for extended periods but produce little log
+> output. Check individual step logs for progress if you suspect issues.
+
+### Troubleshooting Workflows run by Toil
+
+To check for errors across all runs:
-## Installing Python dependencies
-
-The following requirements.txt file can be used to fetch all
-Python packages included in the platform.
+```shell
+find /shared/dorieh-logs/ -type f -name "*.err" -size +0c -exec ls -alF {} \;
+```
+
+> No output indicates no errors. Non-empty `.err` files should be
+> examined.
+
+
+For logs from a specific run (e.g., subdirectory per run):
+
+```shell
+find /shared/dorieh-logs/toilwf-c36b795b68935d99be01ed1556c85b1e/ -type f -name "*.err" -size +0c -exec ls -alF {} \;
+```
+To see all error logs regardless of whether they are empty or not omit
+the `-size +0c` filter:
+```shell
+find /shared/dorieh-logs/toilwf-c36b795b68935d99be01ed1556c85b1e/ -type f -name "*.err" -exec ls -alF {} \;
+```
+
+## Testing workflows
+Pipelines can be tested using included
+[DBT Pipeline Testing Framework](DBT)
+
+More detailed document that describes testing is: [](TestingWorkflows).
## Published and tested workflows
@@ -134,21 +215,22 @@ pipeline/medicaid
pipeline/census_workflow
```
-## Developing your own workflows
+## Developing New Workflows
### Combining included CWL tools into a new workflow
-Dorieh includes many packaged CWL tools that can be combined in custom workflows.
-It also includes a [utility](members/cwl_collect_outputs)
-to generate CWL code that can be copied abd pasted into a parent
-workflow.
+Dorieh provides multiple pre-packaged CWL tools, which you can mix and
+match into custom workflows. Use
+the [CWL output collection utility](members/cwl_collect_outputs) to help
+generate CWL code snippets for new workflows.
### Wrapping python modules as CWL tools
-You might want to look at [cwl2argparse](https://github.com/hexylena/argparse2tool#cwl-specific-functionality)
-or other [CWL development tools](https://www.commonwl.org/tools/)
+Consider
+using [cwl2argparse](https://github.com/hexylena/argparse2tool#cwl-specific-functionality)
+or browse other [CWL development tools](https://www.commonwl.org/tools/)
+for converting Python modules into CWL tools.
+
-## Example of a workflow
-Please see [](Example-climate-workflow)
diff --git a/doc/platform.md b/doc/platform.md
index b01dd5a72..820557ff7 100644
--- a/doc/platform.md
+++ b/doc/platform.md
@@ -36,7 +36,7 @@ territorial codes, such as USPS ZIP codes, Census ZCTA codes,
FIPS codes for US states
and counties, SSA codes for US states
and counties. See more information in the
-[Mapping between different territorial codes](https://nsaph-data-platform.github.io/nsaph-platform-docs/common/core-platform/doc/TerritorialCodes.html)
+[Mapping between different territorial codes](TerritorialCodes)
See also: [](DBConnections).
diff --git a/doc/tutorial/climate/building-climate-pipeline.md b/doc/tutorial/climate/building-climate-pipeline.md
new file mode 100644
index 000000000..f0288e1d3
--- /dev/null
+++ b/doc/tutorial/climate/building-climate-pipeline.md
@@ -0,0 +1,286 @@
+# Tutorial: Building a Bronze–Silver–Gold Climate Pipeline with Dorieh
+
+```{contents}
+---
+local:
+---
+```
+
+```{seealso}
+[Example: aggregating a climate variable](../../Example-climate-workflow.md)
+```
+
+## Introduction:
+
+This tutorial walks you through building a small, but complete,
+Dorieh‑based data processing workflow. It attempts to model a realistic
+process of incrementally adding features to a workflow, keeping the
+workflow runnable at every step but with the ultimate goal of producing
+a production-ready dataset.
+
+The eventual pipeline:
+
+* Downloads gridded daily climate data.
+* Aggregates it over ZIP Code Tabulation Areas (ZCTAs).
+* Loads the result into PostgreSQL.
+* Builds Bronze, Silver, and Gold layers using the Dorieh data‑modeling DSL.
+* Generates documentation and data lineage diagrams.
+
+The same design patterns apply directly to health and claims data
+pipelines; here we use open climate data so anyone can reproduce the
+example.
+
+The concepts in this tutorial are used in the "Data Provenance for
+Secondary Use of Health Data through Dataflow Programming" book
+in the chapter named “Sample Application: Building ML‑Ready Datasets”.
+
+
+## Prerequisites
+
+You will need:
+
+* A Unix‑like environment (Linux or macOS).
+* Python 3.9+.
+* A CWL runner, e.g.:
+ * toil-cwl-runner (used in examples),
+ * or cwltool.
+* PostgreSQL or Docker to use the provided container image
+* graphviz (for lineage diagrams) and pandoc (optional, for HTML docs).
+
+Dorieh must be installed as described in the
+[Example](../../Example-climate-workflow.md#prepare-to-run-a-workflow).
+
+For convenience, the full list of commands is also provided below:
+
+```bash
+# Create a virtual environment and activate it.
+python3 -m venv $path
+source $path/bin/activate
+
+# Install Toil and its dependencies.
+pip install "toil[cwl,aws]"
+
+# Install Dorieh and its dependencies.
+pip install dorieh
+```
+
+## Design overview
+We briefly outline the pipeline design before touching any code.
+
+### Inputs
+
+* Climate variable: daily maximum temperature (tmmx) from a gridded
+dataset (e.g., GRIDMET / TerraClimate via Google Earth Engine / NKN).
+
+```{Important}
+As we will be progressing with the building of the workflow we
+will see that we also need an additional input: shapefile with
+ZIP Code Tabulation Areas (ZCTAs).
+```
+
+### Outputs
+* **File output**: a compressed CSV with columns: date, zcta, and tmmx
+(Kelvin).
+* **Database outputs**:
+ * Bronze table: bronze_temperature(date, zcta, tmmx).
+ * Silver view: silver_temperature with:
+ * temperature_in_C, temperature_in_F
+ * us_state, city
+ * Gold materialized view: gold_temperature_by_state with:
+ *mean temperature and temperature span per state/day.
+
+### Architecture
+We will:
+
+* Use **CWL** to orchestrate:
+ * climate download → shape download → spatial aggregation → DB init
+ → ingestion → Silver/Gold creation.
+* Use the **Dorieh data‑modeling DSL (YAML)** to define:
+ * Bronze/Silver/Gold schema and transformations.
+* Use Dorieh utilities to generate:
+ * Workflow documentation (from CWL).
+ * Data dictionaries and lineage diagrams (from YAML).
+
+
+## Directory layout
+
+Create a working directory for this tutorial, for example:
+
+```bash
+cd tmp
+mkdir -p dorieh/tutorials/climate
+cd dorieh/tutorials/climate
+```
+We will place:
+
+* example1.cwl – the CWL workflow.
+* example1_model.yml – the domain definition for Bronze/Silver/Gold.
+* (Optionally) a local database.ini if you need to adjust it for your
+ environment.
+
+## Step 1. Create a minimal CWL workflow skeleton
+
+We will start with a minimal CWL workflow definition containing the
+main steps—data acquisition, shape file retrieval, and aggregation.
+At this stage, placeholders can be used for inputs and outputs;
+these will be filled in as more details on the required tool
+parameters are gathered.
+
+Dorieh provides a library of prebuilt CWL tool definitions,
+streamlining common steps such as downloading remote files and
+running aggregations. Corresponding tools are:
+
+* [download.cwl](../../pipeline/download.md)
+* [aggregate.cwl](../../pipeline/aggregate_daily.md)
+
+
+
+The initial workflow skeleton can look like:
+
+```{literalinclude} steps/step1/example1.cwl```
+
+This skeleton is not yet runnable. It defines three steps but no
+inputs, outputs, or wiring.
+
+## Step 2. Iteratively Defining Steps and Parameters
+
+At this implementation step we need to:
+
+* For each workflow step, consult the underlying tool’s
+ documentation or CWL file to determine:
+ * Required input parameters
+ * Output files and directory structure
+* Incrementally add inputs (e.g., band, year, geography), outputs,
+ and wiring between steps (using CWL’s in and out sections).
+
+Dorieh’s cwl_collect_outputs utility helps automating extraction of
+output specifications and minimizing errors.
+
+To illustrate the process, we will first look at the download step.
+The tool we are using is
+[Dorieh download.cwl](../../pipeline/download.md)
+
+We see that it takes 3 input parameters:
+
+* proxy settings,
+* year, for which we will be performing data aggregation
+* meteorological band or variable that we would like to aggregate.
+
+If you are using a system with direct access to the Internet, you
+probably do not need a proxy. However, we need to take care of
+‘year’ and ‘band’.
+
+After adding these two input parameters to the ‘ inputs ’ section and
+‘download’ step, the workflow file will look like:
+
+```{literalinclude} steps/step2/example1-1.cwl```
+
+Though we have now defined the inputs for the first step, the
+workflow is still not runnable because we have not yet defined the
+outputs. As mentioned, Dorieh’s cwl_collect_outputs utility assists
+with this task. You can run:
+
+```bash
+python -m dorieh.platform.util.cwl_collect_outputs download https://raw.githubusercontent.com/ForomePlatform/dorieh/refs/heads/main/src/cwl/download.cwl
+```
+
+The command should produce the following output:
+
+```text
+ out:
+ - log
+ - data
+ - errors
+## Generated by dorieh.platform.util.cwl_collect_outputs from download.cwl:
+ download_log:
+ type: File?
+ outputSource: download/log
+ download_data:
+ type: File?
+ outputSource: download/data
+ download_errors:
+ type: File
+ outputSource: download/errors
+```
+
+From the standard output of this command, copy the “out” section to
+the step and the rest to the “outputs” section. You can exclude the
+outputs you want to ignore. The resulting workflow file should look
+like:
+
+```{literalinclude} steps/step2/example1-2.cwl```
+
+Now we will repeat the process for the `aggregate` step. Looking at the
+tool we are using
+[aggregate.cwl](../../pipeline/aggregate_daily.md).
+we notice that besides the input parameters we already discussed, it
+also requires Shapefiles. Dorieh provides another CWL tool to
+download the shapefiles for US geographies (ZCTAs and counties) from
+the US Census website: [get_shapes.cwl](../../pipeline/get_shapes.md).
+
+Therefore, we need to add a third step to the
+existing two:
+
+```yaml
+ get_shapes:
+ run: https://raw.githubusercontent.com/NSAPH-Data-Platform/dorieh/main/src/cwl/get_shapes.cwl
+```
+
+Which will bring us to the following workflow definition:
+
+```{literalinclude} steps/step2/example1-3.cwl```
+
+After repeating the process described above for the remaining two steps
+(`get_shapes` and `aggregate`) we finally have a runnable workflow
+definition:
+
+```{literalinclude} steps/step2/example1-4.cwl```
+
+At this point, the workflow can aggregate a full year of data, but
+that is slow for development. Next we add a “toy slice” mode.
+
+If you prefer to test the current workflow and do not afraid to wait
+hours for its completion, you can run it with the following command:
+
+```shell
+toil-cwl-runner --retryCount 3 --cleanWorkDir never --outdir outputs example1.cwl --workDir . --band tmmx --year 2019 --geography zcta
+
+```
+
+## Step 3 – Parameterize for a single day (“toy” run)
+
+To speed up development and debugging, we can parameterize the
+workflow so that it can run on “toy” datasets—for example, filtering
+a single day (e.g., 2019-01-15) instead of an entire year. Running
+your pipeline on a minimal dataset ensures quick feedback, uncovers
+errors early, and avoids wasting compute resources.
+
+Such parametrization often requires additional input transformations
+(e.g., extracting year from a date); hence, we need to insert
+transformation steps, chaining outputs via CWL’s valueFrom mechanism.
+
+In our case, to allow the workflow to run on a toy dataset, we will
+first replace the input parameter `year` with `date`. Our downstream
+steps, however, require a year, e.g., to download the right shape
+file. Hence, we will add an additional step to extract the year from
+the date:
+
+```yaml
+ extract_year:
+ run: https://raw.githubusercontent.com/NSAPH-Data-Platform/dorieh/main/src/cwl/parse_date.cwl
+ in:
+ date: date
+ out:
+ - year
+```
+
+With this step in place, the workflow is now:
+
+```{literalinclude} steps/step3/example1.cwl```
+
+It can be run with the following command:
+
+```shell
+toil-cwl-runner --retryCount 3 --cleanWorkDir never --outdir outputs example1.cwl --workDir . --band tmmx --date 2019-01-15 --geography zcta
+```
+
diff --git a/doc/tutorial/climate/example1.cwl b/doc/tutorial/climate/example1.cwl
new file mode 100644
index 000000000..8c006700e
--- /dev/null
+++ b/doc/tutorial/climate/example1.cwl
@@ -0,0 +1,190 @@
+#!/usr/bin/env cwl-runner
+
+cwlVersion: v1.2
+class: Workflow
+
+requirements:
+ SubworkflowFeatureRequirement: {}
+ StepInputExpressionRequirement: {}
+ InlineJavascriptRequirement: {}
+ ScatterFeatureRequirement: {}
+ MultipleInputFeatureRequirement: {}
+ NetworkAccess:
+ networkAccess: True
+inputs:
+ band:
+ type: string
+ date:
+ type: string
+ geography:
+ type: string
+ database:
+ type: File
+ default:
+ class: File
+ location: https://raw.githubusercontent.com/ForomePlatform/dorieh/refs/heads/main/examples/with-postgres/database.ini
+ connection_name:
+ type: string
+ default: "localhost"
+
+steps:
+ extract_year:
+ run: https://raw.githubusercontent.com/ForomePlatform/dorieh/main/src/cwl/parse_date.cwl
+ in:
+ date: date
+ out:
+ - year
+
+ download:
+ run: https://raw.githubusercontent.com/ForomePlatform/dorieh/main/src/cwl/download.cwl
+ in:
+ year: extract_year/year
+ band: band
+ out:
+ - log
+ - data
+ - errors
+
+ get_shapes:
+ run: https://raw.githubusercontent.com/ForomePlatform/dorieh/main/src/cwl/get_shapes.cwl
+ in:
+ geo: geography
+ year: extract_year/year
+ out:
+ - shape_files
+
+ aggregate:
+ run: https://raw.githubusercontent.com/ForomePlatform/dorieh/main/src/cwl/aggregate_daily.cwl
+ in:
+ geography: geography
+ year: extract_year/year
+ dates: date
+ band: band
+ input: download/data
+ shape_files: get_shapes/shape_files
+ strategy:
+ valueFrom: default
+ out:
+ - log
+ - data
+ - errors
+
+ initdb:
+ run: https://raw.githubusercontent.com/ForomePlatform/dorieh/main/src/cwl/initcoredb.cwl
+ in:
+ database: database
+ connection_name: connection_name
+ out:
+ - log
+ - err
+
+ ingest:
+ run: https://raw.githubusercontent.com/ForomePlatform/dorieh/main/src/cwl/ingest.cwl
+ in:
+ depends_on: initdb/log
+ registry:
+ default:
+ class: File
+ location: "https://raw.githubusercontent.com/ForomePlatform/dorieh/main/doc/tutorial/example1_model.yml"
+ domain:
+ valueFrom: "tutorial"
+ table:
+ valueFrom: "bronze_temperature"
+ input: aggregate/data
+ database: database
+ connection_name: connection_name
+ out:
+ - log
+ - errors
+
+ build_silver:
+ run: https://raw.githubusercontent.com/ForomePlatform/dorieh/main/src/cwl/create.cwl
+ in:
+ depends_on: ingest/log
+ registry:
+ default:
+ class: File
+ location: "https://raw.githubusercontent.com/ForomePlatform/dorieh/main/doc/tutorial/example1_model.yml"
+ domain:
+ valueFrom: "tutorial"
+ table:
+ valueFrom: "silver_temperature"
+ database: database
+ connection_name: connection_name
+ out:
+ - log
+ - errors
+
+ build_gold:
+ run: https://raw.githubusercontent.com/ForomePlatform/dorieh/main/src/cwl/create.cwl
+ in:
+ depends_on: build_silver/log
+ registry:
+ default:
+ class: File
+ location: "https://raw.githubusercontent.com/ForomePlatform/dorieh/main/doc/tutorial/example1_model.yml"
+ domain:
+ valueFrom: "tutorial"
+ table:
+ valueFrom: "gold_temperature_by_state"
+ database: database
+ connection_name: connection_name
+ out:
+ - log
+ - errors
+
+
+outputs:
+ ## Generated by dorieh.platform.util.cwl_collect_outputs from download.cwl:
+ download_log:
+ type: File?
+ outputSource: download/log
+ download_data:
+ type: File?
+ outputSource: download/data
+ download_errors:
+ type: File
+ outputSource: download/errors
+ ## Generated by dorieh.platform.util.cwl_collect_outputs from get_shapes.cwl:
+ get_shapes_shape_files:
+ type: File[]
+ outputSource: get_shapes/shape_files
+ ## Generated by dorieh.platform.util.cwl_collect_outputs from aggregate_daily.cwl:
+ aggregate_log:
+ type: File?
+ outputSource: aggregate/log
+ aggregate_data:
+ type: File?
+ outputSource: aggregate/data
+ aggregate_errors:
+ type: File
+ outputSource: aggregate/errors
+
+ initdb_log:
+ type: File
+ outputSource: initdb/log
+ initdb_err:
+ type: File
+ outputSource: initdb/err
+
+ ingest_log:
+ type: File
+ outputSource: ingest/log
+ ingest_err:
+ type: File
+ outputSource: ingest/errors
+
+ build_silver_log:
+ type: File
+ outputSource: build_silver/log
+ build_silver_err:
+ type: File
+ outputSource: build_silver/errors
+
+ build_gold_log:
+ type: File
+ outputSource: build_gold/log
+ build_gold_err:
+ type: File
+ outputSource: build_gold/errors
+
diff --git a/doc/tutorial/climate/example1_model.yml b/doc/tutorial/climate/example1_model.yml
new file mode 100644
index 000000000..1a572f950
--- /dev/null
+++ b/doc/tutorial/climate/example1_model.yml
@@ -0,0 +1,78 @@
+tutorial:
+ header: true
+ quoting: 3
+ index: "unless excluded"
+ description: "Data model for data transformation tutorial"
+ tables:
+ bronze_temperature:
+ description: |
+ Maximum daily temperature for US Zip Code Tabulation Areas
+ columns:
+ - tmmx:
+ type: float
+ description: Maximum temperature variable from the TerraClimate dataset in K
+ reference: https://developers.google.com/earth-engine/datasets/catalog/IDAHO_EPSCOR_GRIDMET#bands
+ - date:
+ type: date
+ - zcta:
+ description: Zip Code for a Zip Code Tabulation Area
+ type: int
+ primary_key:
+ - zcta
+ - date
+ silver_temperature:
+ description: |
+ Maximum daily temperature for US Zip Code Tabulation Areas, enriched and harmonized
+ create:
+ type: view
+ from: bronze_temperature
+ columns:
+ - tmmx
+ - date
+ - zcta
+ - temperature_in_C:
+ type: float
+ description: Temperature in Celsius
+ source: (tmmx - 273.15)
+ - temperature_in_F:
+ type: float
+ description: Temperature in Fahrenheit
+ source: ((tmmx - 273.15)*9/5 + 32)
+ - us_state:
+ type: VARCHAR(2)
+ description: US State
+ source: "public.zip_to_state(EXTRACT(YEAR FROM date)::INT, zcta)"
+ - city:
+ type: VARCHAR(128)
+ description: US State
+ source: "public.zip_to_city(EXTRACT(YEAR FROM date)::INT, zcta)"
+
+ gold_temperature_by_state:
+ description: |
+ Temperature variations by US State
+ create:
+ type: materialized view
+ from: silver_temperature
+ group by:
+ - us_state
+ - date
+ columns:
+ - us_state
+ - date
+ - t_span:
+ type: float
+ description: Temperature variation in Celsius
+ source: MAX(tmmx) - MIN(tmmx)
+ - t_mean_in_C:
+ type: float
+ description: Mean Temperature in Celsius
+ source: AVG(temperature_in_C)
+ - t_mean_in_F:
+ type: float
+ description: Mean Temperature in Fahrenheit
+ source: AVG(temperature_in_F)
+ primary_key:
+ - us_state
+ - date
+
+
diff --git a/doc/tutorial/climate/steps/step1/example1.cwl b/doc/tutorial/climate/steps/step1/example1.cwl
new file mode 100644
index 000000000..e4eff083b
--- /dev/null
+++ b/doc/tutorial/climate/steps/step1/example1.cwl
@@ -0,0 +1,24 @@
+#!/usr/bin/env cwl-runner
+
+cwlVersion: v1.2
+class: Workflow
+
+requirements:
+ SubworkflowFeatureRequirement: {}
+ StepInputExpressionRequirement: {}
+ InlineJavascriptRequirement: {}
+ ScatterFeatureRequirement: {}
+ MultipleInputFeatureRequirement: {}
+ NetworkAccess:
+ networkAccess: True
+
+inputs: {}
+
+steps:
+ download:
+ run: https://raw.githubusercontent.com/ForomePlatform/dorieh/main/src/cwl/download.cwl
+
+ aggregate:
+ run: https://raw.githubusercontent.com/ForomePlatform/dorieh/main/src/cwl/aggregate_daily.cwl
+
+outputs: {}
diff --git a/doc/tutorial/climate/steps/step2/example1-1.cwl b/doc/tutorial/climate/steps/step2/example1-1.cwl
new file mode 100644
index 000000000..36ab11522
--- /dev/null
+++ b/doc/tutorial/climate/steps/step2/example1-1.cwl
@@ -0,0 +1,31 @@
+#!/usr/bin/env cwl-runner
+
+cwlVersion: v1.2
+class: Workflow
+
+requirements:
+ SubworkflowFeatureRequirement: {}
+ StepInputExpressionRequirement: {}
+ InlineJavascriptRequirement: {}
+ ScatterFeatureRequirement: {}
+ MultipleInputFeatureRequirement: {}
+ NetworkAccess:
+ networkAccess: True
+
+inputs:
+ band:
+ type: string
+ year:
+ type: string
+
+steps:
+ download:
+ run: https://raw.githubusercontent.com/NSAPH-Data-Platform/dorieh/main/src/cwl/download.cwl
+ in:
+ year: year
+ band: band
+
+ aggregate:
+ run: https://raw.githubusercontent.com/NSAPH-Data-Platform/dorieh/main/src/cwl/aggregate_daily.cwl
+
+Outputs: {}
diff --git a/doc/tutorial/climate/steps/step2/example1-2.cwl b/doc/tutorial/climate/steps/step2/example1-2.cwl
new file mode 100644
index 000000000..3cc8df90d
--- /dev/null
+++ b/doc/tutorial/climate/steps/step2/example1-2.cwl
@@ -0,0 +1,43 @@
+cwlVersion: v1.2
+class: Workflow
+
+requirements:
+ SubworkflowFeatureRequirement: {}
+ StepInputExpressionRequirement: {}
+ InlineJavascriptRequirement: {}
+ ScatterFeatureRequirement: {}
+ MultipleInputFeatureRequirement: {}
+ NetworkAccess:
+ networkAccess: True
+inputs:
+ band:
+ type: string
+ year:
+ type: string
+
+steps:
+ download:
+ run: https://raw.githubusercontent.com/NSAPH-Data-Platform/dorieh/main/src/cwl/download.cwl
+ in:
+ year: year
+ band: band
+ out:
+ - log
+ - data
+ - errors
+
+ aggregate:
+ run: https://raw.githubusercontent.com/NSAPH-Data-Platform/dorieh/main/src/cwl/aggregate_daily.cwl
+
+outputs:
+ ## Generated by dorieh.platform.util.cwl_collect_outputs from download.cwl:
+ download_log:
+ type: File?
+ outputSource: download/log
+ download_data:
+ type: File?
+ outputSource: download/data
+ download_errors:
+ type: File
+ outputSource: download/errors
+
diff --git a/doc/tutorial/climate/steps/step2/example1-3.cwl b/doc/tutorial/climate/steps/step2/example1-3.cwl
new file mode 100644
index 000000000..e58029e38
--- /dev/null
+++ b/doc/tutorial/climate/steps/step2/example1-3.cwl
@@ -0,0 +1,46 @@
+cwlVersion: v1.2
+class: Workflow
+
+requirements:
+ SubworkflowFeatureRequirement: {}
+ StepInputExpressionRequirement: {}
+ InlineJavascriptRequirement: {}
+ ScatterFeatureRequirement: {}
+ MultipleInputFeatureRequirement: {}
+ NetworkAccess:
+ networkAccess: True
+inputs:
+ band:
+ type: string
+ year:
+ type: string
+
+steps:
+ download:
+ run: https://raw.githubusercontent.com/NSAPH-Data-Platform/dorieh/main/src/cwl/download.cwl
+ in:
+ year: year
+ band: band
+ out:
+ - log
+ - data
+ - errors
+
+ get_shapes:
+ run: https://raw.githubusercontent.com/NSAPH-Data-Platform/dorieh/main/src/cwl/get_shapes.cwl
+
+ aggregate:
+ run: https://raw.githubusercontent.com/NSAPH-Data-Platform/dorieh/main/src/cwl/aggregate_daily.cwl
+
+outputs:
+ ## Generated by dorieh.platform.util.cwl_collect_outputs from download.cwl:
+ download_log:
+ type: File?
+ outputSource: download/log
+ download_data:
+ type: File?
+ outputSource: download/data
+ download_errors:
+ type: File
+ outputSource: download/errors
+
diff --git a/doc/tutorial/climate/steps/step2/example1-4.cwl b/doc/tutorial/climate/steps/step2/example1-4.cwl
new file mode 100644
index 000000000..687f7fe6d
--- /dev/null
+++ b/doc/tutorial/climate/steps/step2/example1-4.cwl
@@ -0,0 +1,79 @@
+#!/usr/bin/env cwl-runner
+
+cwlVersion: v1.2
+class: Workflow
+
+requirements:
+ SubworkflowFeatureRequirement: {}
+ StepInputExpressionRequirement: {}
+ InlineJavascriptRequirement: {}
+ ScatterFeatureRequirement: {}
+ MultipleInputFeatureRequirement: {}
+ NetworkAccess:
+ networkAccess: True
+inputs:
+ band:
+ type: string
+ year:
+ type: string
+ geography:
+ type: string
+
+steps:
+ download:
+ run: https://raw.githubusercontent.com/NSAPH-Data-Platform/dorieh/main/src/cwl/download.cwl
+ in:
+ year: year
+ band: band
+ out:
+ - log
+ - data
+ - errors
+
+ get_shapes:
+ run: https://raw.githubusercontent.com/NSAPH-Data-Platform/dorieh/main/src/cwl/get_shapes.cwl
+ in:
+ geo: geography
+ year: year
+ out:
+ - shape_files
+
+ aggregate:
+ run: https://raw.githubusercontent.com/NSAPH-Data-Platform/dorieh/main/src/cwl/aggregate_daily.cwl
+ in:
+ geography: geography
+ year: year
+ band: band
+ input: download/data
+ shape_files: get_shapes/shape_files
+ out:
+ - log
+ - data
+ - errors
+
+outputs:
+ ## Generated by dorieh.platform.util.cwl_collect_outputs from download.cwl:
+ download_log:
+ type: File?
+ outputSource: download/log
+ download_data:
+ type: File?
+ outputSource: download/data
+ download_errors:
+ type: File
+ outputSource: download/errors
+ ## Generated by dorieh.platform.util.cwl_collect_outputs from get_shapes.cwl:
+ get_shapes_shape_files:
+ type: File[]
+ outputSource: get_shapes/shape_files
+ ## Generated by dorieh.platform.util.cwl_collect_outputs from aggregate_daily.cwl:
+ aggregate_log:
+ type: File?
+ outputSource: aggregate/log
+ aggregate_data:
+ type: File?
+ outputSource: aggregate/data
+ aggregate_errors:
+ type: File
+ outputSource: aggregate/errors
+
diff --git a/doc/tutorial/climate/steps/step3/example1.cwl b/doc/tutorial/climate/steps/step3/example1.cwl
new file mode 100644
index 000000000..cfa7a9625
--- /dev/null
+++ b/doc/tutorial/climate/steps/step3/example1.cwl
@@ -0,0 +1,89 @@
+#!/usr/bin/env cwl-runner
+
+cwlVersion: v1.2
+class: Workflow
+
+requirements:
+ SubworkflowFeatureRequirement: {}
+ StepInputExpressionRequirement: {}
+ InlineJavascriptRequirement: {}
+ ScatterFeatureRequirement: {}
+ MultipleInputFeatureRequirement: {}
+ NetworkAccess:
+ networkAccess: True
+inputs:
+ band:
+ type: string
+ date:
+ type: string
+ geography:
+ type: string
+
+steps:
+ extract_year:
+ run: https://raw.githubusercontent.com/NSAPH-Data-Platform/dorieh/main/src/cwl/parse_date.cwl
+ in:
+ date: date
+ out:
+ - year
+
+ download:
+ run: https://raw.githubusercontent.com/NSAPH-Data-Platform/dorieh/main/src/cwl/download.cwl
+ in:
+ year: extract_year/year
+ band: band
+ out:
+ - log
+ - data
+ - errors
+
+ get_shapes:
+ run: https://raw.githubusercontent.com/NSAPH-Data-Platform/dorieh/main/src/cwl/get_shapes.cwl
+ in:
+ geo: geography
+ year: extract_year/year
+ out:
+ - shape_files
+
+ aggregate:
+ run: https://raw.githubusercontent.com/NSAPH-Data-Platform/dorieh/main/src/cwl/aggregate_daily.cwl
+ in:
+ geography: geography
+ year: extract_year/year
+ dates: date
+ band: band
+ input: download/data
+ shape_files: get_shapes/shape_files
+ strategy:
+ valueFrom: default
+ out:
+ - log
+ - data
+ - errors
+
+outputs:
+ ## Generated by dorieh.platform.util.cwl_collect_outputs from download.cwl:
+ download_log:
+ type: File?
+ outputSource: download/log
+ download_data:
+ type: File?
+ outputSource: download/data
+ download_errors:
+ type: File
+ outputSource: download/errors
+ ## Generated by dorieh.platform.util.cwl_collect_outputs from get_shapes.cwl:
+ get_shapes_shape_files:
+ type: File[]
+ outputSource: get_shapes/shape_files
+ ## Generated by dorieh.platform.util.cwl_collect_outputs from aggregate_daily.cwl:
+ aggregate_log:
+ type: File?
+ outputSource: aggregate/log
+ aggregate_data:
+ type: File?
+ outputSource: aggregate/data
+ aggregate_errors:
+ type: File
+ outputSource: aggregate/errors
+
diff --git a/docker/Dockerfile.amd64 b/docker/Dockerfile
similarity index 56%
rename from docker/Dockerfile.amd64
rename to docker/Dockerfile
index c9ce57608..c3bbf1448 100644
--- a/docker/Dockerfile.amd64
+++ b/docker/Dockerfile
@@ -16,19 +16,22 @@
# under the License.
#
+# DOCKER file for building container for ARM
-FROM quay.io/ucsc_cgl/toil:latest AS dorieh
-USER root
+FROM ubuntu:24.04
-RUN mkdir /scratch/
-RUN mkdir /opt/local/
-COPY requirements.txt /opt/local/
-ENV DEBIAN_FRONTEND=noninteractive
-RUN apt update && apt install -y postgresql-client nodejs npm
-RUN apt install -y r-base r-base-dev
-RUN pip install --upgrade pip
-RUN pip install -r /opt/local/requirements.txt
-RUN pip install cwlref-runner
+RUN apt-get update && apt-get install -y \
+ postgresql-client nodejs npm g++ \
+ gdal-bin libgdal-dev libgeos-dev \
+ python3-pip python3-dev git \
+ r-base r-base-dev && \
+ apt-get clean && rm -rf /var/lib/apt/lists/*
+RUN ln -s /usr/bin/python3 /usr/bin/python
+# Only run this if you know you need newer versions
+RUN pip install --upgrade pip setuptools wheel --break-system-packages --ignore-installed
+WORKDIR /opt/local/
+COPY requirements.txt requirements.txt
+RUN pip install -r requirements.txt --break-system-packages
diff --git a/docker/Dockerfile.arm64 b/docker/Dockerfile.amzn
similarity index 67%
rename from docker/Dockerfile.arm64
rename to docker/Dockerfile.amzn
index 89d3e4f58..e47cd9056 100644
--- a/docker/Dockerfile.arm64
+++ b/docker/Dockerfile.amzn
@@ -16,20 +16,18 @@
# under the License.
#
+# DOCKER file for building container image on Amazon Linux 2023
+# Required for regulated data environment to avoid CVEs
-FROM quay.io/ucsc_cgl/toil:latest AS dorieh
+FROM public.ecr.aws/amazonlinux/amazonlinux:latest
USER root
+RUN yum -y check-update
+RUN yum -y install python-pip git nodejs npm
+RUN ln -s /usr/bin/python3 /usr/bin/python
+RUN pip install setuptools wheel
-RUN mkdir /scratch/
RUN mkdir /opt/local/
-COPY requirements.txt /opt/local/
-ENV DEBIAN_FRONTEND=noninteractive
-RUN add-apt-repository ppa:deadsnakes/ppa
-RUN apt update && apt install -y postgresql-client nodejs npm g++ gdal-bin libgdal-dev libgeos-dev
-RUN apt install -y r-base r-base-dev
-RUN pip install --upgrade pip
+COPY requirements-amzn.txt /opt/local/requirements.txt
RUN pip install -r /opt/local/requirements.txt
-RUN pip install cwlref-runner
-
-
+RUN pip install --upgrade fiona==1.10.0b3
diff --git a/docker/README.md b/docker/README.md
index 8ca9946fa..9c891559f 100644
--- a/docker/README.md
+++ b/docker/README.md
@@ -1,28 +1,40 @@
# Building Docker Image
-Provided are two Dockerfile:
+Provided are two Dockerfiles:
-* For Intel / AMD platform: [Dockerfile.amd64](Dockerfile.amd64)
-* For ARM platform used by AWG Graviton family of virtual machines and newer Macs: [Dockerfile.arm64](Dockerfile.arm64)
-
-Please note, that ARM architecture requires installation of more components (mainly, GIS tools).
+* For general purpose usage in a non-secure environment. Has been tested for Intel/AMD64 and ARM platform
+ used by AWS Graviton family of virtual machines and newer Macs: [Dockerfile](Dockerfile)
+* For Amazon Linux (AMD64 only) intended for use in secure and regulated data environments. This is a stripped
+ container without any of the optional dependencies, optimized for addressing any potential CVEs:
+ [Dockerfile.amzn](Dockerfile.amzn)
-The included Docker file builds a multi-architecture docker image for Dorieh. It includes support for
-R functions and FST file format. If you do not need FST and R support, comment out
-the installation of R in the Dockerfile and remove `[FST]` from requirements.txt.
+To build a container for a specific platform (tested on ARM64 and AMD64) run the following commands in this
+($repositoryRoot/docker) directory:
-To build docker images in this directory, run the following commands, replacing $(version) with the current version:
+```shell
+export dorieh_version=$(grep -E "version *= *[\"']" ../setup.py | head -1 | sed -E "s/.*version *= *[\"']([^\"']+)[\"'].*/\1/")
+export arch=$(uname -m | sed 's/x86_64/amd64/;s/aarch64/arm64/')
+DOCKER_BUILDKIT=1 BUILDKIT_PROGRESS=plain docker buildx build --platform linux/${arch} --no-cache --tag forome/dorieh:${arch}-${dorieh_version} --load -f Dockerfile . &&\
+ docker push forome/dorieh:${arch}-${dorieh_version}
+```
- DOCKER_BUILDKIT=1 BUILDKIT_PROGRESS=plain docker buildx build --platform linux/amd64 --no-cache --tag forome/dorieh:amd64 --load -f Dockerfile.amd64 . && docker push forome/dorieh:amd64
- DOCKER_BUILDKIT=1 BUILDKIT_PROGRESS=plain docker buildx build --platform linux/arm64 --no-cache --tag forome/dorieh:arm64 --load -f Dockerfile.arm64 . && docker push forome/dorieh:arm64
- docker manifest create forome/dorieh:latest --amend forome/dorieh:arm64 --amend forome/dorieh:amd64 && docker manifest push forome/dorieh:latest
- docker tag forome/dorieh:latest forome/dorieh:$(version)
- docker push forome/dorieh:$(version)
+To create a multiarch container, run the following commands:
+
+```shell
+docker pull forome/dorieh:amd64-${dorieh_version}
+docker pull forome/dorieh:arm64-${dorieh_version}
+
+docker manifest create forome/dorieh:${dorieh_version} --amend forome/dorieh:amd64-${dorieh_version} --amend forome/dorieh:arm64-${dorieh_version}
+docker manifest annotate forome/dorieh:${dorieh_version} forome/dorieh:amd64-${dorieh_version} --arch amd64
+docker manifest annotate forome/dorieh:${dorieh_version} forome/dorieh:arm64-${dorieh_version} --arch arm64
+docker manifest push forome/dorieh:${dorieh_version}
+
+# Optionally
+docker manifest create forome/dorieh:latest --amend forome/dorieh:amd64-${dorieh_version} --amend forome/dorieh:arm64-${dorieh_version}
+docker manifest annotate forome/dorieh:latest forome/dorieh:amd64-${dorieh_version} --arch amd64
+docker manifest annotate forome/dorieh:latest forome/dorieh:arm64-${dorieh_version} --arch arm64
+docker manifest push forome/dorieh:latest
+```
-To enable multiarchitecture build you might need to run the following commands first:
- docker run --rm --privileged multiarch/qemu-user-static --reset -p yes
- docker buildx rm builder
- docker buildx create --name builder --driver docker-container --use
- docker buildx inspect --bootstrap
diff --git a/docker/SparkThrift/docker-compose.yml b/docker/SparkThrift/docker-compose.yml
new file mode 100644
index 000000000..be480d356
--- /dev/null
+++ b/docker/SparkThrift/docker-compose.yml
@@ -0,0 +1,69 @@
+version: '3'
+
+services:
+ spark-master:
+ container_name: thrift
+ image: apache/spark:3.5.0
+ ports:
+ - "7077:7077"
+ - "9080:8080"
+ - "10000:10000"
+ volumes:
+ - parquet:/data/parquet:ro
+ environment:
+ - SPARK_MODE=master
+ - SPARK_MASTER_HOST=spark-master
+ command: >
+ /bin/bash -c "
+ /opt/spark/sbin/start-master.sh &&
+ sleep 5 &&
+ /opt/spark/sbin/start-thriftserver.sh --master spark://spark-master:7077 --hiveconf hive.server2.thrift.port=10000 --hiveconf hive.server2.thrift.bind.host=0.0.0.0 --hiveconf hive.server2.authentication=NOSASL --hiveconf hive.server2.enable.doAs=false &&
+ tail -f /opt/spark/logs/spark--org.apache.spark.sql.hive.thriftserver.HiveThriftServer2-*.out
+ "
+
+ spark-worker-1:
+ image: apache/spark:3.5.0
+ depends_on:
+ - spark-master
+ ports:
+ - "9081:8081"
+ environment:
+ - SPARK_MODE=worker
+ - SPARK_MASTER_URL=spark://spark-master:7077
+ - SPARK_WORKER_CORES=2
+ - SPARK_WORKER_MEMORY=4G
+ volumes:
+ - parquet:/data/parquet:ro
+ command: >
+ /bin/bash -c "
+ /opt/spark/sbin/start-worker.sh spark://spark-master:7077 &&
+ tail -f /dev/null
+ "
+
+ spark-worker-2:
+ image: apache/spark:3.5.0
+ depends_on:
+ - spark-master
+ ports:
+ - "9082:8081"
+ environment:
+ - SPARK_MODE=worker
+ - SPARK_MASTER_URL=spark://spark-master:7077
+ - SPARK_WORKER_CORES=2
+ - SPARK_WORKER_MEMORY=4G
+ volumes:
+ - parquet:/data/parquet:ro
+ command: >
+ /bin/bash -c "
+ /opt/spark/sbin/start-worker.sh spark://spark-master:7077 &&
+ tail -f /dev/null
+ "
+
+volumes:
+ parquet:
+ driver: local
+ driver_opts:
+ type: none
+ o: bind
+ device: ./data/parquet
+
diff --git a/docker/pg-hll/Dockerfile b/docker/pg-hll/Dockerfile
new file mode 100644
index 000000000..9dc2156c5
--- /dev/null
+++ b/docker/pg-hll/Dockerfile
@@ -0,0 +1,7 @@
+FROM postgres:16
+
+# Install hll extension package
+RUN apt-get update \
+ && apt-get install -y postgresql-16-hll \
+ && rm -rf /var/lib/apt/lists/* \
+
\ No newline at end of file
diff --git a/docker/pg-hll/docker-compose.yml b/docker/pg-hll/docker-compose.yml
new file mode 100644
index 000000000..1a8532103
--- /dev/null
+++ b/docker/pg-hll/docker-compose.yml
@@ -0,0 +1,19 @@
+# This creates an environment to test Dorieh pipelines requiring PostgreSQL
+
+services:
+ postgres:
+ # container_name: dorieh-postgres
+ build:
+ context: .
+ environment:
+ POSTGRES_DB: dorieh
+ POSTGRES_USER: dorieh
+ POSTGRES_PASSWORD: dorieh_secret
+ volumes:
+ - pgdata:/var/lib/postgresql/data
+ - ./init-db:/docker-entrypoint-initdb.d
+ ports:
+ - "${POSTGRES_PORT:-55432}:5432"
+
+volumes:
+ pgdata:
\ No newline at end of file
diff --git a/docker/requirements-amzn.txt b/docker/requirements-amzn.txt
new file mode 100644
index 000000000..53648b8b4
--- /dev/null
+++ b/docker/requirements-amzn.txt
@@ -0,0 +1,5 @@
+# Requirments for building image on raw Amazon Linux
+toil[aws,cwl]
+cwlref-runner
+#dorieh[spark]
+dorieh
diff --git a/docker/requirements.txt b/docker/requirements.txt
index 099579cec..8ab0f9cd2 100644
--- a/docker/requirements.txt
+++ b/docker/requirements.txt
@@ -1 +1,3 @@
-dorieh[FST]
+toil[aws,cwl]
+cwlref-runner
+dorieh[spark,FST]>=0.4.0
diff --git a/docker/rpy2-3.5.16-cp310-cp310-linux_x86_64.whl b/docker/rpy2-3.5.16-cp310-cp310-linux_x86_64.whl
new file mode 100644
index 000000000..b62565f92
Binary files /dev/null and b/docker/rpy2-3.5.16-cp310-cp310-linux_x86_64.whl differ
diff --git a/docker/trino/.env b/docker/trino/.env
new file mode 100644
index 000000000..a3cec7787
--- /dev/null
+++ b/docker/trino/.env
@@ -0,0 +1,8 @@
+TRINO_PORT=9080
+POSTGRES_PORT=7432
+TRINO_CONFIG_DIR=./my_trino_config
+TRINO_DATA_DIR=./my_data
+PGDATA_DIR=./my_pgdata
+POSTGRES_DB=my_metastore
+POSTGRES_USER=my_hiveuser
+POSTGRES_PASSWORD=my_hivepassword
\ No newline at end of file
diff --git a/docker/trino/docker-compose.yml b/docker/trino/docker-compose.yml
new file mode 100644
index 000000000..e146c9bf4
--- /dev/null
+++ b/docker/trino/docker-compose.yml
@@ -0,0 +1,103 @@
+services:
+ trino:
+ image: trinodb/trino:latest
+ ports:
+ - "${TRINO_PORT:-9080}:8080"
+ volumes:
+ - trino-config:/etc/trino
+ - trino-parquet:/data/parquet:ro
+ - trino-warehouse:/data/warehouse
+ depends_on:
+ - hive-metastore
+
+ hive-metastore:
+ image: apache/hive:4.0.1
+ # command: ["hive", "--service", "metastore"]
+ ports:
+ - "9083:9083"
+ - "10000:10000"
+ environment:
+ DB_DRIVER: "postgres"
+ HIVE_METASTORE_PASSWORD: "${POSTGRES_PASSWORD:-hivepassword}"
+ SERVICE_OPTS: >
+ -Djavax.jdo.option.ConnectionDriverName=org.postgresql.Driver
+ -Djavax.jdo.option.ConnectionURL=jdbc:postgresql://postgres:5432/my_metastore
+ -Djavax.jdo.option.ConnectionUserName=${POSTGRES_USER}
+ -Djavax.jdo.option.ConnectionPassword=${POSTGRES_PASSWORD:-hivepassword}
+ IS_RESUME: "true"
+ HIVE_AUX_JARS_PATH: "/opt/hive/lib/extra/postgresql.jar"
+ SERVICE_NAME: metastore
+ volumes:
+ - drivers:/opt/hive/lib/extra
+ - trino-parquet:/data/parquet
+ depends_on:
+ - postgres
+ - minio
+
+ postgres:
+ image: postgres:17.0
+ environment:
+ POSTGRES_DB: "${POSTGRES_DB:-metastore}"
+ POSTGRES_USER: "${POSTGRES_USER:-hiveuser}"
+ POSTGRES_PASSWORD: "${POSTGRES_PASSWORD:-hivepassword}"
+ ports:
+ - "${POSTGRES_PORT:-7432}:5432"
+ volumes:
+ - pgdata:/var/lib/postgresql/data
+
+ minio:
+ image: minio/minio:latest
+ ports:
+ - "9000:9000"
+ - "9001:9001"
+ environment:
+ MINIO_ROOT_USER: minioadmin
+ MINIO_ROOT_PASSWORD: minioadmin
+ command: server /data --console-address ":9001"
+ volumes:
+ - data:/data
+
+volumes:
+ trino-config:
+ driver: local
+ driver_opts:
+ type: none
+ o: bind
+ device: ${TRINO_CONFIG_DIR}
+
+ trino-parquet:
+ driver: local
+ driver_opts:
+ type: none
+ o: bind
+ device: ${TRINO_DATA_DIR}/parquet
+
+ pgdata:
+ driver: local
+ driver_opts:
+ type: none
+ o: bind
+ device: ${PGDATA_DIR}
+
+ drivers:
+ driver: local
+ driver_opts:
+ type: none
+ o: bind
+ device: ${DRIVER_PATH}
+
+ trino-warehouse:
+ driver: local
+ driver_opts:
+ type: none
+ o: bind
+ device: ${TRINO_DATA_DIR}/warehouse
+
+ data:
+ driver: local
+ driver_opts:
+ type: none
+ o: bind
+ device: ${TRINO_DATA_DIR}
+
+
diff --git a/docker/trino/etc/catalog/delta.properties b/docker/trino/etc/catalog/delta.properties
new file mode 100644
index 000000000..a3053c7dd
--- /dev/null
+++ b/docker/trino/etc/catalog/delta.properties
@@ -0,0 +1,2 @@
+connector.name=delta_lake
+location=file:///data/parquet
\ No newline at end of file
diff --git a/docker/trino/etc/catalog/hive.properties b/docker/trino/etc/catalog/hive.properties
new file mode 100644
index 000000000..f002ebacb
--- /dev/null
+++ b/docker/trino/etc/catalog/hive.properties
@@ -0,0 +1,3 @@
+connector.name=hive
+hive.metastore.uri=thrift://hive-metastore:9083
+
diff --git a/docker/trino/etc/catalog/iceberg.properties b/docker/trino/etc/catalog/iceberg.properties
new file mode 100644
index 000000000..a2d8e0958
--- /dev/null
+++ b/docker/trino/etc/catalog/iceberg.properties
@@ -0,0 +1,4 @@
+connector.name=iceberg
+iceberg.catalog.type=hive_metastore
+iceberg.catalog.warehouse=file:///data/warehouse
+iceberg.catalog.hive.metastore.uri=thrift://hive-metastore:9083
diff --git a/docker/trino/etc/catalog/localfile.properties b/docker/trino/etc/catalog/localfile.properties
new file mode 100644
index 000000000..6d3f0b2c9
--- /dev/null
+++ b/docker/trino/etc/catalog/localfile.properties
@@ -0,0 +1,2 @@
+connector.name=filesystem
+file.resources-path=/data/parquet/
\ No newline at end of file
diff --git a/examples/README.md b/examples/README.md
new file mode 100644
index 000000000..dd3399317
--- /dev/null
+++ b/examples/README.md
@@ -0,0 +1,115 @@
+# Examples of using Dorieh
+
+These examples are also described in the Dorieh documentation:
+[Examples Documentation](https://foromeplatform.github.io/dorieh/examples.html).
+
+
+
+- [What is included](#what-is-included)
+- [Installing Dorieh and testing the installation](#installing-dorieh-and-testing-the-installation)
+ * [Running Python examples](#running-python-examples)
+ * [Running CWL examples](#running-cwl-examples)
+
+
+
+## What is included
+
+There are three types of examples:
+
+* Using Dorieh without any database backend. There are limited operations
+ that Dorieh can perform without a backend, for example spatial
+ aggregations. These examples are in [no-db](no-db) directory.
+* Using Dorieh with a PostgreSQL instance as a backend. With PostgreSQL as a
+ backend, Dorieh is fully functional data
+ platform. These examples are in [with-postgres](with-postgres) directory.
+
+ If you just want to try Dorieh in non-production mode you can use included
+ [docker-compose.yml](../docker/pg-hll/docker-compose.yml) to start a
+ lightweight PostgreSQL instance. Corresponding connection configuration
+ file [database.ini](with-postgres/database.ini) is included with the
+ examples.
+
+* Using Dorieh with [Apache Spark](https://spark.apache.
+ org/docs/latest/index.html) as a
+ backend. Supporting Spark is a work in progress and only limited
+ functionality is currently supported. We will be gradually adding more
+ features supported with PostgreSQL to Spark. Dorieh does not require
+ setting up an SQL Warehouse to use Spark, but if you need other
+ clients to connect to the backend and perform SQL queries, you might
+ consider using [Hive Metastore](https://spark.apache.
+ org/docs/latest/sql-data-sources-hive-tables.html), or [Databricks]
+ (https://www.databricks.com/), or [Trino](https://trino.io/). Spark
+ examples are in [with-spark](with-spark) directory.
+
+## Installing Dorieh and testing the installation
+
+### Running Python examples
+
+Before you try any of the examples, you need to ensure that Dorieh
+is properly installed.
+
+To run Python commands, you need to install Dorieh package in your
+Python environment. We recommend creating a virtual environment or Conda
+environment. You can use the following commands to do it (replace $path
+with some actual path on your local file system):
+
+```shell
+python3 -m venv $path
+source $path/bin/activate
+pip install "dorieh[FTS,spark]"
+# Or
+# pip install dorieh # without support for FST and Spark
+```
+
+Then you can run the following command to test the installation:
+
+```shell
+dorieh_version
+```
+
+If for any reason you cannot install Dorieh in your Python environment,
+you can still use a Docker container:
+
+```shell
+docker run forome/dorieh dorieh_version
+```
+
+The above command can be run without Python, but needs Docker to be
+installed on your host system (e.g., your laptop or desktop or a cloud
+VM you are using).
+
+### Running CWL examples
+
+To run CWL workflows you must have Python and install either
+[CWL Reference runner](https://cwltool.readthedocs.io/en/latest/) or
+[Toil](https://toil.readthedocs.io/en/latest/gettingStarted/install.html)
+(or any other
+[CWL implementation](https://www.commonwl.org/implementations/)) in your
+virtual environment.
+
+Here we will guide you with Toil installation (replace $path
+with some actual path on your local file system):
+
+```shell
+python3 -m venv $path
+source $path/bin/activate
+pip install "toil[cwl,aws]"
+```
+
+There is no need to install Dorieh, though you can do it using commands
+above, in teh same virtual environment as Toil.
+
+Run the following commands to test your installation:
+
+```shell
+toil-cwl-runner https://raw.githubusercontent.com/ForomePlatform/dorieh/refs/heads/main/src/workflows/version.cwl
+```
+
+and look for output like:
+
+```text
+=========>
+ {"version": "0.4.0", "url": "https://github.com/ForomePlatform/dorieh", "commit": null}
+<=========
+```
+
diff --git a/examples/no-db/README.md b/examples/no-db/README.md
new file mode 100644
index 000000000..9f386b4d8
--- /dev/null
+++ b/examples/no-db/README.md
@@ -0,0 +1,4 @@
+# Basic Dorieh Examples (not using backend)
+
+See: https://foromeplatform.github.io/dorieh/Example-climate-workflow.html
+
diff --git a/examples/climate-example.cwl b/examples/no-db/climate-example.cwl
similarity index 91%
rename from examples/climate-example.cwl
rename to examples/no-db/climate-example.cwl
index 0e7b38967..5c7841ae3 100644
--- a/examples/climate-example.cwl
+++ b/examples/no-db/climate-example.cwl
@@ -59,7 +59,7 @@ inputs:
steps:
download:
- run: https://raw.githubusercontent.com/NSAPH-Data-Platform/dorieh/main/src/cwl/download.cwl
+ run: https://raw.githubusercontent.com/ForomePlatform/dorieh/main/src/cwl/download.cwl
doc: Downloads NetCDF file with gridMET data from Atmospheric Composition Analysis Group
in:
year:
@@ -71,7 +71,7 @@ steps:
- log
- errors
get_shapes:
- run: https://raw.githubusercontent.com/NSAPH-Data-Platform/dorieh/main/src/cwl/get_shapes.cwl
+ run: https://raw.githubusercontent.com/ForomePlatform/dorieh/main/src/cwl/get_shapes.cwl
doc: |
This step downloads Shape files from a given collection (TIGER/Line or GENZ)
and a geography (ZCTA or Counties) from the US Census website,
@@ -84,7 +84,7 @@ steps:
date: date
out: [shape_files]
aggregate:
- run: https://raw.githubusercontent.com/NSAPH-Data-Platform/dorieh/main/src/cwl/aggregate_daily.cwl
+ run: https://raw.githubusercontent.com/ForomePlatform/dorieh/main/src/cwl/aggregate_daily.cwl
doc: |
This step aggregates gridded data from a NetCDF file over polygons from the provided shapefiles
in:
diff --git a/examples/example_request.yaml b/examples/no-db/example_request.yaml
similarity index 100%
rename from examples/example_request.yaml
rename to examples/no-db/example_request.yaml
diff --git a/examples/with-postgres/README.md b/examples/with-postgres/README.md
new file mode 100644
index 000000000..84f48d3e9
--- /dev/null
+++ b/examples/with-postgres/README.md
@@ -0,0 +1,60 @@
+# Using Dorieh with PostgreSQL Backend
+
+If you just want to try Dorieh in non-production mode you can use included
+[docker-compose.yml](../../docker/pg-hll/docker-compose.yml) to start a
+lightweight PostgreSQL instance. Corresponding connection configuration
+file [database.ini](database.ini) is included with the
+examples.
+
+If you have a running instance of PostgreSQL, please create your own
+`database.ini` file as described in the
+[documentation](https://foromeplatform.github.io/dorieh/DBConnections.html).
+
+The following commands assume that you are using the provided
+lightweight PostgreSQL server.
+
+Start the server (Docker and `git` must be installed; replace $workdir with
+some actual path on your local file system):
+
+```shell
+cd $workdir
+git clone https://github.com/ForomePlatform/dorieh.git
+cd docker/pg-hll/
+docker compose up
+# Or: docker compose up -d # to run in the background
+```
+
+Now, test that you can connect to the database:
+
+```shell
+cd $workdir/dorieh/examples/with-postgres
+# Or, if you ran the previous block with `-d` option:
+# cd ../../examples/with-postgres/
+docker run -v ./database.ini:/tmp/database.ini forome/dorieh python -m dorieh.platform.util.psql --connection dorieh --db /tmp/database.ini 'SELECT version();'
+```
+
+Alternatively, if you have Dorieh installed locally in a virtual
+environment, you do not need `docker`. See [General README](../README.md)
+for installation tips. Then you can run:
+
+```shell
+cd $workdir/dorieh/examples/with-postgres
+source $pat_to_dorieh_virtual_env/bin/activate
+python -m dorieh.platform.util.psql --connection localhost --db database.ini 'SELECT version();'
+```
+
+Finally, if you do not have Dorieh installed but have a CWL implementation,
+e.g., Toil (see [General README](../README.md)) or just want to test
+that you can connect to the database from your workflows, use the
+following commands:
+
+```shell
+cd $workdir/dorieh/examples/with-postgres
+source $pat_to_toil_virtual_env/bin/activate
+toil-cwl-runner https://raw.githubusercontent.com/ForomePlatform/dorieh/refs/heads/main/src/workflows/handshake.cwl --database database.ini --connection dorieh
+cat grant.log
+```
+
+
+
+
diff --git a/examples/with-postgres/database.ini b/examples/with-postgres/database.ini
new file mode 100644
index 000000000..7f6067627
--- /dev/null
+++ b/examples/with-postgres/database.ini
@@ -0,0 +1,13 @@
+[dorieh]
+host=host.docker.internal
+port=55432
+database=dorieh
+user=dorieh
+password=dorieh_secret
+
+[localhost]
+host=localhost
+port=55432
+database=dorieh
+user=dorieh
+password=dorieh_secret
diff --git a/examples/longprocess.py b/examples/with-postgres/longprocess.py
similarity index 100%
rename from examples/longprocess.py
rename to examples/with-postgres/longprocess.py
diff --git a/examples/with-postgres/medicare/README.md b/examples/with-postgres/medicare/README.md
new file mode 100644
index 000000000..dbd44468e
--- /dev/null
+++ b/examples/with-postgres/medicare/README.md
@@ -0,0 +1,12 @@
+# Running Sample Medicare Processing Workflow
+
+See [General Setup](../../README.md) and [Database Setup](../README.md) for
+prerequisites.
+
+
+```shell
+cd $workdir/dorieh/examples/with-postgres/medicare
+source $pat_to_toil_virtual_env/bin/activate
+
+toil-cwl-runner --jobStore j1 --retryCount 1 --cleanWorkDir never --outdir outputs --workDir . https://raw.githubusercontent.com/ForomePlatform/dorieh/refs/heads/main/src/workflows/medicare.cwl --input data/ --database ../database.ini --connection_name dorieh
+```
\ No newline at end of file
diff --git a/examples/query.py b/examples/with-postgres/query.py
similarity index 100%
rename from examples/query.py
rename to examples/with-postgres/query.py
diff --git a/examples/with-spark/spark_example.py b/examples/with-spark/spark_example.py
new file mode 100644
index 000000000..41e0b2652
--- /dev/null
+++ b/examples/with-spark/spark_example.py
@@ -0,0 +1,54 @@
+# Copyright (c) 2024. Harvard University
+#
+# Developed by Research Software Engineering,
+# Harvard University Research Computing and Data (RCD) Services.
+#
+# Author: Michael A Bouzinier
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+#
+import os.path
+import sys
+from typing import List, Dict
+
+from pyspark.sql import SparkSession
+
+from dorieh.platform.util.spsql import read_parquet
+
+
+def group_by_counts(path_to_parquet: str, group_by: List[str]) -> Dict[str,int]:
+ spark = SparkSession.builder.appName("GroupByCountsQuery").getOrCreate()
+ try:
+ df = read_parquet(spark, path_to_parquet)
+ result_df = df.groupBy(group_by).count()
+ result_list = result_df.orderBy(group_by).collect()
+
+ result_dict = {
+ ','.join(str(row[col]) for col in group_by): row['count']
+ for row in result_list
+ }
+
+ return result_dict
+ finally:
+ spark.stop()
+
+
+def main():
+ groups = group_by_counts(sys.argv[1], sys.argv[2:])
+ print(groups)
+
+
+if __name__ == '__main__':
+ main()
+
\ No newline at end of file
diff --git a/setup.py b/setup.py
index 6ed80aed5..ec9799290 100644
--- a/setup.py
+++ b/setup.py
@@ -7,14 +7,15 @@
setup(
name='dorieh',
- version="0.1.4",
- url='https://github.com/NSAPH-Data-Platform/dorieh',
+ version="0.4.4",
+ url='https://github.com/ForomePlatform/dorieh',
license='Apache 2.0',
author='Michael A Bouzinier',
author_email='mbouzinier@g.harvard.edu',
description='Dorieh Data Engineering Platform',
long_description = long_description,
long_description_content_type = "text/markdown",
+ include_package_data = True,
entry_points={
'console_scripts': [
'cwl2md=dorieh.docutils.cwl2md:main',
@@ -46,106 +47,48 @@
"dorieh.workflows": ["*.cwl"],
"dorieh.gis": ["data/*.csv"]
},
+ python_requires='>=3.12',
install_requires=[
- 'alembic>=1.4.3',
- 'apispec>=1.3.3',
+ 'aiohttp',
'argcomplete>=1.12.1',
- 'attrs>=19.3.0',
- 'Babel>=2.8.0',
- 'bagit>=1.7.0',
'boto3',
- 'CacheControl>=0.11.7',
- 'cached-property>=1.5.2',
- 'cattrs>=1.0.0',
- 'certifi>=2023.7.22',
- 'chardet>=3.0.4',
- 'click>=7.1.2',
- 'clickclick>=20.10.2',
- 'colorama>=0.4.4',
- 'coloredlogs>=14.0',
- 'colorlog>=4.0.2',
- 'configparser>=3.5.3',
- 'connexion>=2.7.0',
- 'croniter>=0.3.35',
+ 'certifi>=2024.7.4',
'cwltest>=2.0.20200626112502',
'cwltool>=3.0.20200710214758',
- 'decorator>=4.4.2',
- 'defusedxml>=0.6.0',
'deprecated',
- 'dill>=0.3.2',
- 'dnspython>=2.0.0',
- 'docker>=4.3.1',
- 'docutils>=0.16',
- 'funcsigs>=1.0.2',
- 'future>=0.18.2',
- "geopandas",
- "geopy",
+ 'fiona>=1.10.1',
+ 'fsspec',
+ 'geopandas',
+ 'geopy',
'GitPython',
+ 'googlesearch-python',
'graphviz>=0.14.2',
- 'gunicorn>=20.0.4',
'h5py',
'hydra-core',
'humanfriendly>=8.2',
- 'idna>=2.10',
'importlib-metadata>=2.0.0',
- 'inflection>=0.5.1',
- 'iso8601>=0.1.13',
'isodate>=0.6.0',
- 'itsdangerous==1.1.0',
- 'Jinja2==2.11.2',
- 'json-merge-patch>=0.2',
- 'jsonmerge>=1.7.0',
- 'jsonschema>=3.2.0',
- 'junit-xml>=1.9',
- 'lazy-object-proxy>=1.5.1',
- 'lockfile>=0.12.2',
- 'lxml>=4.6.1',
- 'Mako>=1.1.3',
'Markdown>=2.6.11',
'marko',
'MarkupSafe>=1.1.1',
- 'marshmallow>=2.21.0',
- 'marshmallow-enum>=1.5.1',
- 'marshmallow-sqlalchemy>=0.23.1',
- 'mistune>=0.8.4',
'mypy-extensions>=0.4.3',
'myst-parser',
'netCDF4',
- 'natsort>=7.0.1',
- 'networkx>=2.5',
"numpy",
- 'openapi-spec-validator>=0.2.9',
"openpyxl",
'pandas',
'paramiko',
'pyarrow',
- 'pendulum>=1.4.4',
- 'prison>=0.1.3',
- 'prov>=1.5.1',
'psutil>=5.7.2',
'psycopg2-binary>=2.8.6',
- 'pygeos',
'PyGithub',
- 'Pygments>=2.7.1',
- 'PyJWT>=1.7.1',
- 'pyparsing>=2.4.7',
'pyresourcepool',
- 'pyrsistent>=0.17.3',
'pyshp',
"pytest",
- 'python-daemon>=2.2.4',
'python-dateutil>=2.8.1',
- 'python-editor>=1.0.4',
- 'python-nvd3>=0.15.0',
- 'python-slugify>=4.0.1',
- 'python3-openid>=3.2.0',
- 'pytz>=2020.1',
- 'pytzdata>=2020.1',
'PyYAML>=5.3.1',
"rasterstats",
- 'rdflib>=4.2.2',
- 'rdflib-jsonld>=0.5.0',
- 'requests',
+ 'requests>=2.32.4',
'rioxarray',
"rtree",
'ruamel.yaml>=0.16.5',
@@ -153,31 +96,21 @@
'sas7bdat',
'schema-salad>=7.0.20200811075006',
'setproctitle>=1.1.10',
- "shapely",
+ "shapely>=2.1.2",
'shellescape>=3.4.1',
'six>=1.15.0',
'sortedcontainers',
'sphinx',
'sphinx_paramlinks',
'sphinx_rtd_theme',
+ 'sphinxcontrib-mermaid',
'sqlparse',
- 'SQLAlchemy>=1.3.20',
- 'SQLAlchemy-JSONField>=0.9.0',
- 'SQLAlchemy-Utils>=0.36.8',
- 'tabulate>=0.8.7',
- 'tenacity>=4.12.0',
- 'text-unidecode>=1.3',
- 'thrift>=0.13.0',
- 'tornado>=6.0.4',
- "tqdm",
+ "tqdm>=4.66.3",
'typing-extensions',
'tzlocal>=1.5.1',
'unicodecsv>=0.14.1',
- 'urllib3>=1.25.11',
+ 'urllib3>=2.5.0',
'websocket-client>=0.57.0',
- 'Werkzeug>=0.16.1',
- 'zipp>=3.3.1',
- 'zope.deprecation>=4.4.0',
'sshtunnel',
'xarray',
'xlrd'
@@ -185,6 +118,10 @@
extras_require = {
"FST": [
'rpy2',
+ ],
+ "spark": [
+ 'pyspark',
+ 'pyhive'
]
},
classifiers=[
diff --git a/src/cwl/aqs.cwl b/src/cwl/aqs.cwl
index a996deddc..c855e0701 100644
--- a/src/cwl/aqs.cwl
+++ b/src/cwl/aqs.cwl
@@ -115,6 +115,7 @@ steps:
run: ingest.cwl
doc: Uploads data into the database
in:
+ depends_on: initdb/log
registry: introspect/model
domain:
valueFrom: "epa"
@@ -148,6 +149,26 @@ steps:
connection_name: connection_name
out: [log, errors]
+ export:
+ run: export.cwl
+ in:
+ depends_on: ingest/log
+ database: database
+ connection_name: connection_name
+ format:
+ valueFrom: "parquet"
+ table_base_name: table
+ table:
+ valueFrom: $('epa.' + inputs.table_base_name)
+ partition:
+ valueFrom: $(["year"])
+ output:
+ valueFrom: $('export/' + inputs.table_base_name)
+ out:
+ - data
+ - log
+ - errors
+
outputs:
initdb_log:
@@ -186,3 +207,13 @@ outputs:
vacuum_err:
type: File
outputSource: vacuum/errors
+
+ export_data:
+ type: ['File', 'Directory']
+ outputSource: export/data
+ export_log:
+ type: File
+ outputSource: export/log
+ export_err:
+ type: File
+ outputSource: export/errors
diff --git a/src/cwl/create.cwl b/src/cwl/create.cwl
index 074767081..c7a1eeb4c 100644
--- a/src/cwl/create.cwl
+++ b/src/cwl/create.cwl
@@ -66,7 +66,7 @@ inputs:
inputBinding:
prefix: --action
registry:
- type: string?
+ type: File?
inputBinding:
prefix: --registry
input_data:
diff --git a/src/cwl/download_airnow.cwl b/src/cwl/download_airnow.cwl
index 9f6d9f6a4..bf041424b 100644
--- a/src/cwl/download_airnow.cwl
+++ b/src/cwl/download_airnow.cwl
@@ -50,12 +50,12 @@ inputs:
prefix: --parameters
from:
type: string
- doc: Start date for downolading, in YYYY-MM-DD format
+ doc: Start date for downloading, in YYYY-MM-DD format
inputBinding:
prefix: --from
to:
type: string
- doc: End date for downolading, in YYYY-MM-DD format
+ doc: End date for downloading, in YYYY-MM-DD format
inputBinding:
prefix: --to
shapes:
diff --git a/src/cwl/export.cwl b/src/cwl/export.cwl
new file mode 100644
index 000000000..a4f817944
--- /dev/null
+++ b/src/cwl/export.cwl
@@ -0,0 +1,92 @@
+#!/usr/bin/env cwl-runner
+### Export a table or a query result to a file system
+# Copyright (c) 2021. Harvard University
+#
+# Developed by Research Software Engineering,
+# Faculty of Arts and Sciences, Research Computing (FAS RC)
+# Author: Michael A Bouzinier
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+
+cwlVersion: v1.2
+class: CommandLineTool
+baseCommand: [python, -m, dorieh.platform.util.pg_export]
+requirements:
+ InlineJavascriptRequirement: {}
+ NetworkAccess:
+ networkAccess: True
+
+doc: |
+ This tool builds all indices for the specified table.
+ Log file displays real-time progress of building indices
+
+
+inputs:
+ table:
+ type: string?
+ doc: the name of the table
+ inputBinding:
+ prefix: --table
+ sql:
+ type: string?
+ doc: SQL query
+ inputBinding:
+ prefix: --sql
+ partition:
+ type: string[]?
+ doc: List of columns to be used for partitioning
+ inputBinding:
+ prefix: --partition
+ output:
+ type: string
+ doc: the name of the newly created file or directory
+ inputBinding:
+ prefix: --output
+ format:
+ type: string
+ doc: Format of the export, one of jsonl, parquet, csv, hdf5
+ inputBinding:
+ prefix: --format
+ database:
+ type: File
+ doc: Path to database connection file, usually database.ini
+ inputBinding:
+ prefix: --db
+ connection_name:
+ type: string
+ doc: The name of the section in the database.ini file
+ inputBinding:
+ prefix: --connection
+ depends_on:
+ type: Any?
+ doc: a special field used to enforce dependencies and execution order
+
+
+
+outputs:
+ data:
+ type:
+ - File
+ - Directory
+ outputBinding:
+ glob: $(inputs.output + "*")
+ log:
+ type: File
+ outputBinding:
+ glob: "*.log"
+ errors:
+ type: stderr
+
+stderr: $("export-" + inputs.table + ".err")
+
diff --git a/src/cwl/gridmet.cwl b/src/cwl/gridmet.cwl
index adb752258..b40226d38 100644
--- a/src/cwl/gridmet.cwl
+++ b/src/cwl/gridmet.cwl
@@ -97,7 +97,7 @@ inputs:
type: string
default: auto
doc: |
- [Rasterization strategy](https://nsaph-data-platform.github.io/nsaph-platform-docs/common/gridmet/doc/strategy.html)
+ [Rasterization strategy](https://foromeplatform.github.io/dorieh/strategy.html)
used for spatial aggregation
ram:
type: string
@@ -287,6 +287,32 @@ steps:
- vacuum_log
- vacuum_err
+ export:
+ run: export.cwl
+ scatter:
+ - band
+ in:
+ depends_on: process/vacuum_log
+ database: database
+ connection_name: connection_name
+ format:
+ valueFrom: "parquet"
+ domain: domain
+ geography: geography
+ band: bands
+ table:
+ valueFrom: $(inputs.domain + '.' + inputs.geography + '_' + inputs.band)
+ partition:
+ valueFrom: $(["year"])
+ output:
+ valueFrom: $('export/' + inputs.domain + '/' + inputs.geography + '_' + inputs.band)
+ out:
+ - data
+ - log
+ - errors
+
+
+
outputs:
initdb_log:
type: File?
@@ -410,3 +436,15 @@ outputs:
type: array
items: [File]
outputSource: process/vacuum_err
+
+ export_data:
+ type:
+ type: array
+ items: ['File', 'Directory']
+ outputSource: export/data
+ export_log:
+ type: File[]
+ outputSource: export/log
+ export_err:
+ type: File[]
+ outputSource: export/errors
diff --git a/src/cwl/handshake.cwl b/src/cwl/handshake.cwl
new file mode 100644
index 000000000..38a763434
--- /dev/null
+++ b/src/cwl/handshake.cwl
@@ -0,0 +1,65 @@
+### Workflow checking handshake with the database
+# Copyright (c) 2022. Harvard University
+#
+# Developed by Research Software Engineering,
+# Faculty of Arts and Sciences, Research Computing (FAS RC)
+# Author: Michael A Bouzinier
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+
+cwlVersion: v1.2
+class: Workflow
+
+doc: |
+ This workflow executes an SQL statement to connect to the database,
+ display version and list tables. SQL can be overridden
+
+inputs:
+ database:
+ type: File
+ doc: Path to database connection file, usually database.ini
+ connection_name:
+ type: string
+ doc: The name of the section in the database.ini file
+ sql:
+ type: string[]
+ default:
+ - |
+ SELECT '___', version()
+ UNION
+ SELECT table_schema, TABLE_NAME
+ FROM information_schema.tables WHERE table_schema not in ('pg_catalog', 'information_schema')
+ ORDER BY 1
+ ;
+
+steps:
+ psql:
+ run: alter_database.cwl
+ in:
+ database: database
+ connection_name: connection_name
+ sql: sql
+ out:
+ - log
+ - err
+
+
+outputs:
+ psql_log:
+ type: File
+ outputSource: psql/log
+ psql_err:
+ type: File
+ outputSource: psql/err
+
diff --git a/src/cwl/monitor.cwl b/src/cwl/monitor.cwl
new file mode 100644
index 000000000..096985334
--- /dev/null
+++ b/src/cwl/monitor.cwl
@@ -0,0 +1,49 @@
+### Display Dorieh platform version
+# Copyright (c) 2022. Harvard University
+#
+# Developed by Research Software Engineering,
+# Faculty of Arts and Sciences, Research Computing (FAS RC)
+# Author: Michael A Bouzinier
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+
+
+cwlVersion: v1.2
+class: CommandLineTool
+baseCommand: [python, -m, dorieh.platform.loader.monitor]
+
+requirements:
+ InlineJavascriptRequirement: {}
+ NetworkAccess:
+ networkAccess: True
+
+
+
+doc: |
+ This tool prints the DBMS activity statistics,
+ like currently running processes and some details about each process.
+
+inputs:
+ database:
+ type: File
+ doc: Path to database connection file, usually database.ini
+ inputBinding:
+ prefix: --db
+ connection_name:
+ type: string
+ doc: The name of the section in the database.ini file
+ inputBinding:
+ prefix: --connection
+
+outputs: {}
diff --git a/src/cwl/parse_date.cwl b/src/cwl/parse_date.cwl
new file mode 100644
index 000000000..460e317ce
--- /dev/null
+++ b/src/cwl/parse_date.cwl
@@ -0,0 +1,30 @@
+#!/usr/bin/env cwl-runner
+
+cwlVersion: v1.2
+class: ExpressionTool
+
+requirements:
+ InlineJavascriptRequirement: {}
+
+
+inputs:
+ date:
+ type: string
+
+outputs:
+ year:
+ type: string
+ month:
+ type: string
+ day:
+ type: string
+
+expression: |
+ ${
+ const parts = inputs.date.split('-');
+ return {
+ year: parts[0],
+ month: parts[1],
+ day: parts[2]
+ };
+ }
\ No newline at end of file
diff --git a/src/cwl/pm25_yearly_download.cwl b/src/cwl/pm25_yearly_download.cwl
index 6bc807a3a..1da9683f9 100644
--- a/src/cwl/pm25_yearly_download.cwl
+++ b/src/cwl/pm25_yearly_download.cwl
@@ -113,7 +113,7 @@ inputs:
default: auto
doc: |
Rasterization strategy, see
- [documentation](https://nsaph-data-platform.github.io/nsaph-platform-docs/common/gridmet/doc/strategy.html)
+ [documentation](https://foromeplatform.github.io/dorieh/strategy.html)
for the list of supported values and explanations
ram:
type: string
@@ -131,9 +131,6 @@ inputs:
doc: |
Path to database connection file, usually database.ini.
This argument is ignored if `connection_name` == `None`
- default:
- path: database.ini
- class: File
connection_name:
type: string
diff --git a/src/cwl/test_aqs.cwl b/src/cwl/test_aqs.cwl
index 18820be1d..25e4d3dc9 100644
--- a/src/cwl/test_aqs.cwl
+++ b/src/cwl/test_aqs.cwl
@@ -70,6 +70,9 @@ steps:
- ingest_err
- index_err
- vacuum_err
+ - export_data
+ - export_log
+ - export_err
verify:
run: run_test.cwl
@@ -127,3 +130,13 @@ outputs:
verify_errors:
type: File
outputSource: verify/errors
+
+ execute_export_data:
+ type: ['File', 'Directory']
+ outputSource: execute/export_data
+ execute_export_log:
+ type: File
+ outputSource: execute/export_log
+ execute_export_err:
+ type: File
+ outputSource: execute/export_err
diff --git a/src/cwl/test_cases/airnow_test.sql b/src/cwl/test_cases/airnow_test.sql
index ddb02929c..6ddb7af57 100644
--- a/src/cwl/test_cases/airnow_test.sql
+++ b/src/cwl/test_cases/airnow_test.sql
@@ -3,7 +3,7 @@ SELECT
'epa.airnow_pm25_2022.agencyname' As table_column,
'count distinct' As Testing,
CASE
- WHEN (SELECT COUNT(DISTINCT agencyname) FROM epa.airnow_pm25_2022) = '126'
+ WHEN (SELECT COUNT(DISTINCT agencyname) FROM epa.airnow_pm25_2022) = '121'
THEN true ELSE false END AS passed
-- Test case end
@@ -13,7 +13,7 @@ SELECT
'epa.airnow_pm25_2022.agencyname' As table_column,
'MD5 value' As Testing,
CASE
- WHEN (SELECT MD5(string_agg(agencyname::varchar, '' order by agencyname)) FROM epa.airnow_pm25_2022) = 'efb0c6ddb859d8a357540d0ca4e10ab8'
+ WHEN (SELECT MD5(string_agg(agencyname::varchar, '' order by agencyname)) FROM epa.airnow_pm25_2022) = '9a406470a97af294a9532656c29574d6'
THEN true ELSE false END AS passed
-- Test case end
@@ -23,7 +23,7 @@ SELECT
'epa.airnow_pm25_2022.aqi' As table_column,
'Mean value' As Testing,
CASE
- WHEN (SELECT AVG(aqi) FROM epa.airnow_pm25_2022) BETWEEN 30.52329272514281 AND 31.13992490140832
+ WHEN (SELECT AVG(aqi) FROM epa.airnow_pm25_2022) BETWEEN 33.43986228909966 AND 34.115415062616826
THEN true ELSE false END AS passed
-- Test case end
@@ -33,7 +33,7 @@ SELECT
'epa.airnow_pm25_2022.aqi' As table_column,
'Variance' As Testing,
CASE
- WHEN (SELECT VARIANCE(aqi) FROM epa.airnow_pm25_2022) BETWEEN 1279.0248739613687 AND 1304.8637603040227
+ WHEN (SELECT VARIANCE(aqi) FROM epa.airnow_pm25_2022) BETWEEN 1333.7930095763734 AND 1360.7383229011486
THEN true ELSE false END AS passed
-- Test case end
@@ -43,7 +43,7 @@ SELECT
'epa.airnow_pm25_2022.category' As table_column,
'count distinct' As Testing,
CASE
- WHEN (SELECT COUNT(DISTINCT category) FROM epa.airnow_pm25_2022) = '7'
+ WHEN (SELECT COUNT(DISTINCT category) FROM epa.airnow_pm25_2022) = '6'
THEN true ELSE false END AS passed
-- Test case end
@@ -53,7 +53,7 @@ SELECT
'epa.airnow_pm25_2022.category' As table_column,
'Mean value' As Testing,
CASE
- WHEN (SELECT AVG(category) FROM epa.airnow_pm25_2022) BETWEEN -9.281832024146528 AND -9.098033370203034
+ WHEN (SELECT AVG(category) FROM epa.airnow_pm25_2022) BETWEEN -8.236441149015615 AND -8.073343304480652
THEN true ELSE false END AS passed
-- Test case end
@@ -63,7 +63,7 @@ SELECT
'epa.airnow_pm25_2022.category' As table_column,
'Variance' As Testing,
CASE
- WHEN (SELECT VARIANCE(category) FROM epa.airnow_pm25_2022) BETWEEN 10190.738404304393 AND 10396.611907421655
+ WHEN (SELECT VARIANCE(category) FROM epa.airnow_pm25_2022) BETWEEN 9221.822593201103 AND 9408.122039528398
THEN true ELSE false END AS passed
-- Test case end
@@ -73,7 +73,7 @@ SELECT
'epa.airnow_pm25_2022.county' As table_column,
'Mean value' As Testing,
CASE
- WHEN (SELECT AVG(county) FROM epa.airnow_pm25_2022) BETWEEN 28834.996731841922 AND 29417.52191834378
+ WHEN (SELECT AVG(county) FROM epa.airnow_pm25_2022) BETWEEN 28478.472022290924 AND 29053.794689407914
THEN true ELSE false END AS passed
-- Test case end
@@ -83,7 +83,7 @@ SELECT
'epa.airnow_pm25_2022.county' As table_column,
'Variance' As Testing,
CASE
- WHEN (SELECT VARIANCE(county) FROM epa.airnow_pm25_2022) BETWEEN 266210178.3882168 AND 271588161.78999895
+ WHEN (SELECT VARIANCE(county) FROM epa.airnow_pm25_2022) BETWEEN 270875594.3737724 AND 276347828.60354555
THEN true ELSE false END AS passed
-- Test case end
@@ -93,7 +93,7 @@ SELECT
'epa.airnow_pm25_2022.countyfp' As table_column,
'Mean value' As Testing,
CASE
- WHEN (SELECT AVG(countyfp) FROM epa.airnow_pm25_2022) BETWEEN 70.29652135963377 AND 71.71665310427284
+ WHEN (SELECT AVG(countyfp) FROM epa.airnow_pm25_2022) BETWEEN 70.09395988672676 AND 71.50999948039802
THEN true ELSE false END AS passed
-- Test case end
@@ -103,7 +103,7 @@ SELECT
'epa.airnow_pm25_2022.countyfp' As table_column,
'Variance' As Testing,
CASE
- WHEN (SELECT VARIANCE(countyfp) FROM epa.airnow_pm25_2022) BETWEEN 6359.567011231304 AND 6488.0431124683
+ WHEN (SELECT VARIANCE(countyfp) FROM epa.airnow_pm25_2022) BETWEEN 6386.580761295314 AND 6515.602594856835
THEN true ELSE false END AS passed
-- Test case end
@@ -113,7 +113,7 @@ SELECT
'epa.airnow_pm25_2022.fips5' As table_column,
'Mean value' As Testing,
CASE
- WHEN (SELECT AVG(fips5) FROM epa.airnow_pm25_2022) BETWEEN 28834.996731841922 AND 29417.52191834378
+ WHEN (SELECT AVG(fips5) FROM epa.airnow_pm25_2022) BETWEEN 28478.472022290924 AND 29053.794689407914
THEN true ELSE false END AS passed
-- Test case end
@@ -123,7 +123,7 @@ SELECT
'epa.airnow_pm25_2022.fips5' As table_column,
'Variance' As Testing,
CASE
- WHEN (SELECT VARIANCE(fips5) FROM epa.airnow_pm25_2022) BETWEEN 266210178.3882168 AND 271588161.78999895
+ WHEN (SELECT VARIANCE(fips5) FROM epa.airnow_pm25_2022) BETWEEN 270875594.3737724 AND 276347828.60354555
THEN true ELSE false END AS passed
-- Test case end
@@ -133,7 +133,7 @@ SELECT
'epa.airnow_pm25_2022.fullaqscode' As table_column,
'count distinct' As Testing,
CASE
- WHEN (SELECT COUNT(DISTINCT fullaqscode) FROM epa.airnow_pm25_2022) = '1157'
+ WHEN (SELECT COUNT(DISTINCT fullaqscode) FROM epa.airnow_pm25_2022) = '1068'
THEN true ELSE false END AS passed
-- Test case end
@@ -143,7 +143,7 @@ SELECT
'epa.airnow_pm25_2022.fullaqscode' As table_column,
'MD5 value' As Testing,
CASE
- WHEN (SELECT MD5(string_agg(fullaqscode::varchar, '' order by fullaqscode)) FROM epa.airnow_pm25_2022) = 'b3aa2851cfa54db7480f701eac37b0ff'
+ WHEN (SELECT MD5(string_agg(fullaqscode::varchar, '' order by fullaqscode)) FROM epa.airnow_pm25_2022) = 'd32efcb423d0fd47258fe614654d4893'
THEN true ELSE false END AS passed
-- Test case end
@@ -153,7 +153,7 @@ SELECT
'epa.airnow_pm25_2022.intlaqscode' As table_column,
'count distinct' As Testing,
CASE
- WHEN (SELECT COUNT(DISTINCT intlaqscode) FROM epa.airnow_pm25_2022) = '1157'
+ WHEN (SELECT COUNT(DISTINCT intlaqscode) FROM epa.airnow_pm25_2022) = '1068'
THEN true ELSE false END AS passed
-- Test case end
@@ -163,7 +163,7 @@ SELECT
'epa.airnow_pm25_2022.intlaqscode' As table_column,
'MD5 value' As Testing,
CASE
- WHEN (SELECT MD5(string_agg(intlaqscode::varchar, '' order by intlaqscode)) FROM epa.airnow_pm25_2022) = 'd35ad20fd649999c51e4917a6c024dfe'
+ WHEN (SELECT MD5(string_agg(intlaqscode::varchar, '' order by intlaqscode)) FROM epa.airnow_pm25_2022) = '24496c9839608175e055847400c90c60'
THEN true ELSE false END AS passed
-- Test case end
@@ -173,7 +173,7 @@ SELECT
'epa.airnow_pm25_2022.latitude' As table_column,
'Mean value' As Testing,
CASE
- WHEN (SELECT AVG(latitude) FROM epa.airnow_pm25_2022) BETWEEN 40.37531130098637 AND 41.19097415555176
+ WHEN (SELECT AVG(latitude) FROM epa.airnow_pm25_2022) BETWEEN 40.404077653743634 AND 41.22032164674855
THEN true ELSE false END AS passed
-- Test case end
@@ -183,7 +183,7 @@ SELECT
'epa.airnow_pm25_2022.latitude' As table_column,
'Variance' As Testing,
CASE
- WHEN (SELECT VARIANCE(latitude) FROM epa.airnow_pm25_2022) BETWEEN 41.23567738980816 AND 42.068721377481054
+ WHEN (SELECT VARIANCE(latitude) FROM epa.airnow_pm25_2022) BETWEEN 41.487201172062555 AND 42.32532644826584
THEN true ELSE false END AS passed
-- Test case end
@@ -193,7 +193,7 @@ SELECT
'epa.airnow_pm25_2022.longitude' As table_column,
'Mean value' As Testing,
CASE
- WHEN (SELECT AVG(longitude) FROM epa.airnow_pm25_2022) BETWEEN -99.1896801748497 AND -97.2255280921794
+ WHEN (SELECT AVG(longitude) FROM epa.airnow_pm25_2022) BETWEEN -99.15393951585901 AND -97.19049516901032
THEN true ELSE false END AS passed
-- Test case end
@@ -203,7 +203,7 @@ SELECT
'epa.airnow_pm25_2022.longitude' As table_column,
'Variance' As Testing,
CASE
- WHEN (SELECT VARIANCE(longitude) FROM epa.airnow_pm25_2022) BETWEEN 343.7438091719147 AND 350.68812854912505
+ WHEN (SELECT VARIANCE(longitude) FROM epa.airnow_pm25_2022) BETWEEN 344.89452822418815 AND 351.8620944509394
THEN true ELSE false END AS passed
-- Test case end
@@ -213,7 +213,7 @@ SELECT
'epa.airnow_pm25_2022.monitor' As table_column,
'count distinct' As Testing,
CASE
- WHEN (SELECT COUNT(DISTINCT monitor) FROM epa.airnow_pm25_2022) = '1157'
+ WHEN (SELECT COUNT(DISTINCT monitor) FROM epa.airnow_pm25_2022) = '1068'
THEN true ELSE false END AS passed
-- Test case end
@@ -223,7 +223,7 @@ SELECT
'epa.airnow_pm25_2022.monitor' As table_column,
'MD5 value' As Testing,
CASE
- WHEN (SELECT MD5(string_agg(monitor::varchar, '' order by monitor)) FROM epa.airnow_pm25_2022) = '647ad82facaedddf429904ce8115ce37'
+ WHEN (SELECT MD5(string_agg(monitor::varchar, '' order by monitor)) FROM epa.airnow_pm25_2022) = '4803ea970ccf009172bab6c8ed01a665'
THEN true ELSE false END AS passed
-- Test case end
@@ -243,7 +243,7 @@ SELECT
'epa.airnow_pm25_2022.parameter' As table_column,
'MD5 value' As Testing,
CASE
- WHEN (SELECT MD5(string_agg(parameter::varchar, '' order by parameter)) FROM epa.airnow_pm25_2022) = '5ac82262d1576ff0211e9c263915cad3'
+ WHEN (SELECT MD5(string_agg(parameter::varchar, '' order by parameter)) FROM epa.airnow_pm25_2022) = '8a6d003102a31b783bdb08cdfffee466'
THEN true ELSE false END AS passed
-- Test case end
@@ -253,7 +253,7 @@ SELECT
'epa.airnow_pm25_2022.record' As table_column,
'count distinct' As Testing,
CASE
- WHEN (SELECT COUNT(DISTINCT record) FROM epa.airnow_pm25_2022) = '266705'
+ WHEN (SELECT COUNT(DISTINCT record) FROM epa.airnow_pm25_2022) = '47136'
THEN true ELSE false END AS passed
-- Test case end
@@ -263,7 +263,7 @@ SELECT
'epa.airnow_pm25_2022.record' As table_column,
'MD5 value' As Testing,
CASE
- WHEN (SELECT MD5(string_agg(record::varchar, '' order by record)) FROM epa.airnow_pm25_2022) = '34067e2f727594be311c09cd8abb1f1e'
+ WHEN (SELECT MD5(string_agg(record::varchar, '' order by record)) FROM epa.airnow_pm25_2022) = 'f666c29b1e530235228399279d5e70be'
THEN true ELSE false END AS passed
-- Test case end
@@ -273,7 +273,7 @@ SELECT
'epa.airnow_pm25_2022.sitename' As table_column,
'count distinct' As Testing,
CASE
- WHEN (SELECT COUNT(DISTINCT sitename) FROM epa.airnow_pm25_2022) = '1142'
+ WHEN (SELECT COUNT(DISTINCT sitename) FROM epa.airnow_pm25_2022) = '1053'
THEN true ELSE false END AS passed
-- Test case end
@@ -283,7 +283,7 @@ SELECT
'epa.airnow_pm25_2022.sitename' As table_column,
'MD5 value' As Testing,
CASE
- WHEN (SELECT MD5(string_agg(sitename::varchar, '' order by sitename)) FROM epa.airnow_pm25_2022) = 'fed34eff122046a5508b9b9c82a61419'
+ WHEN (SELECT MD5(string_agg(sitename::varchar, '' order by sitename)) FROM epa.airnow_pm25_2022) = '01ddfa95fafc62711e72461e8439000c'
THEN true ELSE false END AS passed
-- Test case end
@@ -293,7 +293,7 @@ SELECT
'epa.airnow_pm25_2022.state' As table_column,
'Mean value' As Testing,
CASE
- WHEN (SELECT AVG(state) FROM epa.airnow_pm25_2022) BETWEEN 28.764700210482292 AND 29.34580526523951
+ WHEN (SELECT AVG(state) FROM epa.airnow_pm25_2022) BETWEEN 28.4083780624042 AND 28.982284689927514
THEN true ELSE false END AS passed
-- Test case end
@@ -303,7 +303,7 @@ SELECT
'epa.airnow_pm25_2022.state' As table_column,
'Variance' As Testing,
CASE
- WHEN (SELECT VARIANCE(state) FROM epa.airnow_pm25_2022) BETWEEN 266.022493856625 AND 271.3966856517083
+ WHEN (SELECT VARIANCE(state) FROM epa.airnow_pm25_2022) BETWEEN 270.70545984769586 AND 276.1742570163362
THEN true ELSE false END AS passed
-- Test case end
@@ -313,7 +313,7 @@ SELECT
'epa.airnow_pm25_2022.statefp' As table_column,
'Mean value' As Testing,
CASE
- WHEN (SELECT AVG(statefp) FROM epa.airnow_pm25_2022) BETWEEN 28.764700210482292 AND 29.34580526523951
+ WHEN (SELECT AVG(statefp) FROM epa.airnow_pm25_2022) BETWEEN 28.4083780624042 AND 28.982284689927514
THEN true ELSE false END AS passed
-- Test case end
@@ -323,7 +323,7 @@ SELECT
'epa.airnow_pm25_2022.statefp' As table_column,
'Variance' As Testing,
CASE
- WHEN (SELECT VARIANCE(statefp) FROM epa.airnow_pm25_2022) BETWEEN 266.022493856625 AND 271.3966856517083
+ WHEN (SELECT VARIANCE(statefp) FROM epa.airnow_pm25_2022) BETWEEN 270.70545984769586 AND 276.1742570163362
THEN true ELSE false END AS passed
-- Test case end
@@ -343,7 +343,7 @@ SELECT
'epa.airnow_pm25_2022.stusps' As table_column,
'MD5 value' As Testing,
CASE
- WHEN (SELECT MD5(string_agg(stusps::varchar, '' order by stusps)) FROM epa.airnow_pm25_2022) = '6bef9ce45d6c8c9db53d0a25eacc9226'
+ WHEN (SELECT MD5(string_agg(stusps::varchar, '' order by stusps)) FROM epa.airnow_pm25_2022) = '48c8e2a1283b289bd1617da66440dd65'
THEN true ELSE false END AS passed
-- Test case end
@@ -363,7 +363,7 @@ SELECT
'epa.airnow_pm25_2022.unit' As table_column,
'MD5 value' As Testing,
CASE
- WHEN (SELECT MD5(string_agg(unit::varchar, '' order by unit)) FROM epa.airnow_pm25_2022) = 'b7926a3a98091e104c71425cde6bd9fb'
+ WHEN (SELECT MD5(string_agg(unit::varchar, '' order by unit)) FROM epa.airnow_pm25_2022) = 'a9d5911ac31fd963ba6440c803b512b9'
THEN true ELSE false END AS passed
-- Test case end
@@ -373,7 +373,7 @@ SELECT
'epa.airnow_pm25_2022.utc' As table_column,
'count distinct' As Testing,
CASE
- WHEN (SELECT COUNT(DISTINCT utc) FROM epa.airnow_pm25_2022) = '1919'
+ WHEN (SELECT COUNT(DISTINCT utc) FROM epa.airnow_pm25_2022) = '323'
THEN true ELSE false END AS passed
-- Test case end
@@ -383,7 +383,7 @@ SELECT
'epa.airnow_pm25_2022.utc' As table_column,
'MD5 value' As Testing,
CASE
- WHEN (SELECT MD5(string_agg(utc::varchar, '' order by utc)) FROM epa.airnow_pm25_2022) = '21342b947bb298addd3f6ce73ebd9642'
+ WHEN (SELECT MD5(string_agg(utc::varchar, '' order by utc)) FROM epa.airnow_pm25_2022) = 'df830e3926d82efcea8c6d8fd07211fe'
THEN true ELSE false END AS passed
-- Test case end
@@ -393,7 +393,7 @@ SELECT
'epa.airnow_pm25_2022.value' As table_column,
'Mean value' As Testing,
CASE
- WHEN (SELECT AVG(value) FROM epa.airnow_pm25_2022) BETWEEN 3.6543681092309277 AND 3.7281937275992294
+ WHEN (SELECT AVG(value) FROM epa.airnow_pm25_2022) BETWEEN 4.616074140532878 AND 4.709328163573946
THEN true ELSE false END AS passed
-- Test case end
@@ -403,7 +403,7 @@ SELECT
'epa.airnow_pm25_2022.value' As table_column,
'Variance' As Testing,
CASE
- WHEN (SELECT VARIANCE(value) FROM epa.airnow_pm25_2022) BETWEEN 909.5639002320942 AND 927.9389285196113
+ WHEN (SELECT VARIANCE(value) FROM epa.airnow_pm25_2022) BETWEEN 981.2026840519833 AND 1001.024960497478
THEN true ELSE false END AS passed
-- Test case end
@@ -413,7 +413,7 @@ SELECT
'epa.airnow_pm25_2022.zcta' As table_column,
'Mean value' As Testing,
CASE
- WHEN (SELECT AVG(zcta) FROM epa.airnow_pm25_2022) BETWEEN 60264.06892267724 AND 61481.524860509104
+ WHEN (SELECT AVG(zcta) FROM epa.airnow_pm25_2022) BETWEEN 60184.04890862217 AND 61399.88828051353
THEN true ELSE false END AS passed
-- Test case end
@@ -423,7 +423,7 @@ SELECT
'epa.airnow_pm25_2022.zcta' As table_column,
'Variance' As Testing,
CASE
- WHEN (SELECT VARIANCE(zcta) FROM epa.airnow_pm25_2022) BETWEEN 936105341.634869 AND 955016560.6577955
+ WHEN (SELECT VARIANCE(zcta) FROM epa.airnow_pm25_2022) BETWEEN 937770192.3683704 AND 956715044.7394487
THEN true ELSE false END AS passed
-- Test case end
diff --git a/src/cwl/test_cases/aqs_test.sql b/src/cwl/test_cases/aqs_test.sql
index 7b64be52a..90db1b755 100644
--- a/src/cwl/test_cases/aqs_test.sql
+++ b/src/cwl/test_cases/aqs_test.sql
@@ -3,7 +3,7 @@ SELECT
'epa.pm25_annual.address' As table_column,
'count distinct' As Testing,
CASE
- WHEN (SELECT COUNT(DISTINCT address) FROM epa.pm25_annual) = '993'
+ WHEN (SELECT COUNT(DISTINCT address) FROM epa.pm25_annual) = '1040'
THEN true ELSE false END AS passed
-- Test case end
@@ -13,7 +13,7 @@ SELECT
'epa.pm25_annual.address' As table_column,
'MD5 value' As Testing,
CASE
- WHEN (SELECT MD5(string_agg(address::varchar, '' order by address)) FROM epa.pm25_annual) = 'a9d9efbd73758559b709f5743b0a0298'
+ WHEN (SELECT MD5(string_agg(address::varchar, '' order by address)) FROM epa.pm25_annual) = 'b8ec4941d98cc68ed3be4e73e84dec34'
THEN true ELSE false END AS passed
-- Test case end
@@ -23,7 +23,7 @@ SELECT
'epa.pm25_annual.arithmetic_mean' As table_column,
'Mean value' As Testing,
CASE
- WHEN (SELECT AVG(arithmetic_mean) FROM epa.pm25_annual) BETWEEN 9.629209926363096 AND 9.823739419824978
+ WHEN (SELECT AVG(arithmetic_mean) FROM epa.pm25_annual) BETWEEN 9.503552431648101 AND 9.695543389863216
THEN true ELSE false END AS passed
-- Test case end
@@ -33,7 +33,7 @@ SELECT
'epa.pm25_annual.arithmetic_mean' As table_column,
'Variance' As Testing,
CASE
- WHEN (SELECT VARIANCE(arithmetic_mean) FROM epa.pm25_annual) BETWEEN 7.838455816201485 AND 7.99680845895303
+ WHEN (SELECT VARIANCE(arithmetic_mean) FROM epa.pm25_annual) BETWEEN 7.258715880044714 AND 7.405356604894103
THEN true ELSE false END AS passed
-- Test case end
@@ -43,7 +43,7 @@ SELECT
'epa.pm25_annual.arithmetic_standard_dev' As table_column,
'Mean value' As Testing,
CASE
- WHEN (SELECT AVG(arithmetic_standard_dev) FROM epa.pm25_annual) BETWEEN 5.609451331035894 AND 5.722773580147731
+ WHEN (SELECT AVG(arithmetic_standard_dev) FROM epa.pm25_annual) BETWEEN 5.53357307452905 AND 5.64536242957004
THEN true ELSE false END AS passed
-- Test case end
@@ -53,7 +53,7 @@ SELECT
'epa.pm25_annual.arithmetic_standard_dev' As table_column,
'Variance' As Testing,
CASE
- WHEN (SELECT VARIANCE(arithmetic_standard_dev) FROM epa.pm25_annual) BETWEEN 4.5492152627144975 AND 4.641118601355194
+ WHEN (SELECT VARIANCE(arithmetic_standard_dev) FROM epa.pm25_annual) BETWEEN 5.495886338734953 AND 5.606914345578082
THEN true ELSE false END AS passed
-- Test case end
@@ -63,7 +63,7 @@ SELECT
'epa.pm25_annual.c_10th_percentile' As table_column,
'Mean value' As Testing,
CASE
- WHEN (SELECT AVG(c_10th_percentile) FROM epa.pm25_annual) BETWEEN 4.2345429799426935 AND 4.320089302769819
+ WHEN (SELECT AVG(c_10th_percentile) FROM epa.pm25_annual) BETWEEN 4.214776471116298 AND 4.2999234705327884
THEN true ELSE false END AS passed
-- Test case end
@@ -73,7 +73,7 @@ SELECT
'epa.pm25_annual.c_10th_percentile' As table_column,
'Variance' As Testing,
CASE
- WHEN (SELECT VARIANCE(c_10th_percentile) FROM epa.pm25_annual) BETWEEN 3.5833437485749045 AND 3.6557345313743976
+ WHEN (SELECT VARIANCE(c_10th_percentile) FROM epa.pm25_annual) BETWEEN 2.9870818746231578 AND 3.047426962999383
THEN true ELSE false END AS passed
-- Test case end
@@ -83,7 +83,7 @@ SELECT
'epa.pm25_annual.c_1st_max_datetime' As table_column,
'count distinct' As Testing,
CASE
- WHEN (SELECT COUNT(DISTINCT c_1st_max_datetime) FROM epa.pm25_annual) = '760'
+ WHEN (SELECT COUNT(DISTINCT c_1st_max_datetime) FROM epa.pm25_annual) = '713'
THEN true ELSE false END AS passed
-- Test case end
@@ -93,7 +93,7 @@ SELECT
'epa.pm25_annual.c_1st_max_datetime' As table_column,
'MD5 value' As Testing,
CASE
- WHEN (SELECT MD5(string_agg(c_1st_max_datetime::varchar, '' order by c_1st_max_datetime)) FROM epa.pm25_annual) = '809d0fe4f270d463378b7208c29be0f2'
+ WHEN (SELECT MD5(string_agg(c_1st_max_datetime::varchar, '' order by c_1st_max_datetime)) FROM epa.pm25_annual) = 'c8cef7d271faf169c27fd1066a08e7d5'
THEN true ELSE false END AS passed
-- Test case end
@@ -123,7 +123,7 @@ SELECT
'epa.pm25_annual.c_1st_max_value' As table_column,
'Mean value' As Testing,
CASE
- WHEN (SELECT AVG(c_1st_max_value) FROM epa.pm25_annual) BETWEEN 36.31439234648472 AND 37.04801643429249
+ WHEN (SELECT AVG(c_1st_max_value) FROM epa.pm25_annual) BETWEEN 34.418070753876314 AND 35.11338531456068
THEN true ELSE false END AS passed
-- Test case end
@@ -133,7 +133,7 @@ SELECT
'epa.pm25_annual.c_1st_max_value' As table_column,
'Variance' As Testing,
CASE
- WHEN (SELECT VARIANCE(c_1st_max_value) FROM epa.pm25_annual) BETWEEN 1470.596999364861 AND 1500.3060296550602
+ WHEN (SELECT VARIANCE(c_1st_max_value) FROM epa.pm25_annual) BETWEEN 1127.454866828137 AND 1150.2317328246652
THEN true ELSE false END AS passed
-- Test case end
@@ -163,7 +163,7 @@ SELECT
'epa.pm25_annual.c_2nd_max_datetime' As table_column,
'count distinct' As Testing,
CASE
- WHEN (SELECT COUNT(DISTINCT c_2nd_max_datetime) FROM epa.pm25_annual) = '804'
+ WHEN (SELECT COUNT(DISTINCT c_2nd_max_datetime) FROM epa.pm25_annual) = '752'
THEN true ELSE false END AS passed
-- Test case end
@@ -173,7 +173,7 @@ SELECT
'epa.pm25_annual.c_2nd_max_datetime' As table_column,
'MD5 value' As Testing,
CASE
- WHEN (SELECT MD5(string_agg(c_2nd_max_datetime::varchar, '' order by c_2nd_max_datetime)) FROM epa.pm25_annual) = '9e0797d9d1acd7f40d263c4ff24844dd'
+ WHEN (SELECT MD5(string_agg(c_2nd_max_datetime::varchar, '' order by c_2nd_max_datetime)) FROM epa.pm25_annual) = 'c501f370670b9e18024fdcf25942d040'
THEN true ELSE false END AS passed
-- Test case end
@@ -203,7 +203,7 @@ SELECT
'epa.pm25_annual.c_2nd_max_value' As table_column,
'Mean value' As Testing,
CASE
- WHEN (SELECT AVG(c_2nd_max_value) FROM epa.pm25_annual) BETWEEN 29.637130914920142 AND 30.23586083239328
+ WHEN (SELECT AVG(c_2nd_max_value) FROM epa.pm25_annual) BETWEEN 28.19859854697807 AND 28.76826720449278
THEN true ELSE false END AS passed
-- Test case end
@@ -213,7 +213,7 @@ SELECT
'epa.pm25_annual.c_2nd_max_value' As table_column,
'Variance' As Testing,
CASE
- WHEN (SELECT VARIANCE(c_2nd_max_value) FROM epa.pm25_annual) BETWEEN 553.1244621794679 AND 564.298693738649
+ WHEN (SELECT VARIANCE(c_2nd_max_value) FROM epa.pm25_annual) BETWEEN 464.50600861510634 AND 473.88996838510855
THEN true ELSE false END AS passed
-- Test case end
@@ -243,7 +243,7 @@ SELECT
'epa.pm25_annual.c_3rd_max_datetime' As table_column,
'count distinct' As Testing,
CASE
- WHEN (SELECT COUNT(DISTINCT c_3rd_max_datetime) FROM epa.pm25_annual) = '840'
+ WHEN (SELECT COUNT(DISTINCT c_3rd_max_datetime) FROM epa.pm25_annual) = '787'
THEN true ELSE false END AS passed
-- Test case end
@@ -253,7 +253,7 @@ SELECT
'epa.pm25_annual.c_3rd_max_datetime' As table_column,
'MD5 value' As Testing,
CASE
- WHEN (SELECT MD5(string_agg(c_3rd_max_datetime::varchar, '' order by c_3rd_max_datetime)) FROM epa.pm25_annual) = '8ebbfb3b6687810ad38d0841841f7f85'
+ WHEN (SELECT MD5(string_agg(c_3rd_max_datetime::varchar, '' order by c_3rd_max_datetime)) FROM epa.pm25_annual) = '3127c0a3d4cd4cfc3643df6309a0b97b'
THEN true ELSE false END AS passed
-- Test case end
@@ -263,7 +263,7 @@ SELECT
'epa.pm25_annual.c_3rd_max_value' As table_column,
'Mean value' As Testing,
CASE
- WHEN (SELECT AVG(c_3rd_max_value) FROM epa.pm25_annual) BETWEEN 26.736599607866435 AND 27.27673293327788
+ WHEN (SELECT AVG(c_3rd_max_value) FROM epa.pm25_annual) BETWEEN 25.533680523203728 AND 26.049512452965416
THEN true ELSE false END AS passed
-- Test case end
@@ -273,7 +273,7 @@ SELECT
'epa.pm25_annual.c_3rd_max_value' As table_column,
'Variance' As Testing,
CASE
- WHEN (SELECT VARIANCE(c_3rd_max_value) FROM epa.pm25_annual) BETWEEN 378.83833600261426 AND 386.49163571983877
+ WHEN (SELECT VARIANCE(c_3rd_max_value) FROM epa.pm25_annual) BETWEEN 310.70394887184307 AND 316.9807963237995
THEN true ELSE false END AS passed
-- Test case end
@@ -283,7 +283,7 @@ SELECT
'epa.pm25_annual.c_4th_max_datetime' As table_column,
'count distinct' As Testing,
CASE
- WHEN (SELECT COUNT(DISTINCT c_4th_max_datetime) FROM epa.pm25_annual) = '863'
+ WHEN (SELECT COUNT(DISTINCT c_4th_max_datetime) FROM epa.pm25_annual) = '793'
THEN true ELSE false END AS passed
-- Test case end
@@ -293,7 +293,7 @@ SELECT
'epa.pm25_annual.c_4th_max_datetime' As table_column,
'MD5 value' As Testing,
CASE
- WHEN (SELECT MD5(string_agg(c_4th_max_datetime::varchar, '' order by c_4th_max_datetime)) FROM epa.pm25_annual) = 'cd3726e9d0a84b5136ede5c60a55b09f'
+ WHEN (SELECT MD5(string_agg(c_4th_max_datetime::varchar, '' order by c_4th_max_datetime)) FROM epa.pm25_annual) = '4ef8767d0bb66e903dbe591e3e5b2913'
THEN true ELSE false END AS passed
-- Test case end
@@ -303,7 +303,7 @@ SELECT
'epa.pm25_annual.c_4th_max_value' As table_column,
'Mean value' As Testing,
CASE
- WHEN (SELECT AVG(c_4th_max_value) FROM epa.pm25_annual) BETWEEN 24.918563113145847 AND 25.421968428562938
+ WHEN (SELECT AVG(c_4th_max_value) FROM epa.pm25_annual) BETWEEN 23.764921597633133 AND 24.245021023847947
THEN true ELSE false END AS passed
-- Test case end
@@ -313,7 +313,7 @@ SELECT
'epa.pm25_annual.c_4th_max_value' As table_column,
'Variance' As Testing,
CASE
- WHEN (SELECT VARIANCE(c_4th_max_value) FROM epa.pm25_annual) BETWEEN 301.5608637122657 AND 307.65300237311953
+ WHEN (SELECT VARIANCE(c_4th_max_value) FROM epa.pm25_annual) BETWEEN 263.8584116418533 AND 269.18888460431504
THEN true ELSE false END AS passed
-- Test case end
@@ -323,7 +323,7 @@ SELECT
'epa.pm25_annual.c_50th_percentile' As table_column,
'Mean value' As Testing,
CASE
- WHEN (SELECT AVG(c_50th_percentile) FROM epa.pm25_annual) BETWEEN 8.5570488500624 AND 8.729918523801034
+ WHEN (SELECT AVG(c_50th_percentile) FROM epa.pm25_annual) BETWEEN 8.43221065342815 AND 8.602558343396396
THEN true ELSE false END AS passed
-- Test case end
@@ -333,7 +333,7 @@ SELECT
'epa.pm25_annual.c_50th_percentile' As table_column,
'Variance' As Testing,
CASE
- WHEN (SELECT VARIANCE(c_50th_percentile) FROM epa.pm25_annual) BETWEEN 7.9989136370147 AND 8.160507851903885
+ WHEN (SELECT VARIANCE(c_50th_percentile) FROM epa.pm25_annual) BETWEEN 6.9942279058508126 AND 7.135525439302344
THEN true ELSE false END AS passed
-- Test case end
@@ -343,7 +343,7 @@ SELECT
'epa.pm25_annual.c_75th_percentile' As table_column,
'Mean value' As Testing,
CASE
- WHEN (SELECT AVG(c_75th_percentile) FROM epa.pm25_annual) BETWEEN 12.293092257490358 AND 12.541437555621478
+ WHEN (SELECT AVG(c_75th_percentile) FROM epa.pm25_annual) BETWEEN 12.100373406681873 AND 12.344825394695649
THEN true ELSE false END AS passed
-- Test case end
@@ -353,7 +353,7 @@ SELECT
'epa.pm25_annual.c_75th_percentile' As table_column,
'Variance' As Testing,
CASE
- WHEN (SELECT VARIANCE(c_75th_percentile) FROM epa.pm25_annual) BETWEEN 14.729089827522861 AND 15.02664719777585
+ WHEN (SELECT VARIANCE(c_75th_percentile) FROM epa.pm25_annual) BETWEEN 13.716797174058666 AND 13.993904187676012
THEN true ELSE false END AS passed
-- Test case end
@@ -363,7 +363,7 @@ SELECT
'epa.pm25_annual.c_90th_percentile' As table_column,
'Mean value' As Testing,
CASE
- WHEN (SELECT AVG(c_90th_percentile) FROM epa.pm25_annual) BETWEEN 17.001598042124 AND 17.345064669237615
+ WHEN (SELECT AVG(c_90th_percentile) FROM epa.pm25_annual) BETWEEN 16.797433919227156 AND 17.136776018605484
THEN true ELSE false END AS passed
-- Test case end
@@ -373,7 +373,7 @@ SELECT
'epa.pm25_annual.c_90th_percentile' As table_column,
'Variance' As Testing,
CASE
- WHEN (SELECT VARIANCE(c_90th_percentile) FROM epa.pm25_annual) BETWEEN 29.300960948139004 AND 29.89289955315191
+ WHEN (SELECT VARIANCE(c_90th_percentile) FROM epa.pm25_annual) BETWEEN 29.31917969172518 AND 29.911486352164072
THEN true ELSE false END AS passed
-- Test case end
@@ -383,7 +383,7 @@ SELECT
'epa.pm25_annual.c_95th_percentile' As table_column,
'Mean value' As Testing,
CASE
- WHEN (SELECT AVG(c_95th_percentile) FROM epa.pm25_annual) BETWEEN 20.569603856422425 AND 20.985151409077424
+ WHEN (SELECT AVG(c_95th_percentile) FROM epa.pm25_annual) BETWEEN 20.343191600697708 AND 20.754165168388568
THEN true ELSE false END AS passed
-- Test case end
@@ -393,7 +393,7 @@ SELECT
'epa.pm25_annual.c_95th_percentile' As table_column,
'Variance' As Testing,
CASE
- WHEN (SELECT VARIANCE(c_95th_percentile) FROM epa.pm25_annual) BETWEEN 46.88119119796214 AND 47.828285969638145
+ WHEN (SELECT VARIANCE(c_95th_percentile) FROM epa.pm25_annual) BETWEEN 51.71126708389841 AND 52.75593914619939
THEN true ELSE false END AS passed
-- Test case end
@@ -403,7 +403,7 @@ SELECT
'epa.pm25_annual.c_98th_percentile' As table_column,
'Mean value' As Testing,
CASE
- WHEN (SELECT AVG(c_98th_percentile) FROM epa.pm25_annual) BETWEEN 24.572070186888165 AND 25.068475645209137
+ WHEN (SELECT AVG(c_98th_percentile) FROM epa.pm25_annual) BETWEEN 24.47118918556286 AND 24.96555664385706
THEN true ELSE false END AS passed
-- Test case end
@@ -413,7 +413,7 @@ SELECT
'epa.pm25_annual.c_98th_percentile' As table_column,
'Variance' As Testing,
CASE
- WHEN (SELECT VARIANCE(c_98th_percentile) FROM epa.pm25_annual) BETWEEN 77.3295639205613 AND 78.8917773330979
+ WHEN (SELECT VARIANCE(c_98th_percentile) FROM epa.pm25_annual) BETWEEN 101.30361781387292 AND 103.35015554748652
THEN true ELSE false END AS passed
-- Test case end
@@ -423,7 +423,7 @@ SELECT
'epa.pm25_annual.c_99th_percentile' As table_column,
'Mean value' As Testing,
CASE
- WHEN (SELECT AVG(c_99th_percentile) FROM epa.pm25_annual) BETWEEN 27.64407161079798 AND 28.202537703945417
+ WHEN (SELECT AVG(c_99th_percentile) FROM epa.pm25_annual) BETWEEN 27.462943955700442 AND 28.017750904300453
THEN true ELSE false END AS passed
-- Test case end
@@ -433,7 +433,7 @@ SELECT
'epa.pm25_annual.c_99th_percentile' As table_column,
'Variance' As Testing,
CASE
- WHEN (SELECT VARIANCE(c_99th_percentile) FROM epa.pm25_annual) BETWEEN 114.68744730457331 AND 117.00436543193842
+ WHEN (SELECT VARIANCE(c_99th_percentile) FROM epa.pm25_annual) BETWEEN 140.6019653419089 AND 143.4424090861899
THEN true ELSE false END AS passed
-- Test case end
@@ -443,7 +443,7 @@ SELECT
'epa.pm25_annual.cbsa_name' As table_column,
'count distinct' As Testing,
CASE
- WHEN (SELECT COUNT(DISTINCT cbsa_name) FROM epa.pm25_annual) = '378'
+ WHEN (SELECT COUNT(DISTINCT cbsa_name) FROM epa.pm25_annual) = '383'
THEN true ELSE false END AS passed
-- Test case end
@@ -453,7 +453,7 @@ SELECT
'epa.pm25_annual.cbsa_name' As table_column,
'MD5 value' As Testing,
CASE
- WHEN (SELECT MD5(string_agg(cbsa_name::varchar, '' order by cbsa_name)) FROM epa.pm25_annual) = '522e6cba62648a647a254f048b224682'
+ WHEN (SELECT MD5(string_agg(cbsa_name::varchar, '' order by cbsa_name)) FROM epa.pm25_annual) = '435e06257feb510077b4cb00579de15c'
THEN true ELSE false END AS passed
-- Test case end
@@ -473,7 +473,7 @@ SELECT
'epa.pm25_annual.certification_indicator' As table_column,
'MD5 value' As Testing,
CASE
- WHEN (SELECT MD5(string_agg(certification_indicator::varchar, '' order by certification_indicator)) FROM epa.pm25_annual) = 'ee2b5a527cca5d670dd4aa66b959a36f'
+ WHEN (SELECT MD5(string_agg(certification_indicator::varchar, '' order by certification_indicator)) FROM epa.pm25_annual) = '0993e10b4c4e020809f5ab76b5475df0'
THEN true ELSE false END AS passed
-- Test case end
@@ -483,7 +483,7 @@ SELECT
'epa.pm25_annual.city_name' As table_column,
'count distinct' As Testing,
CASE
- WHEN (SELECT COUNT(DISTINCT city_name) FROM epa.pm25_annual) = '674'
+ WHEN (SELECT COUNT(DISTINCT city_name) FROM epa.pm25_annual) = '693'
THEN true ELSE false END AS passed
-- Test case end
@@ -493,7 +493,7 @@ SELECT
'epa.pm25_annual.city_name' As table_column,
'MD5 value' As Testing,
CASE
- WHEN (SELECT MD5(string_agg(city_name::varchar, '' order by city_name)) FROM epa.pm25_annual) = '6c23ef42c9425d740f9abb265c94ac01'
+ WHEN (SELECT MD5(string_agg(city_name::varchar, '' order by city_name)) FROM epa.pm25_annual) = '9e5b315a03079f29487dc96ca5c71e9f'
THEN true ELSE false END AS passed
-- Test case end
@@ -513,7 +513,7 @@ SELECT
'epa.pm25_annual.completeness_indicator' As table_column,
'MD5 value' As Testing,
CASE
- WHEN (SELECT MD5(string_agg(completeness_indicator::varchar, '' order by completeness_indicator)) FROM epa.pm25_annual) = '41e1f9f5ae8c339a95700e01f0f7659a'
+ WHEN (SELECT MD5(string_agg(completeness_indicator::varchar, '' order by completeness_indicator)) FROM epa.pm25_annual) = '539dd1484c25c4e94179a87fdbdc1797'
THEN true ELSE false END AS passed
-- Test case end
@@ -523,7 +523,7 @@ SELECT
'epa.pm25_annual.county_code' As table_column,
'count distinct' As Testing,
CASE
- WHEN (SELECT COUNT(DISTINCT county_code) FROM epa.pm25_annual) = '126'
+ WHEN (SELECT COUNT(DISTINCT county_code) FROM epa.pm25_annual) = '127'
THEN true ELSE false END AS passed
-- Test case end
@@ -533,7 +533,7 @@ SELECT
'epa.pm25_annual.county_code' As table_column,
'MD5 value' As Testing,
CASE
- WHEN (SELECT MD5(string_agg(county_code::varchar, '' order by county_code)) FROM epa.pm25_annual) = '4c4d462f07e93f98f283b87200f2cd3b'
+ WHEN (SELECT MD5(string_agg(county_code::varchar, '' order by county_code)) FROM epa.pm25_annual) = '0747d67bdf6f753d2e9da84d9b99cdfa'
THEN true ELSE false END AS passed
-- Test case end
@@ -543,7 +543,7 @@ SELECT
'epa.pm25_annual.county_name' As table_column,
'count distinct' As Testing,
CASE
- WHEN (SELECT COUNT(DISTINCT county_name) FROM epa.pm25_annual) = '517'
+ WHEN (SELECT COUNT(DISTINCT county_name) FROM epa.pm25_annual) = '527'
THEN true ELSE false END AS passed
-- Test case end
@@ -553,7 +553,7 @@ SELECT
'epa.pm25_annual.county_name' As table_column,
'MD5 value' As Testing,
CASE
- WHEN (SELECT MD5(string_agg(county_name::varchar, '' order by county_name)) FROM epa.pm25_annual) = 'be2922f342a260f39ed8f2cf393cc556'
+ WHEN (SELECT MD5(string_agg(county_name::varchar, '' order by county_name)) FROM epa.pm25_annual) = '93535ce373a28952de173338fab7f64a'
THEN true ELSE false END AS passed
-- Test case end
@@ -563,7 +563,7 @@ SELECT
'epa.pm25_annual.date_of_last_change' As table_column,
'count distinct' As Testing,
CASE
- WHEN (SELECT COUNT(DISTINCT date_of_last_change) FROM epa.pm25_annual) = '82'
+ WHEN (SELECT COUNT(DISTINCT date_of_last_change) FROM epa.pm25_annual) = '68'
THEN true ELSE false END AS passed
-- Test case end
@@ -583,7 +583,7 @@ SELECT
'epa.pm25_annual.datum' As table_column,
'MD5 value' As Testing,
CASE
- WHEN (SELECT MD5(string_agg(datum::varchar, '' order by datum)) FROM epa.pm25_annual) = '1495bac431dcdc8ab09406883498edd0'
+ WHEN (SELECT MD5(string_agg(datum::varchar, '' order by datum)) FROM epa.pm25_annual) = '0013c6d2e81e5d29e4c7a105701e06fa'
THEN true ELSE false END AS passed
-- Test case end
@@ -603,7 +603,7 @@ SELECT
'epa.pm25_annual.event_type' As table_column,
'MD5 value' As Testing,
CASE
- WHEN (SELECT MD5(string_agg(event_type::varchar, '' order by event_type)) FROM epa.pm25_annual) = 'cfcab13f876ad5e021130fa16dc04ac0'
+ WHEN (SELECT MD5(string_agg(event_type::varchar, '' order by event_type)) FROM epa.pm25_annual) = 'f1fd21711b7a5fad12a51695d6713fc6'
THEN true ELSE false END AS passed
-- Test case end
@@ -613,7 +613,7 @@ SELECT
'epa.pm25_annual.exceptional_data_count' As table_column,
'Mean value' As Testing,
CASE
- WHEN (SELECT AVG(exceptional_data_count) FROM epa.pm25_annual) BETWEEN 62.73439988134085 AND 64.00176149510531
+ WHEN (SELECT AVG(exceptional_data_count) FROM epa.pm25_annual) BETWEEN 34.69384512564605 AND 35.39473088576011
THEN true ELSE false END AS passed
-- Test case end
@@ -623,7 +623,7 @@ SELECT
'epa.pm25_annual.exceptional_data_count' As table_column,
'Variance' As Testing,
CASE
- WHEN (SELECT VARIANCE(exceptional_data_count) FROM epa.pm25_annual) BETWEEN 406905.96114650153 AND 415126.28359390557
+ WHEN (SELECT VARIANCE(exceptional_data_count) FROM epa.pm25_annual) BETWEEN 202998.329184955 AND 207099.3055321258
THEN true ELSE false END AS passed
-- Test case end
@@ -633,7 +633,7 @@ SELECT
'epa.pm25_annual.latitude' As table_column,
'Mean value' As Testing,
CASE
- WHEN (SELECT AVG(latitude) FROM epa.pm25_annual) BETWEEN 38.03180284507386 AND 38.800122094469295
+ WHEN (SELECT AVG(latitude) FROM epa.pm25_annual) BETWEEN 37.87440706480886 AND 38.63954660147166
THEN true ELSE false END AS passed
-- Test case end
@@ -643,7 +643,7 @@ SELECT
'epa.pm25_annual.latitude' As table_column,
'Variance' As Testing,
CASE
- WHEN (SELECT VARIANCE(latitude) FROM epa.pm25_annual) BETWEEN 40.444784078521906 AND 41.261850423542555
+ WHEN (SELECT VARIANCE(latitude) FROM epa.pm25_annual) BETWEEN 40.95304480806424 AND 41.780379046610996
THEN true ELSE false END AS passed
-- Test case end
@@ -653,7 +653,7 @@ SELECT
'epa.pm25_annual.local_site_name' As table_column,
'count distinct' As Testing,
CASE
- WHEN (SELECT COUNT(DISTINCT local_site_name) FROM epa.pm25_annual) = '950'
+ WHEN (SELECT COUNT(DISTINCT local_site_name) FROM epa.pm25_annual) = '987'
THEN true ELSE false END AS passed
-- Test case end
@@ -663,7 +663,7 @@ SELECT
'epa.pm25_annual.local_site_name' As table_column,
'MD5 value' As Testing,
CASE
- WHEN (SELECT MD5(string_agg(local_site_name::varchar, '' order by local_site_name)) FROM epa.pm25_annual) = '8c09d9aa32cc81416cf34690e3e899d3'
+ WHEN (SELECT MD5(string_agg(local_site_name::varchar, '' order by local_site_name)) FROM epa.pm25_annual) = '2363dbd02bdea3f5a92c72132002d50f'
THEN true ELSE false END AS passed
-- Test case end
@@ -673,7 +673,7 @@ SELECT
'epa.pm25_annual.longitude' As table_column,
'Mean value' As Testing,
CASE
- WHEN (SELECT AVG(longitude) FROM epa.pm25_annual) BETWEEN -97.02507246366359 AND -95.1037839000267
+ WHEN (SELECT AVG(longitude) FROM epa.pm25_annual) BETWEEN -97.02862377917171 AND -95.10726489245545
THEN true ELSE false END AS passed
-- Test case end
@@ -683,7 +683,7 @@ SELECT
'epa.pm25_annual.longitude' As table_column,
'Variance' As Testing,
CASE
- WHEN (SELECT VARIANCE(longitude) FROM epa.pm25_annual) BETWEEN 381.3759916953831 AND 389.08055718417876
+ WHEN (SELECT VARIANCE(longitude) FROM epa.pm25_annual) BETWEEN 367.72995074407123 AND 375.1588386378908
THEN true ELSE false END AS passed
-- Test case end
@@ -703,7 +703,7 @@ SELECT
'epa.pm25_annual.method_name' As table_column,
'MD5 value' As Testing,
CASE
- WHEN (SELECT MD5(string_agg(method_name::varchar, '' order by method_name)) FROM epa.pm25_annual) = 'dbd4fab73c64227bb707205dc11a6ac7'
+ WHEN (SELECT MD5(string_agg(method_name::varchar, '' order by method_name)) FROM epa.pm25_annual) = '4c122105081df4cefac751292db55050'
THEN true ELSE false END AS passed
-- Test case end
@@ -723,7 +723,7 @@ SELECT
'epa.pm25_annual.metric_used' As table_column,
'MD5 value' As Testing,
CASE
- WHEN (SELECT MD5(string_agg(metric_used::varchar, '' order by metric_used)) FROM epa.pm25_annual) = '324c7584c24e4b25c01f6ba8f77121b8'
+ WHEN (SELECT MD5(string_agg(metric_used::varchar, '' order by metric_used)) FROM epa.pm25_annual) = 'bb3a07fe7519d51279a72ced4c00034e'
THEN true ELSE false END AS passed
-- Test case end
@@ -733,7 +733,7 @@ SELECT
'epa.pm25_annual.monitor' As table_column,
'count distinct' As Testing,
CASE
- WHEN (SELECT COUNT(DISTINCT monitor) FROM epa.pm25_annual) = '994'
+ WHEN (SELECT COUNT(DISTINCT monitor) FROM epa.pm25_annual) = '1041'
THEN true ELSE false END AS passed
-- Test case end
@@ -743,7 +743,7 @@ SELECT
'epa.pm25_annual.monitor' As table_column,
'MD5 value' As Testing,
CASE
- WHEN (SELECT MD5(string_agg(monitor::varchar, '' order by monitor)) FROM epa.pm25_annual) = '14a415660aef3ad3bc94f64bc5788daf'
+ WHEN (SELECT MD5(string_agg(monitor::varchar, '' order by monitor)) FROM epa.pm25_annual) = 'd6cdd216913ad4199f135149a2b75149'
THEN true ELSE false END AS passed
-- Test case end
@@ -753,7 +753,7 @@ SELECT
'epa.pm25_annual.null_data_count' As table_column,
'Mean value' As Testing,
CASE
- WHEN (SELECT AVG(null_data_count) FROM epa.pm25_annual) BETWEEN 28.526801542568972 AND 29.10310056363097
+ WHEN (SELECT AVG(null_data_count) FROM epa.pm25_annual) BETWEEN 19.311395918731066 AND 19.70152512921048
THEN true ELSE false END AS passed
-- Test case end
@@ -763,7 +763,7 @@ SELECT
'epa.pm25_annual.null_data_count' As table_column,
'Variance' As Testing,
CASE
- WHEN (SELECT VARIANCE(null_data_count) FROM epa.pm25_annual) BETWEEN 37478.93926391428 AND 38236.08955207417
+ WHEN (SELECT VARIANCE(null_data_count) FROM epa.pm25_annual) BETWEEN 22701.384528921793 AND 23159.9983577889
THEN true ELSE false END AS passed
-- Test case end
@@ -793,7 +793,7 @@ SELECT
'epa.pm25_annual.observation_count' As table_column,
'Mean value' As Testing,
CASE
- WHEN (SELECT AVG(observation_count) FROM epa.pm25_annual) BETWEEN 397.89894393355087 AND 405.93730643725894
+ WHEN (SELECT AVG(observation_count) FROM epa.pm25_annual) BETWEEN 294.4450289609695 AND 300.39341338442347
THEN true ELSE false END AS passed
-- Test case end
@@ -803,7 +803,7 @@ SELECT
'epa.pm25_annual.observation_count' As table_column,
'Variance' As Testing,
CASE
- WHEN (SELECT VARIANCE(observation_count) FROM epa.pm25_annual) BETWEEN 1738860.0437725543 AND 1773988.5295053332
+ WHEN (SELECT VARIANCE(observation_count) FROM epa.pm25_annual) BETWEEN 1058080.251915631 AND 1079455.6105401893
THEN true ELSE false END AS passed
-- Test case end
@@ -813,7 +813,7 @@ SELECT
'epa.pm25_annual.observation_percent' As table_column,
'Mean value' As Testing,
CASE
- WHEN (SELECT AVG(observation_percent) FROM epa.pm25_annual) BETWEEN 85.03386354197568 AND 86.7517193711065
+ WHEN (SELECT AVG(observation_percent) FROM epa.pm25_annual) BETWEEN 85.05879388700765 AND 86.77715335947246
THEN true ELSE false END AS passed
-- Test case end
@@ -823,7 +823,7 @@ SELECT
'epa.pm25_annual.observation_percent' As table_column,
'Variance' As Testing,
CASE
- WHEN (SELECT VARIANCE(observation_percent) FROM epa.pm25_annual) BETWEEN 419.53451414621753 AND 428.00995887644416
+ WHEN (SELECT VARIANCE(observation_percent) FROM epa.pm25_annual) BETWEEN 425.121429824265 AND 433.7097415378866
THEN true ELSE false END AS passed
-- Test case end
@@ -843,7 +843,7 @@ SELECT
'epa.pm25_annual.parameter_code' As table_column,
'MD5 value' As Testing,
CASE
- WHEN (SELECT MD5(string_agg(parameter_code::varchar, '' order by parameter_code)) FROM epa.pm25_annual) = '72ef4cca04aefddbd0fc7402cebe7a85'
+ WHEN (SELECT MD5(string_agg(parameter_code::varchar, '' order by parameter_code)) FROM epa.pm25_annual) = '4cc86de676c1ae1ee0703ea3843f3aac'
THEN true ELSE false END AS passed
-- Test case end
@@ -863,7 +863,7 @@ SELECT
'epa.pm25_annual.parameter_name' As table_column,
'MD5 value' As Testing,
CASE
- WHEN (SELECT MD5(string_agg(parameter_name::varchar, '' order by parameter_name)) FROM epa.pm25_annual) = 'f465fe43bdd4d0b6ec9474ff6f4d72b6'
+ WHEN (SELECT MD5(string_agg(parameter_name::varchar, '' order by parameter_name)) FROM epa.pm25_annual) = '03866343c5eb218dd7e2ab9704c9d026'
THEN true ELSE false END AS passed
-- Test case end
@@ -873,7 +873,7 @@ SELECT
'epa.pm25_annual.poc' As table_column,
'Mean value' As Testing,
CASE
- WHEN (SELECT AVG(poc) FROM epa.pm25_annual) BETWEEN 1.5935152773657668 AND 1.6257075051913379
+ WHEN (SELECT AVG(poc) FROM epa.pm25_annual) BETWEEN 1.5201113883443236 AND 1.5508207093209767
THEN true ELSE false END AS passed
-- Test case end
@@ -883,7 +883,7 @@ SELECT
'epa.pm25_annual.poc' As table_column,
'Variance' As Testing,
CASE
- WHEN (SELECT VARIANCE(poc) FROM epa.pm25_annual) BETWEEN 0.985961227309051 AND 1.0058796359415572
+ WHEN (SELECT VARIANCE(poc) FROM epa.pm25_annual) BETWEEN 0.8597719259848469 AND 0.8771410558027226
THEN true ELSE false END AS passed
-- Test case end
@@ -893,7 +893,7 @@ SELECT
'epa.pm25_annual.pollutant_standard' As table_column,
'count distinct' As Testing,
CASE
- WHEN (SELECT COUNT(DISTINCT pollutant_standard) FROM epa.pm25_annual) = '6'
+ WHEN (SELECT COUNT(DISTINCT pollutant_standard) FROM epa.pm25_annual) = '8'
THEN true ELSE false END AS passed
-- Test case end
@@ -903,7 +903,7 @@ SELECT
'epa.pm25_annual.pollutant_standard' As table_column,
'MD5 value' As Testing,
CASE
- WHEN (SELECT MD5(string_agg(pollutant_standard::varchar, '' order by pollutant_standard)) FROM epa.pm25_annual) = 'b7dee0347764d9583d5c244f0eaa8bb9'
+ WHEN (SELECT MD5(string_agg(pollutant_standard::varchar, '' order by pollutant_standard)) FROM epa.pm25_annual) = '6ebeab55db49bf204f57b56f1429c0c8'
THEN true ELSE false END AS passed
-- Test case end
@@ -913,7 +913,7 @@ SELECT
'epa.pm25_annual.primary_exceedance_count' As table_column,
'Mean value' As Testing,
CASE
- WHEN (SELECT AVG(primary_exceedance_count) FROM epa.pm25_annual) BETWEEN 3.787693726937269 AND 3.8642127921279212
+ WHEN (SELECT AVG(primary_exceedance_count) FROM epa.pm25_annual) BETWEEN 11.910249382161313 AND 12.150860480790834
THEN true ELSE false END AS passed
-- Test case end
@@ -923,7 +923,7 @@ SELECT
'epa.pm25_annual.primary_exceedance_count' As table_column,
'Variance' As Testing,
CASE
- WHEN (SELECT VARIANCE(primary_exceedance_count) FROM epa.pm25_annual) BETWEEN 268.9483425542645 AND 274.3816424038456
+ WHEN (SELECT VARIANCE(primary_exceedance_count) FROM epa.pm25_annual) BETWEEN 1023.1723800368542 AND 1043.8425291285077
THEN true ELSE false END AS passed
-- Test case end
@@ -933,7 +933,7 @@ SELECT
'epa.pm25_annual.record' As table_column,
'count distinct' As Testing,
CASE
- WHEN (SELECT COUNT(DISTINCT record) FROM epa.pm25_annual) = '16855'
+ WHEN (SELECT COUNT(DISTINCT record) FROM epa.pm25_annual) = '22444'
THEN true ELSE false END AS passed
-- Test case end
@@ -943,7 +943,7 @@ SELECT
'epa.pm25_annual.record' As table_column,
'MD5 value' As Testing,
CASE
- WHEN (SELECT MD5(string_agg(record::varchar, '' order by record)) FROM epa.pm25_annual) = '3951fd3d1486000188c29c2aaa652d24'
+ WHEN (SELECT MD5(string_agg(record::varchar, '' order by record)) FROM epa.pm25_annual) = '8decb2ac4b6cf4b5c072f55fac567034'
THEN true ELSE false END AS passed
-- Test case end
@@ -953,7 +953,7 @@ SELECT
'epa.pm25_annual.required_day_count' As table_column,
'Mean value' As Testing,
CASE
- WHEN (SELECT AVG(required_day_count) FROM epa.pm25_annual) BETWEEN 189.13264253930583 AND 192.95350400474638
+ WHEN (SELECT AVG(required_day_count) FROM epa.pm25_annual) BETWEEN 179.93364685439317 AND 183.56867002316878
THEN true ELSE false END AS passed
-- Test case end
@@ -963,7 +963,7 @@ SELECT
'epa.pm25_annual.required_day_count' As table_column,
'Variance' As Testing,
CASE
- WHEN (SELECT VARIANCE(required_day_count) FROM epa.pm25_annual) BETWEEN 16177.51097908606 AND 16504.32938270396
+ WHEN (SELECT VARIANCE(required_day_count) FROM epa.pm25_annual) BETWEEN 15344.579315941797 AND 15654.570817273956
THEN true ELSE false END AS passed
-- Test case end
@@ -983,7 +983,7 @@ SELECT
'epa.pm25_annual.sample_duration' As table_column,
'MD5 value' As Testing,
CASE
- WHEN (SELECT MD5(string_agg(sample_duration::varchar, '' order by sample_duration)) FROM epa.pm25_annual) = 'cddb8eb9fd5de3c259434f05decfc630'
+ WHEN (SELECT MD5(string_agg(sample_duration::varchar, '' order by sample_duration)) FROM epa.pm25_annual) = 'b1d6b51d54ffbdca8319ee8aa8cb12a1'
THEN true ELSE false END AS passed
-- Test case end
@@ -993,7 +993,7 @@ SELECT
'epa.pm25_annual.secondary_exceedance_count' As table_column,
'Mean value' As Testing,
CASE
- WHEN (SELECT AVG(secondary_exceedance_count) FROM epa.pm25_annual) BETWEEN 3.787693726937269 AND 3.8642127921279212
+ WHEN (SELECT AVG(secondary_exceedance_count) FROM epa.pm25_annual) BETWEEN 5.492042237699394 AND 5.602992585935745
THEN true ELSE false END AS passed
-- Test case end
@@ -1003,7 +1003,7 @@ SELECT
'epa.pm25_annual.secondary_exceedance_count' As table_column,
'Variance' As Testing,
CASE
- WHEN (SELECT VARIANCE(secondary_exceedance_count) FROM epa.pm25_annual) BETWEEN 268.9483425542645 AND 274.3816424038456
+ WHEN (SELECT VARIANCE(secondary_exceedance_count) FROM epa.pm25_annual) BETWEEN 250.943208448186 AND 256.01276821481605
THEN true ELSE false END AS passed
-- Test case end
@@ -1013,7 +1013,7 @@ SELECT
'epa.pm25_annual.site_num' As table_column,
'count distinct' As Testing,
CASE
- WHEN (SELECT COUNT(DISTINCT site_num) FROM epa.pm25_annual) = '218'
+ WHEN (SELECT COUNT(DISTINCT site_num) FROM epa.pm25_annual) = '225'
THEN true ELSE false END AS passed
-- Test case end
@@ -1023,7 +1023,7 @@ SELECT
'epa.pm25_annual.site_num' As table_column,
'MD5 value' As Testing,
CASE
- WHEN (SELECT MD5(string_agg(site_num::varchar, '' order by site_num)) FROM epa.pm25_annual) = '14848a342a904e1b783ca8eda84b23a5'
+ WHEN (SELECT MD5(string_agg(site_num::varchar, '' order by site_num)) FROM epa.pm25_annual) = '874540d489d669a9893f51ec2056a436'
THEN true ELSE false END AS passed
-- Test case end
@@ -1033,7 +1033,7 @@ SELECT
'epa.pm25_annual.state_code' As table_column,
'count distinct' As Testing,
CASE
- WHEN (SELECT COUNT(DISTINCT state_code) FROM epa.pm25_annual) = '52'
+ WHEN (SELECT COUNT(DISTINCT state_code) FROM epa.pm25_annual) = '53'
THEN true ELSE false END AS passed
-- Test case end
@@ -1043,7 +1043,7 @@ SELECT
'epa.pm25_annual.state_code' As table_column,
'MD5 value' As Testing,
CASE
- WHEN (SELECT MD5(string_agg(state_code::varchar, '' order by state_code)) FROM epa.pm25_annual) = 'f78d5325a168b8313201edc6fffddcad'
+ WHEN (SELECT MD5(string_agg(state_code::varchar, '' order by state_code)) FROM epa.pm25_annual) = 'd0424482980a4f73a06666a4e3055bd1'
THEN true ELSE false END AS passed
-- Test case end
@@ -1053,7 +1053,7 @@ SELECT
'epa.pm25_annual.state_name' As table_column,
'count distinct' As Testing,
CASE
- WHEN (SELECT COUNT(DISTINCT state_name) FROM epa.pm25_annual) = '52'
+ WHEN (SELECT COUNT(DISTINCT state_name) FROM epa.pm25_annual) = '53'
THEN true ELSE false END AS passed
-- Test case end
@@ -1063,7 +1063,7 @@ SELECT
'epa.pm25_annual.state_name' As table_column,
'MD5 value' As Testing,
CASE
- WHEN (SELECT MD5(string_agg(state_name::varchar, '' order by state_name)) FROM epa.pm25_annual) = 'a938a15cde90aafce1d9ff68da7f8be8'
+ WHEN (SELECT MD5(string_agg(state_name::varchar, '' order by state_name)) FROM epa.pm25_annual) = '60aba94c47b8dd8e0b9c1b58838bd450'
THEN true ELSE false END AS passed
-- Test case end
@@ -1083,7 +1083,7 @@ SELECT
'epa.pm25_annual.units_of_measure' As table_column,
'MD5 value' As Testing,
CASE
- WHEN (SELECT MD5(string_agg(units_of_measure::varchar, '' order by units_of_measure)) FROM epa.pm25_annual) = '43be6a1d9866031f20d2e90b3a70579d'
+ WHEN (SELECT MD5(string_agg(units_of_measure::varchar, '' order by units_of_measure)) FROM epa.pm25_annual) = '314ad5a558d4b3b702f2930421805b17'
THEN true ELSE false END AS passed
-- Test case end
@@ -1093,7 +1093,7 @@ SELECT
'epa.pm25_annual.valid_day_count' As table_column,
'Mean value' As Testing,
CASE
- WHEN (SELECT AVG(valid_day_count) FROM epa.pm25_annual) BETWEEN 159.28879738949868 AND 162.50675289231683
+ WHEN (SELECT AVG(valid_day_count) FROM epa.pm25_annual) BETWEEN 150.58524594546427 AND 153.62737212618075
THEN true ELSE false END AS passed
-- Test case end
@@ -1103,7 +1103,7 @@ SELECT
'epa.pm25_annual.valid_day_count' As table_column,
'Variance' As Testing,
CASE
- WHEN (SELECT VARIANCE(valid_day_count) FROM epa.pm25_annual) BETWEEN 13101.708452468381 AND 13366.389431306128
+ WHEN (SELECT VARIANCE(valid_day_count) FROM epa.pm25_annual) BETWEEN 12110.537283035874 AND 12355.194601885085
THEN true ELSE false END AS passed
-- Test case end
@@ -1113,7 +1113,7 @@ SELECT
'epa.pm25_annual.year' As table_column,
'Mean value' As Testing,
CASE
- WHEN (SELECT AVG(year) FROM epa.pm25_annual) BETWEEN 1990.380286561851 AND 2030.5899893206763
+ WHEN (SELECT AVG(year) FROM epa.pm25_annual) BETWEEN 1989.8615362680448 AND 2030.0607592229549
THEN true ELSE false END AS passed
-- Test case end
@@ -1123,7 +1123,7 @@ SELECT
'epa.pm25_annual.year' As table_column,
'Variance' As Testing,
CASE
- WHEN (SELECT VARIANCE(year) FROM epa.pm25_annual) BETWEEN 0.2472959999847927 AND 0.2522918787723643
+ WHEN (SELECT VARIANCE(year) FROM epa.pm25_annual) BETWEEN 0.9885496424602398 AND 1.0085203423079214
THEN true ELSE false END AS passed
-- Test case end
diff --git a/src/cwl/test_gridmet.cwl b/src/cwl/test_gridmet.cwl
index e5d57d90c..1335a840d 100644
--- a/src/cwl/test_gridmet.cwl
+++ b/src/cwl/test_gridmet.cwl
@@ -97,6 +97,9 @@ steps:
- index_err
- vacuum_log
- vacuum_err
+ - export_data
+ - export_log
+ - export_err
verify:
run: run_test.cwl
@@ -180,3 +183,15 @@ outputs:
verify_errors:
type: File
outputSource: verify/errors
+
+ execute_export_data:
+ type:
+ type: array
+ items: ['File', 'Directory']
+ outputSource: execute/export_data
+ execute_export_log:
+ type: File[]
+ outputSource: execute/export_log
+ execute_export_err:
+ type: File[]
+ outputSource: execute/export_err
diff --git a/src/cwl/test_pm25_yearly_download.cwl b/src/cwl/test_pm25_yearly_download.cwl
index 60088d63c..aa247becd 100644
--- a/src/cwl/test_pm25_yearly_download.cwl
+++ b/src/cwl/test_pm25_yearly_download.cwl
@@ -68,7 +68,7 @@ inputs:
default: auto
doc: 'Rasterization strategy, see
- [documentation](https://nsaph-data-platform.github.io/nsaph-platform-docs/common/gridmet/doc/strategy.html)
+ [documentation](https://foromeplatform.github.io/dorieh/strategy.html)
for the list of supported values and explanations
diff --git a/src/cwl/version.cwl b/src/cwl/version.cwl
new file mode 100644
index 000000000..1b199b74b
--- /dev/null
+++ b/src/cwl/version.cwl
@@ -0,0 +1,37 @@
+### Display Dorieh platform version
+# Copyright (c) 2022. Harvard University
+#
+# Developed by Research Software Engineering,
+# Faculty of Arts and Sciences, Research Computing (FAS RC)
+# Author: Michael A Bouzinier
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+
+
+cwlVersion: v1.2
+class: CommandLineTool
+baseCommand: [python, -m, dorieh.version]
+
+requirements:
+ InlineJavascriptRequirement: {}
+ NetworkAccess:
+ networkAccess: True
+
+
+doc: |
+ This tool displays Dorieh Platform Version
+
+inputs: {}
+
+outputs: {}
diff --git a/src/groovy/org/forome/dorieh/domain/Base.groovy b/src/groovy/org/forome/dorieh/domain/Base.groovy
new file mode 100644
index 000000000..357a4e3e6
--- /dev/null
+++ b/src/groovy/org/forome/dorieh/domain/Base.groovy
@@ -0,0 +1,60 @@
+package org.forome.dorieh.domain
+
+/**
+ * Copyright (c) 2008 InterSystems, Corp.
+ * Cambridge, Massachusetts, U.S.A. All rights reserved.
+ * Confidential, unpublished property of InterSystems.
+ *
+ * Date: 18/11/24
+ * Time: 22:48
+ *
+ */
+class Base
+{
+ protected Object currentContext = null
+
+ protected static String addWithIndent(String body, int indent, String block)
+ {
+ String prefix = " " * indent
+ String text = prefix + block.replaceAll ("\n", "\n${prefix}")
+ return body + text + "\n"
+ }
+
+ protected static String addText (String body, String key, String block, int indent)
+ {
+ if (block.contains ('\n')) {
+ body = addWithIndent (body, indent, key + ": |")
+ body = addWithIndent (body, indent + 1, block)
+ } else {
+ body = addElement (body, key, block, indent)
+ }
+ return body
+ }
+
+ protected static String addList (String body, String key, List values, int indent)
+ {
+ body = addWithIndent (body, indent, key + ": ")
+ for (String value: values) {
+ body = addWithIndent (body, indent + 1, "- ${value}")
+ }
+ return body
+ }
+
+ protected static String addElement (String body, String key, String value, int indent)
+ {
+ if (value.contains ("\n"))
+ return addText (body, key, value, indent)
+ return addWithIndent (body, indent, key + ": " + value)
+ }
+
+ protected static void call (Closure closure, Object context)
+ {
+ closure.delegate = context
+ closure.resolveStrategy = Closure.DELEGATE_FIRST
+ closure.call()
+ }
+
+
+}
diff --git a/src/groovy/org/forome/dorieh/domain/Column.groovy b/src/groovy/org/forome/dorieh/domain/Column.groovy
new file mode 100644
index 000000000..d12ea78a7
--- /dev/null
+++ b/src/groovy/org/forome/dorieh/domain/Column.groovy
@@ -0,0 +1,231 @@
+/*
+ * Copyright (c) 2024. Harvard University
+ *
+ * Developed by Research Software Engineering,
+ * Harvard University Research Computing and Data (RCD) Services.
+ *
+ * Author: Michael A Bouzinier
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ *
+ *
+ *
+ *
+ */
+
+package org.forome.dorieh.domain
+
+class Column extends Base
+{
+ String name
+ String type
+ Map source = [:]
+ // Contains details about source, type, code, etc.
+ List sourceColumns
+ List requires
+ def index // Can be boolean or Map
+ String description
+ String reference
+ List columns // For computed sources
+ List parameters
+ boolean optional = false
+ String transformation
+ Map casts
+
+ Column (String name)
+ {
+ this.name = name
+ }
+
+ Column (String name, String type, Map attributes = [:])
+ {
+ this.name = name
+ this.type = type
+ def sourceAttr = attributes.source ?: [:]
+ if (sourceAttr instanceof String) {
+ this.source = ["source": sourceAttr]
+ } else if (sourceAttr instanceof Map) {
+ this.source = sourceAttr
+ } else if (sourceAttr instanceof List) {
+ this.sourceColumns = sourceAttr
+ } else {
+ throw new IllegalArgumentException (
+ "Column source cannot be " + sourceAttr.getClass ().getName ()
+ )
+ }
+
+ this.requires = attributes.requires ?: []
+ this.index = attributes.index ?: false
+ this.description = attributes.description ?: ""
+ this.reference = attributes.reference ?: ""
+ this.optional = attributes.optional ?: false
+
+ if (source)
+ {
+ this.columns = source.columns ?: []
+ this.parameters = source.parameters ?: []
+ }
+ }
+
+ public void addSourceColumn(String sql)
+ {
+ if (sourceColumns == null) {
+ sourceColumns = new ArrayList<>()
+ }
+ sourceColumns.add (sql)
+ }
+
+ public void setProperty (String name, Object value)
+ {
+ switch (name)
+ {
+ case "sql":
+ source ['sql'] = (String) value
+ return
+ default:
+ break
+ }
+ super.setProperty (name, value)
+ }
+
+ def methodMissing(String name, Object args)
+ {
+ switch (name) {
+ case "of":
+ of(args)
+ return
+ }
+ println "Column methodMissing called with name: $name and args: $args"
+ }
+
+ public void of (args)
+ {
+ if (currentContext != null) {
+ switch (currentContext) {
+ case "transformation":
+ return
+ }
+ } else {
+ currentContext = args
+ return
+ }
+
+ throw new IllegalStateException("Unexpected identifier 'of'")
+ }
+
+ public void cast(Map args)
+ {
+ casts = args
+ }
+
+ public void isomorphic_transformation(args)
+ {
+ if (args == null)
+ args = currentContext
+ Object arg0 = null
+ if (args instanceof Object[] && args.length > 0) {
+ arg0 = args [0]
+ } else if (args instanceof List && args.size () > 0) {
+ arg0 = args [0]
+ } else if (args instanceof Closure || args instanceof String) {
+ arg0 = args
+ args = [arg0]
+ }
+ if (arg0 instanceof Closure) {
+
+ } else if (arg0 instanceof String) {
+ sourceColumns = (List) args
+ transformation = "isomorphic_transformation of $sourceColumns"
+ } else {
+ throw new IllegalStateException("Invalid transformation statement")
+ }
+ }
+
+ // Method to display column properties in a readable format (For debugging)
+ String toString ()
+ {
+ return "Column(name: $name, type: $type, source: $source, requires: $requires)"
+ }
+
+ String toYAML (int indent)
+ {
+ String prefix = " " * indent
+ String header = "${prefix}- ${name}"
+ if (transformation) {
+ if (description) {
+ if (
+ (description.length () + transformation.length () < 120)
+ && (description.indexOf('\n') < 0)
+ ) {
+ description = description.trim ()
+ description += "; "
+ }
+ description += transformation
+ } else {
+ description = transformation
+ }
+ }
+ if (
+ source || sourceColumns || optional || description || reference
+ || parameters || requires
+ || type
+ ) {
+ String body = header + ":\n"
+ indent++
+ if (description) {
+ body = addElement (body, "description", description, indent)
+ }
+ if (type) {
+ body = addElement (body, "type", type, indent)
+ }
+ if (reference) {
+ body = addElement (body, "reference", reference, indent)
+ }
+ if (requires) {
+ body = addList (body, "requires", requires, indent)
+ }
+ if (sourceColumns) {
+ if (sourceColumns.size () > 1) {
+ body = addList (body, "source", sourceColumns, indent)
+ } else if (sourceColumns[0] != name) {
+ body = addElement (body, "source", sourceColumns[0], indent)
+ }
+ if (source && source.containsKey ("sql")) {
+ body = addElement (body, "source", source["sql"].toString (), indent)
+ }
+ } else if (source) {
+ body = addElement (body, "source", "", indent)
+ indent++
+ for (String key: source.keySet ()) {
+ body = addElement (body, key, source[key].toString (), indent)
+ }
+ indent--
+ }
+ if (casts) {
+ body = addElement (body, "cast", "", indent)
+ indent++
+ for (String key: casts.keySet ()) {
+ body = addElement (body, key, casts[key], indent)
+ }
+ indent--
+ }
+ // Remove empty lines:
+ def lines = body.lines ().grep { it.trim() }
+ return String.join ("\n", lines)
+ } else {
+ return header
+ }
+ }
+
+}
\ No newline at end of file
diff --git a/src/groovy/org/forome/dorieh/domain/Domain.groovy b/src/groovy/org/forome/dorieh/domain/Domain.groovy
new file mode 100644
index 000000000..e61acbd96
--- /dev/null
+++ b/src/groovy/org/forome/dorieh/domain/Domain.groovy
@@ -0,0 +1,60 @@
+/*
+ * Copyright (c) 2024. Harvard University
+ *
+ * Developed by Research Software Engineering,
+ * Harvard University Research Computing and Data (RCD) Services.
+ *
+ * Author: Michael A Bouzinier
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ *
+ *
+ *
+ *
+ */
+
+package org.forome.dorieh.domain
+
+
+class Domain {
+ String name
+ String schema
+ String auditSchema
+ String description
+ String quoting
+ String indexingPolicy
+ List
_tables = [] as List
+
+ def table(String name, String type, Closure tableDef) {
+ Table table = new Table(name: name, type: type)
+ table.with(tableDef)
+ _tables << table
+ }
+
+ def tables(Object args) {
+
+ }
+
+ public void setProperty(String name, Object value)
+ {
+ if ("ps".equals (name)) {
+ print (name)
+ }
+ }
+
+ String toString() {
+ return "Domain(name: ${name}, schema: ${schema}, tables: ${_tables})"
+ }
+}
+
diff --git a/src/groovy/org/forome/dorieh/domain/ListCollector.groovy b/src/groovy/org/forome/dorieh/domain/ListCollector.groovy
new file mode 100644
index 000000000..423d712a5
--- /dev/null
+++ b/src/groovy/org/forome/dorieh/domain/ListCollector.groovy
@@ -0,0 +1,21 @@
+package org.forome.dorieh.domain
+
+
+class ListCollector
+{
+ List items = []
+
+ def methodMissing(String name, args) {
+ if (name == "item") {
+ for (def arg: args)
+ items << arg
+ } else {
+ items << name
+ }
+ }
+
+ List getItems() {
+ return items
+ }
+
+}
diff --git a/src/groovy/org/forome/dorieh/domain/Table.groovy b/src/groovy/org/forome/dorieh/domain/Table.groovy
new file mode 100644
index 000000000..00f0499f5
--- /dev/null
+++ b/src/groovy/org/forome/dorieh/domain/Table.groovy
@@ -0,0 +1,325 @@
+/*
+ * Copyright (c) 2024. Harvard University
+ *
+ * Developed by Research Software Engineering,
+ * Harvard University Research Computing and Data (RCD) Services.
+ *
+ * Author: Michael A Bouzinier
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ *
+ *
+ *
+ *
+ */
+
+package org.forome.dorieh.domain
+
+
+
+class Table extends Base
+{
+ enum TableTransformationType {
+ union,
+ aggregation,
+ copy
+ }
+ static final public DEFAULT_TYPE = "VARCHAR"
+ String name
+ String description
+ String type = "table" // Could be view, table, etc.
+ List from
+ List groupBy
+ List columns = []
+
+ private String currentColumn = null
+
+ private TableTransformationType transformType
+
+ def methodMissing(String name, Object args)
+ {
+ Object arg0 = args == null ? null : args [0]
+ if (currentContext != null) {
+ switch (currentContext) {
+ case "columns_reconcile":
+ if (arg0 instanceof Closure) {
+ Closure closure = arg0
+ closure.owner = this
+ this.@currentColumn = name.toLowerCase ()
+ try {
+ closure.call ()
+ } finally {
+ this.@currentColumn = null
+ }
+ } else {
+ throw new IllegalArgumentException(
+ "Reconciliation strategy is invalid for $name"
+ )
+ }
+ return
+ case "columns":
+ if (arg0 instanceof String) {
+ column (name, arg0)
+ } else if (arg0 instanceof Closure) {
+ Closure closure = arg0
+ Column column = new Column(name)
+ closure.delegate = column
+ closure.resolveStrategy = Closure.DELEGATE_FIRST
+ closure.call ()
+ columns << column
+ }
+ return
+ default:
+ break
+ }
+ } else if (arg0 == null) {
+ currentContext = name.toLowerCase ()
+ return
+ }
+
+ println "Table methodMissing called with name: $name and args: $args"
+ }
+
+ public def pick(String... args)
+ {
+ String arg = args[0]
+ Column column = new Column(currentColumn)
+ String aggr = arg.toUpperCase()
+ column.addSourceColumn ("$aggr($currentColumn)")
+ columns << column
+ return new Object() {
+ def over(String... overArgs) {
+ String alt = overArgs[0].toUpperCase()
+ String sql = """
+ CASE
+ WHEN ${alt}($currentColumn) <> ${aggr}($currentColumn) THEN ${alt}($currentColumn)
+ END
+ """
+ String cname = "${currentColumn}_$arg"
+ Column overColumn = new Column(cname)
+ overColumn.addSourceColumn(sql)
+ columns << overColumn
+ }
+ }
+ }
+
+ public def aggregate (Closure closure)
+ {
+ closure.delegate = new Object () {
+ private String lastValue
+
+ void setProperty(String name, def value) {
+ value = value ?: lastValue
+ columns << new Column(name).tap {
+ addSourceColumn(value?.toString() ?: '')
+ }
+ }
+
+ def methodMissing(String name, def args) {
+ lastValue = "${name}(${formatArgs(args)})"
+ }
+
+ private String formatArgs(def args) {
+ args instanceof Object[] ? args.grep().join(', ') : args.toString()
+ }
+ }
+ closure.resolveStrategy = Closure.DELEGATE_FIRST
+ closure.call ()
+ }
+
+ public void record (String... args)
+ {
+ for (String arg: args) {
+ String postfix = arg.split (" ")[0]
+ String cname = "${currentColumn}_$postfix"
+ Column column = new Column (cname)
+ String aggr = arg.toUpperCase ()
+ column.addSourceColumn ("$aggr($currentColumn)")
+ columns << column
+ }
+ }
+
+ public void of (args)
+ {
+ if (currentContext == null) {
+ currentContext = args
+ return
+ }
+
+ throw new IllegalStateException("Unexpected identifier 'of'")
+ }
+
+ public void columns(Closure closure)
+ {
+ currentContext = "columns"
+ closure.call ()
+ }
+
+ public void from (String... tables)
+ {
+ from = tables.toList ()
+ }
+
+ public void from (Closure listClosure)
+ {
+ ListCollector collector = new ListCollector()
+ call (listClosure, collector)
+ from = collector.getItems ()
+ }
+
+ private arg0(args)
+ {
+ if (args == null)
+ args = currentContext
+ Object arg0 = null
+ if (args instanceof List && args.size () > 0) {
+ arg0 = args [0]
+ } else if (args instanceof Closure || args instanceof String) {
+ arg0 = args
+ }
+ return arg0
+ }
+
+ public void union (args)
+ {
+ transformType = TableTransformationType.union
+ def arg0 = arg0 (args)
+ if (arg0 instanceof Closure) {
+ from((Closure)arg0)
+ } else if (arg0 instanceof String) {
+ from = [args]
+ } else {
+ throw new IllegalStateException("Invalid union statement")
+ }
+ }
+
+ public void aggregation (args)
+ {
+ transformType = TableTransformationType.aggregation
+ def arg0 = arg0 (args)
+ if (arg0 instanceof Closure) {
+ from((Closure)arg0)
+ } else if (arg0 instanceof String) {
+ from = [arg0]
+ } else {
+ throw new IllegalStateException("Invalid aggregation statement")
+ }
+ }
+
+ public void on(String... args)
+ {
+ if (transformType != TableTransformationType.aggregation) {
+ throw new IllegalStateException("Keyword 'on' is only supported for aggregation")
+ }
+ for (String arg: args) {
+ column (arg)
+ }
+ groupBy = args.grep ()
+ }
+
+ def column(String name, String type, Map attributes = [:]) {
+ Column column = new Column(name, type, attributes)
+ // column.with(columnDef)
+ columns << column
+ }
+
+ def column(String name, Map attributes = [:]) {
+ column (name, DEFAULT_TYPE, attributes)
+ }
+
+ String toString() {
+ return "Table(name: ${name}, type: ${type}, columns: ${columns})"
+ }
+
+ public void setProperty(String name, Object value)
+ {
+ switch (name) {
+ case "currentContext":
+ super.setProperty(name, value)
+ return
+ case "columns":
+ currentContext = "columns"
+ return
+ default:
+ break
+ }
+
+ switch (currentContext) {
+ case "columns":
+ column(name, (String)value)
+ break
+ default:
+ super.setProperty(name, value)
+ }
+
+ }
+
+ public void reconcile (Closure closure)
+ {
+ this.@currentContext = "columns_reconcile"
+ closure.delegate = this
+ closure.resolveStrategy = Closure.DELEGATE_FIRST
+ try {
+ closure.call ()
+ } finally {
+ this.@currentContext = null
+ }
+ }
+
+ public Object getProperty (String name)
+ {
+ try {
+ super.getProperty (name)
+ } catch (MissingPropertyException x) {
+ return name
+ }
+ }
+
+ String toYAML(int indent)
+ {
+ String prefix = " " * indent
+ String body = "${prefix}# ${type}: ${name}\n"
+ body = addElement (body, name, "", indent)
+ indent += 1
+ if (description != null) {
+ body = addText (body, "description", description, indent)
+ }
+ if (type != null) {
+ body = addElement (body, "type", type, indent)
+ }
+ if (from != null) {
+ if (from.size () > 1) {
+ body = addList (body, "from", from, indent)
+ }
+ else if (!from.isEmpty ()) {
+ body = addElement (body, "from", from [0], indent)
+ }
+ }
+ if (groupBy != null) {
+ body = addList (body, "group by", groupBy, indent)
+ }
+ List columnNames = new ArrayList<>()
+ for (Column column: columns) {
+ columnNames.add (column.name)
+ }
+ body = addElement (body, "columns", "", indent)
+ for (Column column: columns) {
+ String cc = column.toYAML(indent)
+ body += cc + '\n'
+ }
+ return body
+ }
+}
+
+
diff --git a/src/groovy/org/forome/dorieh/domain/Workflow.groovy b/src/groovy/org/forome/dorieh/domain/Workflow.groovy
new file mode 100644
index 000000000..1475b92b8
--- /dev/null
+++ b/src/groovy/org/forome/dorieh/domain/Workflow.groovy
@@ -0,0 +1,39 @@
+package org.forome.dorieh.domain
+
+import org.forome.dorieh.dsl.Dataflow
+
+
+class Workflow extends Base
+{
+ String name
+ String description
+ String domain
+ String goal
+
+ def methodMissing(String name, Object args)
+ {
+ switch (name) {
+ case "build":
+ goal = currentContext.get ("name")
+ return
+ case "domain":
+ domain = currentContext.get ("name")
+ return
+ }
+ currentContext = [
+ name: name,
+ closure: args[0]
+ ]
+ }
+
+ public void domain(String arg)
+ {
+ domain = arg
+ }
+
+ public void build(String arg)
+ {
+ goal = arg
+ }
+
+}
diff --git a/src/groovy/org/forome/dorieh/dsl/DSLParser.groovy b/src/groovy/org/forome/dorieh/dsl/DSLParser.groovy
new file mode 100644
index 000000000..69d0a99fb
--- /dev/null
+++ b/src/groovy/org/forome/dorieh/dsl/DSLParser.groovy
@@ -0,0 +1,75 @@
+/*
+ * Copyright (c) 2024. Harvard University
+ *
+ * Developed by Research Software Engineering,
+ * Harvard University Research Computing and Data (RCD) Services.
+ *
+ * Author: Michael A Bouzinier
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ */
+
+package org.forome.dorieh.dsl
+
+import org.codehaus.groovy.control.CompilerConfiguration
+
+class DSLParser {
+
+ private static String preprocessDsl(dslScript) {
+ def processedScript = new StringBuilder()
+ dslScript.eachLine { line ->
+ String prefix = indentation (line)
+ if (line.trim().startsWith('-')) {
+ def itemValue = line.trim().replaceFirst('-', '').trim()
+ processedScript.append("${prefix}item ${itemValue}\n")
+ } else {
+ processedScript.append(line).append('\n')
+ }
+ }
+ return processedScript.toString()
+ }
+
+ private static String indentation (String line) {
+ def matcher = (line =~ /\S/)
+ if (matcher) {
+ return line.substring (0, matcher.start ())
+ }
+ return ""
+ }
+
+
+ static void parseGroovyScript(String filePath)
+ {
+ // Read the script content from a file
+ File scriptFile = new File(filePath)
+
+ if (!scriptFile.exists()) {
+ throw new IllegalArgumentException("DSL Script file not found at specified path.")
+ }
+
+ String scriptContent = preprocessDsl (scriptFile.text)
+
+ CompilerConfiguration config = new CompilerConfiguration()
+ config.setScriptBaseClass(DSLScript.class.name)
+
+ GroovyShell shell = new GroovyShell(new Binding(), config)
+
+ Script parsedScript = shell.parse(scriptContent)
+ parsedScript.run()
+ DSLScript scriptInstance = (DSLScript) parsedScript
+ Dataflow dslInstance = scriptInstance.dsl
+ dslInstance.toYAML ()
+ }
+}
+
diff --git a/src/groovy/org/forome/dorieh/dsl/DSLScript.groovy b/src/groovy/org/forome/dorieh/dsl/DSLScript.groovy
new file mode 100644
index 000000000..24d430873
--- /dev/null
+++ b/src/groovy/org/forome/dorieh/dsl/DSLScript.groovy
@@ -0,0 +1,37 @@
+package org.forome.dorieh.dsl
+
+class DSLScript extends Script {
+ Dataflow dsl = new Dataflow() // automatically injects a Dataflow instance
+
+ @Override
+ Object run() {
+ // By having this, every method in your script will be treated as dsl.whateverMethod()
+ return runScriptWithContext()
+ }
+
+ private Object runScriptWithContext() {
+ dsl.with {
+ this.getBinding().variables.each { k, v -> this.setProperty(k, v) } // inject all variables
+ return this.runClosure(this) // Execute the script body
+ }
+ }
+
+ private Object runClosure(DSLScript dslScriptBase) {
+ Object result = dslScriptBase.run()
+ return result
+ }
+
+ def methodMissing(String name, args) {
+ dsl.invokeMethod(name, args)
+ }
+
+ // Intercept any unresolved property access in the script and delegate to dsl
+ def propertyMissing(String name) {
+ return dsl.getProperty(name)
+ }
+
+ def propertyMissing(String name, value) {
+ dsl.setProperty(name, value)
+ }
+
+}
\ No newline at end of file
diff --git a/src/groovy/org/forome/dorieh/dsl/Dataflow.groovy b/src/groovy/org/forome/dorieh/dsl/Dataflow.groovy
new file mode 100644
index 000000000..b6f2c985c
--- /dev/null
+++ b/src/groovy/org/forome/dorieh/dsl/Dataflow.groovy
@@ -0,0 +1,115 @@
+/*
+ * Copyright (c) 2024. Harvard University
+ *
+ * Developed by Research Software Engineering,
+ * Harvard University Research Computing and Data (RCD) Services.
+ *
+ * Author: Michael A Bouzinier
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ *
+ *
+ *
+ *
+ */
+
+package org.forome.dorieh.dsl
+
+import org.forome.dorieh.domain.Base
+import org.forome.dorieh.domain.Domain
+import org.forome.dorieh.domain.Table
+import org.forome.dorieh.domain.Workflow
+
+
+class Dataflow extends Base
+{
+ Map tableDefinitions = [:]
+ Map domains = [:]
+ Map workflows = [:]
+
+
+ // Stack stack;
+
+ def methodMissing(String name, Object args)
+ {
+ println "methodMissing called with name: $name and args: $args"
+ switch (name) {
+ case "table":
+ String tableName = currentContext.get ("name")
+ Closure closure = (Closure) currentContext.get ("closure")
+ table (tableName, closure)
+ return
+ }
+ currentContext = [
+ name: name,
+ closure: args[0]
+ ]
+
+ }
+
+// public void table()
+// {
+// if (currentContext != null && currentContext instanceof Map) {
+// String name = currentContext.get ("name")
+// Closure closure = (Closure) currentContext.get ("closure")
+// table (name, closure)
+// }
+// }
+ public void table(String name, Closure closure)
+ {
+ assert name != null : "Unnamed table block is not allowed"
+ println "Defining table: ${name}"
+ Table table = new Table(name: name)
+ tableDefinitions[name] = table // Store the defined table
+ call (closure, table)
+ }
+
+ public void domain (Closure closure)
+ {
+ domain ("Unnamed domain", closure)
+ }
+
+ public void domain (String name, Closure closure)
+ {
+ println "Defining domain: ${name}"
+ domains[name] = new Domain ()
+ call (closure, domains[name])
+ }
+
+ public void workflow(Closure closure)
+ {
+ workflow ("Default workflow", closure)
+ }
+
+ public void workflow(String name, Closure closure)
+ {
+ if (workflows.containsKey (name)) {
+ throw new IllegalStateException("Duplicate workflow ${name}")
+ }
+ Workflow workflow = new Workflow ()
+ workflows[name] = workflow
+ call (closure, workflow)
+ String domain = workflow.domain
+ println "Workflow: ${name} building ${workflow.goal} for domain ${domain}"
+ }
+
+ void toYAML()
+ {
+ print "tables:\n"
+ for (String table: tableDefinitions.keySet ()) {
+ print (tableDefinitions[table].toYAML (2))
+ }
+ }
+}
+
diff --git a/src/groovy/org/forome/dorieh/medicare/mtest2.gy b/src/groovy/org/forome/dorieh/medicare/mtest2.gy
new file mode 100644
index 000000000..572ce157f
--- /dev/null
+++ b/src/groovy/org/forome/dorieh/medicare/mtest2.gy
@@ -0,0 +1,105 @@
+package org.forome.dorieh.medicare
+/*
+ * Copyright (c) 2024. Harvard University
+ *
+ * Developed by Research Software Engineering,
+ * Harvard University Research Computing and Data (RCD) Services.
+ *
+ * Author: Michael A Bouzinier
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+
+
+
+table ps {
+ type = 'view'
+ union of {
+ - 'cms.mbsf_ab*'
+ - 'cms.mcr_bene_*'
+ }
+
+ columns {
+ bene_id ('STRING')
+
+ year {
+ type = 'INT'
+ isomorphic_transformation of ("year")
+ sql =
+ '''
+ CASE
+ WHEN "year"::int < 20 THEN (2000 + "year"::int)
+ WHEN (20 < "year"::int AND "year"::int < 100) THEN (1900 + "year"::int)
+ WHEN "year" IS NULL THEN 2000 ELSE "year"::int
+ END
+ '''
+ }
+
+ dob {
+ type = "DATE"
+ description = """
+ Date of birth
+ """
+ isomorphic_transformation of (
+ dob,
+ bene_dob,
+ bene_birth_dt
+ )
+ cast (
+ "character varying": "public.parse_date({column_name})",
+ "numeric": "to_date(to_char({column_name}, '00000000'), 'YYYYMMDD')"
+ )
+ }
+ }
+}
+
+table beneficiaries {
+ aggregation of ( "ps" )
+ on (bene_id)
+ reconcile {
+ dob {
+ pick "max" over "min"
+ record "count distinct"
+ }
+ dod {
+ pick "min" over "max"
+ record ("count distinct")
+ }
+ }
+
+ aggregate {
+ first_enrollment_year = MIN(year)
+ last_enrollment_year = MAX (year)
+ all_enrollment_years = "ARRAY_AGG(DISTINCT year ORDER BY year)"
+ }
+}
+
+domain Medicare {
+ name 'medicare'
+ schema = 'medicare'
+ auditSchema = 'medicare_audit'
+ quoting = '3'
+ indexingPolicy = 'unless excluded'
+
+ tables {
+ ps
+ beneficiaries
+ }
+}
+
+
+workflow {
+ domain "Medicare"
+ build "beneficiaries"
+}
diff --git a/src/groovy/org/forome/dorieh/parser.groovy b/src/groovy/org/forome/dorieh/parser.groovy
new file mode 100644
index 000000000..76ecf0afa
--- /dev/null
+++ b/src/groovy/org/forome/dorieh/parser.groovy
@@ -0,0 +1,31 @@
+/*
+ * Copyright (c) 2024. Harvard University
+ *
+ * Developed by Research Software Engineering,
+ * Harvard University Research Computing and Data (RCD) Services.
+ *
+ * Author: Michael A Bouzinier
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ *
+ *
+ *
+ *
+ */
+
+package org.forome.dorieh
+import org.forome.dorieh.dsl.DSLParser
+
+// Assuming this script is in the same directory as myDslScript.groovy
+DSLParser.parseGroovyScript(args[0])
diff --git a/src/groovy/pom.xml b/src/groovy/pom.xml
new file mode 100644
index 000000000..ef3cf030e
--- /dev/null
+++ b/src/groovy/pom.xml
@@ -0,0 +1,82 @@
+
+
+
+
+ 4.0.0
+
+ org.forome.dorieh
+ DoriehGroovy
+ 1.0-SNAPSHOT
+
+
+
+ org.apache.groovy
+ groovy-all
+ 4.0.14
+ pom
+
+
+
+
+
+
+ org.codehaus.gmavenplus
+ gmavenplus-plugin
+ 1.13.1
+
+
+
+ execute
+
+
+
+
+
+ org.apache.groovy
+ groovy
+ 4.0.14
+ runtime
+
+
+
+
+
+
+
+
+
+
+
+
+ 17
+ 17
+ UTF-8
+
+
+
diff --git a/src/python/dorieh/census/__init__.py b/src/python/dorieh/census/__init__.py
index 6bffc6fa6..bf20ebc14 100644
--- a/src/python/dorieh/census/__init__.py
+++ b/src/python/dorieh/census/__init__.py
@@ -18,12 +18,12 @@
# limitations under the License.
#
-from .census_info import get_endpoint, get_varlist, set_api_key, census_years
-from .query import get_census_data, api_geography
-from .assemble_data import VariableDef, DataPlan
-from .data import load_county_codes, load_state_codes
-from .cli import census_cli
-from .tigerweb import get_area, download_geometry
+from dorieh.census.census_info import get_endpoint, get_varlist, set_api_key, census_years
+from dorieh.census.query import get_census_data, api_geography
+from dorieh.census.assemble_data import VariableDef, DataPlan
+from dorieh.census.data import load_county_codes, load_state_codes
+from dorieh.census.cli import census_cli
+from dorieh.census.tigerweb import get_area, download_geometry
__version__ = "0.3"
diff --git a/src/python/dorieh/census/assemble_data.py b/src/python/dorieh/census/assemble_data.py
index 1ebe38bce..7608bc5e9 100644
--- a/src/python/dorieh/census/assemble_data.py
+++ b/src/python/dorieh/census/assemble_data.py
@@ -32,11 +32,11 @@
import dorieh.utils.qc as qc
import dorieh.utils.interpolation as interpolation
-from .data import *
-from .exceptions import CensusException
-from .tigerweb import get_area
-from .census_info import census_years
-from .query import get_census_data, _clean_acs_vars
+from dorieh.census.data import *
+from dorieh.census.exceptions import CensusException
+from dorieh.census.tigerweb import get_area
+from dorieh.census.census_info import census_years
+from dorieh.census.query import get_census_data, _clean_acs_vars
class DataPlan:
"""
diff --git a/src/python/dorieh/census/census_info.py b/src/python/dorieh/census/census_info.py
index 32f41d13c..08bad4c98 100644
--- a/src/python/dorieh/census/census_info.py
+++ b/src/python/dorieh/census/census_info.py
@@ -30,7 +30,7 @@
import requests as r
-from .exceptions import CensusException
+from dorieh.census.exceptions import CensusException
LOG = logging.getLogger(__name__)
diff --git a/src/python/dorieh/census/cli.py b/src/python/dorieh/census/cli.py
index e3d024478..77be4775f 100644
--- a/src/python/dorieh/census/cli.py
+++ b/src/python/dorieh/census/cli.py
@@ -28,9 +28,9 @@
import pickle
from dorieh.utils.context import Context, Argument, Cardinality
-from .assemble_data import DataPlan
-from .census_info import census_years
-from .query import SUPPORTED_GEOMETRIES
+from dorieh.census.assemble_data import DataPlan
+from dorieh.census.census_info import census_years
+from dorieh.census.query import SUPPORTED_GEOMETRIES
class CensusContext(Context):
diff --git a/src/python/dorieh/census/query.py b/src/python/dorieh/census/query.py
index 3c7b26796..285be0408 100644
--- a/src/python/dorieh/census/query.py
+++ b/src/python/dorieh/census/query.py
@@ -30,8 +30,8 @@
import pandas as pd
import requests
-from .census_info import get_endpoint, get_varlist
-from .exceptions import CensusException
+from dorieh.census.census_info import get_endpoint, get_varlist
+from dorieh.census.exceptions import CensusException
# Code for downloading the census data
diff --git a/src/python/dorieh/census/tigerweb.py b/src/python/dorieh/census/tigerweb.py
index 3cd6f6e38..521c1d0aa 100644
--- a/src/python/dorieh/census/tigerweb.py
+++ b/src/python/dorieh/census/tigerweb.py
@@ -31,9 +31,9 @@
import pandas as pd
import requests
-from .data import load_state_codes
-from .exceptions import CensusException
-from .query import _prep_vars
+from dorieh.census.data import load_state_codes
+from dorieh.census.exceptions import CensusException
+from dorieh.census.query import _prep_vars
GEOMETRY_CODES = {"zcta": 2,
"tract": 8,
diff --git a/src/python/dorieh/cms/fts2yaml.py b/src/python/dorieh/cms/fts2yaml.py
index 73f0ce730..f848759b0 100644
--- a/src/python/dorieh/cms/fts2yaml.py
+++ b/src/python/dorieh/cms/fts2yaml.py
@@ -18,10 +18,40 @@
#
"""
-Parse utilities for File Transfer Summary (FTS) files generated by SAS.
+FTS Metadata Extractor for CMS Data Pipelines
-Tries to recognize a type of a medicare or a medicaid CMS file and
-extract metadata
+This module processes File Transfer Summary (FTS) files associated with CMS
+Medicare and Medicaid datasets provided by ResDac. These FTS files accompany
+fixed-width (.dat) and contain descriptions of columns,
+types, widths, and formatting generated by SAS.
+
+Functional Overview:
+
+* Parses FTS files and infers structured metadata for each data column.
+* Distinguishes between Medicaid and Medicare formats.
+* Validates presence of critical index columns such as BENE_ID or YEAR.
+* Automatically injects additional columns for record tracking and source file name.
+* Supports conversion to SQL-compatible column definitions (e.g., NUMERIC, VARCHAR, DATE).
+* Serializes resulting schema into a standard YAML-based data model used in NSAPH pipelines.
+
+Key Classes:
+
+* :class:MedicareFTSColumn, :class:MedicaidFTSColumn –
+ Describe format-specific column attributes parsed from each FTS file.
+
+* :class:MedicareFTS, :class:MedicaidFTS –
+ Front-end classes that produce a complete YAML schema from one or more FTS files.
+
+* :class:FTSColumn – Represents a data column extracted from an FTS file line.
+
+* :class:CMSFTS – Abstract base class that encapsulates common logic for metadata parsing and YAML generation.
+
+Used in preparation for ingestion of raw Medicare or Medicaid data in the
+NSAPH ETL pipelines.
+
+Resources:
+
+- Related terms see :doc:`Glossary <../glossary.md>`: FWF, BENE_ID, FTS, CMS
"""
diff --git a/src/python/dorieh/cms/mcr_data_loader.py b/src/python/dorieh/cms/mcr_data_loader.py
index 6c30caccd..ae57a311c 100644
--- a/src/python/dorieh/cms/mcr_data_loader.py
+++ b/src/python/dorieh/cms/mcr_data_loader.py
@@ -28,12 +28,42 @@
class MedicareDataLoader(DataLoader):
"""
- Subclass of generic Data Loader aware of the raw Medicare CMS
- data structure. Matches FTS and DAT files.
+ MedicareDataLoader is a specialized subclass of :class:`~dorieh.platform.loader.data_loader.DataLoader`
+ that handles ingestion of raw Medicare CMS files accompanied by FTS (File Transfer Summary) metadata.
+
+ This loader is designed to read data using file specifications included in FTS files provided by ResDAC.
+ It supports fixed-width (.dat) raw data files where metadata is embedded in a parallel .fts file.
+
+ Functional Responsibilities:
+ - Resolves (*.fts) File Transfer Summary files to their corresponding data (*.dat) files
+ - Parses FTS files using :class:`~dorieh.cms.fts2yaml.MedicareFTS`
+ - Creates an :class:`~dorieh.utils.fwf.FWFReader` for reading fixed-width data using inferred column schema
+ - Integrates with the context-configurable data loading pipeline via :class:`~dorieh.platform.loader.data_loader.DataLoader`
+
+ Attributes:
+ context (LoaderConfig): Configuration object carrying paths and settings for ingestion.
+
+ Example Usage:
+ loader = MedicareDataLoader(context)
+ loader.run()
+
+ See Also:
+ - :class:`~dorieh.cms.fts2yaml.MedicareFTS`
+ - :class:`~dorieh.utils.fwf.FWFReader`
+ - :class:`~dorieh.platform.loader.data_loader.DataLoader`
"""
@classmethod
def dat4fts(cls, fts_path):
+ """
+ Given a path to an FTS metadata file, finds all matching .dat data files.
+
+ The .dat files are expected to match the FTS filename prefix.
+
+ :param fts_path: Path to a .fts metadata file.
+ :return: List[str]: List of full paths to .dat files that correspond to the FTS file.
+ """
+
f, ext = os.path.splitext(fts_path)
assert ext.lower() == '.fts'
data_files = glob.glob("{}*.dat".format(f))
@@ -41,6 +71,24 @@ def dat4fts(cls, fts_path):
@classmethod
def open(cls, name: str, dat_path: str = None) -> FWFReader:
+ """
+ Opens a fixed-width reader for a Medicare file using both the FTS (metadata)
+ and .dat (data) input files.
+
+ Given either a .fts or .dat path (or the base file name), this method builds
+ the appropriate pairing of FTS and DAT files, parses the metadata, and returns
+ a FWFReader for iterating over the structured data rows.
+
+ :param name: Path to either the .fts or .dat file, or a base file path without extension.
+ :param dat_path: If provided, explicitly sets .dat file path to use.
+ :return: A reader instance for parsing the structured fixed-width file.
+
+ Raises:
+ AssertionError: If provided file has an invalid or unsupported extension.
+ ValueError: If file type cannot be determined from file name.
+
+ """
+
f, ext = os.path.splitext(name)
if dat_path is not None:
assert ext.lower() == '.fts'
@@ -60,9 +108,25 @@ def open(cls, name: str, dat_path: str = None) -> FWFReader:
return FWFReader(fts.to_fwf_meta(dat_path))
def __init__(self, context):
+ """
+ Initializes a MedicareDataLoader with the given context.
+
+ :param context: A configuration object used by the data loading pipeline.
+ """
+
super().__init__(context)
def get_files(self) -> List[Tuple[Any, Callable]]:
+ """
+ Resolves all FTS-to-DAT file pairs from the configured context data path,
+ and returns a list of reader objects paired with file-open functions.
+
+ This function provides the loading pipeline with all reader instances needed
+ to load fixed-width Medicare data records.
+
+ :return: A list of reader/open-function pairs for streaming data.
+ """
+
objects = []
for fts_path in self.context.data:
dat_files = self.dat4fts(fts_path)
diff --git a/src/python/dorieh/cms/models/medicare.yaml b/src/python/dorieh/cms/models/medicare.yaml
index a18ab7fd8..62f168135 100644
--- a/src/python/dorieh/cms/models/medicare.yaml
+++ b/src/python/dorieh/cms/models/medicare.yaml
@@ -213,6 +213,7 @@ medicare:
type: INT
optional: true
source:
+ - crec
- cur_ent
- bene_entlmt_rsn_curr
cast:
diff --git a/src/python/dorieh/cms/models/medicare_cms.yaml b/src/python/dorieh/cms/models/medicare_cms.yaml
index f12d5f2ec..292a1f7c8 100755
--- a/src/python/dorieh/cms/models/medicare_cms.yaml
+++ b/src/python/dorieh/cms/models/medicare_cms.yaml
@@ -1,14 +1,3 @@
-# !!! DO NOT EDIT !!!
-# !!! GENERATED FILE !!!
-# This file is generated from FTS files
-# command:
-# python -u -m cms.tools.mcr_fts2db --registry medicare_cms.yaml --dryrun --data ${path_to_data}
-#
-# Data directory contains original data as provided by ResDac
-#
-# It contains data model for raw Medicare data
-#
-
cms:
header: false
index: explicit
@@ -25,6 +14,7 @@ cms:
text: Encrypted 723 Beneficiary ID (Unique Key)
width: 15.0
index: true
+ reference: https://resdac.org/cms-data/variables/ccw-beneficiary-id
type: VARCHAR(15)
- RFRNC_YR:
description:
@@ -32,6 +22,7 @@ cms:
original_type: NUM
text: Beneficiary Enrollment Reference Year
width: 4.0
+ reference: https://resdac.org/cms-data/variables/reference-year-base
type: INT
- FIVEPCT:
description:
@@ -39,6 +30,7 @@ cms:
original_type: CHAR
text: Strict 5% Flag
width: 1.0
+ reference: https://resdac.org/cms-data/variables/enhanced-medicare-5-sample-indicator
type: VARCHAR(1)
- EFIVEPCT:
description:
@@ -46,6 +38,7 @@ cms:
original_type: CHAR
text: Enhanced 5% Flag
width: 1.0
+ reference: https://resdac.org/cms-data/variables/enhanced-medicare-5-sample-indicator
type: VARCHAR(1)
- COVSTART:
description:
@@ -53,6 +46,7 @@ cms:
original_type: DATE
text: Medicare Coverage Start Date
width: 8.0
+ reference: https://resdac.org/cms-data/variables/medicare-coverage-start-date
type: DATE
- CRNT_BIC:
description:
@@ -60,6 +54,7 @@ cms:
original_type: CHAR
text: Beneficiary Identification Code
width: 2.0
+ reference: https://resdac.org/cms-data/variables/current-beneficiary-identification-code
type: VARCHAR(2)
- STATE_CD:
description:
@@ -67,6 +62,7 @@ cms:
original_type: CHAR
text: State Code
width: 2.0
+ reference: https://resdac.org/cms-data/variables/state-code-beneficiary-ssa-code
type: VARCHAR(2)
- CNTY_CD:
description:
@@ -74,6 +70,7 @@ cms:
original_type: CHAR
text: County Code
width: 3.0
+ reference: https://resdac.org/sites/datadocumentation.resdac.org/files/Introduction%20to%20DE-SynPUF%20%28Slides%29.pdf
type: VARCHAR(3)
- BENE_ZIP:
description:
@@ -81,6 +78,7 @@ cms:
original_type: CHAR
text: Zip Code of Residence
width: 9.0
+ reference: https://resdac.org/cms-data/variables/zip-code-beneficiary-home-or-mailing-address-latest-year
type: VARCHAR(9)
- AGE:
description:
@@ -88,6 +86,7 @@ cms:
original_type: NUM
text: Age at End of Reference Year
width: 3.0
+ reference: https://resdac.org/cms-data/variables/age-beneficiary-end-year
type: INT
- BENE_DOB:
description:
@@ -95,6 +94,7 @@ cms:
original_type: DATE
text: Date of Birth
width: 8.0
+ reference: https://resdac.org/cms-data/variables/beneficiary-date-birth
type: DATE
- V_DOD_SW:
description:
@@ -102,6 +102,7 @@ cms:
original_type: CHAR
text: Valid Date of Death Switch
width: 1.0
+ reference: https://resdac.org/cms-data/variables/date-death
type: VARCHAR(1)
- DEATH_DT:
description:
@@ -109,6 +110,7 @@ cms:
original_type: DATE
text: Date of Death
width: 8.0
+ reference: https://resdac.org/cms-data/variables/date-death
type: DATE
- NDI_DEATH_DT:
description:
@@ -116,6 +118,7 @@ cms:
original_type: DATE
text: NDI Date of Death
width: 8.0
+ reference: https://resdac.org/cms-data/variables/ndi-date-deathmbsf
type: DATE
- SEX:
description:
@@ -123,6 +126,7 @@ cms:
original_type: CHAR
text: Sex
width: 1.0
+ reference: https://resdac.org/sites/datadocumentation.resdac.org/files/Introduction%20to%20DE-SynPUF%20%28Slides%29.pdf
type: VARCHAR(1)
- RACE:
description:
@@ -130,6 +134,7 @@ cms:
original_type: CHAR
text: Beneficiary Race Code
width: 1.0
+ reference: https://resdac.org/cms-data/variables/beneficiary-race-code-base
type: VARCHAR(1)
- RTI_RACE_CD:
description:
@@ -137,6 +142,7 @@ cms:
original_type: CHAR
text: Research Triangle Institute (RTI) Race Code
width: 1.0
+ reference: https://resdac.org/cms-data/variables/research-triangle-institute-rti-race-code
type: VARCHAR(1)
- OREC:
description:
@@ -144,6 +150,7 @@ cms:
original_type: CHAR
text: Original Reason for Entitlement Code
width: 1.0
+ reference: null
type: VARCHAR(1)
- CREC:
description:
@@ -151,6 +158,7 @@ cms:
original_type: CHAR
text: Current Reason for Entitlement Code
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medicare-current-reason-entitlement-code-crec
type: VARCHAR(1)
- ESRD_IND:
description:
@@ -158,6 +166,7 @@ cms:
original_type: CHAR
text: ESRD Indicator
width: 1.0
+ reference: https://resdac.org/sites/datadocumentation.resdac.org/files/Introduction%20to%20DE-SynPUF%20%28Slides%29.pdf
type: VARCHAR(1)
- MS_CD:
description:
@@ -165,6 +174,7 @@ cms:
original_type: CHAR
text: Medicare Status Code
width: 2.0
+ reference: https://resdac.org/cms-data/variables/reason-entitlement-medicare-benefits-clmthrudt
type: VARCHAR(2)
- A_TRM_CD:
description:
@@ -172,6 +182,7 @@ cms:
original_type: CHAR
text: Part A Termination Code
width: 1.0
+ reference: https://resdac.org/cms-data/variables/part-termination-code
type: VARCHAR(1)
- B_TRM_CD:
description:
@@ -179,6 +190,7 @@ cms:
original_type: CHAR
text: Part B Termination Code
width: 1.0
+ reference: https://resdac.org/cms-data/variables/part-b-termination-code
type: VARCHAR(1)
- A_MO_CNT:
description:
@@ -186,6 +198,7 @@ cms:
original_type: NUM
text: HI Coverage Count
width: 3.0
+ reference: https://resdac.org/cms-data/variables/part-months-count
type: INT
- B_MO_CNT:
description:
@@ -193,6 +206,7 @@ cms:
original_type: NUM
text: SMI Coverage Count
width: 3.0
+ reference: https://resdac.org/cms-data/variables/part-b-months-count
type: INT
- BUYIN_MO:
description:
@@ -200,6 +214,7 @@ cms:
original_type: NUM
text: State Buy-In Coverage Count
width: 3.0
+ reference: https://resdac.org/cms-data/variables/state-buy-coverage-count
type: INT
- HMO_MO:
description:
@@ -207,6 +222,7 @@ cms:
original_type: NUM
text: HMO Coverage Count
width: 3.0
+ reference: https://resdac.org/cms-data/variables/hmo-coverage-count
type: INT
- BUYIN01:
description:
@@ -214,6 +230,7 @@ cms:
original_type: CHAR
text: Medicare Entitlement/Buy-In Indicator I
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medicare-entitlementbuy-indicator-november-0
type: VARCHAR(1)
- BUYIN02:
description:
@@ -221,6 +238,7 @@ cms:
original_type: CHAR
text: Medicare Entitlement/Buy-In Indicator II
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medicare-entitlementbuy-indicator
type: VARCHAR(1)
- BUYIN03:
description:
@@ -228,6 +246,7 @@ cms:
original_type: CHAR
text: Medicare Entitlement/Buy-In Indicator III
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medicare-entitlementbuy-indicator
type: VARCHAR(1)
- BUYIN04:
description:
@@ -235,6 +254,7 @@ cms:
original_type: CHAR
text: Medicare Entitlement/Buy-In Indicator IV
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medicare-entitlementbuy-indicator
type: VARCHAR(1)
- BUYIN05:
description:
@@ -242,6 +262,7 @@ cms:
original_type: CHAR
text: Medicare Entitlement/Buy-In Indicator V
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medicare-entitlementbuy-indicator
type: VARCHAR(1)
- BUYIN06:
description:
@@ -249,6 +270,7 @@ cms:
original_type: CHAR
text: Medicare Entitlement/Buy-In Indicator VI
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medicare-entitlementbuy-indicator
type: VARCHAR(1)
- BUYIN07:
description:
@@ -256,6 +278,7 @@ cms:
original_type: CHAR
text: Medicare Entitlement/Buy-In Indicator VII
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medicare-entitlementbuy-indicator
type: VARCHAR(1)
- BUYIN08:
description:
@@ -263,6 +286,7 @@ cms:
original_type: CHAR
text: Medicare Entitlement/Buy-In Indicator VIII
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medicare-entitlementbuy-indicator
type: VARCHAR(1)
- BUYIN09:
description:
@@ -270,6 +294,7 @@ cms:
original_type: CHAR
text: Medicare Entitlement/Buy-In Indicator IX
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medicare-entitlementbuy-indicator
type: VARCHAR(1)
- BUYIN10:
description:
@@ -277,6 +302,7 @@ cms:
original_type: CHAR
text: Medicare Entitlement/Buy-In Indicator X
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medicare-entitlementbuy-indicator
type: VARCHAR(1)
- BUYIN11:
description:
@@ -284,6 +310,7 @@ cms:
original_type: CHAR
text: Medicare Entitlement/Buy-In Indicator XI
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medicare-entitlementbuy-indicator
type: VARCHAR(1)
- BUYIN12:
description:
@@ -291,6 +318,7 @@ cms:
original_type: CHAR
text: Medicare Entitlement/Buy-In Indicator XII
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medicare-entitlementbuy-indicator
type: VARCHAR(1)
- HMOIND01:
description:
@@ -298,6 +326,7 @@ cms:
original_type: CHAR
text: HMO Indicator I
width: 1.0
+ reference: https://resdac.org/cms-data/variables/hmo-indicator
type: VARCHAR(1)
- HMOIND02:
description:
@@ -305,6 +334,7 @@ cms:
original_type: CHAR
text: HMO Indicator II
width: 1.0
+ reference: https://resdac.org/cms-data/variables/hmo-indicator
type: VARCHAR(1)
- HMOIND03:
description:
@@ -312,6 +342,7 @@ cms:
original_type: CHAR
text: HMO Indicator III
width: 1.0
+ reference: https://resdac.org/cms-data/variables/hmo-indicator
type: VARCHAR(1)
- HMOIND04:
description:
@@ -319,6 +350,7 @@ cms:
original_type: CHAR
text: HMO Indicator IV
width: 1.0
+ reference: https://resdac.org/cms-data/variables/hmo-indicator
type: VARCHAR(1)
- HMOIND05:
description:
@@ -326,6 +358,7 @@ cms:
original_type: CHAR
text: HMO Indicator V
width: 1.0
+ reference: https://resdac.org/cms-data/variables/hmo-indicator
type: VARCHAR(1)
- HMOIND06:
description:
@@ -333,6 +366,7 @@ cms:
original_type: CHAR
text: HMO Indicator VI
width: 1.0
+ reference: https://resdac.org/cms-data/variables/hmo-indicator
type: VARCHAR(1)
- HMOIND07:
description:
@@ -340,6 +374,7 @@ cms:
original_type: CHAR
text: HMO Indicator VII
width: 1.0
+ reference: https://resdac.org/cms-data/variables/hmo-indicator
type: VARCHAR(1)
- HMOIND08:
description:
@@ -347,6 +382,7 @@ cms:
original_type: CHAR
text: HMO Indicator VIII
width: 1.0
+ reference: https://resdac.org/cms-data/variables/hmo-indicator
type: VARCHAR(1)
- HMOIND09:
description:
@@ -354,6 +390,7 @@ cms:
original_type: CHAR
text: HMO Indicator IX
width: 1.0
+ reference: https://resdac.org/cms-data/variables/hmo-indicator
type: VARCHAR(1)
- HMOIND10:
description:
@@ -361,6 +398,7 @@ cms:
original_type: CHAR
text: HMO Indicator X
width: 1.0
+ reference: https://resdac.org/cms-data/variables/hmo-indicator
type: VARCHAR(1)
- HMOIND11:
description:
@@ -368,6 +406,7 @@ cms:
original_type: CHAR
text: HMO Indicator XI
width: 1.0
+ reference: https://resdac.org/cms-data/variables/hmo-indicator
type: VARCHAR(1)
- HMOIND12:
description:
@@ -375,6 +414,7 @@ cms:
original_type: CHAR
text: HMO Indicator XII
width: 1.0
+ reference: https://resdac.org/cms-data/variables/hmo-indicator
type: VARCHAR(1)
- FILE:
description:
@@ -383,6 +423,7 @@ cms:
width: 128
index:
required_before_loading_data: true
+ reference: null
source:
type: file
type: VARCHAR(128)
@@ -391,6 +432,7 @@ cms:
original_type: BIGSERIAL
text: Record number in the file
width: null
+ reference: https://resdac.org/cms-data/variables/nch-near-line-record-identification-code-ric
type: BIGSERIAL
- STATE:
description:
@@ -398,6 +440,7 @@ cms:
text: State Code
width: 2.0
index: true
+ reference: https://resdac.org/cms-data/variables/state-code-beneficiary-ssa-code
source:
code: GENERATED ALWAYS AS (STATE_CD) STORED
type: generated
@@ -408,6 +451,7 @@ cms:
text: Beneficiary Enrollment Reference Year
width: 4.0
index: true
+ reference: https://resdac.org/cms-data/variables/mbsf-cc-30/alzheimers-disease-end-year-indicator
source:
code: GENERATED ALWAYS AS (RFRNC_YR) STORED
type: generated
@@ -418,6 +462,7 @@ cms:
text: Zip Code of Residence
width: 9.0
index: true
+ reference: https://resdac.org/cms-data/variables/zip-code-beneficiary
source:
code: GENERATED ALWAYS AS (BENE_ZIP) STORED
type: generated
@@ -440,6 +485,7 @@ cms:
text: Encrypted 723 Beneficiary ID (Unique Key)
width: 15.0
index: true
+ reference: https://resdac.org/cms-data/variables/ccw-beneficiary-id
type: VARCHAR(15)
- RFRNC_YR:
description:
@@ -447,6 +493,7 @@ cms:
original_type: NUM
text: Beneficiary Enrollment Reference Year
width: 4.0
+ reference: https://resdac.org/cms-data/variables/reference-year-base
type: INT
- FIVEPCT:
description:
@@ -454,6 +501,7 @@ cms:
original_type: CHAR
text: Strict 5% Flag
width: 1.0
+ reference: https://resdac.org/cms-data/variables/enhanced-medicare-5-sample-indicator
type: VARCHAR(1)
- EFIVEPCT:
description:
@@ -461,6 +509,7 @@ cms:
original_type: CHAR
text: Enhanced 5% Flag
width: 1.0
+ reference: https://resdac.org/cms-data/variables/enhanced-medicare-5-sample-indicator
type: VARCHAR(1)
- COVSTART:
description:
@@ -468,6 +517,7 @@ cms:
original_type: DATE
text: Medicare Coverage Start Date
width: 8.0
+ reference: https://resdac.org/cms-data/variables/medicare-coverage-start-date
type: DATE
- CRNT_BIC:
description:
@@ -475,6 +525,7 @@ cms:
original_type: CHAR
text: Beneficiary Identification Code
width: 2.0
+ reference: https://resdac.org/cms-data/variables/current-beneficiary-identification-code
type: VARCHAR(2)
- STATE_CD:
description:
@@ -482,6 +533,7 @@ cms:
original_type: CHAR
text: State Code
width: 2.0
+ reference: https://resdac.org/cms-data/variables/state-code-beneficiary-ssa-code
type: VARCHAR(2)
- CNTY_CD:
description:
@@ -489,6 +541,7 @@ cms:
original_type: CHAR
text: County Code
width: 3.0
+ reference: https://resdac.org/sites/datadocumentation.resdac.org/files/Introduction%20to%20DE-SynPUF%20%28Slides%29.pdf
type: VARCHAR(3)
- BENE_ZIP:
description:
@@ -496,6 +549,7 @@ cms:
original_type: CHAR
text: Zip Code of Residence
width: 9.0
+ reference: https://resdac.org/cms-data/variables/zip-code-beneficiary-home-or-mailing-address-latest-year
type: VARCHAR(9)
- AGE:
description:
@@ -503,6 +557,7 @@ cms:
original_type: NUM
text: Age at End of Reference Year
width: 3.0
+ reference: https://resdac.org/cms-data/variables/age-beneficiary-end-year
type: INT
- BENE_DOB:
description:
@@ -510,6 +565,7 @@ cms:
original_type: DATE
text: Date of Birth
width: 8.0
+ reference: https://resdac.org/cms-data/variables/beneficiary-date-birth
type: DATE
- V_DOD_SW:
description:
@@ -517,6 +573,7 @@ cms:
original_type: CHAR
text: Valid Date of Death Switch
width: 1.0
+ reference: https://resdac.org/cms-data/variables/date-death
type: VARCHAR(1)
- DEATH_DT:
description:
@@ -524,6 +581,7 @@ cms:
original_type: DATE
text: Date of Death
width: 8.0
+ reference: https://resdac.org/cms-data/variables/date-death
type: DATE
- NDI_DEATH_DT:
description:
@@ -531,6 +589,7 @@ cms:
original_type: DATE
text: NDI Date of Death
width: 8.0
+ reference: https://resdac.org/cms-data/variables/ndi-date-deathmbsf
type: DATE
- SEX:
description:
@@ -538,6 +597,7 @@ cms:
original_type: CHAR
text: Sex
width: 1.0
+ reference: https://resdac.org/sites/datadocumentation.resdac.org/files/Introduction%20to%20DE-SynPUF%20%28Slides%29.pdf
type: VARCHAR(1)
- RACE:
description:
@@ -545,6 +605,7 @@ cms:
original_type: CHAR
text: Beneficiary Race Code
width: 1.0
+ reference: https://resdac.org/cms-data/variables/beneficiary-race-code-base
type: VARCHAR(1)
- RTI_RACE_CD:
description:
@@ -552,6 +613,7 @@ cms:
original_type: CHAR
text: Research Triangle Institute (RTI) Race Code
width: 1.0
+ reference: https://resdac.org/cms-data/variables/research-triangle-institute-rti-race-code
type: VARCHAR(1)
- OREC:
description:
@@ -559,6 +621,7 @@ cms:
original_type: CHAR
text: Original Reason for Entitlement Code
width: 1.0
+ reference: null
type: VARCHAR(1)
- CREC:
description:
@@ -566,6 +629,7 @@ cms:
original_type: CHAR
text: Current Reason for Entitlement Code
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medicare-current-reason-entitlement-code-crec
type: VARCHAR(1)
- ESRD_IND:
description:
@@ -573,6 +637,7 @@ cms:
original_type: CHAR
text: ESRD Indicator
width: 1.0
+ reference: https://resdac.org/sites/datadocumentation.resdac.org/files/Introduction%20to%20DE-SynPUF%20%28Slides%29.pdf
type: VARCHAR(1)
- MS_CD:
description:
@@ -580,6 +645,7 @@ cms:
original_type: CHAR
text: Medicare Status Code
width: 2.0
+ reference: https://resdac.org/cms-data/variables/reason-entitlement-medicare-benefits-clmthrudt
type: VARCHAR(2)
- A_TRM_CD:
description:
@@ -587,6 +653,7 @@ cms:
original_type: CHAR
text: Part A Termination Code
width: 1.0
+ reference: https://resdac.org/cms-data/variables/part-termination-code
type: VARCHAR(1)
- B_TRM_CD:
description:
@@ -594,6 +661,7 @@ cms:
original_type: CHAR
text: Part B Termination Code
width: 1.0
+ reference: https://resdac.org/cms-data/variables/part-b-termination-code
type: VARCHAR(1)
- A_MO_CNT:
description:
@@ -601,6 +669,7 @@ cms:
original_type: NUM
text: HI Coverage Count
width: 3.0
+ reference: https://resdac.org/cms-data/variables/part-months-count
type: INT
- B_MO_CNT:
description:
@@ -608,6 +677,7 @@ cms:
original_type: NUM
text: SMI Coverage Count
width: 3.0
+ reference: https://resdac.org/cms-data/variables/part-b-months-count
type: INT
- BUYIN_MO:
description:
@@ -615,6 +685,7 @@ cms:
original_type: NUM
text: State Buy-In Coverage Count
width: 3.0
+ reference: https://resdac.org/cms-data/variables/state-buy-coverage-count
type: INT
- HMO_MO:
description:
@@ -622,6 +693,7 @@ cms:
original_type: NUM
text: HMO Coverage Count
width: 3.0
+ reference: https://resdac.org/cms-data/variables/hmo-coverage-count
type: INT
- BUYIN01:
description:
@@ -629,6 +701,7 @@ cms:
original_type: CHAR
text: Medicare Entitlement/Buy-In Indicator I
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medicare-entitlementbuy-indicator-november-0
type: VARCHAR(1)
- BUYIN02:
description:
@@ -636,6 +709,7 @@ cms:
original_type: CHAR
text: Medicare Entitlement/Buy-In Indicator II
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medicare-entitlementbuy-indicator
type: VARCHAR(1)
- BUYIN03:
description:
@@ -643,6 +717,7 @@ cms:
original_type: CHAR
text: Medicare Entitlement/Buy-In Indicator III
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medicare-entitlementbuy-indicator
type: VARCHAR(1)
- BUYIN04:
description:
@@ -650,6 +725,7 @@ cms:
original_type: CHAR
text: Medicare Entitlement/Buy-In Indicator IV
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medicare-entitlementbuy-indicator
type: VARCHAR(1)
- BUYIN05:
description:
@@ -657,6 +733,7 @@ cms:
original_type: CHAR
text: Medicare Entitlement/Buy-In Indicator V
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medicare-entitlementbuy-indicator
type: VARCHAR(1)
- BUYIN06:
description:
@@ -664,6 +741,7 @@ cms:
original_type: CHAR
text: Medicare Entitlement/Buy-In Indicator VI
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medicare-entitlementbuy-indicator
type: VARCHAR(1)
- BUYIN07:
description:
@@ -671,6 +749,7 @@ cms:
original_type: CHAR
text: Medicare Entitlement/Buy-In Indicator VII
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medicare-entitlementbuy-indicator
type: VARCHAR(1)
- BUYIN08:
description:
@@ -678,6 +757,7 @@ cms:
original_type: CHAR
text: Medicare Entitlement/Buy-In Indicator VIII
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medicare-entitlementbuy-indicator
type: VARCHAR(1)
- BUYIN09:
description:
@@ -685,6 +765,7 @@ cms:
original_type: CHAR
text: Medicare Entitlement/Buy-In Indicator IX
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medicare-entitlementbuy-indicator
type: VARCHAR(1)
- BUYIN10:
description:
@@ -692,6 +773,7 @@ cms:
original_type: CHAR
text: Medicare Entitlement/Buy-In Indicator X
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medicare-entitlementbuy-indicator
type: VARCHAR(1)
- BUYIN11:
description:
@@ -699,6 +781,7 @@ cms:
original_type: CHAR
text: Medicare Entitlement/Buy-In Indicator XI
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medicare-entitlementbuy-indicator
type: VARCHAR(1)
- BUYIN12:
description:
@@ -706,6 +789,7 @@ cms:
original_type: CHAR
text: Medicare Entitlement/Buy-In Indicator XII
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medicare-entitlementbuy-indicator
type: VARCHAR(1)
- HMOIND01:
description:
@@ -713,6 +797,7 @@ cms:
original_type: CHAR
text: HMO Indicator I
width: 1.0
+ reference: https://resdac.org/cms-data/variables/hmo-indicator
type: VARCHAR(1)
- HMOIND02:
description:
@@ -720,6 +805,7 @@ cms:
original_type: CHAR
text: HMO Indicator II
width: 1.0
+ reference: https://resdac.org/cms-data/variables/hmo-indicator
type: VARCHAR(1)
- HMOIND03:
description:
@@ -727,6 +813,7 @@ cms:
original_type: CHAR
text: HMO Indicator III
width: 1.0
+ reference: https://resdac.org/cms-data/variables/hmo-indicator
type: VARCHAR(1)
- HMOIND04:
description:
@@ -734,6 +821,7 @@ cms:
original_type: CHAR
text: HMO Indicator IV
width: 1.0
+ reference: https://resdac.org/cms-data/variables/hmo-indicator
type: VARCHAR(1)
- HMOIND05:
description:
@@ -741,6 +829,7 @@ cms:
original_type: CHAR
text: HMO Indicator V
width: 1.0
+ reference: https://resdac.org/cms-data/variables/hmo-indicator
type: VARCHAR(1)
- HMOIND06:
description:
@@ -748,6 +837,7 @@ cms:
original_type: CHAR
text: HMO Indicator VI
width: 1.0
+ reference: https://resdac.org/cms-data/variables/hmo-indicator
type: VARCHAR(1)
- HMOIND07:
description:
@@ -755,6 +845,7 @@ cms:
original_type: CHAR
text: HMO Indicator VII
width: 1.0
+ reference: https://resdac.org/cms-data/variables/hmo-indicator
type: VARCHAR(1)
- HMOIND08:
description:
@@ -762,6 +853,7 @@ cms:
original_type: CHAR
text: HMO Indicator VIII
width: 1.0
+ reference: https://resdac.org/cms-data/variables/hmo-indicator
type: VARCHAR(1)
- HMOIND09:
description:
@@ -769,6 +861,7 @@ cms:
original_type: CHAR
text: HMO Indicator IX
width: 1.0
+ reference: https://resdac.org/cms-data/variables/hmo-indicator
type: VARCHAR(1)
- HMOIND10:
description:
@@ -776,6 +869,7 @@ cms:
original_type: CHAR
text: HMO Indicator X
width: 1.0
+ reference: https://resdac.org/cms-data/variables/hmo-indicator
type: VARCHAR(1)
- HMOIND11:
description:
@@ -783,6 +877,7 @@ cms:
original_type: CHAR
text: HMO Indicator XI
width: 1.0
+ reference: https://resdac.org/cms-data/variables/hmo-indicator
type: VARCHAR(1)
- HMOIND12:
description:
@@ -790,6 +885,7 @@ cms:
original_type: CHAR
text: HMO Indicator XII
width: 1.0
+ reference: https://resdac.org/cms-data/variables/hmo-indicator
type: VARCHAR(1)
- FILE:
description:
@@ -798,6 +894,7 @@ cms:
width: 128
index:
required_before_loading_data: true
+ reference: null
source:
type: file
type: VARCHAR(128)
@@ -806,6 +903,7 @@ cms:
original_type: BIGSERIAL
text: Record number in the file
width: null
+ reference: https://resdac.org/cms-data/variables/nch-near-line-record-identification-code-ric
type: BIGSERIAL
- STATE:
description:
@@ -813,6 +911,7 @@ cms:
text: State Code
width: 2.0
index: true
+ reference: https://resdac.org/cms-data/variables/state-code-beneficiary-ssa-code
source:
code: GENERATED ALWAYS AS (STATE_CD) STORED
type: generated
@@ -823,6 +922,7 @@ cms:
text: Beneficiary Enrollment Reference Year
width: 4.0
index: true
+ reference: https://resdac.org/cms-data/variables/mbsf-cc-30/alzheimers-disease-end-year-indicator
source:
code: GENERATED ALWAYS AS (RFRNC_YR) STORED
type: generated
@@ -833,6 +933,7 @@ cms:
text: Zip Code of Residence
width: 9.0
index: true
+ reference: https://resdac.org/cms-data/variables/zip-code-beneficiary
source:
code: GENERATED ALWAYS AS (BENE_ZIP) STORED
type: generated
@@ -855,6 +956,7 @@ cms:
text: Encrypted 723 Beneficiary ID (Unique Key)
width: 15.0
index: true
+ reference: https://resdac.org/cms-data/variables/ccw-beneficiary-id
type: VARCHAR(15)
- RFRNC_YR:
description:
@@ -862,6 +964,7 @@ cms:
original_type: NUM
text: Beneficiary Enrollment Reference Year
width: 4.0
+ reference: https://resdac.org/cms-data/variables/reference-year-base
type: INT
- FIVEPCT:
description:
@@ -869,6 +972,7 @@ cms:
original_type: CHAR
text: Strict 5% Flag
width: 1.0
+ reference: https://resdac.org/cms-data/variables/enhanced-medicare-5-sample-indicator
type: VARCHAR(1)
- EFIVEPCT:
description:
@@ -876,6 +980,7 @@ cms:
original_type: CHAR
text: Enhanced 5% Flag
width: 1.0
+ reference: https://resdac.org/cms-data/variables/enhanced-medicare-5-sample-indicator
type: VARCHAR(1)
- COVSTART:
description:
@@ -883,6 +988,7 @@ cms:
original_type: DATE
text: Medicare Coverage Start Date
width: 8.0
+ reference: https://resdac.org/cms-data/variables/medicare-coverage-start-date
type: DATE
- CRNT_BIC:
description:
@@ -890,6 +996,7 @@ cms:
original_type: CHAR
text: Beneficiary Identification Code
width: 2.0
+ reference: https://resdac.org/cms-data/variables/current-beneficiary-identification-code
type: VARCHAR(2)
- STATE_CD:
description:
@@ -897,6 +1004,7 @@ cms:
original_type: CHAR
text: State Code
width: 2.0
+ reference: https://resdac.org/cms-data/variables/state-code-beneficiary-ssa-code
type: VARCHAR(2)
- CNTY_CD:
description:
@@ -904,6 +1012,7 @@ cms:
original_type: CHAR
text: County Code
width: 3.0
+ reference: https://resdac.org/sites/datadocumentation.resdac.org/files/Introduction%20to%20DE-SynPUF%20%28Slides%29.pdf
type: VARCHAR(3)
- BENE_ZIP:
description:
@@ -911,6 +1020,7 @@ cms:
original_type: CHAR
text: Zip Code of Residence
width: 9.0
+ reference: https://resdac.org/cms-data/variables/zip-code-beneficiary-home-or-mailing-address-latest-year
type: VARCHAR(9)
- AGE:
description:
@@ -918,6 +1028,7 @@ cms:
original_type: NUM
text: Age at End of Reference Year
width: 3.0
+ reference: https://resdac.org/cms-data/variables/age-beneficiary-end-year
type: INT
- BENE_DOB:
description:
@@ -925,6 +1036,7 @@ cms:
original_type: DATE
text: Date of Birth
width: 8.0
+ reference: https://resdac.org/cms-data/variables/beneficiary-date-birth
type: DATE
- V_DOD_SW:
description:
@@ -932,6 +1044,7 @@ cms:
original_type: CHAR
text: Valid Date of Death Switch
width: 1.0
+ reference: https://resdac.org/cms-data/variables/date-death
type: VARCHAR(1)
- DEATH_DT:
description:
@@ -939,6 +1052,7 @@ cms:
original_type: DATE
text: Date of Death
width: 8.0
+ reference: https://resdac.org/cms-data/variables/date-death
type: DATE
- NDI_DEATH_DT:
description:
@@ -946,6 +1060,7 @@ cms:
original_type: DATE
text: NDI Date of Death
width: 8.0
+ reference: https://resdac.org/cms-data/variables/ndi-date-deathmbsf
type: DATE
- SEX:
description:
@@ -953,6 +1068,7 @@ cms:
original_type: CHAR
text: Sex
width: 1.0
+ reference: https://resdac.org/sites/datadocumentation.resdac.org/files/Introduction%20to%20DE-SynPUF%20%28Slides%29.pdf
type: VARCHAR(1)
- RACE:
description:
@@ -960,6 +1076,7 @@ cms:
original_type: CHAR
text: Beneficiary Race Code
width: 1.0
+ reference: https://resdac.org/cms-data/variables/beneficiary-race-code-base
type: VARCHAR(1)
- RTI_RACE_CD:
description:
@@ -967,6 +1084,7 @@ cms:
original_type: CHAR
text: Research Triangle Institute (RTI) Race Code
width: 1.0
+ reference: https://resdac.org/cms-data/variables/research-triangle-institute-rti-race-code
type: VARCHAR(1)
- OREC:
description:
@@ -974,6 +1092,7 @@ cms:
original_type: CHAR
text: Original Reason for Entitlement Code
width: 1.0
+ reference: null
type: VARCHAR(1)
- CREC:
description:
@@ -981,6 +1100,7 @@ cms:
original_type: CHAR
text: Current Reason for Entitlement Code
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medicare-current-reason-entitlement-code-crec
type: VARCHAR(1)
- ESRD_IND:
description:
@@ -988,6 +1108,7 @@ cms:
original_type: CHAR
text: ESRD Indicator
width: 1.0
+ reference: https://resdac.org/sites/datadocumentation.resdac.org/files/Introduction%20to%20DE-SynPUF%20%28Slides%29.pdf
type: VARCHAR(1)
- MS_CD:
description:
@@ -995,6 +1116,7 @@ cms:
original_type: CHAR
text: Medicare Status Code
width: 2.0
+ reference: https://resdac.org/cms-data/variables/reason-entitlement-medicare-benefits-clmthrudt
type: VARCHAR(2)
- A_TRM_CD:
description:
@@ -1002,6 +1124,7 @@ cms:
original_type: CHAR
text: Part A Termination Code
width: 1.0
+ reference: https://resdac.org/cms-data/variables/part-termination-code
type: VARCHAR(1)
- B_TRM_CD:
description:
@@ -1009,6 +1132,7 @@ cms:
original_type: CHAR
text: Part B Termination Code
width: 1.0
+ reference: https://resdac.org/cms-data/variables/part-b-termination-code
type: VARCHAR(1)
- A_MO_CNT:
description:
@@ -1016,6 +1140,7 @@ cms:
original_type: NUM
text: HI Coverage Count
width: 3.0
+ reference: https://resdac.org/cms-data/variables/part-months-count
type: INT
- B_MO_CNT:
description:
@@ -1023,6 +1148,7 @@ cms:
original_type: NUM
text: SMI Coverage Count
width: 3.0
+ reference: https://resdac.org/cms-data/variables/part-b-months-count
type: INT
- BUYIN_MO:
description:
@@ -1030,6 +1156,7 @@ cms:
original_type: NUM
text: State Buy-In Coverage Count
width: 3.0
+ reference: https://resdac.org/cms-data/variables/state-buy-coverage-count
type: INT
- HMO_MO:
description:
@@ -1037,6 +1164,7 @@ cms:
original_type: NUM
text: HMO Coverage Count
width: 3.0
+ reference: https://resdac.org/cms-data/variables/hmo-coverage-count
type: INT
- BUYIN01:
description:
@@ -1044,6 +1172,7 @@ cms:
original_type: CHAR
text: Medicare Entitlement/Buy-In Indicator I
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medicare-entitlementbuy-indicator-november-0
type: VARCHAR(1)
- BUYIN02:
description:
@@ -1051,6 +1180,7 @@ cms:
original_type: CHAR
text: Medicare Entitlement/Buy-In Indicator II
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medicare-entitlementbuy-indicator
type: VARCHAR(1)
- BUYIN03:
description:
@@ -1058,6 +1188,7 @@ cms:
original_type: CHAR
text: Medicare Entitlement/Buy-In Indicator III
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medicare-entitlementbuy-indicator
type: VARCHAR(1)
- BUYIN04:
description:
@@ -1065,6 +1196,7 @@ cms:
original_type: CHAR
text: Medicare Entitlement/Buy-In Indicator IV
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medicare-entitlementbuy-indicator
type: VARCHAR(1)
- BUYIN05:
description:
@@ -1072,6 +1204,7 @@ cms:
original_type: CHAR
text: Medicare Entitlement/Buy-In Indicator V
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medicare-entitlementbuy-indicator
type: VARCHAR(1)
- BUYIN06:
description:
@@ -1079,6 +1212,7 @@ cms:
original_type: CHAR
text: Medicare Entitlement/Buy-In Indicator VI
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medicare-entitlementbuy-indicator
type: VARCHAR(1)
- BUYIN07:
description:
@@ -1086,6 +1220,7 @@ cms:
original_type: CHAR
text: Medicare Entitlement/Buy-In Indicator VII
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medicare-entitlementbuy-indicator
type: VARCHAR(1)
- BUYIN08:
description:
@@ -1093,6 +1228,7 @@ cms:
original_type: CHAR
text: Medicare Entitlement/Buy-In Indicator VIII
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medicare-entitlementbuy-indicator
type: VARCHAR(1)
- BUYIN09:
description:
@@ -1100,6 +1236,7 @@ cms:
original_type: CHAR
text: Medicare Entitlement/Buy-In Indicator IX
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medicare-entitlementbuy-indicator
type: VARCHAR(1)
- BUYIN10:
description:
@@ -1107,6 +1244,7 @@ cms:
original_type: CHAR
text: Medicare Entitlement/Buy-In Indicator X
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medicare-entitlementbuy-indicator
type: VARCHAR(1)
- BUYIN11:
description:
@@ -1114,6 +1252,7 @@ cms:
original_type: CHAR
text: Medicare Entitlement/Buy-In Indicator XI
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medicare-entitlementbuy-indicator
type: VARCHAR(1)
- BUYIN12:
description:
@@ -1121,6 +1260,7 @@ cms:
original_type: CHAR
text: Medicare Entitlement/Buy-In Indicator XII
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medicare-entitlementbuy-indicator
type: VARCHAR(1)
- HMOIND01:
description:
@@ -1128,6 +1268,7 @@ cms:
original_type: CHAR
text: HMO Indicator I
width: 1.0
+ reference: https://resdac.org/cms-data/variables/hmo-indicator
type: VARCHAR(1)
- HMOIND02:
description:
@@ -1135,6 +1276,7 @@ cms:
original_type: CHAR
text: HMO Indicator II
width: 1.0
+ reference: https://resdac.org/cms-data/variables/hmo-indicator
type: VARCHAR(1)
- HMOIND03:
description:
@@ -1142,6 +1284,7 @@ cms:
original_type: CHAR
text: HMO Indicator III
width: 1.0
+ reference: https://resdac.org/cms-data/variables/hmo-indicator
type: VARCHAR(1)
- HMOIND04:
description:
@@ -1149,6 +1292,7 @@ cms:
original_type: CHAR
text: HMO Indicator IV
width: 1.0
+ reference: https://resdac.org/cms-data/variables/hmo-indicator
type: VARCHAR(1)
- HMOIND05:
description:
@@ -1156,6 +1300,7 @@ cms:
original_type: CHAR
text: HMO Indicator V
width: 1.0
+ reference: https://resdac.org/cms-data/variables/hmo-indicator
type: VARCHAR(1)
- HMOIND06:
description:
@@ -1163,6 +1308,7 @@ cms:
original_type: CHAR
text: HMO Indicator VI
width: 1.0
+ reference: https://resdac.org/cms-data/variables/hmo-indicator
type: VARCHAR(1)
- HMOIND07:
description:
@@ -1170,6 +1316,7 @@ cms:
original_type: CHAR
text: HMO Indicator VII
width: 1.0
+ reference: https://resdac.org/cms-data/variables/hmo-indicator
type: VARCHAR(1)
- HMOIND08:
description:
@@ -1177,6 +1324,7 @@ cms:
original_type: CHAR
text: HMO Indicator VIII
width: 1.0
+ reference: https://resdac.org/cms-data/variables/hmo-indicator
type: VARCHAR(1)
- HMOIND09:
description:
@@ -1184,6 +1332,7 @@ cms:
original_type: CHAR
text: HMO Indicator IX
width: 1.0
+ reference: https://resdac.org/cms-data/variables/hmo-indicator
type: VARCHAR(1)
- HMOIND10:
description:
@@ -1191,6 +1340,7 @@ cms:
original_type: CHAR
text: HMO Indicator X
width: 1.0
+ reference: https://resdac.org/cms-data/variables/hmo-indicator
type: VARCHAR(1)
- HMOIND11:
description:
@@ -1198,6 +1348,7 @@ cms:
original_type: CHAR
text: HMO Indicator XI
width: 1.0
+ reference: https://resdac.org/cms-data/variables/hmo-indicator
type: VARCHAR(1)
- HMOIND12:
description:
@@ -1205,6 +1356,7 @@ cms:
original_type: CHAR
text: HMO Indicator XII
width: 1.0
+ reference: https://resdac.org/cms-data/variables/hmo-indicator
type: VARCHAR(1)
- FILE:
description:
@@ -1213,6 +1365,7 @@ cms:
width: 128
index:
required_before_loading_data: true
+ reference: null
source:
type: file
type: VARCHAR(128)
@@ -1221,6 +1374,7 @@ cms:
original_type: BIGSERIAL
text: Record number in the file
width: null
+ reference: https://resdac.org/cms-data/variables/nch-near-line-record-identification-code-ric
type: BIGSERIAL
- STATE:
description:
@@ -1228,6 +1382,7 @@ cms:
text: State Code
width: 2.0
index: true
+ reference: https://resdac.org/cms-data/variables/state-code-beneficiary-ssa-code
source:
code: GENERATED ALWAYS AS (STATE_CD) STORED
type: generated
@@ -1238,6 +1393,7 @@ cms:
text: Beneficiary Enrollment Reference Year
width: 4.0
index: true
+ reference: https://resdac.org/cms-data/variables/mbsf-cc-30/alzheimers-disease-end-year-indicator
source:
code: GENERATED ALWAYS AS (RFRNC_YR) STORED
type: generated
@@ -1248,6 +1404,7 @@ cms:
text: Zip Code of Residence
width: 9.0
index: true
+ reference: https://resdac.org/cms-data/variables/zip-code-beneficiary
source:
code: GENERATED ALWAYS AS (BENE_ZIP) STORED
type: generated
@@ -1270,6 +1427,7 @@ cms:
text: Encrypted 723 Beneficiary ID (Unique Key)
width: 15.0
index: true
+ reference: https://resdac.org/cms-data/variables/ccw-beneficiary-id
type: VARCHAR(15)
- RFRNC_YR:
description:
@@ -1277,6 +1435,7 @@ cms:
original_type: NUM
text: Beneficiary Enrollment Reference Year
width: 4.0
+ reference: https://resdac.org/cms-data/variables/reference-year-base
type: INT
- FIVEPCT:
description:
@@ -1284,6 +1443,7 @@ cms:
original_type: CHAR
text: Strict 5% Flag
width: 1.0
+ reference: https://resdac.org/cms-data/variables/enhanced-medicare-5-sample-indicator
type: VARCHAR(1)
- EFIVEPCT:
description:
@@ -1291,6 +1451,7 @@ cms:
original_type: CHAR
text: Enhanced 5% Flag
width: 1.0
+ reference: https://resdac.org/cms-data/variables/enhanced-medicare-5-sample-indicator
type: VARCHAR(1)
- COVSTART:
description:
@@ -1298,6 +1459,7 @@ cms:
original_type: DATE
text: Medicare Coverage Start Date
width: 8.0
+ reference: https://resdac.org/cms-data/variables/medicare-coverage-start-date
type: DATE
- CRNT_BIC:
description:
@@ -1305,6 +1467,7 @@ cms:
original_type: CHAR
text: Beneficiary Identification Code
width: 2.0
+ reference: https://resdac.org/cms-data/variables/current-beneficiary-identification-code
type: VARCHAR(2)
- STATE_CD:
description:
@@ -1312,6 +1475,7 @@ cms:
original_type: CHAR
text: State Code
width: 2.0
+ reference: https://resdac.org/cms-data/variables/state-code-beneficiary-ssa-code
type: VARCHAR(2)
- CNTY_CD:
description:
@@ -1319,6 +1483,7 @@ cms:
original_type: CHAR
text: County Code
width: 3.0
+ reference: https://resdac.org/sites/datadocumentation.resdac.org/files/Introduction%20to%20DE-SynPUF%20%28Slides%29.pdf
type: VARCHAR(3)
- BENE_ZIP:
description:
@@ -1326,6 +1491,7 @@ cms:
original_type: CHAR
text: Zip Code of Residence
width: 9.0
+ reference: https://resdac.org/cms-data/variables/zip-code-beneficiary-home-or-mailing-address-latest-year
type: VARCHAR(9)
- AGE:
description:
@@ -1333,6 +1499,7 @@ cms:
original_type: NUM
text: Age at End of Reference Year
width: 3.0
+ reference: https://resdac.org/cms-data/variables/age-beneficiary-end-year
type: INT
- BENE_DOB:
description:
@@ -1340,6 +1507,7 @@ cms:
original_type: DATE
text: Date of Birth
width: 8.0
+ reference: https://resdac.org/cms-data/variables/beneficiary-date-birth
type: DATE
- V_DOD_SW:
description:
@@ -1347,6 +1515,7 @@ cms:
original_type: CHAR
text: Valid Date of Death Switch
width: 1.0
+ reference: https://resdac.org/cms-data/variables/date-death
type: VARCHAR(1)
- DEATH_DT:
description:
@@ -1354,6 +1523,7 @@ cms:
original_type: DATE
text: Date of Death
width: 8.0
+ reference: https://resdac.org/cms-data/variables/date-death
type: DATE
- NDI_DEATH_DT:
description:
@@ -1361,6 +1531,7 @@ cms:
original_type: DATE
text: NDI Date of Death
width: 8.0
+ reference: https://resdac.org/cms-data/variables/ndi-date-deathmbsf
type: DATE
- SEX:
description:
@@ -1368,6 +1539,7 @@ cms:
original_type: CHAR
text: Sex
width: 1.0
+ reference: https://resdac.org/sites/datadocumentation.resdac.org/files/Introduction%20to%20DE-SynPUF%20%28Slides%29.pdf
type: VARCHAR(1)
- RACE:
description:
@@ -1375,6 +1547,7 @@ cms:
original_type: CHAR
text: Beneficiary Race Code
width: 1.0
+ reference: https://resdac.org/cms-data/variables/beneficiary-race-code-base
type: VARCHAR(1)
- RTI_RACE_CD:
description:
@@ -1382,6 +1555,7 @@ cms:
original_type: CHAR
text: Research Triangle Institute (RTI) Race Code
width: 1.0
+ reference: https://resdac.org/cms-data/variables/research-triangle-institute-rti-race-code
type: VARCHAR(1)
- OREC:
description:
@@ -1389,6 +1563,7 @@ cms:
original_type: CHAR
text: Original Reason for Entitlement Code
width: 1.0
+ reference: null
type: VARCHAR(1)
- CREC:
description:
@@ -1396,6 +1571,7 @@ cms:
original_type: CHAR
text: Current Reason for Entitlement Code
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medicare-current-reason-entitlement-code-crec
type: VARCHAR(1)
- ESRD_IND:
description:
@@ -1403,6 +1579,7 @@ cms:
original_type: CHAR
text: ESRD Indicator
width: 1.0
+ reference: https://resdac.org/sites/datadocumentation.resdac.org/files/Introduction%20to%20DE-SynPUF%20%28Slides%29.pdf
type: VARCHAR(1)
- MS_CD:
description:
@@ -1410,6 +1587,7 @@ cms:
original_type: CHAR
text: Medicare Status Code
width: 2.0
+ reference: https://resdac.org/cms-data/variables/reason-entitlement-medicare-benefits-clmthrudt
type: VARCHAR(2)
- A_TRM_CD:
description:
@@ -1417,6 +1595,7 @@ cms:
original_type: CHAR
text: Part A Termination Code
width: 1.0
+ reference: https://resdac.org/cms-data/variables/part-termination-code
type: VARCHAR(1)
- B_TRM_CD:
description:
@@ -1424,6 +1603,7 @@ cms:
original_type: CHAR
text: Part B Termination Code
width: 1.0
+ reference: https://resdac.org/cms-data/variables/part-b-termination-code
type: VARCHAR(1)
- A_MO_CNT:
description:
@@ -1431,6 +1611,7 @@ cms:
original_type: NUM
text: HI Coverage Count
width: 3.0
+ reference: https://resdac.org/cms-data/variables/part-months-count
type: INT
- B_MO_CNT:
description:
@@ -1438,6 +1619,7 @@ cms:
original_type: NUM
text: SMI Coverage Count
width: 3.0
+ reference: https://resdac.org/cms-data/variables/part-b-months-count
type: INT
- BUYIN_MO:
description:
@@ -1445,6 +1627,7 @@ cms:
original_type: NUM
text: State Buy-In Coverage Count
width: 3.0
+ reference: https://resdac.org/cms-data/variables/state-buy-coverage-count
type: INT
- HMO_MO:
description:
@@ -1452,6 +1635,7 @@ cms:
original_type: NUM
text: HMO Coverage Count
width: 3.0
+ reference: https://resdac.org/cms-data/variables/hmo-coverage-count
type: INT
- BUYIN01:
description:
@@ -1459,6 +1643,7 @@ cms:
original_type: CHAR
text: Medicare Entitlement/Buy-In Indicator I
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medicare-entitlementbuy-indicator-november-0
type: VARCHAR(1)
- BUYIN02:
description:
@@ -1466,6 +1651,7 @@ cms:
original_type: CHAR
text: Medicare Entitlement/Buy-In Indicator II
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medicare-entitlementbuy-indicator
type: VARCHAR(1)
- BUYIN03:
description:
@@ -1473,6 +1659,7 @@ cms:
original_type: CHAR
text: Medicare Entitlement/Buy-In Indicator III
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medicare-entitlementbuy-indicator
type: VARCHAR(1)
- BUYIN04:
description:
@@ -1480,6 +1667,7 @@ cms:
original_type: CHAR
text: Medicare Entitlement/Buy-In Indicator IV
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medicare-entitlementbuy-indicator
type: VARCHAR(1)
- BUYIN05:
description:
@@ -1487,6 +1675,7 @@ cms:
original_type: CHAR
text: Medicare Entitlement/Buy-In Indicator V
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medicare-entitlementbuy-indicator
type: VARCHAR(1)
- BUYIN06:
description:
@@ -1494,6 +1683,7 @@ cms:
original_type: CHAR
text: Medicare Entitlement/Buy-In Indicator VI
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medicare-entitlementbuy-indicator
type: VARCHAR(1)
- BUYIN07:
description:
@@ -1501,6 +1691,7 @@ cms:
original_type: CHAR
text: Medicare Entitlement/Buy-In Indicator VII
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medicare-entitlementbuy-indicator
type: VARCHAR(1)
- BUYIN08:
description:
@@ -1508,6 +1699,7 @@ cms:
original_type: CHAR
text: Medicare Entitlement/Buy-In Indicator VIII
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medicare-entitlementbuy-indicator
type: VARCHAR(1)
- BUYIN09:
description:
@@ -1515,6 +1707,7 @@ cms:
original_type: CHAR
text: Medicare Entitlement/Buy-In Indicator IX
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medicare-entitlementbuy-indicator
type: VARCHAR(1)
- BUYIN10:
description:
@@ -1522,6 +1715,7 @@ cms:
original_type: CHAR
text: Medicare Entitlement/Buy-In Indicator X
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medicare-entitlementbuy-indicator
type: VARCHAR(1)
- BUYIN11:
description:
@@ -1529,6 +1723,7 @@ cms:
original_type: CHAR
text: Medicare Entitlement/Buy-In Indicator XI
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medicare-entitlementbuy-indicator
type: VARCHAR(1)
- BUYIN12:
description:
@@ -1536,6 +1731,7 @@ cms:
original_type: CHAR
text: Medicare Entitlement/Buy-In Indicator XII
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medicare-entitlementbuy-indicator
type: VARCHAR(1)
- HMOIND01:
description:
@@ -1543,6 +1739,7 @@ cms:
original_type: CHAR
text: HMO Indicator I
width: 1.0
+ reference: https://resdac.org/cms-data/variables/hmo-indicator
type: VARCHAR(1)
- HMOIND02:
description:
@@ -1550,6 +1747,7 @@ cms:
original_type: CHAR
text: HMO Indicator II
width: 1.0
+ reference: https://resdac.org/cms-data/variables/hmo-indicator
type: VARCHAR(1)
- HMOIND03:
description:
@@ -1557,6 +1755,7 @@ cms:
original_type: CHAR
text: HMO Indicator III
width: 1.0
+ reference: https://resdac.org/cms-data/variables/hmo-indicator
type: VARCHAR(1)
- HMOIND04:
description:
@@ -1564,6 +1763,7 @@ cms:
original_type: CHAR
text: HMO Indicator IV
width: 1.0
+ reference: https://resdac.org/cms-data/variables/hmo-indicator
type: VARCHAR(1)
- HMOIND05:
description:
@@ -1571,6 +1771,7 @@ cms:
original_type: CHAR
text: HMO Indicator V
width: 1.0
+ reference: https://resdac.org/cms-data/variables/hmo-indicator
type: VARCHAR(1)
- HMOIND06:
description:
@@ -1578,6 +1779,7 @@ cms:
original_type: CHAR
text: HMO Indicator VI
width: 1.0
+ reference: https://resdac.org/cms-data/variables/hmo-indicator
type: VARCHAR(1)
- HMOIND07:
description:
@@ -1585,6 +1787,7 @@ cms:
original_type: CHAR
text: HMO Indicator VII
width: 1.0
+ reference: https://resdac.org/cms-data/variables/hmo-indicator
type: VARCHAR(1)
- HMOIND08:
description:
@@ -1592,6 +1795,7 @@ cms:
original_type: CHAR
text: HMO Indicator VIII
width: 1.0
+ reference: https://resdac.org/cms-data/variables/hmo-indicator
type: VARCHAR(1)
- HMOIND09:
description:
@@ -1599,6 +1803,7 @@ cms:
original_type: CHAR
text: HMO Indicator IX
width: 1.0
+ reference: https://resdac.org/cms-data/variables/hmo-indicator
type: VARCHAR(1)
- HMOIND10:
description:
@@ -1606,6 +1811,7 @@ cms:
original_type: CHAR
text: HMO Indicator X
width: 1.0
+ reference: https://resdac.org/cms-data/variables/hmo-indicator
type: VARCHAR(1)
- HMOIND11:
description:
@@ -1613,6 +1819,7 @@ cms:
original_type: CHAR
text: HMO Indicator XI
width: 1.0
+ reference: https://resdac.org/cms-data/variables/hmo-indicator
type: VARCHAR(1)
- HMOIND12:
description:
@@ -1620,6 +1827,7 @@ cms:
original_type: CHAR
text: HMO Indicator XII
width: 1.0
+ reference: https://resdac.org/cms-data/variables/hmo-indicator
type: VARCHAR(1)
- FILE:
description:
@@ -1628,6 +1836,7 @@ cms:
width: 128
index:
required_before_loading_data: true
+ reference: null
source:
type: file
type: VARCHAR(128)
@@ -1636,6 +1845,7 @@ cms:
original_type: BIGSERIAL
text: Record number in the file
width: null
+ reference: https://resdac.org/cms-data/variables/nch-near-line-record-identification-code-ric
type: BIGSERIAL
- STATE:
description:
@@ -1643,6 +1853,7 @@ cms:
text: State Code
width: 2.0
index: true
+ reference: https://resdac.org/cms-data/variables/state-code-beneficiary-ssa-code
source:
code: GENERATED ALWAYS AS (STATE_CD) STORED
type: generated
@@ -1653,6 +1864,7 @@ cms:
text: Beneficiary Enrollment Reference Year
width: 4.0
index: true
+ reference: https://resdac.org/cms-data/variables/mbsf-cc-30/alzheimers-disease-end-year-indicator
source:
code: GENERATED ALWAYS AS (RFRNC_YR) STORED
type: generated
@@ -1663,6 +1875,7 @@ cms:
text: Zip Code of Residence
width: 9.0
index: true
+ reference: https://resdac.org/cms-data/variables/zip-code-beneficiary
source:
code: GENERATED ALWAYS AS (BENE_ZIP) STORED
type: generated
@@ -1685,6 +1898,7 @@ cms:
text: Encrypted 723 Beneficiary ID
width: 15.0
index: true
+ reference: https://resdac.org/cms-data/variables/ccw-beneficiary-id
type: VARCHAR(15)
- RFRNC_YR:
description:
@@ -1692,6 +1906,7 @@ cms:
original_type: NUM
text: Beneficiary Enrollment Reference Year
width: 4.0
+ reference: https://resdac.org/cms-data/variables/reference-year-base
type: INT
- ENRL_SRC:
description:
@@ -1699,6 +1914,7 @@ cms:
original_type: CHAR
text: Enrollment Source
width: 3.0
+ reference: https://resdac.org/cms-data/variables/enrollment-source
type: VARCHAR(3)
- SAMPLE_GROUP:
description:
@@ -1706,6 +1922,7 @@ cms:
original_type: CHAR
text: Medicare 1, 5, or 20% Strict Sample Group Indicator
width: 2.0
+ reference: https://resdac.org/cms-data/variables/medicare-sample-group-indicator
type: VARCHAR(2)
- EFIVEPCT:
description:
@@ -1713,6 +1930,7 @@ cms:
original_type: CHAR
text: Medicare Enhanced 5% Sample Indicator
width: 1.0
+ reference: https://resdac.org/cms-data/variables/enhanced-medicare-5-sample-indicator
type: VARCHAR(1)
- CRNT_BIC:
description:
@@ -1720,6 +1938,7 @@ cms:
original_type: CHAR
text: Current Beneficiary Identification Code
width: 2.0
+ reference: https://resdac.org/cms-data/variables/current-beneficiary-identification-code
type: VARCHAR(2)
- STATE_CD:
description:
@@ -1727,6 +1946,7 @@ cms:
original_type: CHAR
text: SSA State Code
width: 2.0
+ reference: https://resdac.org/cms-data/variables/state-code-beneficiary-ssa-code
type: VARCHAR(2)
- CNTY_CD:
description:
@@ -1734,6 +1954,7 @@ cms:
original_type: CHAR
text: SSA County Code
width: 3.0
+ reference: https://resdac.org/sites/datadocumentation.resdac.org/files/Introduction%20to%20DE-SynPUF%20%28Slides%29.pdf
type: VARCHAR(3)
- ZIP_CD:
description:
@@ -1741,6 +1962,7 @@ cms:
original_type: CHAR
text: 5-digit ZIP Code
width: 5.0
+ reference: https://resdac.org/cms-data/variables/zip-code-beneficiary
type: VARCHAR(5)
- STATE_CNTY_FIPS_CD_01:
description:
@@ -1748,6 +1970,7 @@ cms:
original_type: CHAR
text: 'FIPS State-County Code: January'
width: 5.0
+ reference: https://resdac.org/cms-data/variables/state-and-county-fips-code-january
type: VARCHAR(5)
- STATE_CNTY_FIPS_CD_02:
description:
@@ -1755,6 +1978,7 @@ cms:
original_type: CHAR
text: 'FIPS State-County Code: February'
width: 5.0
+ reference: https://resdac.org/cms-data/variables/state-and-county-fips-code-february
type: VARCHAR(5)
- STATE_CNTY_FIPS_CD_03:
description:
@@ -1762,6 +1986,7 @@ cms:
original_type: CHAR
text: 'FIPS State-County Code: March'
width: 5.0
+ reference: https://resdac.org/cms-data/variables/state-and-county-fips-code-march
type: VARCHAR(5)
- STATE_CNTY_FIPS_CD_04:
description:
@@ -1769,6 +1994,7 @@ cms:
original_type: CHAR
text: 'FIPS State-County Code: April'
width: 5.0
+ reference: https://resdac.org/cms-data/variables/state-and-county-fips-code-april
type: VARCHAR(5)
- STATE_CNTY_FIPS_CD_05:
description:
@@ -1776,6 +2002,7 @@ cms:
original_type: CHAR
text: 'FIPS State-County Code: May'
width: 5.0
+ reference: https://resdac.org/cms-data/variables/state-and-county-fips-code-may
type: VARCHAR(5)
- STATE_CNTY_FIPS_CD_06:
description:
@@ -1783,6 +2010,7 @@ cms:
original_type: CHAR
text: 'FIPS State-County Code: June'
width: 5.0
+ reference: https://resdac.org/cms-data/variables/state-and-county-fips-code-june
type: VARCHAR(5)
- STATE_CNTY_FIPS_CD_07:
description:
@@ -1790,6 +2018,7 @@ cms:
original_type: CHAR
text: 'FIPS State-County Code: July'
width: 5.0
+ reference: https://resdac.org/cms-data/variables/state-and-county-fips-code-july
type: VARCHAR(5)
- STATE_CNTY_FIPS_CD_08:
description:
@@ -1797,6 +2026,7 @@ cms:
original_type: CHAR
text: 'FIPS State-County Code: August'
width: 5.0
+ reference: https://resdac.org/cms-data/variables/state-and-county-fips-code-august
type: VARCHAR(5)
- STATE_CNTY_FIPS_CD_09:
description:
@@ -1804,6 +2034,7 @@ cms:
original_type: CHAR
text: 'FIPS State-County Code: September'
width: 5.0
+ reference: https://resdac.org/cms-data/variables/state-and-county-fips-code-september
type: VARCHAR(5)
- STATE_CNTY_FIPS_CD_10:
description:
@@ -1811,6 +2042,7 @@ cms:
original_type: CHAR
text: 'FIPS State-County Code: October'
width: 5.0
+ reference: https://resdac.org/cms-data/variables/state-and-county-fips-code-october
type: VARCHAR(5)
- STATE_CNTY_FIPS_CD_11:
description:
@@ -1818,6 +2050,7 @@ cms:
original_type: CHAR
text: 'FIPS State-County Code: November'
width: 5.0
+ reference: https://resdac.org/cms-data/variables/state-and-county-fips-code-november
type: VARCHAR(5)
- STATE_CNTY_FIPS_CD_12:
description:
@@ -1825,6 +2058,7 @@ cms:
original_type: CHAR
text: 'FIPS State-County Code: December'
width: 5.0
+ reference: https://resdac.org/cms-data/variables/state-and-county-fips-code-december
type: VARCHAR(5)
- AGE:
description:
@@ -1832,6 +2066,7 @@ cms:
original_type: NUM
text: Age at the End of the Reference Year
width: 3.0
+ reference: https://resdac.org/cms-data/variables/age-beneficiary-end-year
type: INT
- BENE_DOB:
description:
@@ -1839,6 +2074,7 @@ cms:
original_type: DATE
text: Beneficiary Date of Birth
width: 8.0
+ reference: https://resdac.org/cms-data/variables/beneficiary-date-birth
type: DATE
- V_DOD_SW:
description:
@@ -1846,6 +2082,7 @@ cms:
original_type: CHAR
text: Valid Date of Death Switch
width: 1.0
+ reference: https://resdac.org/cms-data/variables/date-death
type: VARCHAR(1)
- DEATH_DT:
description:
@@ -1853,6 +2090,7 @@ cms:
original_type: DATE
text: Beneficiary Date of Death
width: 8.0
+ reference: https://resdac.org/cms-data/variables/date-death
type: DATE
- SEX:
description:
@@ -1860,6 +2098,7 @@ cms:
original_type: CHAR
text: Sex
width: 1.0
+ reference: https://resdac.org/sites/datadocumentation.resdac.org/files/Introduction%20to%20DE-SynPUF%20%28Slides%29.pdf
type: VARCHAR(1)
- RACE:
description:
@@ -1867,6 +2106,7 @@ cms:
original_type: CHAR
text: Beneficiary Race Code
width: 1.0
+ reference: https://resdac.org/cms-data/variables/beneficiary-race-code-base
type: VARCHAR(1)
- RTI_RACE_CD:
description:
@@ -1874,6 +2114,7 @@ cms:
original_type: CHAR
text: Research Triangle Institute (RTI) Race Code
width: 1.0
+ reference: https://resdac.org/cms-data/variables/research-triangle-institute-rti-race-code
type: VARCHAR(1)
- COVSTART:
description:
@@ -1881,6 +2122,7 @@ cms:
original_type: DATE
text: Medicare Coverage Start Date
width: 8.0
+ reference: https://resdac.org/cms-data/variables/medicare-coverage-start-date
type: DATE
- OREC:
description:
@@ -1888,6 +2130,7 @@ cms:
original_type: CHAR
text: Original Reason for Entitlement Code
width: 1.0
+ reference: null
type: VARCHAR(1)
- CREC:
description:
@@ -1895,6 +2138,7 @@ cms:
original_type: CHAR
text: Current Reason for Entitlement Code
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medicare-current-reason-entitlement-code-crec
type: VARCHAR(1)
- ESRD_IND:
description:
@@ -1902,6 +2146,7 @@ cms:
original_type: CHAR
text: End-Stage Renal Disease (ESRD) Indicator
width: 1.0
+ reference: https://resdac.org/sites/datadocumentation.resdac.org/files/Introduction%20to%20DE-SynPUF%20%28Slides%29.pdf
type: VARCHAR(1)
- MDCR_STUS_CD_01:
description:
@@ -1909,6 +2154,7 @@ cms:
original_type: CHAR
text: 'Medicare Status Code: January'
width: 2.0
+ reference: https://resdac.org/cms-data/variables/medicare-status-code-january
type: VARCHAR(2)
- MDCR_STUS_CD_02:
description:
@@ -1916,6 +2162,7 @@ cms:
original_type: CHAR
text: 'Medicare Status Code: February'
width: 2.0
+ reference: https://resdac.org/cms-data/variables/medicare-status-code-february
type: VARCHAR(2)
- MDCR_STUS_CD_03:
description:
@@ -1923,6 +2170,7 @@ cms:
original_type: CHAR
text: 'Medicare Status Code: March'
width: 2.0
+ reference: https://resdac.org/cms-data/variables/medicare-status-code-march
type: VARCHAR(2)
- MDCR_STUS_CD_04:
description:
@@ -1930,6 +2178,7 @@ cms:
original_type: CHAR
text: 'Medicare Status Code: April'
width: 2.0
+ reference: https://resdac.org/cms-data/variables/medicare-status-code-april
type: VARCHAR(2)
- MDCR_STUS_CD_05:
description:
@@ -1937,6 +2186,7 @@ cms:
original_type: CHAR
text: 'Medicare Status Code: May'
width: 2.0
+ reference: https://resdac.org/cms-data/variables/medicare-status-code-may
type: VARCHAR(2)
- MDCR_STUS_CD_06:
description:
@@ -1944,6 +2194,7 @@ cms:
original_type: CHAR
text: 'Medicare Status Code: June'
width: 2.0
+ reference: https://resdac.org/cms-data/variables/medicare-status-code-june
type: VARCHAR(2)
- MDCR_STUS_CD_07:
description:
@@ -1951,6 +2202,7 @@ cms:
original_type: CHAR
text: 'Medicare Status Code: July'
width: 2.0
+ reference: https://resdac.org/cms-data/variables/medicare-status-code-july
type: VARCHAR(2)
- MDCR_STUS_CD_08:
description:
@@ -1958,6 +2210,7 @@ cms:
original_type: CHAR
text: 'Medicare Status Code: August'
width: 2.0
+ reference: https://resdac.org/cms-data/variables/medicare-status-code-august
type: VARCHAR(2)
- MDCR_STUS_CD_09:
description:
@@ -1965,6 +2218,7 @@ cms:
original_type: CHAR
text: 'Medicare Status Code: September'
width: 2.0
+ reference: https://resdac.org/cms-data/variables/medicare-status-code-september
type: VARCHAR(2)
- MDCR_STUS_CD_10:
description:
@@ -1972,6 +2226,7 @@ cms:
original_type: CHAR
text: 'Medicare Status Code: October'
width: 2.0
+ reference: https://resdac.org/cms-data/variables/medicare-status-code-october
type: VARCHAR(2)
- MDCR_STUS_CD_11:
description:
@@ -1979,6 +2234,7 @@ cms:
original_type: CHAR
text: 'Medicare Status Code: November'
width: 2.0
+ reference: https://resdac.org/cms-data/variables/medicare-status-code-november
type: VARCHAR(2)
- MDCR_STUS_CD_12:
description:
@@ -1986,6 +2242,7 @@ cms:
original_type: CHAR
text: 'Medicare Status Code: December'
width: 2.0
+ reference: https://resdac.org/cms-data/variables/medicare-status-code-december
type: VARCHAR(2)
- A_TRM_CD:
description:
@@ -1993,6 +2250,7 @@ cms:
original_type: CHAR
text: Part A Termination Code
width: 1.0
+ reference: https://resdac.org/cms-data/variables/part-termination-code
type: VARCHAR(1)
- B_TRM_CD:
description:
@@ -2000,6 +2258,7 @@ cms:
original_type: CHAR
text: Part B Termination Code
width: 1.0
+ reference: https://resdac.org/cms-data/variables/part-b-termination-code
type: VARCHAR(1)
- A_MO_CNT:
description:
@@ -2007,6 +2266,7 @@ cms:
original_type: NUM
text: Hospital Insurance (HI) Coverage Months Count
width: 3.0
+ reference: https://resdac.org/cms-data/variables/part-months-count
type: INT
- B_MO_CNT:
description:
@@ -2014,6 +2274,7 @@ cms:
original_type: NUM
text: Supplemental Medical Insurance (SMI) Coverage Months Count
width: 3.0
+ reference: https://resdac.org/cms-data/variables/part-b-months-count
type: INT
- BUYIN_MO:
description:
@@ -2021,6 +2282,7 @@ cms:
original_type: NUM
text: State Buy-In (SBI) Coverage Months
width: 3.0
+ reference: https://resdac.org/cms-data/variables/state-buy-coverage-count
type: INT
- HMO_MO:
description:
@@ -2028,6 +2290,7 @@ cms:
original_type: NUM
text: Health Maintenance Organization (HMO) Coverage Months
width: 3.0
+ reference: https://resdac.org/cms-data/variables/hmo-coverage-count
type: INT
- PTD_MO:
description:
@@ -2035,6 +2298,7 @@ cms:
original_type: NUM
text: Part D Contract Plan Coverage Months
width: 3.0
+ reference: https://resdac.org/cms-data/variables/months-part-d-coverage
type: INT
- RDS_MO:
description:
@@ -2042,6 +2306,7 @@ cms:
original_type: NUM
text: Retiree Drug Subsidy (RDS) Coverage Months
width: 3.0
+ reference: https://resdac.org/cms-data/variables/months-retiree-drug-subsidy-coverage
type: INT
- DUAL_MO:
description:
@@ -2049,6 +2314,7 @@ cms:
original_type: NUM
text: Medicaid Dual Eligible Months
width: 3.0
+ reference: https://resdac.org/cms-data/variables/months-dual-eligibility
type: INT
- BUYIN01:
description:
@@ -2056,6 +2322,7 @@ cms:
original_type: CHAR
text: 'Medicare Entitlement/ Buy-In Indicator: January'
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medicare-entitlementbuy-indicator-november-0
type: VARCHAR(1)
- BUYIN02:
description:
@@ -2063,6 +2330,7 @@ cms:
original_type: CHAR
text: 'Medicare Entitlement/ Buy-In Indicator: February'
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medicare-entitlementbuy-indicator
type: VARCHAR(1)
- BUYIN03:
description:
@@ -2070,6 +2338,7 @@ cms:
original_type: CHAR
text: 'Medicare Entitlement/ Buy-In Indicator: March'
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medicare-entitlementbuy-indicator
type: VARCHAR(1)
- BUYIN04:
description:
@@ -2077,6 +2346,7 @@ cms:
original_type: CHAR
text: 'Medicare Entitlement/ Buy-In Indicator: April'
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medicare-entitlementbuy-indicator
type: VARCHAR(1)
- BUYIN05:
description:
@@ -2084,6 +2354,7 @@ cms:
original_type: CHAR
text: 'Medicare Entitlement/ Buy-In Indicator: May'
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medicare-entitlementbuy-indicator
type: VARCHAR(1)
- BUYIN06:
description:
@@ -2091,6 +2362,7 @@ cms:
original_type: CHAR
text: 'Medicare Entitlement/ Buy-In Indicator: June'
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medicare-entitlementbuy-indicator
type: VARCHAR(1)
- BUYIN07:
description:
@@ -2098,6 +2370,7 @@ cms:
original_type: CHAR
text: 'Medicare Entitlement/ Buy-In Indicator: July'
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medicare-entitlementbuy-indicator
type: VARCHAR(1)
- BUYIN08:
description:
@@ -2105,6 +2378,7 @@ cms:
original_type: CHAR
text: 'Medicare Entitlement/ Buy-In Indicator: August'
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medicare-entitlementbuy-indicator
type: VARCHAR(1)
- BUYIN09:
description:
@@ -2112,6 +2386,7 @@ cms:
original_type: CHAR
text: 'Medicare Entitlement/ Buy-In Indicator: September'
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medicare-entitlementbuy-indicator
type: VARCHAR(1)
- BUYIN10:
description:
@@ -2119,6 +2394,7 @@ cms:
original_type: CHAR
text: 'Medicare Entitlement/ Buy-In Indicator: October'
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medicare-entitlementbuy-indicator
type: VARCHAR(1)
- BUYIN11:
description:
@@ -2126,6 +2402,7 @@ cms:
original_type: CHAR
text: 'Medicare Entitlement/ Buy-In Indicator: November'
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medicare-entitlementbuy-indicator
type: VARCHAR(1)
- BUYIN12:
description:
@@ -2133,6 +2410,7 @@ cms:
original_type: CHAR
text: 'Medicare Entitlement/ Buy-In Indicator: December'
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medicare-entitlementbuy-indicator
type: VARCHAR(1)
- HMOIND01:
description:
@@ -2140,6 +2418,7 @@ cms:
original_type: CHAR
text: 'HMO Indicator: January'
width: 1.0
+ reference: https://resdac.org/cms-data/variables/hmo-indicator
type: VARCHAR(1)
- HMOIND02:
description:
@@ -2147,6 +2426,7 @@ cms:
original_type: CHAR
text: 'HMO Indicator: February'
width: 1.0
+ reference: https://resdac.org/cms-data/variables/hmo-indicator
type: VARCHAR(1)
- HMOIND03:
description:
@@ -2154,6 +2434,7 @@ cms:
original_type: CHAR
text: 'HMO Indicator: March'
width: 1.0
+ reference: https://resdac.org/cms-data/variables/hmo-indicator
type: VARCHAR(1)
- HMOIND04:
description:
@@ -2161,6 +2442,7 @@ cms:
original_type: CHAR
text: 'HMO Indicator: April'
width: 1.0
+ reference: https://resdac.org/cms-data/variables/hmo-indicator
type: VARCHAR(1)
- HMOIND05:
description:
@@ -2168,6 +2450,7 @@ cms:
original_type: CHAR
text: 'HMO Indicator: May'
width: 1.0
+ reference: https://resdac.org/cms-data/variables/hmo-indicator
type: VARCHAR(1)
- HMOIND06:
description:
@@ -2175,6 +2458,7 @@ cms:
original_type: CHAR
text: 'HMO Indicator: June'
width: 1.0
+ reference: https://resdac.org/cms-data/variables/hmo-indicator
type: VARCHAR(1)
- HMOIND07:
description:
@@ -2182,6 +2466,7 @@ cms:
original_type: CHAR
text: 'HMO Indicator: July'
width: 1.0
+ reference: https://resdac.org/cms-data/variables/hmo-indicator
type: VARCHAR(1)
- HMOIND08:
description:
@@ -2189,6 +2474,7 @@ cms:
original_type: CHAR
text: 'HMO Indicator: August'
width: 1.0
+ reference: https://resdac.org/cms-data/variables/hmo-indicator
type: VARCHAR(1)
- HMOIND09:
description:
@@ -2196,6 +2482,7 @@ cms:
original_type: CHAR
text: 'HMO Indicator: September'
width: 1.0
+ reference: https://resdac.org/cms-data/variables/hmo-indicator
type: VARCHAR(1)
- HMOIND10:
description:
@@ -2203,6 +2490,7 @@ cms:
original_type: CHAR
text: 'HMO Indicator: October'
width: 1.0
+ reference: https://resdac.org/cms-data/variables/hmo-indicator
type: VARCHAR(1)
- HMOIND11:
description:
@@ -2210,6 +2498,7 @@ cms:
original_type: CHAR
text: 'HMO Indicator: November'
width: 1.0
+ reference: https://resdac.org/cms-data/variables/hmo-indicator
type: VARCHAR(1)
- HMOIND12:
description:
@@ -2217,6 +2506,7 @@ cms:
original_type: CHAR
text: 'HMO Indicator: December'
width: 1.0
+ reference: https://resdac.org/cms-data/variables/hmo-indicator
type: VARCHAR(1)
- PTC_CNTRCT_ID_01:
description:
@@ -2224,6 +2514,7 @@ cms:
original_type: CHAR
text: 'Part C Contract ID: January'
width: 5.0
+ reference: https://resdac.org/cms-data/variables/part-c-contract-number-january
type: VARCHAR(5)
- PTC_CNTRCT_ID_02:
description:
@@ -2231,6 +2522,7 @@ cms:
original_type: CHAR
text: 'Part C Contract ID: February'
width: 5.0
+ reference: https://resdac.org/cms-data/variables/part-c-contract-number-february
type: VARCHAR(5)
- PTC_CNTRCT_ID_03:
description:
@@ -2238,6 +2530,7 @@ cms:
original_type: CHAR
text: 'Part C Contract ID: March'
width: 5.0
+ reference: https://resdac.org/cms-data/variables/part-c-contract-number-march
type: VARCHAR(5)
- PTC_CNTRCT_ID_04:
description:
@@ -2245,6 +2538,7 @@ cms:
original_type: CHAR
text: 'Part C Contract ID: April'
width: 5.0
+ reference: https://resdac.org/cms-data/variables/part-c-contract-number-april
type: VARCHAR(5)
- PTC_CNTRCT_ID_05:
description:
@@ -2252,6 +2546,7 @@ cms:
original_type: CHAR
text: 'Part C Contract ID: May'
width: 5.0
+ reference: https://resdac.org/cms-data/variables/part-c-contract-number-may
type: VARCHAR(5)
- PTC_CNTRCT_ID_06:
description:
@@ -2259,6 +2554,7 @@ cms:
original_type: CHAR
text: 'Part C Contract ID: June'
width: 5.0
+ reference: https://resdac.org/cms-data/variables/part-c-contract-number-june
type: VARCHAR(5)
- PTC_CNTRCT_ID_07:
description:
@@ -2266,6 +2562,7 @@ cms:
original_type: CHAR
text: 'Part C Contract ID: July'
width: 5.0
+ reference: https://resdac.org/cms-data/variables/part-c-contract-number-july
type: VARCHAR(5)
- PTC_CNTRCT_ID_08:
description:
@@ -2273,6 +2570,7 @@ cms:
original_type: CHAR
text: 'Part C Contract ID: August'
width: 5.0
+ reference: https://resdac.org/cms-data/variables/part-c-contract-number-august
type: VARCHAR(5)
- PTC_CNTRCT_ID_09:
description:
@@ -2280,6 +2578,7 @@ cms:
original_type: CHAR
text: 'Part C Contract ID: September'
width: 5.0
+ reference: https://resdac.org/cms-data/variables/part-c-contract-number-september
type: VARCHAR(5)
- PTC_CNTRCT_ID_10:
description:
@@ -2287,6 +2586,7 @@ cms:
original_type: CHAR
text: 'Part C Contract ID: October'
width: 5.0
+ reference: https://resdac.org/cms-data/variables/part-c-contract-number-october
type: VARCHAR(5)
- PTC_CNTRCT_ID_11:
description:
@@ -2294,6 +2594,7 @@ cms:
original_type: CHAR
text: 'Part C Contract ID: November'
width: 5.0
+ reference: https://resdac.org/cms-data/variables/part-c-contract-number-november
type: VARCHAR(5)
- PTC_CNTRCT_ID_12:
description:
@@ -2301,6 +2602,7 @@ cms:
original_type: CHAR
text: 'Part C Contract ID: December'
width: 5.0
+ reference: https://resdac.org/cms-data/variables/part-c-contract-number-december
type: VARCHAR(5)
- PTC_PBP_ID_01:
description:
@@ -2308,6 +2610,7 @@ cms:
original_type: CHAR
text: 'Part C Plan Benefit Package ID: January'
width: 3.0
+ reference: https://resdac.org/cms-data/variables/part-c-pbp-number-january
type: VARCHAR(3)
- PTC_PBP_ID_02:
description:
@@ -2315,6 +2618,7 @@ cms:
original_type: CHAR
text: 'Part C Plan Benefit Package ID: February'
width: 3.0
+ reference: https://resdac.org/cms-data/variables/part-c-pbp-number-february
type: VARCHAR(3)
- PTC_PBP_ID_03:
description:
@@ -2322,6 +2626,7 @@ cms:
original_type: CHAR
text: 'Part C Plan Benefit Package ID: March'
width: 3.0
+ reference: https://resdac.org/cms-data/variables/part-c-pbp-number-march
type: VARCHAR(3)
- PTC_PBP_ID_04:
description:
@@ -2329,6 +2634,7 @@ cms:
original_type: CHAR
text: 'Part C Plan Benefit Package ID: April'
width: 3.0
+ reference: https://resdac.org/cms-data/variables/part-c-pbp-number-april
type: VARCHAR(3)
- PTC_PBP_ID_05:
description:
@@ -2336,6 +2642,7 @@ cms:
original_type: CHAR
text: 'Part C Plan Benefit Package ID: May'
width: 3.0
+ reference: https://resdac.org/cms-data/variables/part-c-pbp-number-may
type: VARCHAR(3)
- PTC_PBP_ID_06:
description:
@@ -2343,6 +2650,7 @@ cms:
original_type: CHAR
text: 'Part C Plan Benefit Package ID: June'
width: 3.0
+ reference: https://resdac.org/cms-data/variables/part-c-pbp-number-june
type: VARCHAR(3)
- PTC_PBP_ID_07:
description:
@@ -2350,6 +2658,7 @@ cms:
original_type: CHAR
text: 'Part C Plan Benefit Package ID: July'
width: 3.0
+ reference: https://resdac.org/cms-data/variables/part-c-pbp-number-july
type: VARCHAR(3)
- PTC_PBP_ID_08:
description:
@@ -2357,6 +2666,7 @@ cms:
original_type: CHAR
text: 'Part C Plan Benefit Package ID: August'
width: 3.0
+ reference: https://resdac.org/cms-data/variables/part-c-pbp-number-august
type: VARCHAR(3)
- PTC_PBP_ID_09:
description:
@@ -2364,6 +2674,7 @@ cms:
original_type: CHAR
text: 'Part C Plan Benefit Package ID: September'
width: 3.0
+ reference: https://resdac.org/cms-data/variables/part-c-pbp-number-september
type: VARCHAR(3)
- PTC_PBP_ID_10:
description:
@@ -2371,6 +2682,7 @@ cms:
original_type: CHAR
text: 'Part C Plan Benefit Package ID: October'
width: 3.0
+ reference: https://resdac.org/cms-data/variables/part-c-pbp-number-october
type: VARCHAR(3)
- PTC_PBP_ID_11:
description:
@@ -2378,6 +2690,7 @@ cms:
original_type: CHAR
text: 'Part C Plan Benefit Package ID: November'
width: 3.0
+ reference: https://resdac.org/cms-data/variables/part-c-pbp-number-november
type: VARCHAR(3)
- PTC_PBP_ID_12:
description:
@@ -2385,6 +2698,7 @@ cms:
original_type: CHAR
text: 'Part C Plan Benefit Package ID: December'
width: 3.0
+ reference: https://resdac.org/cms-data/variables/part-c-pbp-number-december
type: VARCHAR(3)
- PTC_PLAN_TYPE_CD_01:
description:
@@ -2392,6 +2706,7 @@ cms:
original_type: CHAR
text: 'Part C Plan Type Code: January'
width: 3.0
+ reference: https://resdac.org/cms-data/variables/part-c-plan-type-code-january
type: VARCHAR(3)
- PTC_PLAN_TYPE_CD_02:
description:
@@ -2399,6 +2714,7 @@ cms:
original_type: CHAR
text: 'Part C Plan Type Code: February'
width: 3.0
+ reference: https://resdac.org/cms-data/variables/part-c-plan-type-code-february
type: VARCHAR(3)
- PTC_PLAN_TYPE_CD_03:
description:
@@ -2406,6 +2722,7 @@ cms:
original_type: CHAR
text: 'Part C Plan Type Code: March'
width: 3.0
+ reference: https://resdac.org/cms-data/variables/part-c-plan-type-code-march
type: VARCHAR(3)
- PTC_PLAN_TYPE_CD_04:
description:
@@ -2413,6 +2730,7 @@ cms:
original_type: CHAR
text: 'Part C Plan Type Code: April'
width: 3.0
+ reference: https://resdac.org/cms-data/variables/part-c-plan-type-code-april
type: VARCHAR(3)
- PTC_PLAN_TYPE_CD_05:
description:
@@ -2420,6 +2738,7 @@ cms:
original_type: CHAR
text: 'Part C Plan Type Code: May'
width: 3.0
+ reference: https://resdac.org/cms-data/variables/part-c-plan-type-code-may
type: VARCHAR(3)
- PTC_PLAN_TYPE_CD_06:
description:
@@ -2427,6 +2746,7 @@ cms:
original_type: CHAR
text: 'Part C Plan Type Code: June'
width: 3.0
+ reference: https://resdac.org/cms-data/variables/part-c-plan-type-code-june
type: VARCHAR(3)
- PTC_PLAN_TYPE_CD_07:
description:
@@ -2434,6 +2754,7 @@ cms:
original_type: CHAR
text: 'Part C Plan Type Code: July'
width: 3.0
+ reference: https://resdac.org/cms-data/variables/part-c-plan-type-code-july
type: VARCHAR(3)
- PTC_PLAN_TYPE_CD_08:
description:
@@ -2441,6 +2762,7 @@ cms:
original_type: CHAR
text: 'Part C Plan Type Code: August'
width: 3.0
+ reference: https://resdac.org/cms-data/variables/part-c-plan-type-code-august
type: VARCHAR(3)
- PTC_PLAN_TYPE_CD_09:
description:
@@ -2448,6 +2770,7 @@ cms:
original_type: CHAR
text: 'Part C Plan Type Code: September'
width: 3.0
+ reference: https://resdac.org/cms-data/variables/part-c-plan-type-code-september
type: VARCHAR(3)
- PTC_PLAN_TYPE_CD_10:
description:
@@ -2455,6 +2778,7 @@ cms:
original_type: CHAR
text: 'Part C Plan Type Code: October'
width: 3.0
+ reference: https://resdac.org/cms-data/variables/part-c-plan-type-code-october
type: VARCHAR(3)
- PTC_PLAN_TYPE_CD_11:
description:
@@ -2462,6 +2786,7 @@ cms:
original_type: CHAR
text: 'Part C Plan Type Code: November'
width: 3.0
+ reference: https://resdac.org/cms-data/variables/part-c-plan-type-code-november
type: VARCHAR(3)
- PTC_PLAN_TYPE_CD_12:
description:
@@ -2469,6 +2794,7 @@ cms:
original_type: CHAR
text: 'Part C Plan Type Code: December'
width: 3.0
+ reference: https://resdac.org/cms-data/variables/part-c-plan-type-code-december
type: VARCHAR(3)
- PTDCNTRCT01:
description:
@@ -2476,6 +2802,7 @@ cms:
original_type: CHAR
text: 'Part D Contract ID: January'
width: 5.0
+ reference: https://resdac.org/cms-data/variables/monthly-part-d-contract-number-january
type: VARCHAR(5)
- PTDCNTRCT02:
description:
@@ -2483,6 +2810,7 @@ cms:
original_type: CHAR
text: 'Part D Contract ID: February'
width: 5.0
+ reference: https://resdac.org/cms-data/variables/monthly-part-d-contract-number-february
type: VARCHAR(5)
- PTDCNTRCT03:
description:
@@ -2490,6 +2818,7 @@ cms:
original_type: CHAR
text: 'Part D Contract ID: March'
width: 5.0
+ reference: https://resdac.org/cms-data/variables/monthly-part-d-contract-number-march
type: VARCHAR(5)
- PTDCNTRCT04:
description:
@@ -2497,6 +2826,7 @@ cms:
original_type: CHAR
text: 'Part D Contract ID: April'
width: 5.0
+ reference: https://resdac.org/cms-data/variables/monthly-part-d-contract-number-april
type: VARCHAR(5)
- PTDCNTRCT05:
description:
@@ -2504,6 +2834,7 @@ cms:
original_type: CHAR
text: 'Part D Contract ID: May'
width: 5.0
+ reference: https://resdac.org/cms-data/variables/monthly-part-d-contract-number-may
type: VARCHAR(5)
- PTDCNTRCT06:
description:
@@ -2511,6 +2842,7 @@ cms:
original_type: CHAR
text: 'Part D Contract ID: June'
width: 5.0
+ reference: https://resdac.org/cms-data/variables/monthly-part-d-contract-number-june
type: VARCHAR(5)
- PTDCNTRCT07:
description:
@@ -2518,6 +2850,7 @@ cms:
original_type: CHAR
text: 'Part D Contract ID: July'
width: 5.0
+ reference: https://resdac.org/cms-data/variables/monthly-part-d-contract-number-july
type: VARCHAR(5)
- PTDCNTRCT08:
description:
@@ -2525,6 +2858,7 @@ cms:
original_type: CHAR
text: 'Part D Contract ID: August'
width: 5.0
+ reference: https://resdac.org/cms-data/variables/monthly-part-d-contract-number-august
type: VARCHAR(5)
- PTDCNTRCT09:
description:
@@ -2532,6 +2866,7 @@ cms:
original_type: CHAR
text: 'Part D Contract ID: September'
width: 5.0
+ reference: https://resdac.org/cms-data/variables/monthly-part-d-contract-number-september
type: VARCHAR(5)
- PTDCNTRCT10:
description:
@@ -2539,6 +2874,7 @@ cms:
original_type: CHAR
text: 'Part D Contract ID: October'
width: 5.0
+ reference: https://resdac.org/cms-data/variables/monthly-part-d-contract-number-october
type: VARCHAR(5)
- PTDCNTRCT11:
description:
@@ -2546,6 +2882,7 @@ cms:
original_type: CHAR
text: 'Part D Contract ID: November'
width: 5.0
+ reference: https://resdac.org/cms-data/variables/monthly-part-d-contract-number-november
type: VARCHAR(5)
- PTDCNTRCT12:
description:
@@ -2553,6 +2890,7 @@ cms:
original_type: CHAR
text: 'Part D Contract ID: December'
width: 5.0
+ reference: https://resdac.org/cms-data/variables/monthly-part-d-contract-number-december
type: VARCHAR(5)
- PTDPBPID01:
description:
@@ -2560,6 +2898,7 @@ cms:
original_type: CHAR
text: 'Part D Plan Benefit Package ID: January'
width: 3.0
+ reference: https://resdac.org/cms-data/variables/monthly-part-d-plan-benefit-package-number-january
type: VARCHAR(3)
- PTDPBPID02:
description:
@@ -2567,6 +2906,7 @@ cms:
original_type: CHAR
text: 'Part D Plan Benefit Package ID: February'
width: 3.0
+ reference: https://resdac.org/cms-data/variables/monthly-part-d-plan-benefit-package-number-february
type: VARCHAR(3)
- PTDPBPID03:
description:
@@ -2574,6 +2914,7 @@ cms:
original_type: CHAR
text: 'Part D Plan Benefit Package ID: March'
width: 3.0
+ reference: https://resdac.org/cms-data/variables/monthly-part-d-plan-benefit-package-number-march
type: VARCHAR(3)
- PTDPBPID04:
description:
@@ -2581,6 +2922,7 @@ cms:
original_type: CHAR
text: 'Part D Plan Benefit Package ID: April'
width: 3.0
+ reference: https://resdac.org/cms-data/variables/monthly-part-d-plan-benefit-package-number-april
type: VARCHAR(3)
- PTDPBPID05:
description:
@@ -2588,6 +2930,7 @@ cms:
original_type: CHAR
text: 'Part D Plan Benefit Package ID: May'
width: 3.0
+ reference: https://resdac.org/cms-data/variables/monthly-part-d-plan-benefit-package-number-may
type: VARCHAR(3)
- PTDPBPID06:
description:
@@ -2595,6 +2938,7 @@ cms:
original_type: CHAR
text: 'Part D Plan Benefit Package ID: June'
width: 3.0
+ reference: https://resdac.org/cms-data/variables/monthly-part-d-plan-benefit-package-number-june
type: VARCHAR(3)
- PTDPBPID07:
description:
@@ -2602,6 +2946,7 @@ cms:
original_type: CHAR
text: 'Part D Plan Benefit Package ID: July'
width: 3.0
+ reference: https://resdac.org/cms-data/variables/monthly-part-d-plan-benefit-package-number-july
type: VARCHAR(3)
- PTDPBPID08:
description:
@@ -2609,6 +2954,7 @@ cms:
original_type: CHAR
text: 'Part D Plan Benefit Package ID: August'
width: 3.0
+ reference: https://resdac.org/cms-data/variables/monthly-part-d-plan-benefit-package-number-august
type: VARCHAR(3)
- PTDPBPID09:
description:
@@ -2616,6 +2962,7 @@ cms:
original_type: CHAR
text: 'Part D Plan Benefit Package ID: September'
width: 3.0
+ reference: https://resdac.org/cms-data/variables/monthly-part-d-plan-benefit-package-number-september
type: VARCHAR(3)
- PTDPBPID10:
description:
@@ -2623,6 +2970,7 @@ cms:
original_type: CHAR
text: 'Part D Plan Benefit Package ID: October'
width: 3.0
+ reference: https://resdac.org/cms-data/variables/monthly-part-d-plan-benefit-package-number-october
type: VARCHAR(3)
- PTDPBPID11:
description:
@@ -2630,6 +2978,7 @@ cms:
original_type: CHAR
text: 'Part D Plan Benefit Package ID: November'
width: 3.0
+ reference: https://resdac.org/cms-data/variables/monthly-part-d-plan-benefit-package-number-november
type: VARCHAR(3)
- PTDPBPID12:
description:
@@ -2637,6 +2986,7 @@ cms:
original_type: CHAR
text: 'Part D Plan Benefit Package ID: December'
width: 3.0
+ reference: https://resdac.org/cms-data/variables/monthly-part-d-plan-benefit-package-number-december
type: VARCHAR(3)
- SGMTID01:
description:
@@ -2644,6 +2994,7 @@ cms:
original_type: CHAR
text: 'Part D Segment ID: January'
width: 3.0
+ reference: https://resdac.org/cms-data/variables/monthly-part-d-market-segment-identifier-january
type: VARCHAR(3)
- SGMTID02:
description:
@@ -2651,6 +3002,7 @@ cms:
original_type: CHAR
text: 'Part D Segment ID: February'
width: 3.0
+ reference: https://resdac.org/cms-data/variables/monthly-part-d-market-segment-identifier-february
type: VARCHAR(3)
- SGMTID03:
description:
@@ -2658,6 +3010,7 @@ cms:
original_type: CHAR
text: 'Part D Segment ID: March'
width: 3.0
+ reference: https://resdac.org/cms-data/variables/monthly-part-d-market-segment-identifier-march
type: VARCHAR(3)
- SGMTID04:
description:
@@ -2665,6 +3018,7 @@ cms:
original_type: CHAR
text: 'Part D Segment ID: April'
width: 3.0
+ reference: https://resdac.org/cms-data/variables/monthly-part-d-market-segment-identifier-april
type: VARCHAR(3)
- SGMTID05:
description:
@@ -2672,6 +3026,7 @@ cms:
original_type: CHAR
text: 'Part D Segment ID: May'
width: 3.0
+ reference: https://resdac.org/cms-data/variables/monthly-part-d-market-segment-identifier-may
type: VARCHAR(3)
- SGMTID06:
description:
@@ -2679,6 +3034,7 @@ cms:
original_type: CHAR
text: 'Part D Segment ID: June'
width: 3.0
+ reference: https://resdac.org/cms-data/variables/monthly-part-d-market-segment-identifier-june
type: VARCHAR(3)
- SGMTID07:
description:
@@ -2686,6 +3042,7 @@ cms:
original_type: CHAR
text: 'Part D Segment ID: July'
width: 3.0
+ reference: https://resdac.org/cms-data/variables/monthly-part-d-market-segment-identifier-july
type: VARCHAR(3)
- SGMTID08:
description:
@@ -2693,6 +3050,7 @@ cms:
original_type: CHAR
text: 'Part D Segment ID: August'
width: 3.0
+ reference: https://resdac.org/cms-data/variables/monthly-part-d-market-segment-identifier-august
type: VARCHAR(3)
- SGMTID09:
description:
@@ -2700,6 +3058,7 @@ cms:
original_type: CHAR
text: 'Part D Segment ID: September'
width: 3.0
+ reference: https://resdac.org/cms-data/variables/monthly-part-d-market-segment-identifier-september
type: VARCHAR(3)
- SGMTID10:
description:
@@ -2707,6 +3066,7 @@ cms:
original_type: CHAR
text: 'Part D Segment ID: October'
width: 3.0
+ reference: https://resdac.org/cms-data/variables/monthly-part-d-market-segment-identifier-october
type: VARCHAR(3)
- SGMTID11:
description:
@@ -2714,6 +3074,7 @@ cms:
original_type: CHAR
text: 'Part D Segment ID: November'
width: 3.0
+ reference: https://resdac.org/cms-data/variables/monthly-part-d-market-segment-identifier-november
type: VARCHAR(3)
- SGMTID12:
description:
@@ -2721,6 +3082,7 @@ cms:
original_type: CHAR
text: 'Part D Segment ID: December'
width: 3.0
+ reference: https://resdac.org/cms-data/variables/monthly-part-d-market-segment-identifier-december
type: VARCHAR(3)
- RDSIND01:
description:
@@ -2728,6 +3090,7 @@ cms:
original_type: CHAR
text: 'Retiree Drug Subsidy Indicators: January'
width: 1.0
+ reference: https://resdac.org/cms-data/variables/part-d-retiree-drug-subsidy-indicator-january
type: VARCHAR(1)
- RDSIND02:
description:
@@ -2735,6 +3098,7 @@ cms:
original_type: CHAR
text: 'Retiree Drug Subsidy Indicators: February'
width: 1.0
+ reference: null
type: VARCHAR(1)
- RDSIND03:
description:
@@ -2742,6 +3106,7 @@ cms:
original_type: CHAR
text: 'Retiree Drug Subsidy Indicators: March'
width: 1.0
+ reference: https://resdac.org/cms-data/variables/part-d-retiree-drug-subsidy-indicator-march
type: VARCHAR(1)
- RDSIND04:
description:
@@ -2749,6 +3114,7 @@ cms:
original_type: CHAR
text: 'Retiree Drug Subsidy Indicators: April'
width: 1.0
+ reference: https://resdac.org/cms-data/variables/part-d-retiree-drug-subsidy-indicator-april
type: VARCHAR(1)
- RDSIND05:
description:
@@ -2756,6 +3122,7 @@ cms:
original_type: CHAR
text: 'Retiree Drug Subsidy Indicators: May'
width: 1.0
+ reference: https://resdac.org/cms-data/variables/part-d-retiree-drug-subsidy-indicator-may
type: VARCHAR(1)
- RDSIND06:
description:
@@ -2763,6 +3130,7 @@ cms:
original_type: CHAR
text: 'Retiree Drug Subsidy Indicators: June'
width: 1.0
+ reference: https://resdac.org/cms-data/variables/part-d-retiree-drug-subsidy-indicator-june
type: VARCHAR(1)
- RDSIND07:
description:
@@ -2770,6 +3138,7 @@ cms:
original_type: CHAR
text: 'Retiree Drug Subsidy Indicators: July'
width: 1.0
+ reference: https://resdac.org/cms-data/variables/part-d-retiree-drug-subsidy-indicator-july
type: VARCHAR(1)
- RDSIND08:
description:
@@ -2777,6 +3146,7 @@ cms:
original_type: CHAR
text: 'Retiree Drug Subsidy Indicators: August'
width: 1.0
+ reference: https://resdac.org/cms-data/variables/part-d-retiree-drug-subsidy-indicator-august
type: VARCHAR(1)
- RDSIND09:
description:
@@ -2784,6 +3154,7 @@ cms:
original_type: CHAR
text: 'Retiree Drug Subsidy Indicators: September'
width: 1.0
+ reference: https://resdac.org/cms-data/variables/part-d-retiree-drug-subsidy-indicator-september
type: VARCHAR(1)
- RDSIND10:
description:
@@ -2791,6 +3162,7 @@ cms:
original_type: CHAR
text: 'Retiree Drug Subsidy Indicators: October'
width: 1.0
+ reference: https://resdac.org/cms-data/variables/part-d-retiree-drug-subsidy-indicator-october
type: VARCHAR(1)
- RDSIND11:
description:
@@ -2798,6 +3170,7 @@ cms:
original_type: CHAR
text: 'Retiree Drug Subsidy Indicators: November'
width: 1.0
+ reference: https://resdac.org/cms-data/variables/part-d-retiree-drug-subsidy-indicator-november
type: VARCHAR(1)
- RDSIND12:
description:
@@ -2805,6 +3178,7 @@ cms:
original_type: CHAR
text: 'Retiree Drug Subsidy Indicators: December'
width: 1.0
+ reference: https://resdac.org/cms-data/variables/part-d-retiree-drug-subsidy-indicator-december
type: VARCHAR(1)
- DUAL_01:
description:
@@ -2812,6 +3186,7 @@ cms:
original_type: CHAR
text: 'State Reported Dual Eligible Status Code: January'
width: 2.0
+ reference: https://resdac.org/cms-data/variables/monthly-medicare-medicaid-dual-eligibility-code-january
type: VARCHAR(2)
- DUAL_02:
description:
@@ -2819,6 +3194,7 @@ cms:
original_type: CHAR
text: 'State Reported Dual Eligible Status Code: February'
width: 2.0
+ reference: https://resdac.org/cms-data/variables/monthly-medicare-medicaid-dual-eligibility-code-february
type: VARCHAR(2)
- DUAL_03:
description:
@@ -2826,6 +3202,7 @@ cms:
original_type: CHAR
text: 'State Reported Dual Eligible Status Code: March'
width: 2.0
+ reference: https://resdac.org/cms-data/variables/monthly-medicare-medicaid-dual-eligibility-code-march
type: VARCHAR(2)
- DUAL_04:
description:
@@ -2833,6 +3210,7 @@ cms:
original_type: CHAR
text: 'State Reported Dual Eligible Status Code: April'
width: 2.0
+ reference: https://resdac.org/cms-data/variables/monthly-medicare-medicaid-dual-eligibility-code-april
type: VARCHAR(2)
- DUAL_05:
description:
@@ -2840,6 +3218,7 @@ cms:
original_type: CHAR
text: 'State Reported Dual Eligible Status Code: May'
width: 2.0
+ reference: https://resdac.org/cms-data/variables/monthly-medicare-medicaid-dual-eligibility-code-may
type: VARCHAR(2)
- DUAL_06:
description:
@@ -2847,6 +3226,7 @@ cms:
original_type: CHAR
text: 'State Reported Dual Eligible Status Code: June'
width: 2.0
+ reference: https://resdac.org/cms-data/variables/monthly-medicare-medicaid-dual-eligibility-code-june
type: VARCHAR(2)
- DUAL_07:
description:
@@ -2854,6 +3234,7 @@ cms:
original_type: CHAR
text: 'State Reported Dual Eligible Status Code: July'
width: 2.0
+ reference: https://resdac.org/cms-data/variables/monthly-medicare-medicaid-dual-eligibility-code-july
type: VARCHAR(2)
- DUAL_08:
description:
@@ -2861,6 +3242,7 @@ cms:
original_type: CHAR
text: 'State Reported Dual Eligible Status Code: August'
width: 2.0
+ reference: https://resdac.org/cms-data/variables/monthly-medicare-medicaid-dual-eligibility-code-august
type: VARCHAR(2)
- DUAL_09:
description:
@@ -2868,6 +3250,7 @@ cms:
original_type: CHAR
text: 'State Reported Dual Eligible Status Code: September'
width: 2.0
+ reference: https://resdac.org/cms-data/variables/monthly-medicare-medicaid-dual-eligibility-code-september
type: VARCHAR(2)
- DUAL_10:
description:
@@ -2875,6 +3258,7 @@ cms:
original_type: CHAR
text: 'State Reported Dual Eligible Status Code: October'
width: 2.0
+ reference: https://resdac.org/cms-data/variables/monthly-medicare-medicaid-dual-eligibility-code-october
type: VARCHAR(2)
- DUAL_11:
description:
@@ -2882,6 +3266,7 @@ cms:
original_type: CHAR
text: 'State Reported Dual Eligible Status Code: November'
width: 2.0
+ reference: https://resdac.org/cms-data/variables/monthly-medicare-medicaid-dual-eligibility-code-november
type: VARCHAR(2)
- DUAL_12:
description:
@@ -2889,6 +3274,7 @@ cms:
original_type: CHAR
text: 'State Reported Dual Eligible Status Code: December'
width: 2.0
+ reference: https://resdac.org/cms-data/variables/monthly-medicare-medicaid-dual-eligibility-code-december
type: VARCHAR(2)
- CSTSHR01:
description:
@@ -2896,6 +3282,7 @@ cms:
original_type: CHAR
text: 'Cost Share Group Code: January'
width: 2.0
+ reference: https://resdac.org/cms-data/variables/monthly-cost-sharing-group-under-part-d-low-income-subsidy-january
type: VARCHAR(2)
- CSTSHR02:
description:
@@ -2903,6 +3290,7 @@ cms:
original_type: CHAR
text: 'Cost Share Group Code: February'
width: 2.0
+ reference: https://resdac.org/cms-data/variables/monthly-cost-sharing-group-under-part-d-low-income-subsidy-february
type: VARCHAR(2)
- CSTSHR03:
description:
@@ -2910,6 +3298,7 @@ cms:
original_type: CHAR
text: 'Cost Share Group Code: March'
width: 2.0
+ reference: https://resdac.org/cms-data/variables/monthly-cost-sharing-group-under-part-d-low-income-subsidy-march
type: VARCHAR(2)
- CSTSHR04:
description:
@@ -2917,6 +3306,7 @@ cms:
original_type: CHAR
text: 'Cost Share Group Code: April'
width: 2.0
+ reference: https://resdac.org/cms-data/variables/monthly-cost-sharing-group-under-part-d-low-income-subsidy-april
type: VARCHAR(2)
- CSTSHR05:
description:
@@ -2924,6 +3314,7 @@ cms:
original_type: CHAR
text: 'Cost Share Group Code: May'
width: 2.0
+ reference: https://resdac.org/cms-data/variables/monthly-cost-sharing-group-under-part-d-low-income-subsidy-may
type: VARCHAR(2)
- CSTSHR06:
description:
@@ -2931,6 +3322,7 @@ cms:
original_type: CHAR
text: 'Cost Share Group Code: June'
width: 2.0
+ reference: https://resdac.org/cms-data/variables/monthly-cost-sharing-group-under-part-d-low-income-subsidy-june
type: VARCHAR(2)
- CSTSHR07:
description:
@@ -2938,6 +3330,7 @@ cms:
original_type: CHAR
text: 'Cost Share Group Code: July'
width: 2.0
+ reference: https://resdac.org/cms-data/variables/monthly-cost-sharing-group-under-part-d-low-income-subsidy-july
type: VARCHAR(2)
- CSTSHR08:
description:
@@ -2945,6 +3338,7 @@ cms:
original_type: CHAR
text: 'Cost Share Group Code: August'
width: 2.0
+ reference: https://resdac.org/cms-data/variables/monthly-cost-sharing-group-under-part-d-low-income-subsidy-august
type: VARCHAR(2)
- CSTSHR09:
description:
@@ -2952,6 +3346,7 @@ cms:
original_type: CHAR
text: 'Cost Share Group Code: September'
width: 2.0
+ reference: https://resdac.org/cms-data/variables/monthly-cost-sharing-group-under-part-d-low-income-subsidy-september
type: VARCHAR(2)
- CSTSHR10:
description:
@@ -2959,6 +3354,7 @@ cms:
original_type: CHAR
text: 'Cost Share Group Code: October'
width: 2.0
+ reference: https://resdac.org/cms-data/variables/monthly-cost-sharing-group-under-part-d-low-income-subsidy-october
type: VARCHAR(2)
- CSTSHR11:
description:
@@ -2966,6 +3362,7 @@ cms:
original_type: CHAR
text: 'Cost Share Group Code: November'
width: 2.0
+ reference: https://resdac.org/cms-data/variables/monthly-cost-sharing-group-under-part-d-low-income-subsidy-november
type: VARCHAR(2)
- CSTSHR12:
description:
@@ -2973,6 +3370,7 @@ cms:
original_type: CHAR
text: 'Cost Share Group Code: December'
width: 2.0
+ reference: https://resdac.org/cms-data/variables/monthly-cost-sharing-group-under-part-d-low-income-subsidy-december
type: VARCHAR(2)
- FILE:
description:
@@ -2981,6 +3379,7 @@ cms:
width: 128
index:
required_before_loading_data: true
+ reference: null
source:
type: file
type: VARCHAR(128)
@@ -2989,6 +3388,7 @@ cms:
original_type: BIGSERIAL
text: Record number in the file
width: null
+ reference: https://resdac.org/cms-data/variables/nch-near-line-record-identification-code-ric
type: BIGSERIAL
- STATE:
description:
@@ -2996,6 +3396,7 @@ cms:
text: SSA State Code
width: 2.0
index: true
+ reference: https://resdac.org/cms-data/variables/state-code-beneficiary-ssa-code
source:
code: GENERATED ALWAYS AS (STATE_CD) STORED
type: generated
@@ -3006,6 +3407,7 @@ cms:
text: Beneficiary Enrollment Reference Year
width: 4.0
index: true
+ reference: https://resdac.org/cms-data/variables/mbsf-cc-30/alzheimers-disease-end-year-indicator
source:
code: GENERATED ALWAYS AS (RFRNC_YR) STORED
type: generated
@@ -3016,6 +3418,7 @@ cms:
text: 5-digit ZIP Code
width: 5.0
index: true
+ reference: https://resdac.org/cms-data/variables/zip-code-beneficiary
source:
code: GENERATED ALWAYS AS (ZIP_CD) STORED
type: generated
@@ -3038,6 +3441,7 @@ cms:
text: Encrypted 723 Beneficiary ID
width: 15.0
index: true
+ reference: https://resdac.org/cms-data/variables/ccw-beneficiary-id
type: VARCHAR(15)
- RFRNC_YR:
description:
@@ -3045,6 +3449,7 @@ cms:
original_type: NUM
text: Beneficiary Enrollment Reference Year
width: 4.0
+ reference: https://resdac.org/cms-data/variables/reference-year-base
type: INT
- ENRL_SRC:
description:
@@ -3052,6 +3457,7 @@ cms:
original_type: CHAR
text: Enrollment Source
width: 3.0
+ reference: https://resdac.org/cms-data/variables/enrollment-source
type: VARCHAR(3)
- SAMPLE_GROUP:
description:
@@ -3059,6 +3465,7 @@ cms:
original_type: CHAR
text: Medicare 1, 5, or 20% Strict Sample Group Indicator
width: 2.0
+ reference: https://resdac.org/cms-data/variables/medicare-sample-group-indicator
type: VARCHAR(2)
- EFIVEPCT:
description:
@@ -3066,6 +3473,7 @@ cms:
original_type: CHAR
text: Medicare Enhanced 5% Sample Indicator
width: 1.0
+ reference: https://resdac.org/cms-data/variables/enhanced-medicare-5-sample-indicator
type: VARCHAR(1)
- CRNT_BIC:
description:
@@ -3073,6 +3481,7 @@ cms:
original_type: CHAR
text: Current Beneficiary Identification Code
width: 2.0
+ reference: https://resdac.org/cms-data/variables/current-beneficiary-identification-code
type: VARCHAR(2)
- STATE_CD:
description:
@@ -3080,6 +3489,7 @@ cms:
original_type: CHAR
text: SSA State Code
width: 2.0
+ reference: https://resdac.org/cms-data/variables/state-code-beneficiary-ssa-code
type: VARCHAR(2)
- CNTY_CD:
description:
@@ -3087,6 +3497,7 @@ cms:
original_type: CHAR
text: SSA County Code
width: 3.0
+ reference: https://resdac.org/sites/datadocumentation.resdac.org/files/Introduction%20to%20DE-SynPUF%20%28Slides%29.pdf
type: VARCHAR(3)
- ZIP_CD:
description:
@@ -3094,6 +3505,7 @@ cms:
original_type: CHAR
text: 5-digit ZIP Code
width: 5.0
+ reference: https://resdac.org/cms-data/variables/zip-code-beneficiary
type: VARCHAR(5)
- STATE_CNTY_FIPS_CD_01:
description:
@@ -3101,6 +3513,7 @@ cms:
original_type: CHAR
text: 'FIPS State-County Code: January'
width: 5.0
+ reference: https://resdac.org/cms-data/variables/state-and-county-fips-code-january
type: VARCHAR(5)
- STATE_CNTY_FIPS_CD_02:
description:
@@ -3108,6 +3521,7 @@ cms:
original_type: CHAR
text: 'FIPS State-County Code: February'
width: 5.0
+ reference: https://resdac.org/cms-data/variables/state-and-county-fips-code-february
type: VARCHAR(5)
- STATE_CNTY_FIPS_CD_03:
description:
@@ -3115,6 +3529,7 @@ cms:
original_type: CHAR
text: 'FIPS State-County Code: March'
width: 5.0
+ reference: https://resdac.org/cms-data/variables/state-and-county-fips-code-march
type: VARCHAR(5)
- STATE_CNTY_FIPS_CD_04:
description:
@@ -3122,6 +3537,7 @@ cms:
original_type: CHAR
text: 'FIPS State-County Code: April'
width: 5.0
+ reference: https://resdac.org/cms-data/variables/state-and-county-fips-code-april
type: VARCHAR(5)
- STATE_CNTY_FIPS_CD_05:
description:
@@ -3129,6 +3545,7 @@ cms:
original_type: CHAR
text: 'FIPS State-County Code: May'
width: 5.0
+ reference: https://resdac.org/cms-data/variables/state-and-county-fips-code-may
type: VARCHAR(5)
- STATE_CNTY_FIPS_CD_06:
description:
@@ -3136,6 +3553,7 @@ cms:
original_type: CHAR
text: 'FIPS State-County Code: June'
width: 5.0
+ reference: https://resdac.org/cms-data/variables/state-and-county-fips-code-june
type: VARCHAR(5)
- STATE_CNTY_FIPS_CD_07:
description:
@@ -3143,6 +3561,7 @@ cms:
original_type: CHAR
text: 'FIPS State-County Code: July'
width: 5.0
+ reference: https://resdac.org/cms-data/variables/state-and-county-fips-code-july
type: VARCHAR(5)
- STATE_CNTY_FIPS_CD_08:
description:
@@ -3150,6 +3569,7 @@ cms:
original_type: CHAR
text: 'FIPS State-County Code: August'
width: 5.0
+ reference: https://resdac.org/cms-data/variables/state-and-county-fips-code-august
type: VARCHAR(5)
- STATE_CNTY_FIPS_CD_09:
description:
@@ -3157,6 +3577,7 @@ cms:
original_type: CHAR
text: 'FIPS State-County Code: September'
width: 5.0
+ reference: https://resdac.org/cms-data/variables/state-and-county-fips-code-september
type: VARCHAR(5)
- STATE_CNTY_FIPS_CD_10:
description:
@@ -3164,6 +3585,7 @@ cms:
original_type: CHAR
text: 'FIPS State-County Code: October'
width: 5.0
+ reference: https://resdac.org/cms-data/variables/state-and-county-fips-code-october
type: VARCHAR(5)
- STATE_CNTY_FIPS_CD_11:
description:
@@ -3171,6 +3593,7 @@ cms:
original_type: CHAR
text: 'FIPS State-County Code: November'
width: 5.0
+ reference: https://resdac.org/cms-data/variables/state-and-county-fips-code-november
type: VARCHAR(5)
- STATE_CNTY_FIPS_CD_12:
description:
@@ -3178,6 +3601,7 @@ cms:
original_type: CHAR
text: 'FIPS State-County Code: December'
width: 5.0
+ reference: https://resdac.org/cms-data/variables/state-and-county-fips-code-december
type: VARCHAR(5)
- AGE:
description:
@@ -3185,6 +3609,7 @@ cms:
original_type: NUM
text: Age at the End of the Reference Year
width: 3.0
+ reference: https://resdac.org/cms-data/variables/age-beneficiary-end-year
type: INT
- BENE_DOB:
description:
@@ -3192,6 +3617,7 @@ cms:
original_type: DATE
text: Beneficiary Date of Birth
width: 8.0
+ reference: https://resdac.org/cms-data/variables/beneficiary-date-birth
type: DATE
- V_DOD_SW:
description:
@@ -3199,6 +3625,7 @@ cms:
original_type: CHAR
text: Valid Date of Death Switch
width: 1.0
+ reference: https://resdac.org/cms-data/variables/date-death
type: VARCHAR(1)
- DEATH_DT:
description:
@@ -3206,6 +3633,7 @@ cms:
original_type: DATE
text: Beneficiary Date of Death
width: 8.0
+ reference: https://resdac.org/cms-data/variables/date-death
type: DATE
- SEX:
description:
@@ -3213,6 +3641,7 @@ cms:
original_type: CHAR
text: Sex
width: 1.0
+ reference: https://resdac.org/sites/datadocumentation.resdac.org/files/Introduction%20to%20DE-SynPUF%20%28Slides%29.pdf
type: VARCHAR(1)
- RACE:
description:
@@ -3220,6 +3649,7 @@ cms:
original_type: CHAR
text: Beneficiary Race Code
width: 1.0
+ reference: https://resdac.org/cms-data/variables/beneficiary-race-code-base
type: VARCHAR(1)
- RTI_RACE_CD:
description:
@@ -3227,6 +3657,7 @@ cms:
original_type: CHAR
text: Research Triangle Institute (RTI) Race Code
width: 1.0
+ reference: https://resdac.org/cms-data/variables/research-triangle-institute-rti-race-code
type: VARCHAR(1)
- COVSTART:
description:
@@ -3234,6 +3665,7 @@ cms:
original_type: DATE
text: Medicare Coverage Start Date
width: 8.0
+ reference: https://resdac.org/cms-data/variables/medicare-coverage-start-date
type: DATE
- OREC:
description:
@@ -3241,6 +3673,7 @@ cms:
original_type: CHAR
text: Original Reason for Entitlement Code
width: 1.0
+ reference: null
type: VARCHAR(1)
- CREC:
description:
@@ -3248,6 +3681,7 @@ cms:
original_type: CHAR
text: Current Reason for Entitlement Code
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medicare-current-reason-entitlement-code-crec
type: VARCHAR(1)
- ESRD_IND:
description:
@@ -3255,6 +3689,7 @@ cms:
original_type: CHAR
text: End-Stage Renal Disease (ESRD) Indicator
width: 1.0
+ reference: https://resdac.org/sites/datadocumentation.resdac.org/files/Introduction%20to%20DE-SynPUF%20%28Slides%29.pdf
type: VARCHAR(1)
- MDCR_STUS_CD_01:
description:
@@ -3262,6 +3697,7 @@ cms:
original_type: CHAR
text: 'Medicare Status Code: January'
width: 2.0
+ reference: https://resdac.org/cms-data/variables/medicare-status-code-january
type: VARCHAR(2)
- MDCR_STUS_CD_02:
description:
@@ -3269,6 +3705,7 @@ cms:
original_type: CHAR
text: 'Medicare Status Code: February'
width: 2.0
+ reference: https://resdac.org/cms-data/variables/medicare-status-code-february
type: VARCHAR(2)
- MDCR_STUS_CD_03:
description:
@@ -3276,6 +3713,7 @@ cms:
original_type: CHAR
text: 'Medicare Status Code: March'
width: 2.0
+ reference: https://resdac.org/cms-data/variables/medicare-status-code-march
type: VARCHAR(2)
- MDCR_STUS_CD_04:
description:
@@ -3283,6 +3721,7 @@ cms:
original_type: CHAR
text: 'Medicare Status Code: April'
width: 2.0
+ reference: https://resdac.org/cms-data/variables/medicare-status-code-april
type: VARCHAR(2)
- MDCR_STUS_CD_05:
description:
@@ -3290,6 +3729,7 @@ cms:
original_type: CHAR
text: 'Medicare Status Code: May'
width: 2.0
+ reference: https://resdac.org/cms-data/variables/medicare-status-code-may
type: VARCHAR(2)
- MDCR_STUS_CD_06:
description:
@@ -3297,6 +3737,7 @@ cms:
original_type: CHAR
text: 'Medicare Status Code: June'
width: 2.0
+ reference: https://resdac.org/cms-data/variables/medicare-status-code-june
type: VARCHAR(2)
- MDCR_STUS_CD_07:
description:
@@ -3304,6 +3745,7 @@ cms:
original_type: CHAR
text: 'Medicare Status Code: July'
width: 2.0
+ reference: https://resdac.org/cms-data/variables/medicare-status-code-july
type: VARCHAR(2)
- MDCR_STUS_CD_08:
description:
@@ -3311,6 +3753,7 @@ cms:
original_type: CHAR
text: 'Medicare Status Code: August'
width: 2.0
+ reference: https://resdac.org/cms-data/variables/medicare-status-code-august
type: VARCHAR(2)
- MDCR_STUS_CD_09:
description:
@@ -3318,6 +3761,7 @@ cms:
original_type: CHAR
text: 'Medicare Status Code: September'
width: 2.0
+ reference: https://resdac.org/cms-data/variables/medicare-status-code-september
type: VARCHAR(2)
- MDCR_STUS_CD_10:
description:
@@ -3325,6 +3769,7 @@ cms:
original_type: CHAR
text: 'Medicare Status Code: October'
width: 2.0
+ reference: https://resdac.org/cms-data/variables/medicare-status-code-october
type: VARCHAR(2)
- MDCR_STUS_CD_11:
description:
@@ -3332,6 +3777,7 @@ cms:
original_type: CHAR
text: 'Medicare Status Code: November'
width: 2.0
+ reference: https://resdac.org/cms-data/variables/medicare-status-code-november
type: VARCHAR(2)
- MDCR_STUS_CD_12:
description:
@@ -3339,6 +3785,7 @@ cms:
original_type: CHAR
text: 'Medicare Status Code: December'
width: 2.0
+ reference: https://resdac.org/cms-data/variables/medicare-status-code-december
type: VARCHAR(2)
- A_TRM_CD:
description:
@@ -3346,6 +3793,7 @@ cms:
original_type: CHAR
text: Part A Termination Code
width: 1.0
+ reference: https://resdac.org/cms-data/variables/part-termination-code
type: VARCHAR(1)
- B_TRM_CD:
description:
@@ -3353,6 +3801,7 @@ cms:
original_type: CHAR
text: Part B Termination Code
width: 1.0
+ reference: https://resdac.org/cms-data/variables/part-b-termination-code
type: VARCHAR(1)
- A_MO_CNT:
description:
@@ -3360,6 +3809,7 @@ cms:
original_type: NUM
text: Hospital Insurance (HI) Coverage Months Count
width: 3.0
+ reference: https://resdac.org/cms-data/variables/part-months-count
type: INT
- B_MO_CNT:
description:
@@ -3367,6 +3817,7 @@ cms:
original_type: NUM
text: Supplemental Medical Insurance (SMI) Coverage Months Count
width: 3.0
+ reference: https://resdac.org/cms-data/variables/part-b-months-count
type: INT
- BUYIN_MO:
description:
@@ -3374,6 +3825,7 @@ cms:
original_type: NUM
text: State Buy-In (SBI) Coverage Months
width: 3.0
+ reference: https://resdac.org/cms-data/variables/state-buy-coverage-count
type: INT
- HMO_MO:
description:
@@ -3381,6 +3833,7 @@ cms:
original_type: NUM
text: Health Maintenance Organization (HMO) Coverage Months
width: 3.0
+ reference: https://resdac.org/cms-data/variables/hmo-coverage-count
type: INT
- PTD_MO:
description:
@@ -3388,6 +3841,7 @@ cms:
original_type: NUM
text: Part D Contract Plan Coverage Months
width: 3.0
+ reference: https://resdac.org/cms-data/variables/months-part-d-coverage
type: INT
- RDS_MO:
description:
@@ -3395,6 +3849,7 @@ cms:
original_type: NUM
text: Retiree Drug Subsidy (RDS) Coverage Months
width: 3.0
+ reference: https://resdac.org/cms-data/variables/months-retiree-drug-subsidy-coverage
type: INT
- DUAL_MO:
description:
@@ -3402,6 +3857,7 @@ cms:
original_type: NUM
text: Medicaid Dual Eligible Months
width: 3.0
+ reference: https://resdac.org/cms-data/variables/months-dual-eligibility
type: INT
- BUYIN01:
description:
@@ -3409,6 +3865,7 @@ cms:
original_type: CHAR
text: 'Medicare Entitlement/ Buy-In Indicator: January'
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medicare-entitlementbuy-indicator-november-0
type: VARCHAR(1)
- BUYIN02:
description:
@@ -3416,6 +3873,7 @@ cms:
original_type: CHAR
text: 'Medicare Entitlement/ Buy-In Indicator: February'
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medicare-entitlementbuy-indicator
type: VARCHAR(1)
- BUYIN03:
description:
@@ -3423,6 +3881,7 @@ cms:
original_type: CHAR
text: 'Medicare Entitlement/ Buy-In Indicator: March'
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medicare-entitlementbuy-indicator
type: VARCHAR(1)
- BUYIN04:
description:
@@ -3430,6 +3889,7 @@ cms:
original_type: CHAR
text: 'Medicare Entitlement/ Buy-In Indicator: April'
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medicare-entitlementbuy-indicator
type: VARCHAR(1)
- BUYIN05:
description:
@@ -3437,6 +3897,7 @@ cms:
original_type: CHAR
text: 'Medicare Entitlement/ Buy-In Indicator: May'
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medicare-entitlementbuy-indicator
type: VARCHAR(1)
- BUYIN06:
description:
@@ -3444,6 +3905,7 @@ cms:
original_type: CHAR
text: 'Medicare Entitlement/ Buy-In Indicator: June'
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medicare-entitlementbuy-indicator
type: VARCHAR(1)
- BUYIN07:
description:
@@ -3451,6 +3913,7 @@ cms:
original_type: CHAR
text: 'Medicare Entitlement/ Buy-In Indicator: July'
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medicare-entitlementbuy-indicator
type: VARCHAR(1)
- BUYIN08:
description:
@@ -3458,6 +3921,7 @@ cms:
original_type: CHAR
text: 'Medicare Entitlement/ Buy-In Indicator: August'
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medicare-entitlementbuy-indicator
type: VARCHAR(1)
- BUYIN09:
description:
@@ -3465,6 +3929,7 @@ cms:
original_type: CHAR
text: 'Medicare Entitlement/ Buy-In Indicator: September'
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medicare-entitlementbuy-indicator
type: VARCHAR(1)
- BUYIN10:
description:
@@ -3472,6 +3937,7 @@ cms:
original_type: CHAR
text: 'Medicare Entitlement/ Buy-In Indicator: October'
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medicare-entitlementbuy-indicator
type: VARCHAR(1)
- BUYIN11:
description:
@@ -3479,6 +3945,7 @@ cms:
original_type: CHAR
text: 'Medicare Entitlement/ Buy-In Indicator: November'
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medicare-entitlementbuy-indicator
type: VARCHAR(1)
- BUYIN12:
description:
@@ -3486,6 +3953,7 @@ cms:
original_type: CHAR
text: 'Medicare Entitlement/ Buy-In Indicator: December'
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medicare-entitlementbuy-indicator
type: VARCHAR(1)
- HMOIND01:
description:
@@ -3493,6 +3961,7 @@ cms:
original_type: CHAR
text: 'HMO Indicator: January'
width: 1.0
+ reference: https://resdac.org/cms-data/variables/hmo-indicator
type: VARCHAR(1)
- HMOIND02:
description:
@@ -3500,6 +3969,7 @@ cms:
original_type: CHAR
text: 'HMO Indicator: February'
width: 1.0
+ reference: https://resdac.org/cms-data/variables/hmo-indicator
type: VARCHAR(1)
- HMOIND03:
description:
@@ -3507,6 +3977,7 @@ cms:
original_type: CHAR
text: 'HMO Indicator: March'
width: 1.0
+ reference: https://resdac.org/cms-data/variables/hmo-indicator
type: VARCHAR(1)
- HMOIND04:
description:
@@ -3514,6 +3985,7 @@ cms:
original_type: CHAR
text: 'HMO Indicator: April'
width: 1.0
+ reference: https://resdac.org/cms-data/variables/hmo-indicator
type: VARCHAR(1)
- HMOIND05:
description:
@@ -3521,6 +3993,7 @@ cms:
original_type: CHAR
text: 'HMO Indicator: May'
width: 1.0
+ reference: https://resdac.org/cms-data/variables/hmo-indicator
type: VARCHAR(1)
- HMOIND06:
description:
@@ -3528,6 +4001,7 @@ cms:
original_type: CHAR
text: 'HMO Indicator: June'
width: 1.0
+ reference: https://resdac.org/cms-data/variables/hmo-indicator
type: VARCHAR(1)
- HMOIND07:
description:
@@ -3535,6 +4009,7 @@ cms:
original_type: CHAR
text: 'HMO Indicator: July'
width: 1.0
+ reference: https://resdac.org/cms-data/variables/hmo-indicator
type: VARCHAR(1)
- HMOIND08:
description:
@@ -3542,6 +4017,7 @@ cms:
original_type: CHAR
text: 'HMO Indicator: August'
width: 1.0
+ reference: https://resdac.org/cms-data/variables/hmo-indicator
type: VARCHAR(1)
- HMOIND09:
description:
@@ -3549,6 +4025,7 @@ cms:
original_type: CHAR
text: 'HMO Indicator: September'
width: 1.0
+ reference: https://resdac.org/cms-data/variables/hmo-indicator
type: VARCHAR(1)
- HMOIND10:
description:
@@ -3556,6 +4033,7 @@ cms:
original_type: CHAR
text: 'HMO Indicator: October'
width: 1.0
+ reference: https://resdac.org/cms-data/variables/hmo-indicator
type: VARCHAR(1)
- HMOIND11:
description:
@@ -3563,6 +4041,7 @@ cms:
original_type: CHAR
text: 'HMO Indicator: November'
width: 1.0
+ reference: https://resdac.org/cms-data/variables/hmo-indicator
type: VARCHAR(1)
- HMOIND12:
description:
@@ -3570,6 +4049,7 @@ cms:
original_type: CHAR
text: 'HMO Indicator: December'
width: 1.0
+ reference: https://resdac.org/cms-data/variables/hmo-indicator
type: VARCHAR(1)
- PTC_CNTRCT_ID_01:
description:
@@ -3577,6 +4057,7 @@ cms:
original_type: CHAR
text: 'Part C Contract ID: January'
width: 5.0
+ reference: https://resdac.org/cms-data/variables/part-c-contract-number-january
type: VARCHAR(5)
- PTC_CNTRCT_ID_02:
description:
@@ -3584,6 +4065,7 @@ cms:
original_type: CHAR
text: 'Part C Contract ID: February'
width: 5.0
+ reference: https://resdac.org/cms-data/variables/part-c-contract-number-february
type: VARCHAR(5)
- PTC_CNTRCT_ID_03:
description:
@@ -3591,6 +4073,7 @@ cms:
original_type: CHAR
text: 'Part C Contract ID: March'
width: 5.0
+ reference: https://resdac.org/cms-data/variables/part-c-contract-number-march
type: VARCHAR(5)
- PTC_CNTRCT_ID_04:
description:
@@ -3598,6 +4081,7 @@ cms:
original_type: CHAR
text: 'Part C Contract ID: April'
width: 5.0
+ reference: https://resdac.org/cms-data/variables/part-c-contract-number-april
type: VARCHAR(5)
- PTC_CNTRCT_ID_05:
description:
@@ -3605,6 +4089,7 @@ cms:
original_type: CHAR
text: 'Part C Contract ID: May'
width: 5.0
+ reference: https://resdac.org/cms-data/variables/part-c-contract-number-may
type: VARCHAR(5)
- PTC_CNTRCT_ID_06:
description:
@@ -3612,6 +4097,7 @@ cms:
original_type: CHAR
text: 'Part C Contract ID: June'
width: 5.0
+ reference: https://resdac.org/cms-data/variables/part-c-contract-number-june
type: VARCHAR(5)
- PTC_CNTRCT_ID_07:
description:
@@ -3619,6 +4105,7 @@ cms:
original_type: CHAR
text: 'Part C Contract ID: July'
width: 5.0
+ reference: https://resdac.org/cms-data/variables/part-c-contract-number-july
type: VARCHAR(5)
- PTC_CNTRCT_ID_08:
description:
@@ -3626,6 +4113,7 @@ cms:
original_type: CHAR
text: 'Part C Contract ID: August'
width: 5.0
+ reference: https://resdac.org/cms-data/variables/part-c-contract-number-august
type: VARCHAR(5)
- PTC_CNTRCT_ID_09:
description:
@@ -3633,6 +4121,7 @@ cms:
original_type: CHAR
text: 'Part C Contract ID: September'
width: 5.0
+ reference: https://resdac.org/cms-data/variables/part-c-contract-number-september
type: VARCHAR(5)
- PTC_CNTRCT_ID_10:
description:
@@ -3640,6 +4129,7 @@ cms:
original_type: CHAR
text: 'Part C Contract ID: October'
width: 5.0
+ reference: https://resdac.org/cms-data/variables/part-c-contract-number-october
type: VARCHAR(5)
- PTC_CNTRCT_ID_11:
description:
@@ -3647,6 +4137,7 @@ cms:
original_type: CHAR
text: 'Part C Contract ID: November'
width: 5.0
+ reference: https://resdac.org/cms-data/variables/part-c-contract-number-november
type: VARCHAR(5)
- PTC_CNTRCT_ID_12:
description:
@@ -3654,6 +4145,7 @@ cms:
original_type: CHAR
text: 'Part C Contract ID: December'
width: 5.0
+ reference: https://resdac.org/cms-data/variables/part-c-contract-number-december
type: VARCHAR(5)
- PTC_PBP_ID_01:
description:
@@ -3661,6 +4153,7 @@ cms:
original_type: CHAR
text: 'Part C Plan Benefit Package ID: January'
width: 3.0
+ reference: https://resdac.org/cms-data/variables/part-c-pbp-number-january
type: VARCHAR(3)
- PTC_PBP_ID_02:
description:
@@ -3668,6 +4161,7 @@ cms:
original_type: CHAR
text: 'Part C Plan Benefit Package ID: February'
width: 3.0
+ reference: https://resdac.org/cms-data/variables/part-c-pbp-number-february
type: VARCHAR(3)
- PTC_PBP_ID_03:
description:
@@ -3675,6 +4169,7 @@ cms:
original_type: CHAR
text: 'Part C Plan Benefit Package ID: March'
width: 3.0
+ reference: https://resdac.org/cms-data/variables/part-c-pbp-number-march
type: VARCHAR(3)
- PTC_PBP_ID_04:
description:
@@ -3682,6 +4177,7 @@ cms:
original_type: CHAR
text: 'Part C Plan Benefit Package ID: April'
width: 3.0
+ reference: https://resdac.org/cms-data/variables/part-c-pbp-number-april
type: VARCHAR(3)
- PTC_PBP_ID_05:
description:
@@ -3689,6 +4185,7 @@ cms:
original_type: CHAR
text: 'Part C Plan Benefit Package ID: May'
width: 3.0
+ reference: https://resdac.org/cms-data/variables/part-c-pbp-number-may
type: VARCHAR(3)
- PTC_PBP_ID_06:
description:
@@ -3696,6 +4193,7 @@ cms:
original_type: CHAR
text: 'Part C Plan Benefit Package ID: June'
width: 3.0
+ reference: https://resdac.org/cms-data/variables/part-c-pbp-number-june
type: VARCHAR(3)
- PTC_PBP_ID_07:
description:
@@ -3703,6 +4201,7 @@ cms:
original_type: CHAR
text: 'Part C Plan Benefit Package ID: July'
width: 3.0
+ reference: https://resdac.org/cms-data/variables/part-c-pbp-number-july
type: VARCHAR(3)
- PTC_PBP_ID_08:
description:
@@ -3710,6 +4209,7 @@ cms:
original_type: CHAR
text: 'Part C Plan Benefit Package ID: August'
width: 3.0
+ reference: https://resdac.org/cms-data/variables/part-c-pbp-number-august
type: VARCHAR(3)
- PTC_PBP_ID_09:
description:
@@ -3717,6 +4217,7 @@ cms:
original_type: CHAR
text: 'Part C Plan Benefit Package ID: September'
width: 3.0
+ reference: https://resdac.org/cms-data/variables/part-c-pbp-number-september
type: VARCHAR(3)
- PTC_PBP_ID_10:
description:
@@ -3724,6 +4225,7 @@ cms:
original_type: CHAR
text: 'Part C Plan Benefit Package ID: October'
width: 3.0
+ reference: https://resdac.org/cms-data/variables/part-c-pbp-number-october
type: VARCHAR(3)
- PTC_PBP_ID_11:
description:
@@ -3731,6 +4233,7 @@ cms:
original_type: CHAR
text: 'Part C Plan Benefit Package ID: November'
width: 3.0
+ reference: https://resdac.org/cms-data/variables/part-c-pbp-number-november
type: VARCHAR(3)
- PTC_PBP_ID_12:
description:
@@ -3738,6 +4241,7 @@ cms:
original_type: CHAR
text: 'Part C Plan Benefit Package ID: December'
width: 3.0
+ reference: https://resdac.org/cms-data/variables/part-c-pbp-number-december
type: VARCHAR(3)
- PTC_PLAN_TYPE_CD_01:
description:
@@ -3745,6 +4249,7 @@ cms:
original_type: CHAR
text: 'Part C Plan Type Code: January'
width: 3.0
+ reference: https://resdac.org/cms-data/variables/part-c-plan-type-code-january
type: VARCHAR(3)
- PTC_PLAN_TYPE_CD_02:
description:
@@ -3752,6 +4257,7 @@ cms:
original_type: CHAR
text: 'Part C Plan Type Code: February'
width: 3.0
+ reference: https://resdac.org/cms-data/variables/part-c-plan-type-code-february
type: VARCHAR(3)
- PTC_PLAN_TYPE_CD_03:
description:
@@ -3759,6 +4265,7 @@ cms:
original_type: CHAR
text: 'Part C Plan Type Code: March'
width: 3.0
+ reference: https://resdac.org/cms-data/variables/part-c-plan-type-code-march
type: VARCHAR(3)
- PTC_PLAN_TYPE_CD_04:
description:
@@ -3766,6 +4273,7 @@ cms:
original_type: CHAR
text: 'Part C Plan Type Code: April'
width: 3.0
+ reference: https://resdac.org/cms-data/variables/part-c-plan-type-code-april
type: VARCHAR(3)
- PTC_PLAN_TYPE_CD_05:
description:
@@ -3773,6 +4281,7 @@ cms:
original_type: CHAR
text: 'Part C Plan Type Code: May'
width: 3.0
+ reference: https://resdac.org/cms-data/variables/part-c-plan-type-code-may
type: VARCHAR(3)
- PTC_PLAN_TYPE_CD_06:
description:
@@ -3780,6 +4289,7 @@ cms:
original_type: CHAR
text: 'Part C Plan Type Code: June'
width: 3.0
+ reference: https://resdac.org/cms-data/variables/part-c-plan-type-code-june
type: VARCHAR(3)
- PTC_PLAN_TYPE_CD_07:
description:
@@ -3787,6 +4297,7 @@ cms:
original_type: CHAR
text: 'Part C Plan Type Code: July'
width: 3.0
+ reference: https://resdac.org/cms-data/variables/part-c-plan-type-code-july
type: VARCHAR(3)
- PTC_PLAN_TYPE_CD_08:
description:
@@ -3794,6 +4305,7 @@ cms:
original_type: CHAR
text: 'Part C Plan Type Code: August'
width: 3.0
+ reference: https://resdac.org/cms-data/variables/part-c-plan-type-code-august
type: VARCHAR(3)
- PTC_PLAN_TYPE_CD_09:
description:
@@ -3801,6 +4313,7 @@ cms:
original_type: CHAR
text: 'Part C Plan Type Code: September'
width: 3.0
+ reference: https://resdac.org/cms-data/variables/part-c-plan-type-code-september
type: VARCHAR(3)
- PTC_PLAN_TYPE_CD_10:
description:
@@ -3808,6 +4321,7 @@ cms:
original_type: CHAR
text: 'Part C Plan Type Code: October'
width: 3.0
+ reference: https://resdac.org/cms-data/variables/part-c-plan-type-code-october
type: VARCHAR(3)
- PTC_PLAN_TYPE_CD_11:
description:
@@ -3815,6 +4329,7 @@ cms:
original_type: CHAR
text: 'Part C Plan Type Code: November'
width: 3.0
+ reference: https://resdac.org/cms-data/variables/part-c-plan-type-code-november
type: VARCHAR(3)
- PTC_PLAN_TYPE_CD_12:
description:
@@ -3822,6 +4337,7 @@ cms:
original_type: CHAR
text: 'Part C Plan Type Code: December'
width: 3.0
+ reference: https://resdac.org/cms-data/variables/part-c-plan-type-code-december
type: VARCHAR(3)
- PTDCNTRCT01:
description:
@@ -3829,6 +4345,7 @@ cms:
original_type: CHAR
text: 'Part D Contract ID: January'
width: 5.0
+ reference: https://resdac.org/cms-data/variables/monthly-part-d-contract-number-january
type: VARCHAR(5)
- PTDCNTRCT02:
description:
@@ -3836,6 +4353,7 @@ cms:
original_type: CHAR
text: 'Part D Contract ID: February'
width: 5.0
+ reference: https://resdac.org/cms-data/variables/monthly-part-d-contract-number-february
type: VARCHAR(5)
- PTDCNTRCT03:
description:
@@ -3843,6 +4361,7 @@ cms:
original_type: CHAR
text: 'Part D Contract ID: March'
width: 5.0
+ reference: https://resdac.org/cms-data/variables/monthly-part-d-contract-number-march
type: VARCHAR(5)
- PTDCNTRCT04:
description:
@@ -3850,6 +4369,7 @@ cms:
original_type: CHAR
text: 'Part D Contract ID: April'
width: 5.0
+ reference: https://resdac.org/cms-data/variables/monthly-part-d-contract-number-april
type: VARCHAR(5)
- PTDCNTRCT05:
description:
@@ -3857,6 +4377,7 @@ cms:
original_type: CHAR
text: 'Part D Contract ID: May'
width: 5.0
+ reference: https://resdac.org/cms-data/variables/monthly-part-d-contract-number-may
type: VARCHAR(5)
- PTDCNTRCT06:
description:
@@ -3864,6 +4385,7 @@ cms:
original_type: CHAR
text: 'Part D Contract ID: June'
width: 5.0
+ reference: https://resdac.org/cms-data/variables/monthly-part-d-contract-number-june
type: VARCHAR(5)
- PTDCNTRCT07:
description:
@@ -3871,6 +4393,7 @@ cms:
original_type: CHAR
text: 'Part D Contract ID: July'
width: 5.0
+ reference: https://resdac.org/cms-data/variables/monthly-part-d-contract-number-july
type: VARCHAR(5)
- PTDCNTRCT08:
description:
@@ -3878,6 +4401,7 @@ cms:
original_type: CHAR
text: 'Part D Contract ID: August'
width: 5.0
+ reference: https://resdac.org/cms-data/variables/monthly-part-d-contract-number-august
type: VARCHAR(5)
- PTDCNTRCT09:
description:
@@ -3885,6 +4409,7 @@ cms:
original_type: CHAR
text: 'Part D Contract ID: September'
width: 5.0
+ reference: https://resdac.org/cms-data/variables/monthly-part-d-contract-number-september
type: VARCHAR(5)
- PTDCNTRCT10:
description:
@@ -3892,6 +4417,7 @@ cms:
original_type: CHAR
text: 'Part D Contract ID: October'
width: 5.0
+ reference: https://resdac.org/cms-data/variables/monthly-part-d-contract-number-october
type: VARCHAR(5)
- PTDCNTRCT11:
description:
@@ -3899,6 +4425,7 @@ cms:
original_type: CHAR
text: 'Part D Contract ID: November'
width: 5.0
+ reference: https://resdac.org/cms-data/variables/monthly-part-d-contract-number-november
type: VARCHAR(5)
- PTDCNTRCT12:
description:
@@ -3906,6 +4433,7 @@ cms:
original_type: CHAR
text: 'Part D Contract ID: December'
width: 5.0
+ reference: https://resdac.org/cms-data/variables/monthly-part-d-contract-number-december
type: VARCHAR(5)
- PTDPBPID01:
description:
@@ -3913,6 +4441,7 @@ cms:
original_type: CHAR
text: 'Part D Plan Benefit Package ID: January'
width: 3.0
+ reference: https://resdac.org/cms-data/variables/monthly-part-d-plan-benefit-package-number-january
type: VARCHAR(3)
- PTDPBPID02:
description:
@@ -3920,6 +4449,7 @@ cms:
original_type: CHAR
text: 'Part D Plan Benefit Package ID: February'
width: 3.0
+ reference: https://resdac.org/cms-data/variables/monthly-part-d-plan-benefit-package-number-february
type: VARCHAR(3)
- PTDPBPID03:
description:
@@ -3927,6 +4457,7 @@ cms:
original_type: CHAR
text: 'Part D Plan Benefit Package ID: March'
width: 3.0
+ reference: https://resdac.org/cms-data/variables/monthly-part-d-plan-benefit-package-number-march
type: VARCHAR(3)
- PTDPBPID04:
description:
@@ -3934,6 +4465,7 @@ cms:
original_type: CHAR
text: 'Part D Plan Benefit Package ID: April'
width: 3.0
+ reference: https://resdac.org/cms-data/variables/monthly-part-d-plan-benefit-package-number-april
type: VARCHAR(3)
- PTDPBPID05:
description:
@@ -3941,6 +4473,7 @@ cms:
original_type: CHAR
text: 'Part D Plan Benefit Package ID: May'
width: 3.0
+ reference: https://resdac.org/cms-data/variables/monthly-part-d-plan-benefit-package-number-may
type: VARCHAR(3)
- PTDPBPID06:
description:
@@ -3948,6 +4481,7 @@ cms:
original_type: CHAR
text: 'Part D Plan Benefit Package ID: June'
width: 3.0
+ reference: https://resdac.org/cms-data/variables/monthly-part-d-plan-benefit-package-number-june
type: VARCHAR(3)
- PTDPBPID07:
description:
@@ -3955,6 +4489,7 @@ cms:
original_type: CHAR
text: 'Part D Plan Benefit Package ID: July'
width: 3.0
+ reference: https://resdac.org/cms-data/variables/monthly-part-d-plan-benefit-package-number-july
type: VARCHAR(3)
- PTDPBPID08:
description:
@@ -3962,6 +4497,7 @@ cms:
original_type: CHAR
text: 'Part D Plan Benefit Package ID: August'
width: 3.0
+ reference: https://resdac.org/cms-data/variables/monthly-part-d-plan-benefit-package-number-august
type: VARCHAR(3)
- PTDPBPID09:
description:
@@ -3969,6 +4505,7 @@ cms:
original_type: CHAR
text: 'Part D Plan Benefit Package ID: September'
width: 3.0
+ reference: https://resdac.org/cms-data/variables/monthly-part-d-plan-benefit-package-number-september
type: VARCHAR(3)
- PTDPBPID10:
description:
@@ -3976,6 +4513,7 @@ cms:
original_type: CHAR
text: 'Part D Plan Benefit Package ID: October'
width: 3.0
+ reference: https://resdac.org/cms-data/variables/monthly-part-d-plan-benefit-package-number-october
type: VARCHAR(3)
- PTDPBPID11:
description:
@@ -3983,6 +4521,7 @@ cms:
original_type: CHAR
text: 'Part D Plan Benefit Package ID: November'
width: 3.0
+ reference: https://resdac.org/cms-data/variables/monthly-part-d-plan-benefit-package-number-november
type: VARCHAR(3)
- PTDPBPID12:
description:
@@ -3990,6 +4529,7 @@ cms:
original_type: CHAR
text: 'Part D Plan Benefit Package ID: December'
width: 3.0
+ reference: https://resdac.org/cms-data/variables/monthly-part-d-plan-benefit-package-number-december
type: VARCHAR(3)
- SGMTID01:
description:
@@ -3997,6 +4537,7 @@ cms:
original_type: CHAR
text: 'Part D Segment ID: January'
width: 3.0
+ reference: https://resdac.org/cms-data/variables/monthly-part-d-market-segment-identifier-january
type: VARCHAR(3)
- SGMTID02:
description:
@@ -4004,6 +4545,7 @@ cms:
original_type: CHAR
text: 'Part D Segment ID: February'
width: 3.0
+ reference: https://resdac.org/cms-data/variables/monthly-part-d-market-segment-identifier-february
type: VARCHAR(3)
- SGMTID03:
description:
@@ -4011,6 +4553,7 @@ cms:
original_type: CHAR
text: 'Part D Segment ID: March'
width: 3.0
+ reference: https://resdac.org/cms-data/variables/monthly-part-d-market-segment-identifier-march
type: VARCHAR(3)
- SGMTID04:
description:
@@ -4018,6 +4561,7 @@ cms:
original_type: CHAR
text: 'Part D Segment ID: April'
width: 3.0
+ reference: https://resdac.org/cms-data/variables/monthly-part-d-market-segment-identifier-april
type: VARCHAR(3)
- SGMTID05:
description:
@@ -4025,6 +4569,7 @@ cms:
original_type: CHAR
text: 'Part D Segment ID: May'
width: 3.0
+ reference: https://resdac.org/cms-data/variables/monthly-part-d-market-segment-identifier-may
type: VARCHAR(3)
- SGMTID06:
description:
@@ -4032,6 +4577,7 @@ cms:
original_type: CHAR
text: 'Part D Segment ID: June'
width: 3.0
+ reference: https://resdac.org/cms-data/variables/monthly-part-d-market-segment-identifier-june
type: VARCHAR(3)
- SGMTID07:
description:
@@ -4039,6 +4585,7 @@ cms:
original_type: CHAR
text: 'Part D Segment ID: July'
width: 3.0
+ reference: https://resdac.org/cms-data/variables/monthly-part-d-market-segment-identifier-july
type: VARCHAR(3)
- SGMTID08:
description:
@@ -4046,6 +4593,7 @@ cms:
original_type: CHAR
text: 'Part D Segment ID: August'
width: 3.0
+ reference: https://resdac.org/cms-data/variables/monthly-part-d-market-segment-identifier-august
type: VARCHAR(3)
- SGMTID09:
description:
@@ -4053,6 +4601,7 @@ cms:
original_type: CHAR
text: 'Part D Segment ID: September'
width: 3.0
+ reference: https://resdac.org/cms-data/variables/monthly-part-d-market-segment-identifier-september
type: VARCHAR(3)
- SGMTID10:
description:
@@ -4060,6 +4609,7 @@ cms:
original_type: CHAR
text: 'Part D Segment ID: October'
width: 3.0
+ reference: https://resdac.org/cms-data/variables/monthly-part-d-market-segment-identifier-october
type: VARCHAR(3)
- SGMTID11:
description:
@@ -4067,6 +4617,7 @@ cms:
original_type: CHAR
text: 'Part D Segment ID: November'
width: 3.0
+ reference: https://resdac.org/cms-data/variables/monthly-part-d-market-segment-identifier-november
type: VARCHAR(3)
- SGMTID12:
description:
@@ -4074,6 +4625,7 @@ cms:
original_type: CHAR
text: 'Part D Segment ID: December'
width: 3.0
+ reference: https://resdac.org/cms-data/variables/monthly-part-d-market-segment-identifier-december
type: VARCHAR(3)
- RDSIND01:
description:
@@ -4081,6 +4633,7 @@ cms:
original_type: CHAR
text: 'Retiree Drug Subsidy Indicators: January'
width: 1.0
+ reference: https://resdac.org/cms-data/variables/part-d-retiree-drug-subsidy-indicator-january
type: VARCHAR(1)
- RDSIND02:
description:
@@ -4088,6 +4641,7 @@ cms:
original_type: CHAR
text: 'Retiree Drug Subsidy Indicators: February'
width: 1.0
+ reference: null
type: VARCHAR(1)
- RDSIND03:
description:
@@ -4095,6 +4649,7 @@ cms:
original_type: CHAR
text: 'Retiree Drug Subsidy Indicators: March'
width: 1.0
+ reference: https://resdac.org/cms-data/variables/part-d-retiree-drug-subsidy-indicator-march
type: VARCHAR(1)
- RDSIND04:
description:
@@ -4102,6 +4657,7 @@ cms:
original_type: CHAR
text: 'Retiree Drug Subsidy Indicators: April'
width: 1.0
+ reference: https://resdac.org/cms-data/variables/part-d-retiree-drug-subsidy-indicator-april
type: VARCHAR(1)
- RDSIND05:
description:
@@ -4109,6 +4665,7 @@ cms:
original_type: CHAR
text: 'Retiree Drug Subsidy Indicators: May'
width: 1.0
+ reference: https://resdac.org/cms-data/variables/part-d-retiree-drug-subsidy-indicator-may
type: VARCHAR(1)
- RDSIND06:
description:
@@ -4116,6 +4673,7 @@ cms:
original_type: CHAR
text: 'Retiree Drug Subsidy Indicators: June'
width: 1.0
+ reference: https://resdac.org/cms-data/variables/part-d-retiree-drug-subsidy-indicator-june
type: VARCHAR(1)
- RDSIND07:
description:
@@ -4123,6 +4681,7 @@ cms:
original_type: CHAR
text: 'Retiree Drug Subsidy Indicators: July'
width: 1.0
+ reference: https://resdac.org/cms-data/variables/part-d-retiree-drug-subsidy-indicator-july
type: VARCHAR(1)
- RDSIND08:
description:
@@ -4130,6 +4689,7 @@ cms:
original_type: CHAR
text: 'Retiree Drug Subsidy Indicators: August'
width: 1.0
+ reference: https://resdac.org/cms-data/variables/part-d-retiree-drug-subsidy-indicator-august
type: VARCHAR(1)
- RDSIND09:
description:
@@ -4137,6 +4697,7 @@ cms:
original_type: CHAR
text: 'Retiree Drug Subsidy Indicators: September'
width: 1.0
+ reference: https://resdac.org/cms-data/variables/part-d-retiree-drug-subsidy-indicator-september
type: VARCHAR(1)
- RDSIND10:
description:
@@ -4144,6 +4705,7 @@ cms:
original_type: CHAR
text: 'Retiree Drug Subsidy Indicators: October'
width: 1.0
+ reference: https://resdac.org/cms-data/variables/part-d-retiree-drug-subsidy-indicator-october
type: VARCHAR(1)
- RDSIND11:
description:
@@ -4151,6 +4713,7 @@ cms:
original_type: CHAR
text: 'Retiree Drug Subsidy Indicators: November'
width: 1.0
+ reference: https://resdac.org/cms-data/variables/part-d-retiree-drug-subsidy-indicator-november
type: VARCHAR(1)
- RDSIND12:
description:
@@ -4158,6 +4721,7 @@ cms:
original_type: CHAR
text: 'Retiree Drug Subsidy Indicators: December'
width: 1.0
+ reference: https://resdac.org/cms-data/variables/part-d-retiree-drug-subsidy-indicator-december
type: VARCHAR(1)
- DUAL_01:
description:
@@ -4165,6 +4729,7 @@ cms:
original_type: CHAR
text: 'State Reported Dual Eligible Status Code: January'
width: 2.0
+ reference: https://resdac.org/cms-data/variables/monthly-medicare-medicaid-dual-eligibility-code-january
type: VARCHAR(2)
- DUAL_02:
description:
@@ -4172,6 +4737,7 @@ cms:
original_type: CHAR
text: 'State Reported Dual Eligible Status Code: February'
width: 2.0
+ reference: https://resdac.org/cms-data/variables/monthly-medicare-medicaid-dual-eligibility-code-february
type: VARCHAR(2)
- DUAL_03:
description:
@@ -4179,6 +4745,7 @@ cms:
original_type: CHAR
text: 'State Reported Dual Eligible Status Code: March'
width: 2.0
+ reference: https://resdac.org/cms-data/variables/monthly-medicare-medicaid-dual-eligibility-code-march
type: VARCHAR(2)
- DUAL_04:
description:
@@ -4186,6 +4753,7 @@ cms:
original_type: CHAR
text: 'State Reported Dual Eligible Status Code: April'
width: 2.0
+ reference: https://resdac.org/cms-data/variables/monthly-medicare-medicaid-dual-eligibility-code-april
type: VARCHAR(2)
- DUAL_05:
description:
@@ -4193,6 +4761,7 @@ cms:
original_type: CHAR
text: 'State Reported Dual Eligible Status Code: May'
width: 2.0
+ reference: https://resdac.org/cms-data/variables/monthly-medicare-medicaid-dual-eligibility-code-may
type: VARCHAR(2)
- DUAL_06:
description:
@@ -4200,6 +4769,7 @@ cms:
original_type: CHAR
text: 'State Reported Dual Eligible Status Code: June'
width: 2.0
+ reference: https://resdac.org/cms-data/variables/monthly-medicare-medicaid-dual-eligibility-code-june
type: VARCHAR(2)
- DUAL_07:
description:
@@ -4207,6 +4777,7 @@ cms:
original_type: CHAR
text: 'State Reported Dual Eligible Status Code: July'
width: 2.0
+ reference: https://resdac.org/cms-data/variables/monthly-medicare-medicaid-dual-eligibility-code-july
type: VARCHAR(2)
- DUAL_08:
description:
@@ -4214,6 +4785,7 @@ cms:
original_type: CHAR
text: 'State Reported Dual Eligible Status Code: August'
width: 2.0
+ reference: https://resdac.org/cms-data/variables/monthly-medicare-medicaid-dual-eligibility-code-august
type: VARCHAR(2)
- DUAL_09:
description:
@@ -4221,6 +4793,7 @@ cms:
original_type: CHAR
text: 'State Reported Dual Eligible Status Code: September'
width: 2.0
+ reference: https://resdac.org/cms-data/variables/monthly-medicare-medicaid-dual-eligibility-code-september
type: VARCHAR(2)
- DUAL_10:
description:
@@ -4228,6 +4801,7 @@ cms:
original_type: CHAR
text: 'State Reported Dual Eligible Status Code: October'
width: 2.0
+ reference: https://resdac.org/cms-data/variables/monthly-medicare-medicaid-dual-eligibility-code-october
type: VARCHAR(2)
- DUAL_11:
description:
@@ -4235,6 +4809,7 @@ cms:
original_type: CHAR
text: 'State Reported Dual Eligible Status Code: November'
width: 2.0
+ reference: https://resdac.org/cms-data/variables/monthly-medicare-medicaid-dual-eligibility-code-november
type: VARCHAR(2)
- DUAL_12:
description:
@@ -4242,6 +4817,7 @@ cms:
original_type: CHAR
text: 'State Reported Dual Eligible Status Code: December'
width: 2.0
+ reference: https://resdac.org/cms-data/variables/monthly-medicare-medicaid-dual-eligibility-code-december
type: VARCHAR(2)
- CSTSHR01:
description:
@@ -4249,6 +4825,7 @@ cms:
original_type: CHAR
text: 'Cost Share Group Code: January'
width: 2.0
+ reference: https://resdac.org/cms-data/variables/monthly-cost-sharing-group-under-part-d-low-income-subsidy-january
type: VARCHAR(2)
- CSTSHR02:
description:
@@ -4256,6 +4833,7 @@ cms:
original_type: CHAR
text: 'Cost Share Group Code: February'
width: 2.0
+ reference: https://resdac.org/cms-data/variables/monthly-cost-sharing-group-under-part-d-low-income-subsidy-february
type: VARCHAR(2)
- CSTSHR03:
description:
@@ -4263,6 +4841,7 @@ cms:
original_type: CHAR
text: 'Cost Share Group Code: March'
width: 2.0
+ reference: https://resdac.org/cms-data/variables/monthly-cost-sharing-group-under-part-d-low-income-subsidy-march
type: VARCHAR(2)
- CSTSHR04:
description:
@@ -4270,6 +4849,7 @@ cms:
original_type: CHAR
text: 'Cost Share Group Code: April'
width: 2.0
+ reference: https://resdac.org/cms-data/variables/monthly-cost-sharing-group-under-part-d-low-income-subsidy-april
type: VARCHAR(2)
- CSTSHR05:
description:
@@ -4277,6 +4857,7 @@ cms:
original_type: CHAR
text: 'Cost Share Group Code: May'
width: 2.0
+ reference: https://resdac.org/cms-data/variables/monthly-cost-sharing-group-under-part-d-low-income-subsidy-may
type: VARCHAR(2)
- CSTSHR06:
description:
@@ -4284,6 +4865,7 @@ cms:
original_type: CHAR
text: 'Cost Share Group Code: June'
width: 2.0
+ reference: https://resdac.org/cms-data/variables/monthly-cost-sharing-group-under-part-d-low-income-subsidy-june
type: VARCHAR(2)
- CSTSHR07:
description:
@@ -4291,6 +4873,7 @@ cms:
original_type: CHAR
text: 'Cost Share Group Code: July'
width: 2.0
+ reference: https://resdac.org/cms-data/variables/monthly-cost-sharing-group-under-part-d-low-income-subsidy-july
type: VARCHAR(2)
- CSTSHR08:
description:
@@ -4298,6 +4881,7 @@ cms:
original_type: CHAR
text: 'Cost Share Group Code: August'
width: 2.0
+ reference: https://resdac.org/cms-data/variables/monthly-cost-sharing-group-under-part-d-low-income-subsidy-august
type: VARCHAR(2)
- CSTSHR09:
description:
@@ -4305,6 +4889,7 @@ cms:
original_type: CHAR
text: 'Cost Share Group Code: September'
width: 2.0
+ reference: https://resdac.org/cms-data/variables/monthly-cost-sharing-group-under-part-d-low-income-subsidy-september
type: VARCHAR(2)
- CSTSHR10:
description:
@@ -4312,6 +4897,7 @@ cms:
original_type: CHAR
text: 'Cost Share Group Code: October'
width: 2.0
+ reference: https://resdac.org/cms-data/variables/monthly-cost-sharing-group-under-part-d-low-income-subsidy-october
type: VARCHAR(2)
- CSTSHR11:
description:
@@ -4319,6 +4905,7 @@ cms:
original_type: CHAR
text: 'Cost Share Group Code: November'
width: 2.0
+ reference: https://resdac.org/cms-data/variables/monthly-cost-sharing-group-under-part-d-low-income-subsidy-november
type: VARCHAR(2)
- CSTSHR12:
description:
@@ -4326,6 +4913,7 @@ cms:
original_type: CHAR
text: 'Cost Share Group Code: December'
width: 2.0
+ reference: https://resdac.org/cms-data/variables/monthly-cost-sharing-group-under-part-d-low-income-subsidy-december
type: VARCHAR(2)
- FILE:
description:
@@ -4334,6 +4922,7 @@ cms:
width: 128
index:
required_before_loading_data: true
+ reference: null
source:
type: file
type: VARCHAR(128)
@@ -4342,6 +4931,7 @@ cms:
original_type: BIGSERIAL
text: Record number in the file
width: null
+ reference: https://resdac.org/cms-data/variables/nch-near-line-record-identification-code-ric
type: BIGSERIAL
- STATE:
description:
@@ -4349,6 +4939,7 @@ cms:
text: SSA State Code
width: 2.0
index: true
+ reference: https://resdac.org/cms-data/variables/state-code-beneficiary-ssa-code
source:
code: GENERATED ALWAYS AS (STATE_CD) STORED
type: generated
@@ -4359,6 +4950,7 @@ cms:
text: Beneficiary Enrollment Reference Year
width: 4.0
index: true
+ reference: https://resdac.org/cms-data/variables/mbsf-cc-30/alzheimers-disease-end-year-indicator
source:
code: GENERATED ALWAYS AS (RFRNC_YR) STORED
type: generated
@@ -4369,6 +4961,7 @@ cms:
text: 5-digit ZIP Code
width: 5.0
index: true
+ reference: https://resdac.org/cms-data/variables/zip-code-beneficiary
source:
code: GENERATED ALWAYS AS (ZIP_CD) STORED
type: generated
@@ -4391,6 +4984,7 @@ cms:
text: Encrypted 723 Beneficiary ID
width: 15.0
index: true
+ reference: https://resdac.org/cms-data/variables/ccw-beneficiary-id
type: VARCHAR(15)
- RFRNC_YR:
description:
@@ -4398,6 +4992,7 @@ cms:
original_type: NUM
text: Beneficiary Enrollment Reference Year
width: 4.0
+ reference: https://resdac.org/cms-data/variables/reference-year-base
type: INT
- ENRL_SRC:
description:
@@ -4405,6 +5000,7 @@ cms:
original_type: CHAR
text: Enrollment Source
width: 3.0
+ reference: https://resdac.org/cms-data/variables/enrollment-source
type: VARCHAR(3)
- SAMPLE_GROUP:
description:
@@ -4412,6 +5008,7 @@ cms:
original_type: CHAR
text: Medicare 1, 5, or 20% Strict Sample Group Indicator
width: 2.0
+ reference: https://resdac.org/cms-data/variables/medicare-sample-group-indicator
type: VARCHAR(2)
- EFIVEPCT:
description:
@@ -4419,6 +5016,7 @@ cms:
original_type: CHAR
text: Medicare Enhanced 5% Sample Indicator
width: 1.0
+ reference: https://resdac.org/cms-data/variables/enhanced-medicare-5-sample-indicator
type: VARCHAR(1)
- CRNT_BIC:
description:
@@ -4426,6 +5024,7 @@ cms:
original_type: CHAR
text: Current Beneficiary Identification Code
width: 2.0
+ reference: https://resdac.org/cms-data/variables/current-beneficiary-identification-code
type: VARCHAR(2)
- STATE_CD:
description:
@@ -4433,6 +5032,7 @@ cms:
original_type: CHAR
text: SSA State Code
width: 2.0
+ reference: https://resdac.org/cms-data/variables/state-code-beneficiary-ssa-code
type: VARCHAR(2)
- CNTY_CD:
description:
@@ -4440,6 +5040,7 @@ cms:
original_type: CHAR
text: SSA County Code
width: 3.0
+ reference: https://resdac.org/sites/datadocumentation.resdac.org/files/Introduction%20to%20DE-SynPUF%20%28Slides%29.pdf
type: VARCHAR(3)
- ZIP_CD:
description:
@@ -4447,6 +5048,7 @@ cms:
original_type: CHAR
text: 5-digit ZIP Code
width: 5.0
+ reference: https://resdac.org/cms-data/variables/zip-code-beneficiary
type: VARCHAR(5)
- STATE_CNTY_FIPS_CD_01:
description:
@@ -4454,6 +5056,7 @@ cms:
original_type: CHAR
text: 'FIPS State-County Code: January'
width: 5.0
+ reference: https://resdac.org/cms-data/variables/state-and-county-fips-code-january
type: VARCHAR(5)
- STATE_CNTY_FIPS_CD_02:
description:
@@ -4461,6 +5064,7 @@ cms:
original_type: CHAR
text: 'FIPS State-County Code: February'
width: 5.0
+ reference: https://resdac.org/cms-data/variables/state-and-county-fips-code-february
type: VARCHAR(5)
- STATE_CNTY_FIPS_CD_03:
description:
@@ -4468,6 +5072,7 @@ cms:
original_type: CHAR
text: 'FIPS State-County Code: March'
width: 5.0
+ reference: https://resdac.org/cms-data/variables/state-and-county-fips-code-march
type: VARCHAR(5)
- STATE_CNTY_FIPS_CD_04:
description:
@@ -4475,6 +5080,7 @@ cms:
original_type: CHAR
text: 'FIPS State-County Code: April'
width: 5.0
+ reference: https://resdac.org/cms-data/variables/state-and-county-fips-code-april
type: VARCHAR(5)
- STATE_CNTY_FIPS_CD_05:
description:
@@ -4482,6 +5088,7 @@ cms:
original_type: CHAR
text: 'FIPS State-County Code: May'
width: 5.0
+ reference: https://resdac.org/cms-data/variables/state-and-county-fips-code-may
type: VARCHAR(5)
- STATE_CNTY_FIPS_CD_06:
description:
@@ -4489,6 +5096,7 @@ cms:
original_type: CHAR
text: 'FIPS State-County Code: June'
width: 5.0
+ reference: https://resdac.org/cms-data/variables/state-and-county-fips-code-june
type: VARCHAR(5)
- STATE_CNTY_FIPS_CD_07:
description:
@@ -4496,6 +5104,7 @@ cms:
original_type: CHAR
text: 'FIPS State-County Code: July'
width: 5.0
+ reference: https://resdac.org/cms-data/variables/state-and-county-fips-code-july
type: VARCHAR(5)
- STATE_CNTY_FIPS_CD_08:
description:
@@ -4503,6 +5112,7 @@ cms:
original_type: CHAR
text: 'FIPS State-County Code: August'
width: 5.0
+ reference: https://resdac.org/cms-data/variables/state-and-county-fips-code-august
type: VARCHAR(5)
- STATE_CNTY_FIPS_CD_09:
description:
@@ -4510,6 +5120,7 @@ cms:
original_type: CHAR
text: 'FIPS State-County Code: September'
width: 5.0
+ reference: https://resdac.org/cms-data/variables/state-and-county-fips-code-september
type: VARCHAR(5)
- STATE_CNTY_FIPS_CD_10:
description:
@@ -4517,6 +5128,7 @@ cms:
original_type: CHAR
text: 'FIPS State-County Code: October'
width: 5.0
+ reference: https://resdac.org/cms-data/variables/state-and-county-fips-code-october
type: VARCHAR(5)
- STATE_CNTY_FIPS_CD_11:
description:
@@ -4524,6 +5136,7 @@ cms:
original_type: CHAR
text: 'FIPS State-County Code: November'
width: 5.0
+ reference: https://resdac.org/cms-data/variables/state-and-county-fips-code-november
type: VARCHAR(5)
- STATE_CNTY_FIPS_CD_12:
description:
@@ -4531,6 +5144,7 @@ cms:
original_type: CHAR
text: 'FIPS State-County Code: December'
width: 5.0
+ reference: https://resdac.org/cms-data/variables/state-and-county-fips-code-december
type: VARCHAR(5)
- AGE:
description:
@@ -4538,6 +5152,7 @@ cms:
original_type: NUM
text: Age at the End of the Reference Year
width: 3.0
+ reference: https://resdac.org/cms-data/variables/age-beneficiary-end-year
type: INT
- BENE_DOB:
description:
@@ -4545,6 +5160,7 @@ cms:
original_type: DATE
text: Beneficiary Date of Birth
width: 8.0
+ reference: https://resdac.org/cms-data/variables/beneficiary-date-birth
type: DATE
- V_DOD_SW:
description:
@@ -4552,6 +5168,7 @@ cms:
original_type: CHAR
text: Valid Date of Death Switch
width: 1.0
+ reference: https://resdac.org/cms-data/variables/date-death
type: VARCHAR(1)
- DEATH_DT:
description:
@@ -4559,6 +5176,7 @@ cms:
original_type: DATE
text: Beneficiary Date of Death
width: 8.0
+ reference: https://resdac.org/cms-data/variables/date-death
type: DATE
- SEX:
description:
@@ -4566,6 +5184,7 @@ cms:
original_type: CHAR
text: Sex
width: 1.0
+ reference: https://resdac.org/sites/datadocumentation.resdac.org/files/Introduction%20to%20DE-SynPUF%20%28Slides%29.pdf
type: VARCHAR(1)
- RACE:
description:
@@ -4573,6 +5192,7 @@ cms:
original_type: CHAR
text: Beneficiary Race Code
width: 1.0
+ reference: https://resdac.org/cms-data/variables/beneficiary-race-code-base
type: VARCHAR(1)
- RTI_RACE_CD:
description:
@@ -4580,6 +5200,7 @@ cms:
original_type: CHAR
text: Research Triangle Institute (RTI) Race Code
width: 1.0
+ reference: https://resdac.org/cms-data/variables/research-triangle-institute-rti-race-code
type: VARCHAR(1)
- COVSTART:
description:
@@ -4587,6 +5208,7 @@ cms:
original_type: DATE
text: Medicare Coverage Start Date
width: 8.0
+ reference: https://resdac.org/cms-data/variables/medicare-coverage-start-date
type: DATE
- OREC:
description:
@@ -4594,6 +5216,7 @@ cms:
original_type: CHAR
text: Original Reason for Entitlement Code
width: 1.0
+ reference: null
type: VARCHAR(1)
- CREC:
description:
@@ -4601,6 +5224,7 @@ cms:
original_type: CHAR
text: Current Reason for Entitlement Code
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medicare-current-reason-entitlement-code-crec
type: VARCHAR(1)
- ESRD_IND:
description:
@@ -4608,6 +5232,7 @@ cms:
original_type: CHAR
text: End-Stage Renal Disease (ESRD) Indicator
width: 1.0
+ reference: https://resdac.org/sites/datadocumentation.resdac.org/files/Introduction%20to%20DE-SynPUF%20%28Slides%29.pdf
type: VARCHAR(1)
- MDCR_STUS_CD_01:
description:
@@ -4615,6 +5240,7 @@ cms:
original_type: CHAR
text: 'Medicare Status Code: January'
width: 2.0
+ reference: https://resdac.org/cms-data/variables/medicare-status-code-january
type: VARCHAR(2)
- MDCR_STUS_CD_02:
description:
@@ -4622,6 +5248,7 @@ cms:
original_type: CHAR
text: 'Medicare Status Code: February'
width: 2.0
+ reference: https://resdac.org/cms-data/variables/medicare-status-code-february
type: VARCHAR(2)
- MDCR_STUS_CD_03:
description:
@@ -4629,6 +5256,7 @@ cms:
original_type: CHAR
text: 'Medicare Status Code: March'
width: 2.0
+ reference: https://resdac.org/cms-data/variables/medicare-status-code-march
type: VARCHAR(2)
- MDCR_STUS_CD_04:
description:
@@ -4636,6 +5264,7 @@ cms:
original_type: CHAR
text: 'Medicare Status Code: April'
width: 2.0
+ reference: https://resdac.org/cms-data/variables/medicare-status-code-april
type: VARCHAR(2)
- MDCR_STUS_CD_05:
description:
@@ -4643,6 +5272,7 @@ cms:
original_type: CHAR
text: 'Medicare Status Code: May'
width: 2.0
+ reference: https://resdac.org/cms-data/variables/medicare-status-code-may
type: VARCHAR(2)
- MDCR_STUS_CD_06:
description:
@@ -4650,6 +5280,7 @@ cms:
original_type: CHAR
text: 'Medicare Status Code: June'
width: 2.0
+ reference: https://resdac.org/cms-data/variables/medicare-status-code-june
type: VARCHAR(2)
- MDCR_STUS_CD_07:
description:
@@ -4657,6 +5288,7 @@ cms:
original_type: CHAR
text: 'Medicare Status Code: July'
width: 2.0
+ reference: https://resdac.org/cms-data/variables/medicare-status-code-july
type: VARCHAR(2)
- MDCR_STUS_CD_08:
description:
@@ -4664,6 +5296,7 @@ cms:
original_type: CHAR
text: 'Medicare Status Code: August'
width: 2.0
+ reference: https://resdac.org/cms-data/variables/medicare-status-code-august
type: VARCHAR(2)
- MDCR_STUS_CD_09:
description:
@@ -4671,6 +5304,7 @@ cms:
original_type: CHAR
text: 'Medicare Status Code: September'
width: 2.0
+ reference: https://resdac.org/cms-data/variables/medicare-status-code-september
type: VARCHAR(2)
- MDCR_STUS_CD_10:
description:
@@ -4678,6 +5312,7 @@ cms:
original_type: CHAR
text: 'Medicare Status Code: October'
width: 2.0
+ reference: https://resdac.org/cms-data/variables/medicare-status-code-october
type: VARCHAR(2)
- MDCR_STUS_CD_11:
description:
@@ -4685,6 +5320,7 @@ cms:
original_type: CHAR
text: 'Medicare Status Code: November'
width: 2.0
+ reference: https://resdac.org/cms-data/variables/medicare-status-code-november
type: VARCHAR(2)
- MDCR_STUS_CD_12:
description:
@@ -4692,6 +5328,7 @@ cms:
original_type: CHAR
text: 'Medicare Status Code: December'
width: 2.0
+ reference: https://resdac.org/cms-data/variables/medicare-status-code-december
type: VARCHAR(2)
- A_TRM_CD:
description:
@@ -4699,6 +5336,7 @@ cms:
original_type: CHAR
text: Part A Termination Code
width: 1.0
+ reference: https://resdac.org/cms-data/variables/part-termination-code
type: VARCHAR(1)
- B_TRM_CD:
description:
@@ -4706,6 +5344,7 @@ cms:
original_type: CHAR
text: Part B Termination Code
width: 1.0
+ reference: https://resdac.org/cms-data/variables/part-b-termination-code
type: VARCHAR(1)
- A_MO_CNT:
description:
@@ -4713,6 +5352,7 @@ cms:
original_type: NUM
text: Hospital Insurance (HI) Coverage Months Count
width: 3.0
+ reference: https://resdac.org/cms-data/variables/part-months-count
type: INT
- B_MO_CNT:
description:
@@ -4720,6 +5360,7 @@ cms:
original_type: NUM
text: Supplemental Medical Insurance (SMI) Coverage Months Count
width: 3.0
+ reference: https://resdac.org/cms-data/variables/part-b-months-count
type: INT
- BUYIN_MO:
description:
@@ -4727,6 +5368,7 @@ cms:
original_type: NUM
text: State Buy-In (SBI) Coverage Months
width: 3.0
+ reference: https://resdac.org/cms-data/variables/state-buy-coverage-count
type: INT
- HMO_MO:
description:
@@ -4734,6 +5376,7 @@ cms:
original_type: NUM
text: Health Maintenance Organization (HMO) Coverage Months
width: 3.0
+ reference: https://resdac.org/cms-data/variables/hmo-coverage-count
type: INT
- PTD_MO:
description:
@@ -4741,6 +5384,7 @@ cms:
original_type: NUM
text: Part D Contract Plan Coverage Months
width: 3.0
+ reference: https://resdac.org/cms-data/variables/months-part-d-coverage
type: INT
- RDS_MO:
description:
@@ -4748,6 +5392,7 @@ cms:
original_type: NUM
text: Retiree Drug Subsidy (RDS) Coverage Months
width: 3.0
+ reference: https://resdac.org/cms-data/variables/months-retiree-drug-subsidy-coverage
type: INT
- DUAL_MO:
description:
@@ -4755,6 +5400,7 @@ cms:
original_type: NUM
text: Medicaid Dual Eligible Months
width: 3.0
+ reference: https://resdac.org/cms-data/variables/months-dual-eligibility
type: INT
- BUYIN01:
description:
@@ -4762,6 +5408,7 @@ cms:
original_type: CHAR
text: 'Medicare Entitlement/ Buy-In Indicator: January'
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medicare-entitlementbuy-indicator-november-0
type: VARCHAR(1)
- BUYIN02:
description:
@@ -4769,6 +5416,7 @@ cms:
original_type: CHAR
text: 'Medicare Entitlement/ Buy-In Indicator: February'
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medicare-entitlementbuy-indicator
type: VARCHAR(1)
- BUYIN03:
description:
@@ -4776,6 +5424,7 @@ cms:
original_type: CHAR
text: 'Medicare Entitlement/ Buy-In Indicator: March'
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medicare-entitlementbuy-indicator
type: VARCHAR(1)
- BUYIN04:
description:
@@ -4783,6 +5432,7 @@ cms:
original_type: CHAR
text: 'Medicare Entitlement/ Buy-In Indicator: April'
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medicare-entitlementbuy-indicator
type: VARCHAR(1)
- BUYIN05:
description:
@@ -4790,6 +5440,7 @@ cms:
original_type: CHAR
text: 'Medicare Entitlement/ Buy-In Indicator: May'
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medicare-entitlementbuy-indicator
type: VARCHAR(1)
- BUYIN06:
description:
@@ -4797,6 +5448,7 @@ cms:
original_type: CHAR
text: 'Medicare Entitlement/ Buy-In Indicator: June'
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medicare-entitlementbuy-indicator
type: VARCHAR(1)
- BUYIN07:
description:
@@ -4804,6 +5456,7 @@ cms:
original_type: CHAR
text: 'Medicare Entitlement/ Buy-In Indicator: July'
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medicare-entitlementbuy-indicator
type: VARCHAR(1)
- BUYIN08:
description:
@@ -4811,6 +5464,7 @@ cms:
original_type: CHAR
text: 'Medicare Entitlement/ Buy-In Indicator: August'
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medicare-entitlementbuy-indicator
type: VARCHAR(1)
- BUYIN09:
description:
@@ -4818,6 +5472,7 @@ cms:
original_type: CHAR
text: 'Medicare Entitlement/ Buy-In Indicator: September'
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medicare-entitlementbuy-indicator
type: VARCHAR(1)
- BUYIN10:
description:
@@ -4825,6 +5480,7 @@ cms:
original_type: CHAR
text: 'Medicare Entitlement/ Buy-In Indicator: October'
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medicare-entitlementbuy-indicator
type: VARCHAR(1)
- BUYIN11:
description:
@@ -4832,6 +5488,7 @@ cms:
original_type: CHAR
text: 'Medicare Entitlement/ Buy-In Indicator: November'
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medicare-entitlementbuy-indicator
type: VARCHAR(1)
- BUYIN12:
description:
@@ -4839,6 +5496,7 @@ cms:
original_type: CHAR
text: 'Medicare Entitlement/ Buy-In Indicator: December'
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medicare-entitlementbuy-indicator
type: VARCHAR(1)
- HMOIND01:
description:
@@ -4846,6 +5504,7 @@ cms:
original_type: CHAR
text: 'HMO Indicator: January'
width: 1.0
+ reference: https://resdac.org/cms-data/variables/hmo-indicator
type: VARCHAR(1)
- HMOIND02:
description:
@@ -4853,6 +5512,7 @@ cms:
original_type: CHAR
text: 'HMO Indicator: February'
width: 1.0
+ reference: https://resdac.org/cms-data/variables/hmo-indicator
type: VARCHAR(1)
- HMOIND03:
description:
@@ -4860,6 +5520,7 @@ cms:
original_type: CHAR
text: 'HMO Indicator: March'
width: 1.0
+ reference: https://resdac.org/cms-data/variables/hmo-indicator
type: VARCHAR(1)
- HMOIND04:
description:
@@ -4867,6 +5528,7 @@ cms:
original_type: CHAR
text: 'HMO Indicator: April'
width: 1.0
+ reference: https://resdac.org/cms-data/variables/hmo-indicator
type: VARCHAR(1)
- HMOIND05:
description:
@@ -4874,6 +5536,7 @@ cms:
original_type: CHAR
text: 'HMO Indicator: May'
width: 1.0
+ reference: https://resdac.org/cms-data/variables/hmo-indicator
type: VARCHAR(1)
- HMOIND06:
description:
@@ -4881,6 +5544,7 @@ cms:
original_type: CHAR
text: 'HMO Indicator: June'
width: 1.0
+ reference: https://resdac.org/cms-data/variables/hmo-indicator
type: VARCHAR(1)
- HMOIND07:
description:
@@ -4888,6 +5552,7 @@ cms:
original_type: CHAR
text: 'HMO Indicator: July'
width: 1.0
+ reference: https://resdac.org/cms-data/variables/hmo-indicator
type: VARCHAR(1)
- HMOIND08:
description:
@@ -4895,6 +5560,7 @@ cms:
original_type: CHAR
text: 'HMO Indicator: August'
width: 1.0
+ reference: https://resdac.org/cms-data/variables/hmo-indicator
type: VARCHAR(1)
- HMOIND09:
description:
@@ -4902,6 +5568,7 @@ cms:
original_type: CHAR
text: 'HMO Indicator: September'
width: 1.0
+ reference: https://resdac.org/cms-data/variables/hmo-indicator
type: VARCHAR(1)
- HMOIND10:
description:
@@ -4909,6 +5576,7 @@ cms:
original_type: CHAR
text: 'HMO Indicator: October'
width: 1.0
+ reference: https://resdac.org/cms-data/variables/hmo-indicator
type: VARCHAR(1)
- HMOIND11:
description:
@@ -4916,6 +5584,7 @@ cms:
original_type: CHAR
text: 'HMO Indicator: November'
width: 1.0
+ reference: https://resdac.org/cms-data/variables/hmo-indicator
type: VARCHAR(1)
- HMOIND12:
description:
@@ -4923,6 +5592,7 @@ cms:
original_type: CHAR
text: 'HMO Indicator: December'
width: 1.0
+ reference: https://resdac.org/cms-data/variables/hmo-indicator
type: VARCHAR(1)
- PTC_CNTRCT_ID_01:
description:
@@ -4930,6 +5600,7 @@ cms:
original_type: CHAR
text: 'Part C Contract ID: January'
width: 5.0
+ reference: https://resdac.org/cms-data/variables/part-c-contract-number-january
type: VARCHAR(5)
- PTC_CNTRCT_ID_02:
description:
@@ -4937,6 +5608,7 @@ cms:
original_type: CHAR
text: 'Part C Contract ID: February'
width: 5.0
+ reference: https://resdac.org/cms-data/variables/part-c-contract-number-february
type: VARCHAR(5)
- PTC_CNTRCT_ID_03:
description:
@@ -4944,6 +5616,7 @@ cms:
original_type: CHAR
text: 'Part C Contract ID: March'
width: 5.0
+ reference: https://resdac.org/cms-data/variables/part-c-contract-number-march
type: VARCHAR(5)
- PTC_CNTRCT_ID_04:
description:
@@ -4951,6 +5624,7 @@ cms:
original_type: CHAR
text: 'Part C Contract ID: April'
width: 5.0
+ reference: https://resdac.org/cms-data/variables/part-c-contract-number-april
type: VARCHAR(5)
- PTC_CNTRCT_ID_05:
description:
@@ -4958,6 +5632,7 @@ cms:
original_type: CHAR
text: 'Part C Contract ID: May'
width: 5.0
+ reference: https://resdac.org/cms-data/variables/part-c-contract-number-may
type: VARCHAR(5)
- PTC_CNTRCT_ID_06:
description:
@@ -4965,6 +5640,7 @@ cms:
original_type: CHAR
text: 'Part C Contract ID: June'
width: 5.0
+ reference: https://resdac.org/cms-data/variables/part-c-contract-number-june
type: VARCHAR(5)
- PTC_CNTRCT_ID_07:
description:
@@ -4972,6 +5648,7 @@ cms:
original_type: CHAR
text: 'Part C Contract ID: July'
width: 5.0
+ reference: https://resdac.org/cms-data/variables/part-c-contract-number-july
type: VARCHAR(5)
- PTC_CNTRCT_ID_08:
description:
@@ -4979,6 +5656,7 @@ cms:
original_type: CHAR
text: 'Part C Contract ID: August'
width: 5.0
+ reference: https://resdac.org/cms-data/variables/part-c-contract-number-august
type: VARCHAR(5)
- PTC_CNTRCT_ID_09:
description:
@@ -4986,6 +5664,7 @@ cms:
original_type: CHAR
text: 'Part C Contract ID: September'
width: 5.0
+ reference: https://resdac.org/cms-data/variables/part-c-contract-number-september
type: VARCHAR(5)
- PTC_CNTRCT_ID_10:
description:
@@ -4993,6 +5672,7 @@ cms:
original_type: CHAR
text: 'Part C Contract ID: October'
width: 5.0
+ reference: https://resdac.org/cms-data/variables/part-c-contract-number-october
type: VARCHAR(5)
- PTC_CNTRCT_ID_11:
description:
@@ -5000,6 +5680,7 @@ cms:
original_type: CHAR
text: 'Part C Contract ID: November'
width: 5.0
+ reference: https://resdac.org/cms-data/variables/part-c-contract-number-november
type: VARCHAR(5)
- PTC_CNTRCT_ID_12:
description:
@@ -5007,6 +5688,7 @@ cms:
original_type: CHAR
text: 'Part C Contract ID: December'
width: 5.0
+ reference: https://resdac.org/cms-data/variables/part-c-contract-number-december
type: VARCHAR(5)
- PTC_PBP_ID_01:
description:
@@ -5014,6 +5696,7 @@ cms:
original_type: CHAR
text: 'Part C Plan Benefit Package ID: January'
width: 3.0
+ reference: https://resdac.org/cms-data/variables/part-c-pbp-number-january
type: VARCHAR(3)
- PTC_PBP_ID_02:
description:
@@ -5021,6 +5704,7 @@ cms:
original_type: CHAR
text: 'Part C Plan Benefit Package ID: February'
width: 3.0
+ reference: https://resdac.org/cms-data/variables/part-c-pbp-number-february
type: VARCHAR(3)
- PTC_PBP_ID_03:
description:
@@ -5028,6 +5712,7 @@ cms:
original_type: CHAR
text: 'Part C Plan Benefit Package ID: March'
width: 3.0
+ reference: https://resdac.org/cms-data/variables/part-c-pbp-number-march
type: VARCHAR(3)
- PTC_PBP_ID_04:
description:
@@ -5035,6 +5720,7 @@ cms:
original_type: CHAR
text: 'Part C Plan Benefit Package ID: April'
width: 3.0
+ reference: https://resdac.org/cms-data/variables/part-c-pbp-number-april
type: VARCHAR(3)
- PTC_PBP_ID_05:
description:
@@ -5042,6 +5728,7 @@ cms:
original_type: CHAR
text: 'Part C Plan Benefit Package ID: May'
width: 3.0
+ reference: https://resdac.org/cms-data/variables/part-c-pbp-number-may
type: VARCHAR(3)
- PTC_PBP_ID_06:
description:
@@ -5049,6 +5736,7 @@ cms:
original_type: CHAR
text: 'Part C Plan Benefit Package ID: June'
width: 3.0
+ reference: https://resdac.org/cms-data/variables/part-c-pbp-number-june
type: VARCHAR(3)
- PTC_PBP_ID_07:
description:
@@ -5056,6 +5744,7 @@ cms:
original_type: CHAR
text: 'Part C Plan Benefit Package ID: July'
width: 3.0
+ reference: https://resdac.org/cms-data/variables/part-c-pbp-number-july
type: VARCHAR(3)
- PTC_PBP_ID_08:
description:
@@ -5063,6 +5752,7 @@ cms:
original_type: CHAR
text: 'Part C Plan Benefit Package ID: August'
width: 3.0
+ reference: https://resdac.org/cms-data/variables/part-c-pbp-number-august
type: VARCHAR(3)
- PTC_PBP_ID_09:
description:
@@ -5070,6 +5760,7 @@ cms:
original_type: CHAR
text: 'Part C Plan Benefit Package ID: September'
width: 3.0
+ reference: https://resdac.org/cms-data/variables/part-c-pbp-number-september
type: VARCHAR(3)
- PTC_PBP_ID_10:
description:
@@ -5077,6 +5768,7 @@ cms:
original_type: CHAR
text: 'Part C Plan Benefit Package ID: October'
width: 3.0
+ reference: https://resdac.org/cms-data/variables/part-c-pbp-number-october
type: VARCHAR(3)
- PTC_PBP_ID_11:
description:
@@ -5084,6 +5776,7 @@ cms:
original_type: CHAR
text: 'Part C Plan Benefit Package ID: November'
width: 3.0
+ reference: https://resdac.org/cms-data/variables/part-c-pbp-number-november
type: VARCHAR(3)
- PTC_PBP_ID_12:
description:
@@ -5091,6 +5784,7 @@ cms:
original_type: CHAR
text: 'Part C Plan Benefit Package ID: December'
width: 3.0
+ reference: https://resdac.org/cms-data/variables/part-c-pbp-number-december
type: VARCHAR(3)
- PTC_PLAN_TYPE_CD_01:
description:
@@ -5098,6 +5792,7 @@ cms:
original_type: CHAR
text: 'Part C Plan Type Code: January'
width: 3.0
+ reference: https://resdac.org/cms-data/variables/part-c-plan-type-code-january
type: VARCHAR(3)
- PTC_PLAN_TYPE_CD_02:
description:
@@ -5105,6 +5800,7 @@ cms:
original_type: CHAR
text: 'Part C Plan Type Code: February'
width: 3.0
+ reference: https://resdac.org/cms-data/variables/part-c-plan-type-code-february
type: VARCHAR(3)
- PTC_PLAN_TYPE_CD_03:
description:
@@ -5112,6 +5808,7 @@ cms:
original_type: CHAR
text: 'Part C Plan Type Code: March'
width: 3.0
+ reference: https://resdac.org/cms-data/variables/part-c-plan-type-code-march
type: VARCHAR(3)
- PTC_PLAN_TYPE_CD_04:
description:
@@ -5119,6 +5816,7 @@ cms:
original_type: CHAR
text: 'Part C Plan Type Code: April'
width: 3.0
+ reference: https://resdac.org/cms-data/variables/part-c-plan-type-code-april
type: VARCHAR(3)
- PTC_PLAN_TYPE_CD_05:
description:
@@ -5126,6 +5824,7 @@ cms:
original_type: CHAR
text: 'Part C Plan Type Code: May'
width: 3.0
+ reference: https://resdac.org/cms-data/variables/part-c-plan-type-code-may
type: VARCHAR(3)
- PTC_PLAN_TYPE_CD_06:
description:
@@ -5133,6 +5832,7 @@ cms:
original_type: CHAR
text: 'Part C Plan Type Code: June'
width: 3.0
+ reference: https://resdac.org/cms-data/variables/part-c-plan-type-code-june
type: VARCHAR(3)
- PTC_PLAN_TYPE_CD_07:
description:
@@ -5140,6 +5840,7 @@ cms:
original_type: CHAR
text: 'Part C Plan Type Code: July'
width: 3.0
+ reference: https://resdac.org/cms-data/variables/part-c-plan-type-code-july
type: VARCHAR(3)
- PTC_PLAN_TYPE_CD_08:
description:
@@ -5147,6 +5848,7 @@ cms:
original_type: CHAR
text: 'Part C Plan Type Code: August'
width: 3.0
+ reference: https://resdac.org/cms-data/variables/part-c-plan-type-code-august
type: VARCHAR(3)
- PTC_PLAN_TYPE_CD_09:
description:
@@ -5154,6 +5856,7 @@ cms:
original_type: CHAR
text: 'Part C Plan Type Code: September'
width: 3.0
+ reference: https://resdac.org/cms-data/variables/part-c-plan-type-code-september
type: VARCHAR(3)
- PTC_PLAN_TYPE_CD_10:
description:
@@ -5161,6 +5864,7 @@ cms:
original_type: CHAR
text: 'Part C Plan Type Code: October'
width: 3.0
+ reference: https://resdac.org/cms-data/variables/part-c-plan-type-code-october
type: VARCHAR(3)
- PTC_PLAN_TYPE_CD_11:
description:
@@ -5168,6 +5872,7 @@ cms:
original_type: CHAR
text: 'Part C Plan Type Code: November'
width: 3.0
+ reference: https://resdac.org/cms-data/variables/part-c-plan-type-code-november
type: VARCHAR(3)
- PTC_PLAN_TYPE_CD_12:
description:
@@ -5175,6 +5880,7 @@ cms:
original_type: CHAR
text: 'Part C Plan Type Code: December'
width: 3.0
+ reference: https://resdac.org/cms-data/variables/part-c-plan-type-code-december
type: VARCHAR(3)
- PTDCNTRCT01:
description:
@@ -5182,6 +5888,7 @@ cms:
original_type: CHAR
text: 'Part D Contract ID: January'
width: 5.0
+ reference: https://resdac.org/cms-data/variables/monthly-part-d-contract-number-january
type: VARCHAR(5)
- PTDCNTRCT02:
description:
@@ -5189,6 +5896,7 @@ cms:
original_type: CHAR
text: 'Part D Contract ID: February'
width: 5.0
+ reference: https://resdac.org/cms-data/variables/monthly-part-d-contract-number-february
type: VARCHAR(5)
- PTDCNTRCT03:
description:
@@ -5196,6 +5904,7 @@ cms:
original_type: CHAR
text: 'Part D Contract ID: March'
width: 5.0
+ reference: https://resdac.org/cms-data/variables/monthly-part-d-contract-number-march
type: VARCHAR(5)
- PTDCNTRCT04:
description:
@@ -5203,6 +5912,7 @@ cms:
original_type: CHAR
text: 'Part D Contract ID: April'
width: 5.0
+ reference: https://resdac.org/cms-data/variables/monthly-part-d-contract-number-april
type: VARCHAR(5)
- PTDCNTRCT05:
description:
@@ -5210,6 +5920,7 @@ cms:
original_type: CHAR
text: 'Part D Contract ID: May'
width: 5.0
+ reference: https://resdac.org/cms-data/variables/monthly-part-d-contract-number-may
type: VARCHAR(5)
- PTDCNTRCT06:
description:
@@ -5217,6 +5928,7 @@ cms:
original_type: CHAR
text: 'Part D Contract ID: June'
width: 5.0
+ reference: https://resdac.org/cms-data/variables/monthly-part-d-contract-number-june
type: VARCHAR(5)
- PTDCNTRCT07:
description:
@@ -5224,6 +5936,7 @@ cms:
original_type: CHAR
text: 'Part D Contract ID: July'
width: 5.0
+ reference: https://resdac.org/cms-data/variables/monthly-part-d-contract-number-july
type: VARCHAR(5)
- PTDCNTRCT08:
description:
@@ -5231,6 +5944,7 @@ cms:
original_type: CHAR
text: 'Part D Contract ID: August'
width: 5.0
+ reference: https://resdac.org/cms-data/variables/monthly-part-d-contract-number-august
type: VARCHAR(5)
- PTDCNTRCT09:
description:
@@ -5238,6 +5952,7 @@ cms:
original_type: CHAR
text: 'Part D Contract ID: September'
width: 5.0
+ reference: https://resdac.org/cms-data/variables/monthly-part-d-contract-number-september
type: VARCHAR(5)
- PTDCNTRCT10:
description:
@@ -5245,6 +5960,7 @@ cms:
original_type: CHAR
text: 'Part D Contract ID: October'
width: 5.0
+ reference: https://resdac.org/cms-data/variables/monthly-part-d-contract-number-october
type: VARCHAR(5)
- PTDCNTRCT11:
description:
@@ -5252,6 +5968,7 @@ cms:
original_type: CHAR
text: 'Part D Contract ID: November'
width: 5.0
+ reference: https://resdac.org/cms-data/variables/monthly-part-d-contract-number-november
type: VARCHAR(5)
- PTDCNTRCT12:
description:
@@ -5259,6 +5976,7 @@ cms:
original_type: CHAR
text: 'Part D Contract ID: December'
width: 5.0
+ reference: https://resdac.org/cms-data/variables/monthly-part-d-contract-number-december
type: VARCHAR(5)
- PTDPBPID01:
description:
@@ -5266,6 +5984,7 @@ cms:
original_type: CHAR
text: 'Part D Plan Benefit Package ID: January'
width: 3.0
+ reference: https://resdac.org/cms-data/variables/monthly-part-d-plan-benefit-package-number-january
type: VARCHAR(3)
- PTDPBPID02:
description:
@@ -5273,6 +5992,7 @@ cms:
original_type: CHAR
text: 'Part D Plan Benefit Package ID: February'
width: 3.0
+ reference: https://resdac.org/cms-data/variables/monthly-part-d-plan-benefit-package-number-february
type: VARCHAR(3)
- PTDPBPID03:
description:
@@ -5280,6 +6000,7 @@ cms:
original_type: CHAR
text: 'Part D Plan Benefit Package ID: March'
width: 3.0
+ reference: https://resdac.org/cms-data/variables/monthly-part-d-plan-benefit-package-number-march
type: VARCHAR(3)
- PTDPBPID04:
description:
@@ -5287,6 +6008,7 @@ cms:
original_type: CHAR
text: 'Part D Plan Benefit Package ID: April'
width: 3.0
+ reference: https://resdac.org/cms-data/variables/monthly-part-d-plan-benefit-package-number-april
type: VARCHAR(3)
- PTDPBPID05:
description:
@@ -5294,6 +6016,7 @@ cms:
original_type: CHAR
text: 'Part D Plan Benefit Package ID: May'
width: 3.0
+ reference: https://resdac.org/cms-data/variables/monthly-part-d-plan-benefit-package-number-may
type: VARCHAR(3)
- PTDPBPID06:
description:
@@ -5301,6 +6024,7 @@ cms:
original_type: CHAR
text: 'Part D Plan Benefit Package ID: June'
width: 3.0
+ reference: https://resdac.org/cms-data/variables/monthly-part-d-plan-benefit-package-number-june
type: VARCHAR(3)
- PTDPBPID07:
description:
@@ -5308,6 +6032,7 @@ cms:
original_type: CHAR
text: 'Part D Plan Benefit Package ID: July'
width: 3.0
+ reference: https://resdac.org/cms-data/variables/monthly-part-d-plan-benefit-package-number-july
type: VARCHAR(3)
- PTDPBPID08:
description:
@@ -5315,6 +6040,7 @@ cms:
original_type: CHAR
text: 'Part D Plan Benefit Package ID: August'
width: 3.0
+ reference: https://resdac.org/cms-data/variables/monthly-part-d-plan-benefit-package-number-august
type: VARCHAR(3)
- PTDPBPID09:
description:
@@ -5322,6 +6048,7 @@ cms:
original_type: CHAR
text: 'Part D Plan Benefit Package ID: September'
width: 3.0
+ reference: https://resdac.org/cms-data/variables/monthly-part-d-plan-benefit-package-number-september
type: VARCHAR(3)
- PTDPBPID10:
description:
@@ -5329,6 +6056,7 @@ cms:
original_type: CHAR
text: 'Part D Plan Benefit Package ID: October'
width: 3.0
+ reference: https://resdac.org/cms-data/variables/monthly-part-d-plan-benefit-package-number-october
type: VARCHAR(3)
- PTDPBPID11:
description:
@@ -5336,6 +6064,7 @@ cms:
original_type: CHAR
text: 'Part D Plan Benefit Package ID: November'
width: 3.0
+ reference: https://resdac.org/cms-data/variables/monthly-part-d-plan-benefit-package-number-november
type: VARCHAR(3)
- PTDPBPID12:
description:
@@ -5343,6 +6072,7 @@ cms:
original_type: CHAR
text: 'Part D Plan Benefit Package ID: December'
width: 3.0
+ reference: https://resdac.org/cms-data/variables/monthly-part-d-plan-benefit-package-number-december
type: VARCHAR(3)
- SGMTID01:
description:
@@ -5350,6 +6080,7 @@ cms:
original_type: CHAR
text: 'Part D Segment ID: January'
width: 3.0
+ reference: https://resdac.org/cms-data/variables/monthly-part-d-market-segment-identifier-january
type: VARCHAR(3)
- SGMTID02:
description:
@@ -5357,6 +6088,7 @@ cms:
original_type: CHAR
text: 'Part D Segment ID: February'
width: 3.0
+ reference: https://resdac.org/cms-data/variables/monthly-part-d-market-segment-identifier-february
type: VARCHAR(3)
- SGMTID03:
description:
@@ -5364,6 +6096,7 @@ cms:
original_type: CHAR
text: 'Part D Segment ID: March'
width: 3.0
+ reference: https://resdac.org/cms-data/variables/monthly-part-d-market-segment-identifier-march
type: VARCHAR(3)
- SGMTID04:
description:
@@ -5371,6 +6104,7 @@ cms:
original_type: CHAR
text: 'Part D Segment ID: April'
width: 3.0
+ reference: https://resdac.org/cms-data/variables/monthly-part-d-market-segment-identifier-april
type: VARCHAR(3)
- SGMTID05:
description:
@@ -5378,6 +6112,7 @@ cms:
original_type: CHAR
text: 'Part D Segment ID: May'
width: 3.0
+ reference: https://resdac.org/cms-data/variables/monthly-part-d-market-segment-identifier-may
type: VARCHAR(3)
- SGMTID06:
description:
@@ -5385,6 +6120,7 @@ cms:
original_type: CHAR
text: 'Part D Segment ID: June'
width: 3.0
+ reference: https://resdac.org/cms-data/variables/monthly-part-d-market-segment-identifier-june
type: VARCHAR(3)
- SGMTID07:
description:
@@ -5392,6 +6128,7 @@ cms:
original_type: CHAR
text: 'Part D Segment ID: July'
width: 3.0
+ reference: https://resdac.org/cms-data/variables/monthly-part-d-market-segment-identifier-july
type: VARCHAR(3)
- SGMTID08:
description:
@@ -5399,6 +6136,7 @@ cms:
original_type: CHAR
text: 'Part D Segment ID: August'
width: 3.0
+ reference: https://resdac.org/cms-data/variables/monthly-part-d-market-segment-identifier-august
type: VARCHAR(3)
- SGMTID09:
description:
@@ -5406,6 +6144,7 @@ cms:
original_type: CHAR
text: 'Part D Segment ID: September'
width: 3.0
+ reference: https://resdac.org/cms-data/variables/monthly-part-d-market-segment-identifier-september
type: VARCHAR(3)
- SGMTID10:
description:
@@ -5413,6 +6152,7 @@ cms:
original_type: CHAR
text: 'Part D Segment ID: October'
width: 3.0
+ reference: https://resdac.org/cms-data/variables/monthly-part-d-market-segment-identifier-october
type: VARCHAR(3)
- SGMTID11:
description:
@@ -5420,6 +6160,7 @@ cms:
original_type: CHAR
text: 'Part D Segment ID: November'
width: 3.0
+ reference: https://resdac.org/cms-data/variables/monthly-part-d-market-segment-identifier-november
type: VARCHAR(3)
- SGMTID12:
description:
@@ -5427,6 +6168,7 @@ cms:
original_type: CHAR
text: 'Part D Segment ID: December'
width: 3.0
+ reference: https://resdac.org/cms-data/variables/monthly-part-d-market-segment-identifier-december
type: VARCHAR(3)
- RDSIND01:
description:
@@ -5434,6 +6176,7 @@ cms:
original_type: CHAR
text: 'Retiree Drug Subsidy Indicators: January'
width: 1.0
+ reference: https://resdac.org/cms-data/variables/part-d-retiree-drug-subsidy-indicator-january
type: VARCHAR(1)
- RDSIND02:
description:
@@ -5441,6 +6184,7 @@ cms:
original_type: CHAR
text: 'Retiree Drug Subsidy Indicators: February'
width: 1.0
+ reference: null
type: VARCHAR(1)
- RDSIND03:
description:
@@ -5448,6 +6192,7 @@ cms:
original_type: CHAR
text: 'Retiree Drug Subsidy Indicators: March'
width: 1.0
+ reference: https://resdac.org/cms-data/variables/part-d-retiree-drug-subsidy-indicator-march
type: VARCHAR(1)
- RDSIND04:
description:
@@ -5455,6 +6200,7 @@ cms:
original_type: CHAR
text: 'Retiree Drug Subsidy Indicators: April'
width: 1.0
+ reference: https://resdac.org/cms-data/variables/part-d-retiree-drug-subsidy-indicator-april
type: VARCHAR(1)
- RDSIND05:
description:
@@ -5462,6 +6208,7 @@ cms:
original_type: CHAR
text: 'Retiree Drug Subsidy Indicators: May'
width: 1.0
+ reference: https://resdac.org/cms-data/variables/part-d-retiree-drug-subsidy-indicator-may
type: VARCHAR(1)
- RDSIND06:
description:
@@ -5469,6 +6216,7 @@ cms:
original_type: CHAR
text: 'Retiree Drug Subsidy Indicators: June'
width: 1.0
+ reference: https://resdac.org/cms-data/variables/part-d-retiree-drug-subsidy-indicator-june
type: VARCHAR(1)
- RDSIND07:
description:
@@ -5476,6 +6224,7 @@ cms:
original_type: CHAR
text: 'Retiree Drug Subsidy Indicators: July'
width: 1.0
+ reference: https://resdac.org/cms-data/variables/part-d-retiree-drug-subsidy-indicator-july
type: VARCHAR(1)
- RDSIND08:
description:
@@ -5483,6 +6232,7 @@ cms:
original_type: CHAR
text: 'Retiree Drug Subsidy Indicators: August'
width: 1.0
+ reference: https://resdac.org/cms-data/variables/part-d-retiree-drug-subsidy-indicator-august
type: VARCHAR(1)
- RDSIND09:
description:
@@ -5490,6 +6240,7 @@ cms:
original_type: CHAR
text: 'Retiree Drug Subsidy Indicators: September'
width: 1.0
+ reference: https://resdac.org/cms-data/variables/part-d-retiree-drug-subsidy-indicator-september
type: VARCHAR(1)
- RDSIND10:
description:
@@ -5497,6 +6248,7 @@ cms:
original_type: CHAR
text: 'Retiree Drug Subsidy Indicators: October'
width: 1.0
+ reference: https://resdac.org/cms-data/variables/part-d-retiree-drug-subsidy-indicator-october
type: VARCHAR(1)
- RDSIND11:
description:
@@ -5504,6 +6256,7 @@ cms:
original_type: CHAR
text: 'Retiree Drug Subsidy Indicators: November'
width: 1.0
+ reference: https://resdac.org/cms-data/variables/part-d-retiree-drug-subsidy-indicator-november
type: VARCHAR(1)
- RDSIND12:
description:
@@ -5511,6 +6264,7 @@ cms:
original_type: CHAR
text: 'Retiree Drug Subsidy Indicators: December'
width: 1.0
+ reference: https://resdac.org/cms-data/variables/part-d-retiree-drug-subsidy-indicator-december
type: VARCHAR(1)
- DUAL_01:
description:
@@ -5518,6 +6272,7 @@ cms:
original_type: CHAR
text: 'State Reported Dual Eligible Status Code: January'
width: 2.0
+ reference: https://resdac.org/cms-data/variables/monthly-medicare-medicaid-dual-eligibility-code-january
type: VARCHAR(2)
- DUAL_02:
description:
@@ -5525,6 +6280,7 @@ cms:
original_type: CHAR
text: 'State Reported Dual Eligible Status Code: February'
width: 2.0
+ reference: https://resdac.org/cms-data/variables/monthly-medicare-medicaid-dual-eligibility-code-february
type: VARCHAR(2)
- DUAL_03:
description:
@@ -5532,6 +6288,7 @@ cms:
original_type: CHAR
text: 'State Reported Dual Eligible Status Code: March'
width: 2.0
+ reference: https://resdac.org/cms-data/variables/monthly-medicare-medicaid-dual-eligibility-code-march
type: VARCHAR(2)
- DUAL_04:
description:
@@ -5539,6 +6296,7 @@ cms:
original_type: CHAR
text: 'State Reported Dual Eligible Status Code: April'
width: 2.0
+ reference: https://resdac.org/cms-data/variables/monthly-medicare-medicaid-dual-eligibility-code-april
type: VARCHAR(2)
- DUAL_05:
description:
@@ -5546,6 +6304,7 @@ cms:
original_type: CHAR
text: 'State Reported Dual Eligible Status Code: May'
width: 2.0
+ reference: https://resdac.org/cms-data/variables/monthly-medicare-medicaid-dual-eligibility-code-may
type: VARCHAR(2)
- DUAL_06:
description:
@@ -5553,6 +6312,7 @@ cms:
original_type: CHAR
text: 'State Reported Dual Eligible Status Code: June'
width: 2.0
+ reference: https://resdac.org/cms-data/variables/monthly-medicare-medicaid-dual-eligibility-code-june
type: VARCHAR(2)
- DUAL_07:
description:
@@ -5560,6 +6320,7 @@ cms:
original_type: CHAR
text: 'State Reported Dual Eligible Status Code: July'
width: 2.0
+ reference: https://resdac.org/cms-data/variables/monthly-medicare-medicaid-dual-eligibility-code-july
type: VARCHAR(2)
- DUAL_08:
description:
@@ -5567,6 +6328,7 @@ cms:
original_type: CHAR
text: 'State Reported Dual Eligible Status Code: August'
width: 2.0
+ reference: https://resdac.org/cms-data/variables/monthly-medicare-medicaid-dual-eligibility-code-august
type: VARCHAR(2)
- DUAL_09:
description:
@@ -5574,6 +6336,7 @@ cms:
original_type: CHAR
text: 'State Reported Dual Eligible Status Code: September'
width: 2.0
+ reference: https://resdac.org/cms-data/variables/monthly-medicare-medicaid-dual-eligibility-code-september
type: VARCHAR(2)
- DUAL_10:
description:
@@ -5581,6 +6344,7 @@ cms:
original_type: CHAR
text: 'State Reported Dual Eligible Status Code: October'
width: 2.0
+ reference: https://resdac.org/cms-data/variables/monthly-medicare-medicaid-dual-eligibility-code-october
type: VARCHAR(2)
- DUAL_11:
description:
@@ -5588,6 +6352,7 @@ cms:
original_type: CHAR
text: 'State Reported Dual Eligible Status Code: November'
width: 2.0
+ reference: https://resdac.org/cms-data/variables/monthly-medicare-medicaid-dual-eligibility-code-november
type: VARCHAR(2)
- DUAL_12:
description:
@@ -5595,6 +6360,7 @@ cms:
original_type: CHAR
text: 'State Reported Dual Eligible Status Code: December'
width: 2.0
+ reference: https://resdac.org/cms-data/variables/monthly-medicare-medicaid-dual-eligibility-code-december
type: VARCHAR(2)
- CSTSHR01:
description:
@@ -5602,6 +6368,7 @@ cms:
original_type: CHAR
text: 'Cost Share Group Code: January'
width: 2.0
+ reference: https://resdac.org/cms-data/variables/monthly-cost-sharing-group-under-part-d-low-income-subsidy-january
type: VARCHAR(2)
- CSTSHR02:
description:
@@ -5609,6 +6376,7 @@ cms:
original_type: CHAR
text: 'Cost Share Group Code: February'
width: 2.0
+ reference: https://resdac.org/cms-data/variables/monthly-cost-sharing-group-under-part-d-low-income-subsidy-february
type: VARCHAR(2)
- CSTSHR03:
description:
@@ -5616,6 +6384,7 @@ cms:
original_type: CHAR
text: 'Cost Share Group Code: March'
width: 2.0
+ reference: https://resdac.org/cms-data/variables/monthly-cost-sharing-group-under-part-d-low-income-subsidy-march
type: VARCHAR(2)
- CSTSHR04:
description:
@@ -5623,6 +6392,7 @@ cms:
original_type: CHAR
text: 'Cost Share Group Code: April'
width: 2.0
+ reference: https://resdac.org/cms-data/variables/monthly-cost-sharing-group-under-part-d-low-income-subsidy-april
type: VARCHAR(2)
- CSTSHR05:
description:
@@ -5630,6 +6400,7 @@ cms:
original_type: CHAR
text: 'Cost Share Group Code: May'
width: 2.0
+ reference: https://resdac.org/cms-data/variables/monthly-cost-sharing-group-under-part-d-low-income-subsidy-may
type: VARCHAR(2)
- CSTSHR06:
description:
@@ -5637,6 +6408,7 @@ cms:
original_type: CHAR
text: 'Cost Share Group Code: June'
width: 2.0
+ reference: https://resdac.org/cms-data/variables/monthly-cost-sharing-group-under-part-d-low-income-subsidy-june
type: VARCHAR(2)
- CSTSHR07:
description:
@@ -5644,6 +6416,7 @@ cms:
original_type: CHAR
text: 'Cost Share Group Code: July'
width: 2.0
+ reference: https://resdac.org/cms-data/variables/monthly-cost-sharing-group-under-part-d-low-income-subsidy-july
type: VARCHAR(2)
- CSTSHR08:
description:
@@ -5651,6 +6424,7 @@ cms:
original_type: CHAR
text: 'Cost Share Group Code: August'
width: 2.0
+ reference: https://resdac.org/cms-data/variables/monthly-cost-sharing-group-under-part-d-low-income-subsidy-august
type: VARCHAR(2)
- CSTSHR09:
description:
@@ -5658,6 +6432,7 @@ cms:
original_type: CHAR
text: 'Cost Share Group Code: September'
width: 2.0
+ reference: https://resdac.org/cms-data/variables/monthly-cost-sharing-group-under-part-d-low-income-subsidy-september
type: VARCHAR(2)
- CSTSHR10:
description:
@@ -5665,6 +6440,7 @@ cms:
original_type: CHAR
text: 'Cost Share Group Code: October'
width: 2.0
+ reference: https://resdac.org/cms-data/variables/monthly-cost-sharing-group-under-part-d-low-income-subsidy-october
type: VARCHAR(2)
- CSTSHR11:
description:
@@ -5672,6 +6448,7 @@ cms:
original_type: CHAR
text: 'Cost Share Group Code: November'
width: 2.0
+ reference: https://resdac.org/cms-data/variables/monthly-cost-sharing-group-under-part-d-low-income-subsidy-november
type: VARCHAR(2)
- CSTSHR12:
description:
@@ -5679,6 +6456,7 @@ cms:
original_type: CHAR
text: 'Cost Share Group Code: December'
width: 2.0
+ reference: https://resdac.org/cms-data/variables/monthly-cost-sharing-group-under-part-d-low-income-subsidy-december
type: VARCHAR(2)
- FILE:
description:
@@ -5687,6 +6465,7 @@ cms:
width: 128
index:
required_before_loading_data: true
+ reference: null
source:
type: file
type: VARCHAR(128)
@@ -5695,6 +6474,7 @@ cms:
original_type: BIGSERIAL
text: Record number in the file
width: null
+ reference: https://resdac.org/cms-data/variables/nch-near-line-record-identification-code-ric
type: BIGSERIAL
- STATE:
description:
@@ -5702,6 +6482,7 @@ cms:
text: SSA State Code
width: 2.0
index: true
+ reference: https://resdac.org/cms-data/variables/state-code-beneficiary-ssa-code
source:
code: GENERATED ALWAYS AS (STATE_CD) STORED
type: generated
@@ -5712,6 +6493,7 @@ cms:
text: Beneficiary Enrollment Reference Year
width: 4.0
index: true
+ reference: https://resdac.org/cms-data/variables/mbsf-cc-30/alzheimers-disease-end-year-indicator
source:
code: GENERATED ALWAYS AS (RFRNC_YR) STORED
type: generated
@@ -5722,6 +6504,7 @@ cms:
text: 5-digit ZIP Code
width: 5.0
index: true
+ reference: https://resdac.org/cms-data/variables/zip-code-beneficiary
source:
code: GENERATED ALWAYS AS (ZIP_CD) STORED
type: generated
@@ -5744,6 +6527,7 @@ cms:
text: Encrypted 723 Beneficiary ID
width: 15.0
index: true
+ reference: https://resdac.org/cms-data/variables/ccw-beneficiary-id
type: VARCHAR(15)
- RFRNC_YR:
description:
@@ -5751,6 +6535,7 @@ cms:
original_type: NUM
text: Beneficiary Enrollment Reference Year
width: 4.0
+ reference: https://resdac.org/cms-data/variables/reference-year-base
type: INT
- ENRL_SRC:
description:
@@ -5758,6 +6543,7 @@ cms:
original_type: CHAR
text: Enrollment Source
width: 3.0
+ reference: https://resdac.org/cms-data/variables/enrollment-source
type: VARCHAR(3)
- SAMPLE_GROUP:
description:
@@ -5765,6 +6551,7 @@ cms:
original_type: CHAR
text: Medicare 1, 5, or 20% Strict Sample Group Indicator
width: 2.0
+ reference: https://resdac.org/cms-data/variables/medicare-sample-group-indicator
type: VARCHAR(2)
- EFIVEPCT:
description:
@@ -5772,6 +6559,7 @@ cms:
original_type: CHAR
text: Medicare Enhanced 5% Sample Indicator
width: 1.0
+ reference: https://resdac.org/cms-data/variables/enhanced-medicare-5-sample-indicator
type: VARCHAR(1)
- CRNT_BIC:
description:
@@ -5779,6 +6567,7 @@ cms:
original_type: CHAR
text: Current Beneficiary Identification Code
width: 2.0
+ reference: https://resdac.org/cms-data/variables/current-beneficiary-identification-code
type: VARCHAR(2)
- STATE_CD:
description:
@@ -5786,6 +6575,7 @@ cms:
original_type: CHAR
text: SSA State Code
width: 2.0
+ reference: https://resdac.org/cms-data/variables/state-code-beneficiary-ssa-code
type: VARCHAR(2)
- CNTY_CD:
description:
@@ -5793,6 +6583,7 @@ cms:
original_type: CHAR
text: SSA County Code
width: 3.0
+ reference: https://resdac.org/sites/datadocumentation.resdac.org/files/Introduction%20to%20DE-SynPUF%20%28Slides%29.pdf
type: VARCHAR(3)
- ZIP_CD:
description:
@@ -5800,6 +6591,7 @@ cms:
original_type: CHAR
text: 5-digit ZIP Code
width: 5.0
+ reference: https://resdac.org/cms-data/variables/zip-code-beneficiary
type: VARCHAR(5)
- STATE_CNTY_FIPS_CD_01:
description:
@@ -5807,6 +6599,7 @@ cms:
original_type: CHAR
text: 'FIPS State-County Code: January'
width: 5.0
+ reference: https://resdac.org/cms-data/variables/state-and-county-fips-code-january
type: VARCHAR(5)
- STATE_CNTY_FIPS_CD_02:
description:
@@ -5814,6 +6607,7 @@ cms:
original_type: CHAR
text: 'FIPS State-County Code: February'
width: 5.0
+ reference: https://resdac.org/cms-data/variables/state-and-county-fips-code-february
type: VARCHAR(5)
- STATE_CNTY_FIPS_CD_03:
description:
@@ -5821,6 +6615,7 @@ cms:
original_type: CHAR
text: 'FIPS State-County Code: March'
width: 5.0
+ reference: https://resdac.org/cms-data/variables/state-and-county-fips-code-march
type: VARCHAR(5)
- STATE_CNTY_FIPS_CD_04:
description:
@@ -5828,6 +6623,7 @@ cms:
original_type: CHAR
text: 'FIPS State-County Code: April'
width: 5.0
+ reference: https://resdac.org/cms-data/variables/state-and-county-fips-code-april
type: VARCHAR(5)
- STATE_CNTY_FIPS_CD_05:
description:
@@ -5835,6 +6631,7 @@ cms:
original_type: CHAR
text: 'FIPS State-County Code: May'
width: 5.0
+ reference: https://resdac.org/cms-data/variables/state-and-county-fips-code-may
type: VARCHAR(5)
- STATE_CNTY_FIPS_CD_06:
description:
@@ -5842,6 +6639,7 @@ cms:
original_type: CHAR
text: 'FIPS State-County Code: June'
width: 5.0
+ reference: https://resdac.org/cms-data/variables/state-and-county-fips-code-june
type: VARCHAR(5)
- STATE_CNTY_FIPS_CD_07:
description:
@@ -5849,6 +6647,7 @@ cms:
original_type: CHAR
text: 'FIPS State-County Code: July'
width: 5.0
+ reference: https://resdac.org/cms-data/variables/state-and-county-fips-code-july
type: VARCHAR(5)
- STATE_CNTY_FIPS_CD_08:
description:
@@ -5856,6 +6655,7 @@ cms:
original_type: CHAR
text: 'FIPS State-County Code: August'
width: 5.0
+ reference: https://resdac.org/cms-data/variables/state-and-county-fips-code-august
type: VARCHAR(5)
- STATE_CNTY_FIPS_CD_09:
description:
@@ -5863,6 +6663,7 @@ cms:
original_type: CHAR
text: 'FIPS State-County Code: September'
width: 5.0
+ reference: https://resdac.org/cms-data/variables/state-and-county-fips-code-september
type: VARCHAR(5)
- STATE_CNTY_FIPS_CD_10:
description:
@@ -5870,6 +6671,7 @@ cms:
original_type: CHAR
text: 'FIPS State-County Code: October'
width: 5.0
+ reference: https://resdac.org/cms-data/variables/state-and-county-fips-code-october
type: VARCHAR(5)
- STATE_CNTY_FIPS_CD_11:
description:
@@ -5877,6 +6679,7 @@ cms:
original_type: CHAR
text: 'FIPS State-County Code: November'
width: 5.0
+ reference: https://resdac.org/cms-data/variables/state-and-county-fips-code-november
type: VARCHAR(5)
- STATE_CNTY_FIPS_CD_12:
description:
@@ -5884,6 +6687,7 @@ cms:
original_type: CHAR
text: 'FIPS State-County Code: December'
width: 5.0
+ reference: https://resdac.org/cms-data/variables/state-and-county-fips-code-december
type: VARCHAR(5)
- AGE:
description:
@@ -5891,6 +6695,7 @@ cms:
original_type: NUM
text: Age at the End of the Reference Year
width: 3.0
+ reference: https://resdac.org/cms-data/variables/age-beneficiary-end-year
type: INT
- BENE_DOB:
description:
@@ -5898,6 +6703,7 @@ cms:
original_type: DATE
text: Beneficiary Date of Birth
width: 8.0
+ reference: https://resdac.org/cms-data/variables/beneficiary-date-birth
type: DATE
- V_DOD_SW:
description:
@@ -5905,6 +6711,7 @@ cms:
original_type: CHAR
text: Valid Date of Death Switch
width: 1.0
+ reference: https://resdac.org/cms-data/variables/date-death
type: VARCHAR(1)
- DEATH_DT:
description:
@@ -5912,6 +6719,7 @@ cms:
original_type: DATE
text: Beneficiary Date of Death
width: 8.0
+ reference: https://resdac.org/cms-data/variables/date-death
type: DATE
- SEX:
description:
@@ -5919,6 +6727,7 @@ cms:
original_type: CHAR
text: Sex
width: 1.0
+ reference: https://resdac.org/sites/datadocumentation.resdac.org/files/Introduction%20to%20DE-SynPUF%20%28Slides%29.pdf
type: VARCHAR(1)
- RACE:
description:
@@ -5926,6 +6735,7 @@ cms:
original_type: CHAR
text: Beneficiary Race Code
width: 1.0
+ reference: https://resdac.org/cms-data/variables/beneficiary-race-code-base
type: VARCHAR(1)
- RTI_RACE_CD:
description:
@@ -5933,6 +6743,7 @@ cms:
original_type: CHAR
text: Research Triangle Institute (RTI) Race Code
width: 1.0
+ reference: https://resdac.org/cms-data/variables/research-triangle-institute-rti-race-code
type: VARCHAR(1)
- COVSTART:
description:
@@ -5940,6 +6751,7 @@ cms:
original_type: DATE
text: Medicare Coverage Start Date
width: 8.0
+ reference: https://resdac.org/cms-data/variables/medicare-coverage-start-date
type: DATE
- OREC:
description:
@@ -5947,6 +6759,7 @@ cms:
original_type: CHAR
text: Original Reason for Entitlement Code
width: 1.0
+ reference: null
type: VARCHAR(1)
- CREC:
description:
@@ -5954,6 +6767,7 @@ cms:
original_type: CHAR
text: Current Reason for Entitlement Code
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medicare-current-reason-entitlement-code-crec
type: VARCHAR(1)
- ESRD_IND:
description:
@@ -5961,6 +6775,7 @@ cms:
original_type: CHAR
text: End-Stage Renal Disease (ESRD) Indicator
width: 1.0
+ reference: https://resdac.org/sites/datadocumentation.resdac.org/files/Introduction%20to%20DE-SynPUF%20%28Slides%29.pdf
type: VARCHAR(1)
- MDCR_STUS_CD_01:
description:
@@ -5968,6 +6783,7 @@ cms:
original_type: CHAR
text: 'Medicare Status Code: January'
width: 2.0
+ reference: https://resdac.org/cms-data/variables/medicare-status-code-january
type: VARCHAR(2)
- MDCR_STUS_CD_02:
description:
@@ -5975,6 +6791,7 @@ cms:
original_type: CHAR
text: 'Medicare Status Code: February'
width: 2.0
+ reference: https://resdac.org/cms-data/variables/medicare-status-code-february
type: VARCHAR(2)
- MDCR_STUS_CD_03:
description:
@@ -5982,6 +6799,7 @@ cms:
original_type: CHAR
text: 'Medicare Status Code: March'
width: 2.0
+ reference: https://resdac.org/cms-data/variables/medicare-status-code-march
type: VARCHAR(2)
- MDCR_STUS_CD_04:
description:
@@ -5989,6 +6807,7 @@ cms:
original_type: CHAR
text: 'Medicare Status Code: April'
width: 2.0
+ reference: https://resdac.org/cms-data/variables/medicare-status-code-april
type: VARCHAR(2)
- MDCR_STUS_CD_05:
description:
@@ -5996,6 +6815,7 @@ cms:
original_type: CHAR
text: 'Medicare Status Code: May'
width: 2.0
+ reference: https://resdac.org/cms-data/variables/medicare-status-code-may
type: VARCHAR(2)
- MDCR_STUS_CD_06:
description:
@@ -6003,6 +6823,7 @@ cms:
original_type: CHAR
text: 'Medicare Status Code: June'
width: 2.0
+ reference: https://resdac.org/cms-data/variables/medicare-status-code-june
type: VARCHAR(2)
- MDCR_STUS_CD_07:
description:
@@ -6010,6 +6831,7 @@ cms:
original_type: CHAR
text: 'Medicare Status Code: July'
width: 2.0
+ reference: https://resdac.org/cms-data/variables/medicare-status-code-july
type: VARCHAR(2)
- MDCR_STUS_CD_08:
description:
@@ -6017,6 +6839,7 @@ cms:
original_type: CHAR
text: 'Medicare Status Code: August'
width: 2.0
+ reference: https://resdac.org/cms-data/variables/medicare-status-code-august
type: VARCHAR(2)
- MDCR_STUS_CD_09:
description:
@@ -6024,6 +6847,7 @@ cms:
original_type: CHAR
text: 'Medicare Status Code: September'
width: 2.0
+ reference: https://resdac.org/cms-data/variables/medicare-status-code-september
type: VARCHAR(2)
- MDCR_STUS_CD_10:
description:
@@ -6031,6 +6855,7 @@ cms:
original_type: CHAR
text: 'Medicare Status Code: October'
width: 2.0
+ reference: https://resdac.org/cms-data/variables/medicare-status-code-october
type: VARCHAR(2)
- MDCR_STUS_CD_11:
description:
@@ -6038,6 +6863,7 @@ cms:
original_type: CHAR
text: 'Medicare Status Code: November'
width: 2.0
+ reference: https://resdac.org/cms-data/variables/medicare-status-code-november
type: VARCHAR(2)
- MDCR_STUS_CD_12:
description:
@@ -6045,6 +6871,7 @@ cms:
original_type: CHAR
text: 'Medicare Status Code: December'
width: 2.0
+ reference: https://resdac.org/cms-data/variables/medicare-status-code-december
type: VARCHAR(2)
- A_TRM_CD:
description:
@@ -6052,6 +6879,7 @@ cms:
original_type: CHAR
text: Part A Termination Code
width: 1.0
+ reference: https://resdac.org/cms-data/variables/part-termination-code
type: VARCHAR(1)
- B_TRM_CD:
description:
@@ -6059,6 +6887,7 @@ cms:
original_type: CHAR
text: Part B Termination Code
width: 1.0
+ reference: https://resdac.org/cms-data/variables/part-b-termination-code
type: VARCHAR(1)
- A_MO_CNT:
description:
@@ -6066,6 +6895,7 @@ cms:
original_type: NUM
text: Hospital Insurance (HI) Coverage Months Count
width: 3.0
+ reference: https://resdac.org/cms-data/variables/part-months-count
type: INT
- B_MO_CNT:
description:
@@ -6073,6 +6903,7 @@ cms:
original_type: NUM
text: Supplemental Medical Insurance (SMI) Coverage Months Count
width: 3.0
+ reference: https://resdac.org/cms-data/variables/part-b-months-count
type: INT
- BUYIN_MO:
description:
@@ -6080,6 +6911,7 @@ cms:
original_type: NUM
text: State Buy-In (SBI) Coverage Months
width: 3.0
+ reference: https://resdac.org/cms-data/variables/state-buy-coverage-count
type: INT
- HMO_MO:
description:
@@ -6087,6 +6919,7 @@ cms:
original_type: NUM
text: Health Maintenance Organization (HMO) Coverage Months
width: 3.0
+ reference: https://resdac.org/cms-data/variables/hmo-coverage-count
type: INT
- PTD_MO:
description:
@@ -6094,6 +6927,7 @@ cms:
original_type: NUM
text: Part D Contract Plan Coverage Months
width: 3.0
+ reference: https://resdac.org/cms-data/variables/months-part-d-coverage
type: INT
- RDS_MO:
description:
@@ -6101,6 +6935,7 @@ cms:
original_type: NUM
text: Retiree Drug Subsidy (RDS) Coverage Months
width: 3.0
+ reference: https://resdac.org/cms-data/variables/months-retiree-drug-subsidy-coverage
type: INT
- DUAL_MO:
description:
@@ -6108,6 +6943,7 @@ cms:
original_type: NUM
text: Medicaid Dual Eligible Months
width: 3.0
+ reference: https://resdac.org/cms-data/variables/months-dual-eligibility
type: INT
- BUYIN01:
description:
@@ -6115,6 +6951,7 @@ cms:
original_type: CHAR
text: 'Medicare Entitlement/ Buy-In Indicator: January'
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medicare-entitlementbuy-indicator-november-0
type: VARCHAR(1)
- BUYIN02:
description:
@@ -6122,6 +6959,7 @@ cms:
original_type: CHAR
text: 'Medicare Entitlement/ Buy-In Indicator: February'
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medicare-entitlementbuy-indicator
type: VARCHAR(1)
- BUYIN03:
description:
@@ -6129,6 +6967,7 @@ cms:
original_type: CHAR
text: 'Medicare Entitlement/ Buy-In Indicator: March'
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medicare-entitlementbuy-indicator
type: VARCHAR(1)
- BUYIN04:
description:
@@ -6136,6 +6975,7 @@ cms:
original_type: CHAR
text: 'Medicare Entitlement/ Buy-In Indicator: April'
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medicare-entitlementbuy-indicator
type: VARCHAR(1)
- BUYIN05:
description:
@@ -6143,6 +6983,7 @@ cms:
original_type: CHAR
text: 'Medicare Entitlement/ Buy-In Indicator: May'
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medicare-entitlementbuy-indicator
type: VARCHAR(1)
- BUYIN06:
description:
@@ -6150,6 +6991,7 @@ cms:
original_type: CHAR
text: 'Medicare Entitlement/ Buy-In Indicator: June'
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medicare-entitlementbuy-indicator
type: VARCHAR(1)
- BUYIN07:
description:
@@ -6157,6 +6999,7 @@ cms:
original_type: CHAR
text: 'Medicare Entitlement/ Buy-In Indicator: July'
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medicare-entitlementbuy-indicator
type: VARCHAR(1)
- BUYIN08:
description:
@@ -6164,6 +7007,7 @@ cms:
original_type: CHAR
text: 'Medicare Entitlement/ Buy-In Indicator: August'
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medicare-entitlementbuy-indicator
type: VARCHAR(1)
- BUYIN09:
description:
@@ -6171,6 +7015,7 @@ cms:
original_type: CHAR
text: 'Medicare Entitlement/ Buy-In Indicator: September'
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medicare-entitlementbuy-indicator
type: VARCHAR(1)
- BUYIN10:
description:
@@ -6178,6 +7023,7 @@ cms:
original_type: CHAR
text: 'Medicare Entitlement/ Buy-In Indicator: October'
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medicare-entitlementbuy-indicator
type: VARCHAR(1)
- BUYIN11:
description:
@@ -6185,6 +7031,7 @@ cms:
original_type: CHAR
text: 'Medicare Entitlement/ Buy-In Indicator: November'
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medicare-entitlementbuy-indicator
type: VARCHAR(1)
- BUYIN12:
description:
@@ -6192,6 +7039,7 @@ cms:
original_type: CHAR
text: 'Medicare Entitlement/ Buy-In Indicator: December'
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medicare-entitlementbuy-indicator
type: VARCHAR(1)
- HMOIND01:
description:
@@ -6199,6 +7047,7 @@ cms:
original_type: CHAR
text: 'HMO Indicator: January'
width: 1.0
+ reference: https://resdac.org/cms-data/variables/hmo-indicator
type: VARCHAR(1)
- HMOIND02:
description:
@@ -6206,6 +7055,7 @@ cms:
original_type: CHAR
text: 'HMO Indicator: February'
width: 1.0
+ reference: https://resdac.org/cms-data/variables/hmo-indicator
type: VARCHAR(1)
- HMOIND03:
description:
@@ -6213,6 +7063,7 @@ cms:
original_type: CHAR
text: 'HMO Indicator: March'
width: 1.0
+ reference: https://resdac.org/cms-data/variables/hmo-indicator
type: VARCHAR(1)
- HMOIND04:
description:
@@ -6220,6 +7071,7 @@ cms:
original_type: CHAR
text: 'HMO Indicator: April'
width: 1.0
+ reference: https://resdac.org/cms-data/variables/hmo-indicator
type: VARCHAR(1)
- HMOIND05:
description:
@@ -6227,6 +7079,7 @@ cms:
original_type: CHAR
text: 'HMO Indicator: May'
width: 1.0
+ reference: https://resdac.org/cms-data/variables/hmo-indicator
type: VARCHAR(1)
- HMOIND06:
description:
@@ -6234,6 +7087,7 @@ cms:
original_type: CHAR
text: 'HMO Indicator: June'
width: 1.0
+ reference: https://resdac.org/cms-data/variables/hmo-indicator
type: VARCHAR(1)
- HMOIND07:
description:
@@ -6241,6 +7095,7 @@ cms:
original_type: CHAR
text: 'HMO Indicator: July'
width: 1.0
+ reference: https://resdac.org/cms-data/variables/hmo-indicator
type: VARCHAR(1)
- HMOIND08:
description:
@@ -6248,6 +7103,7 @@ cms:
original_type: CHAR
text: 'HMO Indicator: August'
width: 1.0
+ reference: https://resdac.org/cms-data/variables/hmo-indicator
type: VARCHAR(1)
- HMOIND09:
description:
@@ -6255,6 +7111,7 @@ cms:
original_type: CHAR
text: 'HMO Indicator: September'
width: 1.0
+ reference: https://resdac.org/cms-data/variables/hmo-indicator
type: VARCHAR(1)
- HMOIND10:
description:
@@ -6262,6 +7119,7 @@ cms:
original_type: CHAR
text: 'HMO Indicator: October'
width: 1.0
+ reference: https://resdac.org/cms-data/variables/hmo-indicator
type: VARCHAR(1)
- HMOIND11:
description:
@@ -6269,6 +7127,7 @@ cms:
original_type: CHAR
text: 'HMO Indicator: November'
width: 1.0
+ reference: https://resdac.org/cms-data/variables/hmo-indicator
type: VARCHAR(1)
- HMOIND12:
description:
@@ -6276,6 +7135,7 @@ cms:
original_type: CHAR
text: 'HMO Indicator: December'
width: 1.0
+ reference: https://resdac.org/cms-data/variables/hmo-indicator
type: VARCHAR(1)
- PTC_CNTRCT_ID_01:
description:
@@ -6283,6 +7143,7 @@ cms:
original_type: CHAR
text: 'Part C Contract ID: January'
width: 5.0
+ reference: https://resdac.org/cms-data/variables/part-c-contract-number-january
type: VARCHAR(5)
- PTC_CNTRCT_ID_02:
description:
@@ -6290,6 +7151,7 @@ cms:
original_type: CHAR
text: 'Part C Contract ID: February'
width: 5.0
+ reference: https://resdac.org/cms-data/variables/part-c-contract-number-february
type: VARCHAR(5)
- PTC_CNTRCT_ID_03:
description:
@@ -6297,6 +7159,7 @@ cms:
original_type: CHAR
text: 'Part C Contract ID: March'
width: 5.0
+ reference: https://resdac.org/cms-data/variables/part-c-contract-number-march
type: VARCHAR(5)
- PTC_CNTRCT_ID_04:
description:
@@ -6304,6 +7167,7 @@ cms:
original_type: CHAR
text: 'Part C Contract ID: April'
width: 5.0
+ reference: https://resdac.org/cms-data/variables/part-c-contract-number-april
type: VARCHAR(5)
- PTC_CNTRCT_ID_05:
description:
@@ -6311,6 +7175,7 @@ cms:
original_type: CHAR
text: 'Part C Contract ID: May'
width: 5.0
+ reference: https://resdac.org/cms-data/variables/part-c-contract-number-may
type: VARCHAR(5)
- PTC_CNTRCT_ID_06:
description:
@@ -6318,6 +7183,7 @@ cms:
original_type: CHAR
text: 'Part C Contract ID: June'
width: 5.0
+ reference: https://resdac.org/cms-data/variables/part-c-contract-number-june
type: VARCHAR(5)
- PTC_CNTRCT_ID_07:
description:
@@ -6325,6 +7191,7 @@ cms:
original_type: CHAR
text: 'Part C Contract ID: July'
width: 5.0
+ reference: https://resdac.org/cms-data/variables/part-c-contract-number-july
type: VARCHAR(5)
- PTC_CNTRCT_ID_08:
description:
@@ -6332,6 +7199,7 @@ cms:
original_type: CHAR
text: 'Part C Contract ID: August'
width: 5.0
+ reference: https://resdac.org/cms-data/variables/part-c-contract-number-august
type: VARCHAR(5)
- PTC_CNTRCT_ID_09:
description:
@@ -6339,6 +7207,7 @@ cms:
original_type: CHAR
text: 'Part C Contract ID: September'
width: 5.0
+ reference: https://resdac.org/cms-data/variables/part-c-contract-number-september
type: VARCHAR(5)
- PTC_CNTRCT_ID_10:
description:
@@ -6346,6 +7215,7 @@ cms:
original_type: CHAR
text: 'Part C Contract ID: October'
width: 5.0
+ reference: https://resdac.org/cms-data/variables/part-c-contract-number-october
type: VARCHAR(5)
- PTC_CNTRCT_ID_11:
description:
@@ -6353,6 +7223,7 @@ cms:
original_type: CHAR
text: 'Part C Contract ID: November'
width: 5.0
+ reference: https://resdac.org/cms-data/variables/part-c-contract-number-november
type: VARCHAR(5)
- PTC_CNTRCT_ID_12:
description:
@@ -6360,6 +7231,7 @@ cms:
original_type: CHAR
text: 'Part C Contract ID: December'
width: 5.0
+ reference: https://resdac.org/cms-data/variables/part-c-contract-number-december
type: VARCHAR(5)
- PTC_PBP_ID_01:
description:
@@ -6367,6 +7239,7 @@ cms:
original_type: CHAR
text: 'Part C Plan Benefit Package ID: January'
width: 3.0
+ reference: https://resdac.org/cms-data/variables/part-c-pbp-number-january
type: VARCHAR(3)
- PTC_PBP_ID_02:
description:
@@ -6374,6 +7247,7 @@ cms:
original_type: CHAR
text: 'Part C Plan Benefit Package ID: February'
width: 3.0
+ reference: https://resdac.org/cms-data/variables/part-c-pbp-number-february
type: VARCHAR(3)
- PTC_PBP_ID_03:
description:
@@ -6381,6 +7255,7 @@ cms:
original_type: CHAR
text: 'Part C Plan Benefit Package ID: March'
width: 3.0
+ reference: https://resdac.org/cms-data/variables/part-c-pbp-number-march
type: VARCHAR(3)
- PTC_PBP_ID_04:
description:
@@ -6388,6 +7263,7 @@ cms:
original_type: CHAR
text: 'Part C Plan Benefit Package ID: April'
width: 3.0
+ reference: https://resdac.org/cms-data/variables/part-c-pbp-number-april
type: VARCHAR(3)
- PTC_PBP_ID_05:
description:
@@ -6395,6 +7271,7 @@ cms:
original_type: CHAR
text: 'Part C Plan Benefit Package ID: May'
width: 3.0
+ reference: https://resdac.org/cms-data/variables/part-c-pbp-number-may
type: VARCHAR(3)
- PTC_PBP_ID_06:
description:
@@ -6402,6 +7279,7 @@ cms:
original_type: CHAR
text: 'Part C Plan Benefit Package ID: June'
width: 3.0
+ reference: https://resdac.org/cms-data/variables/part-c-pbp-number-june
type: VARCHAR(3)
- PTC_PBP_ID_07:
description:
@@ -6409,6 +7287,7 @@ cms:
original_type: CHAR
text: 'Part C Plan Benefit Package ID: July'
width: 3.0
+ reference: https://resdac.org/cms-data/variables/part-c-pbp-number-july
type: VARCHAR(3)
- PTC_PBP_ID_08:
description:
@@ -6416,6 +7295,7 @@ cms:
original_type: CHAR
text: 'Part C Plan Benefit Package ID: August'
width: 3.0
+ reference: https://resdac.org/cms-data/variables/part-c-pbp-number-august
type: VARCHAR(3)
- PTC_PBP_ID_09:
description:
@@ -6423,6 +7303,7 @@ cms:
original_type: CHAR
text: 'Part C Plan Benefit Package ID: September'
width: 3.0
+ reference: https://resdac.org/cms-data/variables/part-c-pbp-number-september
type: VARCHAR(3)
- PTC_PBP_ID_10:
description:
@@ -6430,6 +7311,7 @@ cms:
original_type: CHAR
text: 'Part C Plan Benefit Package ID: October'
width: 3.0
+ reference: https://resdac.org/cms-data/variables/part-c-pbp-number-october
type: VARCHAR(3)
- PTC_PBP_ID_11:
description:
@@ -6437,6 +7319,7 @@ cms:
original_type: CHAR
text: 'Part C Plan Benefit Package ID: November'
width: 3.0
+ reference: https://resdac.org/cms-data/variables/part-c-pbp-number-november
type: VARCHAR(3)
- PTC_PBP_ID_12:
description:
@@ -6444,6 +7327,7 @@ cms:
original_type: CHAR
text: 'Part C Plan Benefit Package ID: December'
width: 3.0
+ reference: https://resdac.org/cms-data/variables/part-c-pbp-number-december
type: VARCHAR(3)
- PTC_PLAN_TYPE_CD_01:
description:
@@ -6451,6 +7335,7 @@ cms:
original_type: CHAR
text: 'Part C Plan Type Code: January'
width: 3.0
+ reference: https://resdac.org/cms-data/variables/part-c-plan-type-code-january
type: VARCHAR(3)
- PTC_PLAN_TYPE_CD_02:
description:
@@ -6458,6 +7343,7 @@ cms:
original_type: CHAR
text: 'Part C Plan Type Code: February'
width: 3.0
+ reference: https://resdac.org/cms-data/variables/part-c-plan-type-code-february
type: VARCHAR(3)
- PTC_PLAN_TYPE_CD_03:
description:
@@ -6465,6 +7351,7 @@ cms:
original_type: CHAR
text: 'Part C Plan Type Code: March'
width: 3.0
+ reference: https://resdac.org/cms-data/variables/part-c-plan-type-code-march
type: VARCHAR(3)
- PTC_PLAN_TYPE_CD_04:
description:
@@ -6472,6 +7359,7 @@ cms:
original_type: CHAR
text: 'Part C Plan Type Code: April'
width: 3.0
+ reference: https://resdac.org/cms-data/variables/part-c-plan-type-code-april
type: VARCHAR(3)
- PTC_PLAN_TYPE_CD_05:
description:
@@ -6479,6 +7367,7 @@ cms:
original_type: CHAR
text: 'Part C Plan Type Code: May'
width: 3.0
+ reference: https://resdac.org/cms-data/variables/part-c-plan-type-code-may
type: VARCHAR(3)
- PTC_PLAN_TYPE_CD_06:
description:
@@ -6486,6 +7375,7 @@ cms:
original_type: CHAR
text: 'Part C Plan Type Code: June'
width: 3.0
+ reference: https://resdac.org/cms-data/variables/part-c-plan-type-code-june
type: VARCHAR(3)
- PTC_PLAN_TYPE_CD_07:
description:
@@ -6493,6 +7383,7 @@ cms:
original_type: CHAR
text: 'Part C Plan Type Code: July'
width: 3.0
+ reference: https://resdac.org/cms-data/variables/part-c-plan-type-code-july
type: VARCHAR(3)
- PTC_PLAN_TYPE_CD_08:
description:
@@ -6500,6 +7391,7 @@ cms:
original_type: CHAR
text: 'Part C Plan Type Code: August'
width: 3.0
+ reference: https://resdac.org/cms-data/variables/part-c-plan-type-code-august
type: VARCHAR(3)
- PTC_PLAN_TYPE_CD_09:
description:
@@ -6507,6 +7399,7 @@ cms:
original_type: CHAR
text: 'Part C Plan Type Code: September'
width: 3.0
+ reference: https://resdac.org/cms-data/variables/part-c-plan-type-code-september
type: VARCHAR(3)
- PTC_PLAN_TYPE_CD_10:
description:
@@ -6514,6 +7407,7 @@ cms:
original_type: CHAR
text: 'Part C Plan Type Code: October'
width: 3.0
+ reference: https://resdac.org/cms-data/variables/part-c-plan-type-code-october
type: VARCHAR(3)
- PTC_PLAN_TYPE_CD_11:
description:
@@ -6521,6 +7415,7 @@ cms:
original_type: CHAR
text: 'Part C Plan Type Code: November'
width: 3.0
+ reference: https://resdac.org/cms-data/variables/part-c-plan-type-code-november
type: VARCHAR(3)
- PTC_PLAN_TYPE_CD_12:
description:
@@ -6528,6 +7423,7 @@ cms:
original_type: CHAR
text: 'Part C Plan Type Code: December'
width: 3.0
+ reference: https://resdac.org/cms-data/variables/part-c-plan-type-code-december
type: VARCHAR(3)
- PTDCNTRCT01:
description:
@@ -6535,6 +7431,7 @@ cms:
original_type: CHAR
text: 'Part D Contract ID: January'
width: 5.0
+ reference: https://resdac.org/cms-data/variables/monthly-part-d-contract-number-january
type: VARCHAR(5)
- PTDCNTRCT02:
description:
@@ -6542,6 +7439,7 @@ cms:
original_type: CHAR
text: 'Part D Contract ID: February'
width: 5.0
+ reference: https://resdac.org/cms-data/variables/monthly-part-d-contract-number-february
type: VARCHAR(5)
- PTDCNTRCT03:
description:
@@ -6549,6 +7447,7 @@ cms:
original_type: CHAR
text: 'Part D Contract ID: March'
width: 5.0
+ reference: https://resdac.org/cms-data/variables/monthly-part-d-contract-number-march
type: VARCHAR(5)
- PTDCNTRCT04:
description:
@@ -6556,6 +7455,7 @@ cms:
original_type: CHAR
text: 'Part D Contract ID: April'
width: 5.0
+ reference: https://resdac.org/cms-data/variables/monthly-part-d-contract-number-april
type: VARCHAR(5)
- PTDCNTRCT05:
description:
@@ -6563,6 +7463,7 @@ cms:
original_type: CHAR
text: 'Part D Contract ID: May'
width: 5.0
+ reference: https://resdac.org/cms-data/variables/monthly-part-d-contract-number-may
type: VARCHAR(5)
- PTDCNTRCT06:
description:
@@ -6570,6 +7471,7 @@ cms:
original_type: CHAR
text: 'Part D Contract ID: June'
width: 5.0
+ reference: https://resdac.org/cms-data/variables/monthly-part-d-contract-number-june
type: VARCHAR(5)
- PTDCNTRCT07:
description:
@@ -6577,6 +7479,7 @@ cms:
original_type: CHAR
text: 'Part D Contract ID: July'
width: 5.0
+ reference: https://resdac.org/cms-data/variables/monthly-part-d-contract-number-july
type: VARCHAR(5)
- PTDCNTRCT08:
description:
@@ -6584,6 +7487,7 @@ cms:
original_type: CHAR
text: 'Part D Contract ID: August'
width: 5.0
+ reference: https://resdac.org/cms-data/variables/monthly-part-d-contract-number-august
type: VARCHAR(5)
- PTDCNTRCT09:
description:
@@ -6591,6 +7495,7 @@ cms:
original_type: CHAR
text: 'Part D Contract ID: September'
width: 5.0
+ reference: https://resdac.org/cms-data/variables/monthly-part-d-contract-number-september
type: VARCHAR(5)
- PTDCNTRCT10:
description:
@@ -6598,6 +7503,7 @@ cms:
original_type: CHAR
text: 'Part D Contract ID: October'
width: 5.0
+ reference: https://resdac.org/cms-data/variables/monthly-part-d-contract-number-october
type: VARCHAR(5)
- PTDCNTRCT11:
description:
@@ -6605,6 +7511,7 @@ cms:
original_type: CHAR
text: 'Part D Contract ID: November'
width: 5.0
+ reference: https://resdac.org/cms-data/variables/monthly-part-d-contract-number-november
type: VARCHAR(5)
- PTDCNTRCT12:
description:
@@ -6612,6 +7519,7 @@ cms:
original_type: CHAR
text: 'Part D Contract ID: December'
width: 5.0
+ reference: https://resdac.org/cms-data/variables/monthly-part-d-contract-number-december
type: VARCHAR(5)
- PTDPBPID01:
description:
@@ -6619,6 +7527,7 @@ cms:
original_type: CHAR
text: 'Part D Plan Benefit Package ID: January'
width: 3.0
+ reference: https://resdac.org/cms-data/variables/monthly-part-d-plan-benefit-package-number-january
type: VARCHAR(3)
- PTDPBPID02:
description:
@@ -6626,6 +7535,7 @@ cms:
original_type: CHAR
text: 'Part D Plan Benefit Package ID: February'
width: 3.0
+ reference: https://resdac.org/cms-data/variables/monthly-part-d-plan-benefit-package-number-february
type: VARCHAR(3)
- PTDPBPID03:
description:
@@ -6633,6 +7543,7 @@ cms:
original_type: CHAR
text: 'Part D Plan Benefit Package ID: March'
width: 3.0
+ reference: https://resdac.org/cms-data/variables/monthly-part-d-plan-benefit-package-number-march
type: VARCHAR(3)
- PTDPBPID04:
description:
@@ -6640,6 +7551,7 @@ cms:
original_type: CHAR
text: 'Part D Plan Benefit Package ID: April'
width: 3.0
+ reference: https://resdac.org/cms-data/variables/monthly-part-d-plan-benefit-package-number-april
type: VARCHAR(3)
- PTDPBPID05:
description:
@@ -6647,6 +7559,7 @@ cms:
original_type: CHAR
text: 'Part D Plan Benefit Package ID: May'
width: 3.0
+ reference: https://resdac.org/cms-data/variables/monthly-part-d-plan-benefit-package-number-may
type: VARCHAR(3)
- PTDPBPID06:
description:
@@ -6654,6 +7567,7 @@ cms:
original_type: CHAR
text: 'Part D Plan Benefit Package ID: June'
width: 3.0
+ reference: https://resdac.org/cms-data/variables/monthly-part-d-plan-benefit-package-number-june
type: VARCHAR(3)
- PTDPBPID07:
description:
@@ -6661,6 +7575,7 @@ cms:
original_type: CHAR
text: 'Part D Plan Benefit Package ID: July'
width: 3.0
+ reference: https://resdac.org/cms-data/variables/monthly-part-d-plan-benefit-package-number-july
type: VARCHAR(3)
- PTDPBPID08:
description:
@@ -6668,6 +7583,7 @@ cms:
original_type: CHAR
text: 'Part D Plan Benefit Package ID: August'
width: 3.0
+ reference: https://resdac.org/cms-data/variables/monthly-part-d-plan-benefit-package-number-august
type: VARCHAR(3)
- PTDPBPID09:
description:
@@ -6675,6 +7591,7 @@ cms:
original_type: CHAR
text: 'Part D Plan Benefit Package ID: September'
width: 3.0
+ reference: https://resdac.org/cms-data/variables/monthly-part-d-plan-benefit-package-number-september
type: VARCHAR(3)
- PTDPBPID10:
description:
@@ -6682,6 +7599,7 @@ cms:
original_type: CHAR
text: 'Part D Plan Benefit Package ID: October'
width: 3.0
+ reference: https://resdac.org/cms-data/variables/monthly-part-d-plan-benefit-package-number-october
type: VARCHAR(3)
- PTDPBPID11:
description:
@@ -6689,6 +7607,7 @@ cms:
original_type: CHAR
text: 'Part D Plan Benefit Package ID: November'
width: 3.0
+ reference: https://resdac.org/cms-data/variables/monthly-part-d-plan-benefit-package-number-november
type: VARCHAR(3)
- PTDPBPID12:
description:
@@ -6696,6 +7615,7 @@ cms:
original_type: CHAR
text: 'Part D Plan Benefit Package ID: December'
width: 3.0
+ reference: https://resdac.org/cms-data/variables/monthly-part-d-plan-benefit-package-number-december
type: VARCHAR(3)
- SGMTID01:
description:
@@ -6703,6 +7623,7 @@ cms:
original_type: CHAR
text: 'Part D Segment ID: January'
width: 3.0
+ reference: https://resdac.org/cms-data/variables/monthly-part-d-market-segment-identifier-january
type: VARCHAR(3)
- SGMTID02:
description:
@@ -6710,6 +7631,7 @@ cms:
original_type: CHAR
text: 'Part D Segment ID: February'
width: 3.0
+ reference: https://resdac.org/cms-data/variables/monthly-part-d-market-segment-identifier-february
type: VARCHAR(3)
- SGMTID03:
description:
@@ -6717,6 +7639,7 @@ cms:
original_type: CHAR
text: 'Part D Segment ID: March'
width: 3.0
+ reference: https://resdac.org/cms-data/variables/monthly-part-d-market-segment-identifier-march
type: VARCHAR(3)
- SGMTID04:
description:
@@ -6724,6 +7647,7 @@ cms:
original_type: CHAR
text: 'Part D Segment ID: April'
width: 3.0
+ reference: https://resdac.org/cms-data/variables/monthly-part-d-market-segment-identifier-april
type: VARCHAR(3)
- SGMTID05:
description:
@@ -6731,6 +7655,7 @@ cms:
original_type: CHAR
text: 'Part D Segment ID: May'
width: 3.0
+ reference: https://resdac.org/cms-data/variables/monthly-part-d-market-segment-identifier-may
type: VARCHAR(3)
- SGMTID06:
description:
@@ -6738,6 +7663,7 @@ cms:
original_type: CHAR
text: 'Part D Segment ID: June'
width: 3.0
+ reference: https://resdac.org/cms-data/variables/monthly-part-d-market-segment-identifier-june
type: VARCHAR(3)
- SGMTID07:
description:
@@ -6745,6 +7671,7 @@ cms:
original_type: CHAR
text: 'Part D Segment ID: July'
width: 3.0
+ reference: https://resdac.org/cms-data/variables/monthly-part-d-market-segment-identifier-july
type: VARCHAR(3)
- SGMTID08:
description:
@@ -6752,6 +7679,7 @@ cms:
original_type: CHAR
text: 'Part D Segment ID: August'
width: 3.0
+ reference: https://resdac.org/cms-data/variables/monthly-part-d-market-segment-identifier-august
type: VARCHAR(3)
- SGMTID09:
description:
@@ -6759,6 +7687,7 @@ cms:
original_type: CHAR
text: 'Part D Segment ID: September'
width: 3.0
+ reference: https://resdac.org/cms-data/variables/monthly-part-d-market-segment-identifier-september
type: VARCHAR(3)
- SGMTID10:
description:
@@ -6766,6 +7695,7 @@ cms:
original_type: CHAR
text: 'Part D Segment ID: October'
width: 3.0
+ reference: https://resdac.org/cms-data/variables/monthly-part-d-market-segment-identifier-october
type: VARCHAR(3)
- SGMTID11:
description:
@@ -6773,6 +7703,7 @@ cms:
original_type: CHAR
text: 'Part D Segment ID: November'
width: 3.0
+ reference: https://resdac.org/cms-data/variables/monthly-part-d-market-segment-identifier-november
type: VARCHAR(3)
- SGMTID12:
description:
@@ -6780,6 +7711,7 @@ cms:
original_type: CHAR
text: 'Part D Segment ID: December'
width: 3.0
+ reference: https://resdac.org/cms-data/variables/monthly-part-d-market-segment-identifier-december
type: VARCHAR(3)
- RDSIND01:
description:
@@ -6787,6 +7719,7 @@ cms:
original_type: CHAR
text: 'Retiree Drug Subsidy Indicators: January'
width: 1.0
+ reference: https://resdac.org/cms-data/variables/part-d-retiree-drug-subsidy-indicator-january
type: VARCHAR(1)
- RDSIND02:
description:
@@ -6794,6 +7727,7 @@ cms:
original_type: CHAR
text: 'Retiree Drug Subsidy Indicators: February'
width: 1.0
+ reference: null
type: VARCHAR(1)
- RDSIND03:
description:
@@ -6801,6 +7735,7 @@ cms:
original_type: CHAR
text: 'Retiree Drug Subsidy Indicators: March'
width: 1.0
+ reference: https://resdac.org/cms-data/variables/part-d-retiree-drug-subsidy-indicator-march
type: VARCHAR(1)
- RDSIND04:
description:
@@ -6808,6 +7743,7 @@ cms:
original_type: CHAR
text: 'Retiree Drug Subsidy Indicators: April'
width: 1.0
+ reference: https://resdac.org/cms-data/variables/part-d-retiree-drug-subsidy-indicator-april
type: VARCHAR(1)
- RDSIND05:
description:
@@ -6815,6 +7751,7 @@ cms:
original_type: CHAR
text: 'Retiree Drug Subsidy Indicators: May'
width: 1.0
+ reference: https://resdac.org/cms-data/variables/part-d-retiree-drug-subsidy-indicator-may
type: VARCHAR(1)
- RDSIND06:
description:
@@ -6822,6 +7759,7 @@ cms:
original_type: CHAR
text: 'Retiree Drug Subsidy Indicators: June'
width: 1.0
+ reference: https://resdac.org/cms-data/variables/part-d-retiree-drug-subsidy-indicator-june
type: VARCHAR(1)
- RDSIND07:
description:
@@ -6829,6 +7767,7 @@ cms:
original_type: CHAR
text: 'Retiree Drug Subsidy Indicators: July'
width: 1.0
+ reference: https://resdac.org/cms-data/variables/part-d-retiree-drug-subsidy-indicator-july
type: VARCHAR(1)
- RDSIND08:
description:
@@ -6836,6 +7775,7 @@ cms:
original_type: CHAR
text: 'Retiree Drug Subsidy Indicators: August'
width: 1.0
+ reference: https://resdac.org/cms-data/variables/part-d-retiree-drug-subsidy-indicator-august
type: VARCHAR(1)
- RDSIND09:
description:
@@ -6843,6 +7783,7 @@ cms:
original_type: CHAR
text: 'Retiree Drug Subsidy Indicators: September'
width: 1.0
+ reference: https://resdac.org/cms-data/variables/part-d-retiree-drug-subsidy-indicator-september
type: VARCHAR(1)
- RDSIND10:
description:
@@ -6850,6 +7791,7 @@ cms:
original_type: CHAR
text: 'Retiree Drug Subsidy Indicators: October'
width: 1.0
+ reference: https://resdac.org/cms-data/variables/part-d-retiree-drug-subsidy-indicator-october
type: VARCHAR(1)
- RDSIND11:
description:
@@ -6857,6 +7799,7 @@ cms:
original_type: CHAR
text: 'Retiree Drug Subsidy Indicators: November'
width: 1.0
+ reference: https://resdac.org/cms-data/variables/part-d-retiree-drug-subsidy-indicator-november
type: VARCHAR(1)
- RDSIND12:
description:
@@ -6864,6 +7807,7 @@ cms:
original_type: CHAR
text: 'Retiree Drug Subsidy Indicators: December'
width: 1.0
+ reference: https://resdac.org/cms-data/variables/part-d-retiree-drug-subsidy-indicator-december
type: VARCHAR(1)
- DUAL_01:
description:
@@ -6871,6 +7815,7 @@ cms:
original_type: CHAR
text: 'State Reported Dual Eligible Status Code: January'
width: 2.0
+ reference: https://resdac.org/cms-data/variables/monthly-medicare-medicaid-dual-eligibility-code-january
type: VARCHAR(2)
- DUAL_02:
description:
@@ -6878,6 +7823,7 @@ cms:
original_type: CHAR
text: 'State Reported Dual Eligible Status Code: February'
width: 2.0
+ reference: https://resdac.org/cms-data/variables/monthly-medicare-medicaid-dual-eligibility-code-february
type: VARCHAR(2)
- DUAL_03:
description:
@@ -6885,6 +7831,7 @@ cms:
original_type: CHAR
text: 'State Reported Dual Eligible Status Code: March'
width: 2.0
+ reference: https://resdac.org/cms-data/variables/monthly-medicare-medicaid-dual-eligibility-code-march
type: VARCHAR(2)
- DUAL_04:
description:
@@ -6892,6 +7839,7 @@ cms:
original_type: CHAR
text: 'State Reported Dual Eligible Status Code: April'
width: 2.0
+ reference: https://resdac.org/cms-data/variables/monthly-medicare-medicaid-dual-eligibility-code-april
type: VARCHAR(2)
- DUAL_05:
description:
@@ -6899,6 +7847,7 @@ cms:
original_type: CHAR
text: 'State Reported Dual Eligible Status Code: May'
width: 2.0
+ reference: https://resdac.org/cms-data/variables/monthly-medicare-medicaid-dual-eligibility-code-may
type: VARCHAR(2)
- DUAL_06:
description:
@@ -6906,6 +7855,7 @@ cms:
original_type: CHAR
text: 'State Reported Dual Eligible Status Code: June'
width: 2.0
+ reference: https://resdac.org/cms-data/variables/monthly-medicare-medicaid-dual-eligibility-code-june
type: VARCHAR(2)
- DUAL_07:
description:
@@ -6913,6 +7863,7 @@ cms:
original_type: CHAR
text: 'State Reported Dual Eligible Status Code: July'
width: 2.0
+ reference: https://resdac.org/cms-data/variables/monthly-medicare-medicaid-dual-eligibility-code-july
type: VARCHAR(2)
- DUAL_08:
description:
@@ -6920,6 +7871,7 @@ cms:
original_type: CHAR
text: 'State Reported Dual Eligible Status Code: August'
width: 2.0
+ reference: https://resdac.org/cms-data/variables/monthly-medicare-medicaid-dual-eligibility-code-august
type: VARCHAR(2)
- DUAL_09:
description:
@@ -6927,6 +7879,7 @@ cms:
original_type: CHAR
text: 'State Reported Dual Eligible Status Code: September'
width: 2.0
+ reference: https://resdac.org/cms-data/variables/monthly-medicare-medicaid-dual-eligibility-code-september
type: VARCHAR(2)
- DUAL_10:
description:
@@ -6934,6 +7887,7 @@ cms:
original_type: CHAR
text: 'State Reported Dual Eligible Status Code: October'
width: 2.0
+ reference: https://resdac.org/cms-data/variables/monthly-medicare-medicaid-dual-eligibility-code-october
type: VARCHAR(2)
- DUAL_11:
description:
@@ -6941,6 +7895,7 @@ cms:
original_type: CHAR
text: 'State Reported Dual Eligible Status Code: November'
width: 2.0
+ reference: https://resdac.org/cms-data/variables/monthly-medicare-medicaid-dual-eligibility-code-november
type: VARCHAR(2)
- DUAL_12:
description:
@@ -6948,6 +7903,7 @@ cms:
original_type: CHAR
text: 'State Reported Dual Eligible Status Code: December'
width: 2.0
+ reference: https://resdac.org/cms-data/variables/monthly-medicare-medicaid-dual-eligibility-code-december
type: VARCHAR(2)
- CSTSHR01:
description:
@@ -6955,6 +7911,7 @@ cms:
original_type: CHAR
text: 'Cost Share Group Code: January'
width: 2.0
+ reference: https://resdac.org/cms-data/variables/monthly-cost-sharing-group-under-part-d-low-income-subsidy-january
type: VARCHAR(2)
- CSTSHR02:
description:
@@ -6962,6 +7919,7 @@ cms:
original_type: CHAR
text: 'Cost Share Group Code: February'
width: 2.0
+ reference: https://resdac.org/cms-data/variables/monthly-cost-sharing-group-under-part-d-low-income-subsidy-february
type: VARCHAR(2)
- CSTSHR03:
description:
@@ -6969,6 +7927,7 @@ cms:
original_type: CHAR
text: 'Cost Share Group Code: March'
width: 2.0
+ reference: https://resdac.org/cms-data/variables/monthly-cost-sharing-group-under-part-d-low-income-subsidy-march
type: VARCHAR(2)
- CSTSHR04:
description:
@@ -6976,6 +7935,7 @@ cms:
original_type: CHAR
text: 'Cost Share Group Code: April'
width: 2.0
+ reference: https://resdac.org/cms-data/variables/monthly-cost-sharing-group-under-part-d-low-income-subsidy-april
type: VARCHAR(2)
- CSTSHR05:
description:
@@ -6983,6 +7943,7 @@ cms:
original_type: CHAR
text: 'Cost Share Group Code: May'
width: 2.0
+ reference: https://resdac.org/cms-data/variables/monthly-cost-sharing-group-under-part-d-low-income-subsidy-may
type: VARCHAR(2)
- CSTSHR06:
description:
@@ -6990,6 +7951,7 @@ cms:
original_type: CHAR
text: 'Cost Share Group Code: June'
width: 2.0
+ reference: https://resdac.org/cms-data/variables/monthly-cost-sharing-group-under-part-d-low-income-subsidy-june
type: VARCHAR(2)
- CSTSHR07:
description:
@@ -6997,6 +7959,7 @@ cms:
original_type: CHAR
text: 'Cost Share Group Code: July'
width: 2.0
+ reference: https://resdac.org/cms-data/variables/monthly-cost-sharing-group-under-part-d-low-income-subsidy-july
type: VARCHAR(2)
- CSTSHR08:
description:
@@ -7004,6 +7967,7 @@ cms:
original_type: CHAR
text: 'Cost Share Group Code: August'
width: 2.0
+ reference: https://resdac.org/cms-data/variables/monthly-cost-sharing-group-under-part-d-low-income-subsidy-august
type: VARCHAR(2)
- CSTSHR09:
description:
@@ -7011,6 +7975,7 @@ cms:
original_type: CHAR
text: 'Cost Share Group Code: September'
width: 2.0
+ reference: https://resdac.org/cms-data/variables/monthly-cost-sharing-group-under-part-d-low-income-subsidy-september
type: VARCHAR(2)
- CSTSHR10:
description:
@@ -7018,6 +7983,7 @@ cms:
original_type: CHAR
text: 'Cost Share Group Code: October'
width: 2.0
+ reference: https://resdac.org/cms-data/variables/monthly-cost-sharing-group-under-part-d-low-income-subsidy-october
type: VARCHAR(2)
- CSTSHR11:
description:
@@ -7025,6 +7991,7 @@ cms:
original_type: CHAR
text: 'Cost Share Group Code: November'
width: 2.0
+ reference: https://resdac.org/cms-data/variables/monthly-cost-sharing-group-under-part-d-low-income-subsidy-november
type: VARCHAR(2)
- CSTSHR12:
description:
@@ -7032,6 +7999,7 @@ cms:
original_type: CHAR
text: 'Cost Share Group Code: December'
width: 2.0
+ reference: https://resdac.org/cms-data/variables/monthly-cost-sharing-group-under-part-d-low-income-subsidy-december
type: VARCHAR(2)
- FILE:
description:
@@ -7040,6 +8008,7 @@ cms:
width: 128
index:
required_before_loading_data: true
+ reference: null
source:
type: file
type: VARCHAR(128)
@@ -7048,6 +8017,7 @@ cms:
original_type: BIGSERIAL
text: Record number in the file
width: null
+ reference: https://resdac.org/cms-data/variables/nch-near-line-record-identification-code-ric
type: BIGSERIAL
- STATE:
description:
@@ -7055,6 +8025,7 @@ cms:
text: SSA State Code
width: 2.0
index: true
+ reference: https://resdac.org/cms-data/variables/state-code-beneficiary-ssa-code
source:
code: GENERATED ALWAYS AS (STATE_CD) STORED
type: generated
@@ -7065,6 +8036,7 @@ cms:
text: Beneficiary Enrollment Reference Year
width: 4.0
index: true
+ reference: https://resdac.org/cms-data/variables/mbsf-cc-30/alzheimers-disease-end-year-indicator
source:
code: GENERATED ALWAYS AS (RFRNC_YR) STORED
type: generated
@@ -7075,6 +8047,7 @@ cms:
text: 5-digit ZIP Code
width: 5.0
index: true
+ reference: https://resdac.org/cms-data/variables/zip-code-beneficiary
source:
code: GENERATED ALWAYS AS (ZIP_CD) STORED
type: generated
@@ -7097,6 +8070,7 @@ cms:
text: Encrypted 723 Beneficiary ID (Unique Key)
width: 15.0
index: true
+ reference: https://resdac.org/cms-data/variables/ccw-beneficiary-id
type: VARCHAR(15)
- RFRNC_YR:
description:
@@ -7104,6 +8078,7 @@ cms:
original_type: NUM
text: Beneficiary Enrollment Reference Year
width: 4.0
+ reference: https://resdac.org/cms-data/variables/reference-year-base
type: INT
- CRDCOVSW:
description:
@@ -7111,6 +8086,7 @@ cms:
original_type: CHAR
text: Creditable Coverage Switch
width: 1.0
+ reference: null
type: VARCHAR(1)
- PLNCOVMO:
description:
@@ -7118,6 +8094,7 @@ cms:
original_type: CHAR
text: Plan Coverage Months Number
width: 2.0
+ reference: null
type: VARCHAR(2)
- RDSCOVMO:
description:
@@ -7125,6 +8102,7 @@ cms:
original_type: CHAR
text: Retiree Drug Subsidy Coverage Months Number
width: 2.0
+ reference: null
type: VARCHAR(2)
- DUAL_MO:
description:
@@ -7132,6 +8110,7 @@ cms:
original_type: CHAR
text: Dual Eligible Months Number
width: 2.0
+ reference: https://resdac.org/cms-data/variables/months-dual-eligibility
type: VARCHAR(2)
- CNTRCT01:
description:
@@ -7139,6 +8118,7 @@ cms:
original_type: CHAR
text: Jan. Contract ID
width: 5.0
+ reference: https://resdac.org/cms-data/variables/monthly-part-d-contract-number-january
type: VARCHAR(5)
- CNTRCT02:
description:
@@ -7146,6 +8126,7 @@ cms:
original_type: CHAR
text: Feb. Contract ID
width: 5.0
+ reference: https://resdac.org/cms-data/variables/monthly-part-d-contract-number-february
type: VARCHAR(5)
- CNTRCT03:
description:
@@ -7153,6 +8134,7 @@ cms:
original_type: CHAR
text: Mar. Contract ID
width: 5.0
+ reference: https://resdac.org/cms-data/variables/monthly-part-d-contract-number-march
type: VARCHAR(5)
- CNTRCT04:
description:
@@ -7160,6 +8142,7 @@ cms:
original_type: CHAR
text: Apr. Contract ID
width: 5.0
+ reference: https://resdac.org/cms-data/variables/monthly-part-d-contract-number-april
type: VARCHAR(5)
- CNTRCT05:
description:
@@ -7167,6 +8150,7 @@ cms:
original_type: CHAR
text: May Contract ID
width: 5.0
+ reference: https://resdac.org/cms-data/variables/monthly-part-d-contract-number-may
type: VARCHAR(5)
- CNTRCT06:
description:
@@ -7174,6 +8158,7 @@ cms:
original_type: CHAR
text: Jun. Contract ID
width: 5.0
+ reference: https://resdac.org/cms-data/variables/monthly-part-d-contract-number-june
type: VARCHAR(5)
- CNTRCT07:
description:
@@ -7181,6 +8166,7 @@ cms:
original_type: CHAR
text: Jul. Contract ID
width: 5.0
+ reference: https://resdac.org/cms-data/variables/monthly-part-d-contract-number-july
type: VARCHAR(5)
- CNTRCT08:
description:
@@ -7188,6 +8174,7 @@ cms:
original_type: CHAR
text: Aug. Contract ID
width: 5.0
+ reference: https://resdac.org/cms-data/variables/monthly-part-d-contract-number-august
type: VARCHAR(5)
- CNTRCT09:
description:
@@ -7195,6 +8182,7 @@ cms:
original_type: CHAR
text: Sep. Contract ID
width: 5.0
+ reference: https://resdac.org/cms-data/variables/monthly-part-d-contract-number-september
type: VARCHAR(5)
- CNTRCT10:
description:
@@ -7202,6 +8190,7 @@ cms:
original_type: CHAR
text: Oct. Contract ID
width: 5.0
+ reference: https://resdac.org/cms-data/variables/monthly-part-d-contract-number-october
type: VARCHAR(5)
- CNTRCT11:
description:
@@ -7209,6 +8198,7 @@ cms:
original_type: CHAR
text: Nov. Contract ID
width: 5.0
+ reference: https://resdac.org/cms-data/variables/monthly-part-d-contract-number-november
type: VARCHAR(5)
- CNTRCT12:
description:
@@ -7216,6 +8206,7 @@ cms:
original_type: CHAR
text: Dec. Contract ID
width: 5.0
+ reference: https://resdac.org/cms-data/variables/monthly-part-d-contract-number-december
type: VARCHAR(5)
- PBPID01:
description:
@@ -7223,6 +8214,7 @@ cms:
original_type: CHAR
text: Jan. Plan Benefit Package ID
width: 3.0
+ reference: https://resdac.org/cms-data/variables/monthly-part-d-plan-benefit-package-number-january
type: VARCHAR(3)
- PBPID02:
description:
@@ -7230,6 +8222,7 @@ cms:
original_type: CHAR
text: Feb. Plan Benefit Package ID
width: 3.0
+ reference: https://resdac.org/cms-data/variables/monthly-part-d-plan-benefit-package-number-february
type: VARCHAR(3)
- PBPID03:
description:
@@ -7237,6 +8230,7 @@ cms:
original_type: CHAR
text: Mar. Plan Benefit Package ID
width: 3.0
+ reference: https://resdac.org/cms-data/variables/monthly-part-d-plan-benefit-package-number-march
type: VARCHAR(3)
- PBPID04:
description:
@@ -7244,6 +8238,7 @@ cms:
original_type: CHAR
text: Apr. Plan Benefit Package ID
width: 3.0
+ reference: https://resdac.org/cms-data/variables/monthly-part-d-plan-benefit-package-number-april
type: VARCHAR(3)
- PBPID05:
description:
@@ -7251,6 +8246,7 @@ cms:
original_type: CHAR
text: May Plan Benefit Package ID
width: 3.0
+ reference: https://resdac.org/cms-data/variables/monthly-part-d-plan-benefit-package-number-may
type: VARCHAR(3)
- PBPID06:
description:
@@ -7258,6 +8254,7 @@ cms:
original_type: CHAR
text: Jun. Plan Benefit Package ID
width: 3.0
+ reference: https://resdac.org/cms-data/variables/monthly-part-d-plan-benefit-package-number-june
type: VARCHAR(3)
- PBPID07:
description:
@@ -7265,6 +8262,7 @@ cms:
original_type: CHAR
text: Jul. Plan Benefit Package ID
width: 3.0
+ reference: https://resdac.org/cms-data/variables/monthly-part-d-plan-benefit-package-number-july
type: VARCHAR(3)
- PBPID08:
description:
@@ -7272,6 +8270,7 @@ cms:
original_type: CHAR
text: Aug. Plan Benefit Package ID
width: 3.0
+ reference: https://resdac.org/cms-data/variables/monthly-part-d-plan-benefit-package-number-august
type: VARCHAR(3)
- PBPID09:
description:
@@ -7279,6 +8278,7 @@ cms:
original_type: CHAR
text: Sep. Plan Benefit Package ID
width: 3.0
+ reference: https://resdac.org/cms-data/variables/monthly-part-d-plan-benefit-package-number-september
type: VARCHAR(3)
- PBPID10:
description:
@@ -7286,6 +8286,7 @@ cms:
original_type: CHAR
text: Oct. Plan Benefit Package ID
width: 3.0
+ reference: https://resdac.org/cms-data/variables/monthly-part-d-plan-benefit-package-number-october
type: VARCHAR(3)
- PBPID11:
description:
@@ -7293,6 +8294,7 @@ cms:
original_type: CHAR
text: Nov. Plan Benefit Package ID
width: 3.0
+ reference: https://resdac.org/cms-data/variables/monthly-part-d-plan-benefit-package-number-november
type: VARCHAR(3)
- PBPID12:
description:
@@ -7300,6 +8302,7 @@ cms:
original_type: CHAR
text: Dec. Plan Benefit Package ID
width: 3.0
+ reference: https://resdac.org/cms-data/variables/monthly-part-d-plan-benefit-package-number-december
type: VARCHAR(3)
- SGMTID01:
description:
@@ -7307,6 +8310,7 @@ cms:
original_type: CHAR
text: Jan. Segment ID
width: 3.0
+ reference: https://resdac.org/cms-data/variables/monthly-part-d-market-segment-identifier-january
type: VARCHAR(3)
- SGMTID02:
description:
@@ -7314,6 +8318,7 @@ cms:
original_type: CHAR
text: Feb. Segment ID
width: 3.0
+ reference: https://resdac.org/cms-data/variables/monthly-part-d-market-segment-identifier-february
type: VARCHAR(3)
- SGMTID03:
description:
@@ -7321,6 +8326,7 @@ cms:
original_type: CHAR
text: Mar. Segment ID
width: 3.0
+ reference: https://resdac.org/cms-data/variables/monthly-part-d-market-segment-identifier-march
type: VARCHAR(3)
- SGMTID04:
description:
@@ -7328,6 +8334,7 @@ cms:
original_type: CHAR
text: Apr. Segment ID
width: 3.0
+ reference: https://resdac.org/cms-data/variables/monthly-part-d-market-segment-identifier-april
type: VARCHAR(3)
- SGMTID05:
description:
@@ -7335,6 +8342,7 @@ cms:
original_type: CHAR
text: May Segment ID
width: 3.0
+ reference: https://resdac.org/cms-data/variables/monthly-part-d-market-segment-identifier-may
type: VARCHAR(3)
- SGMTID06:
description:
@@ -7342,6 +8350,7 @@ cms:
original_type: CHAR
text: Jun. Segment ID
width: 3.0
+ reference: https://resdac.org/cms-data/variables/monthly-part-d-market-segment-identifier-june
type: VARCHAR(3)
- SGMTID07:
description:
@@ -7349,6 +8358,7 @@ cms:
original_type: CHAR
text: Jul. Segment ID
width: 3.0
+ reference: https://resdac.org/cms-data/variables/monthly-part-d-market-segment-identifier-july
type: VARCHAR(3)
- SGMTID08:
description:
@@ -7356,6 +8366,7 @@ cms:
original_type: CHAR
text: Aug. Segment ID
width: 3.0
+ reference: https://resdac.org/cms-data/variables/monthly-part-d-market-segment-identifier-august
type: VARCHAR(3)
- SGMTID09:
description:
@@ -7363,6 +8374,7 @@ cms:
original_type: CHAR
text: Sep. Segment ID
width: 3.0
+ reference: https://resdac.org/cms-data/variables/monthly-part-d-market-segment-identifier-september
type: VARCHAR(3)
- SGMTID10:
description:
@@ -7370,6 +8382,7 @@ cms:
original_type: CHAR
text: Oct. Segment ID
width: 3.0
+ reference: https://resdac.org/cms-data/variables/monthly-part-d-market-segment-identifier-october
type: VARCHAR(3)
- SGMTID11:
description:
@@ -7377,6 +8390,7 @@ cms:
original_type: CHAR
text: Nov. Segment ID
width: 3.0
+ reference: https://resdac.org/cms-data/variables/monthly-part-d-market-segment-identifier-november
type: VARCHAR(3)
- SGMTID12:
description:
@@ -7384,6 +8398,7 @@ cms:
original_type: CHAR
text: Dec. Segment ID
width: 3.0
+ reference: https://resdac.org/cms-data/variables/monthly-part-d-market-segment-identifier-december
type: VARCHAR(3)
- CSTSHR01:
description:
@@ -7391,6 +8406,7 @@ cms:
original_type: CHAR
text: Jan. Cost Share Group Code
width: 2.0
+ reference: https://resdac.org/cms-data/variables/monthly-cost-sharing-group-under-part-d-low-income-subsidy-january
type: VARCHAR(2)
- CSTSHR02:
description:
@@ -7398,6 +8414,7 @@ cms:
original_type: CHAR
text: Feb. Cost Share Group Code
width: 2.0
+ reference: https://resdac.org/cms-data/variables/monthly-cost-sharing-group-under-part-d-low-income-subsidy-february
type: VARCHAR(2)
- CSTSHR03:
description:
@@ -7405,6 +8422,7 @@ cms:
original_type: CHAR
text: Mar. Cost Share Group Code
width: 2.0
+ reference: https://resdac.org/cms-data/variables/monthly-cost-sharing-group-under-part-d-low-income-subsidy-march
type: VARCHAR(2)
- CSTSHR04:
description:
@@ -7412,6 +8430,7 @@ cms:
original_type: CHAR
text: Apr. Cost Share Group Code
width: 2.0
+ reference: https://resdac.org/cms-data/variables/monthly-cost-sharing-group-under-part-d-low-income-subsidy-april
type: VARCHAR(2)
- CSTSHR05:
description:
@@ -7419,6 +8438,7 @@ cms:
original_type: CHAR
text: May Cost Share Group Code
width: 2.0
+ reference: https://resdac.org/cms-data/variables/monthly-cost-sharing-group-under-part-d-low-income-subsidy-may
type: VARCHAR(2)
- CSTSHR06:
description:
@@ -7426,6 +8446,7 @@ cms:
original_type: CHAR
text: Jun. Cost Share Group Code
width: 2.0
+ reference: https://resdac.org/cms-data/variables/monthly-cost-sharing-group-under-part-d-low-income-subsidy-june
type: VARCHAR(2)
- CSTSHR07:
description:
@@ -7433,6 +8454,7 @@ cms:
original_type: CHAR
text: Jul. Cost Share Group Code
width: 2.0
+ reference: https://resdac.org/cms-data/variables/monthly-cost-sharing-group-under-part-d-low-income-subsidy-july
type: VARCHAR(2)
- CSTSHR08:
description:
@@ -7440,6 +8462,7 @@ cms:
original_type: CHAR
text: Aug. Cost Share Group Code
width: 2.0
+ reference: https://resdac.org/cms-data/variables/monthly-cost-sharing-group-under-part-d-low-income-subsidy-august
type: VARCHAR(2)
- CSTSHR09:
description:
@@ -7447,6 +8470,7 @@ cms:
original_type: CHAR
text: Sep. Cost Share Group Code
width: 2.0
+ reference: https://resdac.org/cms-data/variables/monthly-cost-sharing-group-under-part-d-low-income-subsidy-september
type: VARCHAR(2)
- CSTSHR10:
description:
@@ -7454,6 +8478,7 @@ cms:
original_type: CHAR
text: Oct. Cost Share Group Code
width: 2.0
+ reference: https://resdac.org/cms-data/variables/monthly-cost-sharing-group-under-part-d-low-income-subsidy-october
type: VARCHAR(2)
- CSTSHR11:
description:
@@ -7461,6 +8486,7 @@ cms:
original_type: CHAR
text: Nov. Cost Share Group Code
width: 2.0
+ reference: https://resdac.org/cms-data/variables/monthly-cost-sharing-group-under-part-d-low-income-subsidy-november
type: VARCHAR(2)
- CSTSHR12:
description:
@@ -7468,6 +8494,7 @@ cms:
original_type: CHAR
text: Dec. Cost Share Group Code
width: 2.0
+ reference: https://resdac.org/cms-data/variables/monthly-cost-sharing-group-under-part-d-low-income-subsidy-december
type: VARCHAR(2)
- RDSIND01:
description:
@@ -7475,6 +8502,7 @@ cms:
original_type: CHAR
text: Jan. RDS Code - Retiree Drug Subsidy Code
width: 1.0
+ reference: https://resdac.org/cms-data/variables/part-d-retiree-drug-subsidy-indicator-january
type: VARCHAR(1)
- RDSIND02:
description:
@@ -7482,6 +8510,7 @@ cms:
original_type: CHAR
text: Feb. RDS Code - Retiree Drug Subsidy Code
width: 1.0
+ reference: null
type: VARCHAR(1)
- RDSIND03:
description:
@@ -7489,6 +8518,7 @@ cms:
original_type: CHAR
text: Mar. RDS Code - Retiree Drug Subsidy Code
width: 1.0
+ reference: https://resdac.org/cms-data/variables/part-d-retiree-drug-subsidy-indicator-march
type: VARCHAR(1)
- RDSIND04:
description:
@@ -7496,6 +8526,7 @@ cms:
original_type: CHAR
text: Apr. RDS Code - Retiree Drug Subsidy Code
width: 1.0
+ reference: https://resdac.org/cms-data/variables/part-d-retiree-drug-subsidy-indicator-april
type: VARCHAR(1)
- RDSIND05:
description:
@@ -7503,6 +8534,7 @@ cms:
original_type: CHAR
text: May RDS Code - Retiree Drug Subsidy Code
width: 1.0
+ reference: https://resdac.org/cms-data/variables/part-d-retiree-drug-subsidy-indicator-may
type: VARCHAR(1)
- RDSIND06:
description:
@@ -7510,6 +8542,7 @@ cms:
original_type: CHAR
text: Jun. RDS Code - Retiree Drug Subsidy Code
width: 1.0
+ reference: https://resdac.org/cms-data/variables/part-d-retiree-drug-subsidy-indicator-june
type: VARCHAR(1)
- RDSIND07:
description:
@@ -7517,6 +8550,7 @@ cms:
original_type: CHAR
text: Jul. RDS Code - Retiree Drug Subsidy Code
width: 1.0
+ reference: https://resdac.org/cms-data/variables/part-d-retiree-drug-subsidy-indicator-july
type: VARCHAR(1)
- RDSIND08:
description:
@@ -7524,6 +8558,7 @@ cms:
original_type: CHAR
text: Aug. RDS Code - Retiree Drug Subsidy Code
width: 1.0
+ reference: https://resdac.org/cms-data/variables/part-d-retiree-drug-subsidy-indicator-august
type: VARCHAR(1)
- RDSIND09:
description:
@@ -7531,6 +8566,7 @@ cms:
original_type: CHAR
text: Sep. RDS Code - Retiree Drug Subsidy Code
width: 1.0
+ reference: https://resdac.org/cms-data/variables/part-d-retiree-drug-subsidy-indicator-september
type: VARCHAR(1)
- RDSIND10:
description:
@@ -7538,6 +8574,7 @@ cms:
original_type: CHAR
text: Oct. RDS Code - Retiree Drug Subsidy Code
width: 1.0
+ reference: https://resdac.org/cms-data/variables/part-d-retiree-drug-subsidy-indicator-october
type: VARCHAR(1)
- RDSIND11:
description:
@@ -7545,6 +8582,7 @@ cms:
original_type: CHAR
text: Nov. RDS Code - Retiree Drug Subsidy Code
width: 1.0
+ reference: https://resdac.org/cms-data/variables/part-d-retiree-drug-subsidy-indicator-november
type: VARCHAR(1)
- RDSIND12:
description:
@@ -7552,6 +8590,7 @@ cms:
original_type: CHAR
text: Dec. RDS Code - Retiree Drug Subsidy Code
width: 1.0
+ reference: https://resdac.org/cms-data/variables/part-d-retiree-drug-subsidy-indicator-december
type: VARCHAR(1)
- DUAL_01:
description:
@@ -7559,6 +8598,7 @@ cms:
original_type: CHAR
text: Jan. Dual Status Code
width: 2.0
+ reference: https://resdac.org/cms-data/variables/monthly-medicare-medicaid-dual-eligibility-code-january
type: VARCHAR(2)
- DUAL_02:
description:
@@ -7566,6 +8606,7 @@ cms:
original_type: CHAR
text: Feb. Dual Status Code
width: 2.0
+ reference: https://resdac.org/cms-data/variables/monthly-medicare-medicaid-dual-eligibility-code-february
type: VARCHAR(2)
- DUAL_03:
description:
@@ -7573,6 +8614,7 @@ cms:
original_type: CHAR
text: Mar. Dual Status Code
width: 2.0
+ reference: https://resdac.org/cms-data/variables/monthly-medicare-medicaid-dual-eligibility-code-march
type: VARCHAR(2)
- DUAL_04:
description:
@@ -7580,6 +8622,7 @@ cms:
original_type: CHAR
text: Apr. Dual Status Code
width: 2.0
+ reference: https://resdac.org/cms-data/variables/monthly-medicare-medicaid-dual-eligibility-code-april
type: VARCHAR(2)
- DUAL_05:
description:
@@ -7587,6 +8630,7 @@ cms:
original_type: CHAR
text: May Dual Status Code
width: 2.0
+ reference: https://resdac.org/cms-data/variables/monthly-medicare-medicaid-dual-eligibility-code-may
type: VARCHAR(2)
- DUAL_06:
description:
@@ -7594,6 +8638,7 @@ cms:
original_type: CHAR
text: Jun. Dual Status Code
width: 2.0
+ reference: https://resdac.org/cms-data/variables/monthly-medicare-medicaid-dual-eligibility-code-june
type: VARCHAR(2)
- DUAL_07:
description:
@@ -7601,6 +8646,7 @@ cms:
original_type: CHAR
text: Jul. Dual Status Code
width: 2.0
+ reference: https://resdac.org/cms-data/variables/monthly-medicare-medicaid-dual-eligibility-code-july
type: VARCHAR(2)
- DUAL_08:
description:
@@ -7608,6 +8654,7 @@ cms:
original_type: CHAR
text: Aug. Dual Status Code
width: 2.0
+ reference: https://resdac.org/cms-data/variables/monthly-medicare-medicaid-dual-eligibility-code-august
type: VARCHAR(2)
- DUAL_09:
description:
@@ -7615,6 +8662,7 @@ cms:
original_type: CHAR
text: Sep. Dual Status Code
width: 2.0
+ reference: https://resdac.org/cms-data/variables/monthly-medicare-medicaid-dual-eligibility-code-september
type: VARCHAR(2)
- DUAL_10:
description:
@@ -7622,6 +8670,7 @@ cms:
original_type: CHAR
text: Oct. Dual Status Code
width: 2.0
+ reference: https://resdac.org/cms-data/variables/monthly-medicare-medicaid-dual-eligibility-code-october
type: VARCHAR(2)
- DUAL_11:
description:
@@ -7629,6 +8678,7 @@ cms:
original_type: CHAR
text: Nov. Dual Status Code
width: 2.0
+ reference: https://resdac.org/cms-data/variables/monthly-medicare-medicaid-dual-eligibility-code-november
type: VARCHAR(2)
- DUAL_12:
description:
@@ -7636,6 +8686,7 @@ cms:
original_type: CHAR
text: Dec. Dual Status Code
width: 2.0
+ reference: https://resdac.org/cms-data/variables/monthly-medicare-medicaid-dual-eligibility-code-december
type: VARCHAR(2)
- FILE:
description:
@@ -7644,6 +8695,7 @@ cms:
width: 128
index:
required_before_loading_data: true
+ reference: null
source:
type: file
type: VARCHAR(128)
@@ -7652,6 +8704,7 @@ cms:
original_type: BIGSERIAL
text: Record number in the file
width: null
+ reference: https://resdac.org/cms-data/variables/nch-near-line-record-identification-code-ric
type: BIGSERIAL
- YEAR:
description:
@@ -7659,6 +8712,7 @@ cms:
text: Beneficiary Enrollment Reference Year
width: 4.0
index: true
+ reference: https://resdac.org/cms-data/variables/mbsf-cc-30/alzheimers-disease-end-year-indicator
source:
code: GENERATED ALWAYS AS (RFRNC_YR) STORED
type: generated
@@ -7680,6 +8734,7 @@ cms:
text: Encrypted 723 Beneficiary ID (Unique Key)
width: 15.0
index: true
+ reference: https://resdac.org/cms-data/variables/ccw-beneficiary-id
type: VARCHAR(15)
- RFRNC_YR:
description:
@@ -7687,6 +8742,7 @@ cms:
original_type: NUM
text: Beneficiary Enrollment Reference Year
width: 4.0
+ reference: https://resdac.org/cms-data/variables/reference-year-base
type: INT
- CRDCOVSW:
description:
@@ -7694,6 +8750,7 @@ cms:
original_type: CHAR
text: Creditable Coverage Switch
width: 1.0
+ reference: null
type: VARCHAR(1)
- PLNCOVMO:
description:
@@ -7701,6 +8758,7 @@ cms:
original_type: CHAR
text: Plan Coverage Months Number
width: 2.0
+ reference: null
type: VARCHAR(2)
- RDSCOVMO:
description:
@@ -7708,6 +8766,7 @@ cms:
original_type: CHAR
text: Retiree Drug Subsidy Coverage Months Number
width: 2.0
+ reference: null
type: VARCHAR(2)
- DUAL_MO:
description:
@@ -7715,6 +8774,7 @@ cms:
original_type: CHAR
text: Dual Eligible Months Number
width: 2.0
+ reference: https://resdac.org/cms-data/variables/months-dual-eligibility
type: VARCHAR(2)
- CNTRCT01:
description:
@@ -7722,6 +8782,7 @@ cms:
original_type: CHAR
text: Jan. Contract ID
width: 5.0
+ reference: https://resdac.org/cms-data/variables/monthly-part-d-contract-number-january
type: VARCHAR(5)
- CNTRCT02:
description:
@@ -7729,6 +8790,7 @@ cms:
original_type: CHAR
text: Feb. Contract ID
width: 5.0
+ reference: https://resdac.org/cms-data/variables/monthly-part-d-contract-number-february
type: VARCHAR(5)
- CNTRCT03:
description:
@@ -7736,6 +8798,7 @@ cms:
original_type: CHAR
text: Mar. Contract ID
width: 5.0
+ reference: https://resdac.org/cms-data/variables/monthly-part-d-contract-number-march
type: VARCHAR(5)
- CNTRCT04:
description:
@@ -7743,6 +8806,7 @@ cms:
original_type: CHAR
text: Apr. Contract ID
width: 5.0
+ reference: https://resdac.org/cms-data/variables/monthly-part-d-contract-number-april
type: VARCHAR(5)
- CNTRCT05:
description:
@@ -7750,6 +8814,7 @@ cms:
original_type: CHAR
text: May Contract ID
width: 5.0
+ reference: https://resdac.org/cms-data/variables/monthly-part-d-contract-number-may
type: VARCHAR(5)
- CNTRCT06:
description:
@@ -7757,6 +8822,7 @@ cms:
original_type: CHAR
text: Jun. Contract ID
width: 5.0
+ reference: https://resdac.org/cms-data/variables/monthly-part-d-contract-number-june
type: VARCHAR(5)
- CNTRCT07:
description:
@@ -7764,6 +8830,7 @@ cms:
original_type: CHAR
text: Jul. Contract ID
width: 5.0
+ reference: https://resdac.org/cms-data/variables/monthly-part-d-contract-number-july
type: VARCHAR(5)
- CNTRCT08:
description:
@@ -7771,6 +8838,7 @@ cms:
original_type: CHAR
text: Aug. Contract ID
width: 5.0
+ reference: https://resdac.org/cms-data/variables/monthly-part-d-contract-number-august
type: VARCHAR(5)
- CNTRCT09:
description:
@@ -7778,6 +8846,7 @@ cms:
original_type: CHAR
text: Sep. Contract ID
width: 5.0
+ reference: https://resdac.org/cms-data/variables/monthly-part-d-contract-number-september
type: VARCHAR(5)
- CNTRCT10:
description:
@@ -7785,6 +8854,7 @@ cms:
original_type: CHAR
text: Oct. Contract ID
width: 5.0
+ reference: https://resdac.org/cms-data/variables/monthly-part-d-contract-number-october
type: VARCHAR(5)
- CNTRCT11:
description:
@@ -7792,6 +8862,7 @@ cms:
original_type: CHAR
text: Nov. Contract ID
width: 5.0
+ reference: https://resdac.org/cms-data/variables/monthly-part-d-contract-number-november
type: VARCHAR(5)
- CNTRCT12:
description:
@@ -7799,6 +8870,7 @@ cms:
original_type: CHAR
text: Dec. Contract ID
width: 5.0
+ reference: https://resdac.org/cms-data/variables/monthly-part-d-contract-number-december
type: VARCHAR(5)
- PBPID01:
description:
@@ -7806,6 +8878,7 @@ cms:
original_type: CHAR
text: Jan. Plan Benefit Package ID
width: 3.0
+ reference: https://resdac.org/cms-data/variables/monthly-part-d-plan-benefit-package-number-january
type: VARCHAR(3)
- PBPID02:
description:
@@ -7813,6 +8886,7 @@ cms:
original_type: CHAR
text: Feb. Plan Benefit Package ID
width: 3.0
+ reference: https://resdac.org/cms-data/variables/monthly-part-d-plan-benefit-package-number-february
type: VARCHAR(3)
- PBPID03:
description:
@@ -7820,6 +8894,7 @@ cms:
original_type: CHAR
text: Mar. Plan Benefit Package ID
width: 3.0
+ reference: https://resdac.org/cms-data/variables/monthly-part-d-plan-benefit-package-number-march
type: VARCHAR(3)
- PBPID04:
description:
@@ -7827,6 +8902,7 @@ cms:
original_type: CHAR
text: Apr. Plan Benefit Package ID
width: 3.0
+ reference: https://resdac.org/cms-data/variables/monthly-part-d-plan-benefit-package-number-april
type: VARCHAR(3)
- PBPID05:
description:
@@ -7834,6 +8910,7 @@ cms:
original_type: CHAR
text: May Plan Benefit Package ID
width: 3.0
+ reference: https://resdac.org/cms-data/variables/monthly-part-d-plan-benefit-package-number-may
type: VARCHAR(3)
- PBPID06:
description:
@@ -7841,6 +8918,7 @@ cms:
original_type: CHAR
text: Jun. Plan Benefit Package ID
width: 3.0
+ reference: https://resdac.org/cms-data/variables/monthly-part-d-plan-benefit-package-number-june
type: VARCHAR(3)
- PBPID07:
description:
@@ -7848,6 +8926,7 @@ cms:
original_type: CHAR
text: Jul. Plan Benefit Package ID
width: 3.0
+ reference: https://resdac.org/cms-data/variables/monthly-part-d-plan-benefit-package-number-july
type: VARCHAR(3)
- PBPID08:
description:
@@ -7855,6 +8934,7 @@ cms:
original_type: CHAR
text: Aug. Plan Benefit Package ID
width: 3.0
+ reference: https://resdac.org/cms-data/variables/monthly-part-d-plan-benefit-package-number-august
type: VARCHAR(3)
- PBPID09:
description:
@@ -7862,6 +8942,7 @@ cms:
original_type: CHAR
text: Sep. Plan Benefit Package ID
width: 3.0
+ reference: https://resdac.org/cms-data/variables/monthly-part-d-plan-benefit-package-number-september
type: VARCHAR(3)
- PBPID10:
description:
@@ -7869,6 +8950,7 @@ cms:
original_type: CHAR
text: Oct. Plan Benefit Package ID
width: 3.0
+ reference: https://resdac.org/cms-data/variables/monthly-part-d-plan-benefit-package-number-october
type: VARCHAR(3)
- PBPID11:
description:
@@ -7876,6 +8958,7 @@ cms:
original_type: CHAR
text: Nov. Plan Benefit Package ID
width: 3.0
+ reference: https://resdac.org/cms-data/variables/monthly-part-d-plan-benefit-package-number-november
type: VARCHAR(3)
- PBPID12:
description:
@@ -7883,6 +8966,7 @@ cms:
original_type: CHAR
text: Dec. Plan Benefit Package ID
width: 3.0
+ reference: https://resdac.org/cms-data/variables/monthly-part-d-plan-benefit-package-number-december
type: VARCHAR(3)
- SGMTID01:
description:
@@ -7890,6 +8974,7 @@ cms:
original_type: CHAR
text: Jan. Segment ID
width: 3.0
+ reference: https://resdac.org/cms-data/variables/monthly-part-d-market-segment-identifier-january
type: VARCHAR(3)
- SGMTID02:
description:
@@ -7897,6 +8982,7 @@ cms:
original_type: CHAR
text: Feb. Segment ID
width: 3.0
+ reference: https://resdac.org/cms-data/variables/monthly-part-d-market-segment-identifier-february
type: VARCHAR(3)
- SGMTID03:
description:
@@ -7904,6 +8990,7 @@ cms:
original_type: CHAR
text: Mar. Segment ID
width: 3.0
+ reference: https://resdac.org/cms-data/variables/monthly-part-d-market-segment-identifier-march
type: VARCHAR(3)
- SGMTID04:
description:
@@ -7911,6 +8998,7 @@ cms:
original_type: CHAR
text: Apr. Segment ID
width: 3.0
+ reference: https://resdac.org/cms-data/variables/monthly-part-d-market-segment-identifier-april
type: VARCHAR(3)
- SGMTID05:
description:
@@ -7918,6 +9006,7 @@ cms:
original_type: CHAR
text: May Segment ID
width: 3.0
+ reference: https://resdac.org/cms-data/variables/monthly-part-d-market-segment-identifier-may
type: VARCHAR(3)
- SGMTID06:
description:
@@ -7925,6 +9014,7 @@ cms:
original_type: CHAR
text: Jun. Segment ID
width: 3.0
+ reference: https://resdac.org/cms-data/variables/monthly-part-d-market-segment-identifier-june
type: VARCHAR(3)
- SGMTID07:
description:
@@ -7932,6 +9022,7 @@ cms:
original_type: CHAR
text: Jul. Segment ID
width: 3.0
+ reference: https://resdac.org/cms-data/variables/monthly-part-d-market-segment-identifier-july
type: VARCHAR(3)
- SGMTID08:
description:
@@ -7939,6 +9030,7 @@ cms:
original_type: CHAR
text: Aug. Segment ID
width: 3.0
+ reference: https://resdac.org/cms-data/variables/monthly-part-d-market-segment-identifier-august
type: VARCHAR(3)
- SGMTID09:
description:
@@ -7946,6 +9038,7 @@ cms:
original_type: CHAR
text: Sep. Segment ID
width: 3.0
+ reference: https://resdac.org/cms-data/variables/monthly-part-d-market-segment-identifier-september
type: VARCHAR(3)
- SGMTID10:
description:
@@ -7953,6 +9046,7 @@ cms:
original_type: CHAR
text: Oct. Segment ID
width: 3.0
+ reference: https://resdac.org/cms-data/variables/monthly-part-d-market-segment-identifier-october
type: VARCHAR(3)
- SGMTID11:
description:
@@ -7960,6 +9054,7 @@ cms:
original_type: CHAR
text: Nov. Segment ID
width: 3.0
+ reference: https://resdac.org/cms-data/variables/monthly-part-d-market-segment-identifier-november
type: VARCHAR(3)
- SGMTID12:
description:
@@ -7967,6 +9062,7 @@ cms:
original_type: CHAR
text: Dec. Segment ID
width: 3.0
+ reference: https://resdac.org/cms-data/variables/monthly-part-d-market-segment-identifier-december
type: VARCHAR(3)
- CSTSHR01:
description:
@@ -7974,6 +9070,7 @@ cms:
original_type: CHAR
text: Jan. Cost Share Group Code
width: 2.0
+ reference: https://resdac.org/cms-data/variables/monthly-cost-sharing-group-under-part-d-low-income-subsidy-january
type: VARCHAR(2)
- CSTSHR02:
description:
@@ -7981,6 +9078,7 @@ cms:
original_type: CHAR
text: Feb. Cost Share Group Code
width: 2.0
+ reference: https://resdac.org/cms-data/variables/monthly-cost-sharing-group-under-part-d-low-income-subsidy-february
type: VARCHAR(2)
- CSTSHR03:
description:
@@ -7988,6 +9086,7 @@ cms:
original_type: CHAR
text: Mar. Cost Share Group Code
width: 2.0
+ reference: https://resdac.org/cms-data/variables/monthly-cost-sharing-group-under-part-d-low-income-subsidy-march
type: VARCHAR(2)
- CSTSHR04:
description:
@@ -7995,6 +9094,7 @@ cms:
original_type: CHAR
text: Apr. Cost Share Group Code
width: 2.0
+ reference: https://resdac.org/cms-data/variables/monthly-cost-sharing-group-under-part-d-low-income-subsidy-april
type: VARCHAR(2)
- CSTSHR05:
description:
@@ -8002,6 +9102,7 @@ cms:
original_type: CHAR
text: May Cost Share Group Code
width: 2.0
+ reference: https://resdac.org/cms-data/variables/monthly-cost-sharing-group-under-part-d-low-income-subsidy-may
type: VARCHAR(2)
- CSTSHR06:
description:
@@ -8009,6 +9110,7 @@ cms:
original_type: CHAR
text: Jun. Cost Share Group Code
width: 2.0
+ reference: https://resdac.org/cms-data/variables/monthly-cost-sharing-group-under-part-d-low-income-subsidy-june
type: VARCHAR(2)
- CSTSHR07:
description:
@@ -8016,6 +9118,7 @@ cms:
original_type: CHAR
text: Jul. Cost Share Group Code
width: 2.0
+ reference: https://resdac.org/cms-data/variables/monthly-cost-sharing-group-under-part-d-low-income-subsidy-july
type: VARCHAR(2)
- CSTSHR08:
description:
@@ -8023,6 +9126,7 @@ cms:
original_type: CHAR
text: Aug. Cost Share Group Code
width: 2.0
+ reference: https://resdac.org/cms-data/variables/monthly-cost-sharing-group-under-part-d-low-income-subsidy-august
type: VARCHAR(2)
- CSTSHR09:
description:
@@ -8030,6 +9134,7 @@ cms:
original_type: CHAR
text: Sep. Cost Share Group Code
width: 2.0
+ reference: https://resdac.org/cms-data/variables/monthly-cost-sharing-group-under-part-d-low-income-subsidy-september
type: VARCHAR(2)
- CSTSHR10:
description:
@@ -8037,6 +9142,7 @@ cms:
original_type: CHAR
text: Oct. Cost Share Group Code
width: 2.0
+ reference: https://resdac.org/cms-data/variables/monthly-cost-sharing-group-under-part-d-low-income-subsidy-october
type: VARCHAR(2)
- CSTSHR11:
description:
@@ -8044,6 +9150,7 @@ cms:
original_type: CHAR
text: Nov. Cost Share Group Code
width: 2.0
+ reference: https://resdac.org/cms-data/variables/monthly-cost-sharing-group-under-part-d-low-income-subsidy-november
type: VARCHAR(2)
- CSTSHR12:
description:
@@ -8051,6 +9158,7 @@ cms:
original_type: CHAR
text: Dec. Cost Share Group Code
width: 2.0
+ reference: https://resdac.org/cms-data/variables/monthly-cost-sharing-group-under-part-d-low-income-subsidy-december
type: VARCHAR(2)
- RDSIND01:
description:
@@ -8058,6 +9166,7 @@ cms:
original_type: CHAR
text: Jan. RDS Code - Retiree Drug Subsidy Code
width: 1.0
+ reference: https://resdac.org/cms-data/variables/part-d-retiree-drug-subsidy-indicator-january
type: VARCHAR(1)
- RDSIND02:
description:
@@ -8065,6 +9174,7 @@ cms:
original_type: CHAR
text: Feb. RDS Code - Retiree Drug Subsidy Code
width: 1.0
+ reference: null
type: VARCHAR(1)
- RDSIND03:
description:
@@ -8072,6 +9182,7 @@ cms:
original_type: CHAR
text: Mar. RDS Code - Retiree Drug Subsidy Code
width: 1.0
+ reference: https://resdac.org/cms-data/variables/part-d-retiree-drug-subsidy-indicator-march
type: VARCHAR(1)
- RDSIND04:
description:
@@ -8079,6 +9190,7 @@ cms:
original_type: CHAR
text: Apr. RDS Code - Retiree Drug Subsidy Code
width: 1.0
+ reference: https://resdac.org/cms-data/variables/part-d-retiree-drug-subsidy-indicator-april
type: VARCHAR(1)
- RDSIND05:
description:
@@ -8086,6 +9198,7 @@ cms:
original_type: CHAR
text: May RDS Code - Retiree Drug Subsidy Code
width: 1.0
+ reference: https://resdac.org/cms-data/variables/part-d-retiree-drug-subsidy-indicator-may
type: VARCHAR(1)
- RDSIND06:
description:
@@ -8093,6 +9206,7 @@ cms:
original_type: CHAR
text: Jun. RDS Code - Retiree Drug Subsidy Code
width: 1.0
+ reference: https://resdac.org/cms-data/variables/part-d-retiree-drug-subsidy-indicator-june
type: VARCHAR(1)
- RDSIND07:
description:
@@ -8100,6 +9214,7 @@ cms:
original_type: CHAR
text: Jul. RDS Code - Retiree Drug Subsidy Code
width: 1.0
+ reference: https://resdac.org/cms-data/variables/part-d-retiree-drug-subsidy-indicator-july
type: VARCHAR(1)
- RDSIND08:
description:
@@ -8107,6 +9222,7 @@ cms:
original_type: CHAR
text: Aug. RDS Code - Retiree Drug Subsidy Code
width: 1.0
+ reference: https://resdac.org/cms-data/variables/part-d-retiree-drug-subsidy-indicator-august
type: VARCHAR(1)
- RDSIND09:
description:
@@ -8114,6 +9230,7 @@ cms:
original_type: CHAR
text: Sep. RDS Code - Retiree Drug Subsidy Code
width: 1.0
+ reference: https://resdac.org/cms-data/variables/part-d-retiree-drug-subsidy-indicator-september
type: VARCHAR(1)
- RDSIND10:
description:
@@ -8121,6 +9238,7 @@ cms:
original_type: CHAR
text: Oct. RDS Code - Retiree Drug Subsidy Code
width: 1.0
+ reference: https://resdac.org/cms-data/variables/part-d-retiree-drug-subsidy-indicator-october
type: VARCHAR(1)
- RDSIND11:
description:
@@ -8128,6 +9246,7 @@ cms:
original_type: CHAR
text: Nov. RDS Code - Retiree Drug Subsidy Code
width: 1.0
+ reference: https://resdac.org/cms-data/variables/part-d-retiree-drug-subsidy-indicator-november
type: VARCHAR(1)
- RDSIND12:
description:
@@ -8135,6 +9254,7 @@ cms:
original_type: CHAR
text: Dec. RDS Code - Retiree Drug Subsidy Code
width: 1.0
+ reference: https://resdac.org/cms-data/variables/part-d-retiree-drug-subsidy-indicator-december
type: VARCHAR(1)
- DUAL_01:
description:
@@ -8142,6 +9262,7 @@ cms:
original_type: CHAR
text: Jan. Dual Status Code
width: 2.0
+ reference: https://resdac.org/cms-data/variables/monthly-medicare-medicaid-dual-eligibility-code-january
type: VARCHAR(2)
- DUAL_02:
description:
@@ -8149,6 +9270,7 @@ cms:
original_type: CHAR
text: Feb. Dual Status Code
width: 2.0
+ reference: https://resdac.org/cms-data/variables/monthly-medicare-medicaid-dual-eligibility-code-february
type: VARCHAR(2)
- DUAL_03:
description:
@@ -8156,6 +9278,7 @@ cms:
original_type: CHAR
text: Mar. Dual Status Code
width: 2.0
+ reference: https://resdac.org/cms-data/variables/monthly-medicare-medicaid-dual-eligibility-code-march
type: VARCHAR(2)
- DUAL_04:
description:
@@ -8163,6 +9286,7 @@ cms:
original_type: CHAR
text: Apr. Dual Status Code
width: 2.0
+ reference: https://resdac.org/cms-data/variables/monthly-medicare-medicaid-dual-eligibility-code-april
type: VARCHAR(2)
- DUAL_05:
description:
@@ -8170,6 +9294,7 @@ cms:
original_type: CHAR
text: May Dual Status Code
width: 2.0
+ reference: https://resdac.org/cms-data/variables/monthly-medicare-medicaid-dual-eligibility-code-may
type: VARCHAR(2)
- DUAL_06:
description:
@@ -8177,6 +9302,7 @@ cms:
original_type: CHAR
text: Jun. Dual Status Code
width: 2.0
+ reference: https://resdac.org/cms-data/variables/monthly-medicare-medicaid-dual-eligibility-code-june
type: VARCHAR(2)
- DUAL_07:
description:
@@ -8184,6 +9310,7 @@ cms:
original_type: CHAR
text: Jul. Dual Status Code
width: 2.0
+ reference: https://resdac.org/cms-data/variables/monthly-medicare-medicaid-dual-eligibility-code-july
type: VARCHAR(2)
- DUAL_08:
description:
@@ -8191,6 +9318,7 @@ cms:
original_type: CHAR
text: Aug. Dual Status Code
width: 2.0
+ reference: https://resdac.org/cms-data/variables/monthly-medicare-medicaid-dual-eligibility-code-august
type: VARCHAR(2)
- DUAL_09:
description:
@@ -8198,6 +9326,7 @@ cms:
original_type: CHAR
text: Sep. Dual Status Code
width: 2.0
+ reference: https://resdac.org/cms-data/variables/monthly-medicare-medicaid-dual-eligibility-code-september
type: VARCHAR(2)
- DUAL_10:
description:
@@ -8205,6 +9334,7 @@ cms:
original_type: CHAR
text: Oct. Dual Status Code
width: 2.0
+ reference: https://resdac.org/cms-data/variables/monthly-medicare-medicaid-dual-eligibility-code-october
type: VARCHAR(2)
- DUAL_11:
description:
@@ -8212,6 +9342,7 @@ cms:
original_type: CHAR
text: Nov. Dual Status Code
width: 2.0
+ reference: https://resdac.org/cms-data/variables/monthly-medicare-medicaid-dual-eligibility-code-november
type: VARCHAR(2)
- DUAL_12:
description:
@@ -8219,6 +9350,7 @@ cms:
original_type: CHAR
text: Dec. Dual Status Code
width: 2.0
+ reference: https://resdac.org/cms-data/variables/monthly-medicare-medicaid-dual-eligibility-code-december
type: VARCHAR(2)
- FILE:
description:
@@ -8227,6 +9359,7 @@ cms:
width: 128
index:
required_before_loading_data: true
+ reference: null
source:
type: file
type: VARCHAR(128)
@@ -8235,6 +9368,7 @@ cms:
original_type: BIGSERIAL
text: Record number in the file
width: null
+ reference: https://resdac.org/cms-data/variables/nch-near-line-record-identification-code-ric
type: BIGSERIAL
- YEAR:
description:
@@ -8242,6 +9376,7 @@ cms:
text: Beneficiary Enrollment Reference Year
width: 4.0
index: true
+ reference: https://resdac.org/cms-data/variables/mbsf-cc-30/alzheimers-disease-end-year-indicator
source:
code: GENERATED ALWAYS AS (RFRNC_YR) STORED
type: generated
@@ -8263,6 +9398,7 @@ cms:
text: Encrypted 723 Beneficiary ID (Unique Key)
width: 15.0
index: true
+ reference: https://resdac.org/cms-data/variables/ccw-beneficiary-id
type: VARCHAR(15)
- RFRNC_YR:
description:
@@ -8270,6 +9406,7 @@ cms:
original_type: NUM
text: Beneficiary Enrollment Reference Year
width: 4.0
+ reference: https://resdac.org/cms-data/variables/reference-year-base
type: INT
- CRDCOVSW:
description:
@@ -8277,6 +9414,7 @@ cms:
original_type: CHAR
text: Creditable Coverage Switch
width: 1.0
+ reference: null
type: VARCHAR(1)
- PLNCOVMO:
description:
@@ -8284,6 +9422,7 @@ cms:
original_type: CHAR
text: Plan Coverage Months Number
width: 2.0
+ reference: null
type: VARCHAR(2)
- RDSCOVMO:
description:
@@ -8291,6 +9430,7 @@ cms:
original_type: CHAR
text: Retiree Drug Subsidy Coverage Months Number
width: 2.0
+ reference: null
type: VARCHAR(2)
- DUAL_MO:
description:
@@ -8298,6 +9438,7 @@ cms:
original_type: CHAR
text: Dual Eligible Months Number
width: 2.0
+ reference: https://resdac.org/cms-data/variables/months-dual-eligibility
type: VARCHAR(2)
- CNTRCT01:
description:
@@ -8305,6 +9446,7 @@ cms:
original_type: CHAR
text: Jan. Contract ID
width: 5.0
+ reference: https://resdac.org/cms-data/variables/monthly-part-d-contract-number-january
type: VARCHAR(5)
- CNTRCT02:
description:
@@ -8312,6 +9454,7 @@ cms:
original_type: CHAR
text: Feb. Contract ID
width: 5.0
+ reference: https://resdac.org/cms-data/variables/monthly-part-d-contract-number-february
type: VARCHAR(5)
- CNTRCT03:
description:
@@ -8319,6 +9462,7 @@ cms:
original_type: CHAR
text: Mar. Contract ID
width: 5.0
+ reference: https://resdac.org/cms-data/variables/monthly-part-d-contract-number-march
type: VARCHAR(5)
- CNTRCT04:
description:
@@ -8326,6 +9470,7 @@ cms:
original_type: CHAR
text: Apr. Contract ID
width: 5.0
+ reference: https://resdac.org/cms-data/variables/monthly-part-d-contract-number-april
type: VARCHAR(5)
- CNTRCT05:
description:
@@ -8333,6 +9478,7 @@ cms:
original_type: CHAR
text: May Contract ID
width: 5.0
+ reference: https://resdac.org/cms-data/variables/monthly-part-d-contract-number-may
type: VARCHAR(5)
- CNTRCT06:
description:
@@ -8340,6 +9486,7 @@ cms:
original_type: CHAR
text: Jun. Contract ID
width: 5.0
+ reference: https://resdac.org/cms-data/variables/monthly-part-d-contract-number-june
type: VARCHAR(5)
- CNTRCT07:
description:
@@ -8347,6 +9494,7 @@ cms:
original_type: CHAR
text: Jul. Contract ID
width: 5.0
+ reference: https://resdac.org/cms-data/variables/monthly-part-d-contract-number-july
type: VARCHAR(5)
- CNTRCT08:
description:
@@ -8354,6 +9502,7 @@ cms:
original_type: CHAR
text: Aug. Contract ID
width: 5.0
+ reference: https://resdac.org/cms-data/variables/monthly-part-d-contract-number-august
type: VARCHAR(5)
- CNTRCT09:
description:
@@ -8361,6 +9510,7 @@ cms:
original_type: CHAR
text: Sep. Contract ID
width: 5.0
+ reference: https://resdac.org/cms-data/variables/monthly-part-d-contract-number-september
type: VARCHAR(5)
- CNTRCT10:
description:
@@ -8368,6 +9518,7 @@ cms:
original_type: CHAR
text: Oct. Contract ID
width: 5.0
+ reference: https://resdac.org/cms-data/variables/monthly-part-d-contract-number-october
type: VARCHAR(5)
- CNTRCT11:
description:
@@ -8375,6 +9526,7 @@ cms:
original_type: CHAR
text: Nov. Contract ID
width: 5.0
+ reference: https://resdac.org/cms-data/variables/monthly-part-d-contract-number-november
type: VARCHAR(5)
- CNTRCT12:
description:
@@ -8382,6 +9534,7 @@ cms:
original_type: CHAR
text: Dec. Contract ID
width: 5.0
+ reference: https://resdac.org/cms-data/variables/monthly-part-d-contract-number-december
type: VARCHAR(5)
- PBPID01:
description:
@@ -8389,6 +9542,7 @@ cms:
original_type: CHAR
text: Jan. Plan Benefit Package ID
width: 3.0
+ reference: https://resdac.org/cms-data/variables/monthly-part-d-plan-benefit-package-number-january
type: VARCHAR(3)
- PBPID02:
description:
@@ -8396,6 +9550,7 @@ cms:
original_type: CHAR
text: Feb. Plan Benefit Package ID
width: 3.0
+ reference: https://resdac.org/cms-data/variables/monthly-part-d-plan-benefit-package-number-february
type: VARCHAR(3)
- PBPID03:
description:
@@ -8403,6 +9558,7 @@ cms:
original_type: CHAR
text: Mar. Plan Benefit Package ID
width: 3.0
+ reference: https://resdac.org/cms-data/variables/monthly-part-d-plan-benefit-package-number-march
type: VARCHAR(3)
- PBPID04:
description:
@@ -8410,6 +9566,7 @@ cms:
original_type: CHAR
text: Apr. Plan Benefit Package ID
width: 3.0
+ reference: https://resdac.org/cms-data/variables/monthly-part-d-plan-benefit-package-number-april
type: VARCHAR(3)
- PBPID05:
description:
@@ -8417,6 +9574,7 @@ cms:
original_type: CHAR
text: May Plan Benefit Package ID
width: 3.0
+ reference: https://resdac.org/cms-data/variables/monthly-part-d-plan-benefit-package-number-may
type: VARCHAR(3)
- PBPID06:
description:
@@ -8424,6 +9582,7 @@ cms:
original_type: CHAR
text: Jun. Plan Benefit Package ID
width: 3.0
+ reference: https://resdac.org/cms-data/variables/monthly-part-d-plan-benefit-package-number-june
type: VARCHAR(3)
- PBPID07:
description:
@@ -8431,6 +9590,7 @@ cms:
original_type: CHAR
text: Jul. Plan Benefit Package ID
width: 3.0
+ reference: https://resdac.org/cms-data/variables/monthly-part-d-plan-benefit-package-number-july
type: VARCHAR(3)
- PBPID08:
description:
@@ -8438,6 +9598,7 @@ cms:
original_type: CHAR
text: Aug. Plan Benefit Package ID
width: 3.0
+ reference: https://resdac.org/cms-data/variables/monthly-part-d-plan-benefit-package-number-august
type: VARCHAR(3)
- PBPID09:
description:
@@ -8445,6 +9606,7 @@ cms:
original_type: CHAR
text: Sep. Plan Benefit Package ID
width: 3.0
+ reference: https://resdac.org/cms-data/variables/monthly-part-d-plan-benefit-package-number-september
type: VARCHAR(3)
- PBPID10:
description:
@@ -8452,6 +9614,7 @@ cms:
original_type: CHAR
text: Oct. Plan Benefit Package ID
width: 3.0
+ reference: https://resdac.org/cms-data/variables/monthly-part-d-plan-benefit-package-number-october
type: VARCHAR(3)
- PBPID11:
description:
@@ -8459,6 +9622,7 @@ cms:
original_type: CHAR
text: Nov. Plan Benefit Package ID
width: 3.0
+ reference: https://resdac.org/cms-data/variables/monthly-part-d-plan-benefit-package-number-november
type: VARCHAR(3)
- PBPID12:
description:
@@ -8466,6 +9630,7 @@ cms:
original_type: CHAR
text: Dec. Plan Benefit Package ID
width: 3.0
+ reference: https://resdac.org/cms-data/variables/monthly-part-d-plan-benefit-package-number-december
type: VARCHAR(3)
- SGMTID01:
description:
@@ -8473,6 +9638,7 @@ cms:
original_type: CHAR
text: Jan. Segment ID
width: 3.0
+ reference: https://resdac.org/cms-data/variables/monthly-part-d-market-segment-identifier-january
type: VARCHAR(3)
- SGMTID02:
description:
@@ -8480,6 +9646,7 @@ cms:
original_type: CHAR
text: Feb. Segment ID
width: 3.0
+ reference: https://resdac.org/cms-data/variables/monthly-part-d-market-segment-identifier-february
type: VARCHAR(3)
- SGMTID03:
description:
@@ -8487,6 +9654,7 @@ cms:
original_type: CHAR
text: Mar. Segment ID
width: 3.0
+ reference: https://resdac.org/cms-data/variables/monthly-part-d-market-segment-identifier-march
type: VARCHAR(3)
- SGMTID04:
description:
@@ -8494,6 +9662,7 @@ cms:
original_type: CHAR
text: Apr. Segment ID
width: 3.0
+ reference: https://resdac.org/cms-data/variables/monthly-part-d-market-segment-identifier-april
type: VARCHAR(3)
- SGMTID05:
description:
@@ -8501,6 +9670,7 @@ cms:
original_type: CHAR
text: May Segment ID
width: 3.0
+ reference: https://resdac.org/cms-data/variables/monthly-part-d-market-segment-identifier-may
type: VARCHAR(3)
- SGMTID06:
description:
@@ -8508,6 +9678,7 @@ cms:
original_type: CHAR
text: Jun. Segment ID
width: 3.0
+ reference: https://resdac.org/cms-data/variables/monthly-part-d-market-segment-identifier-june
type: VARCHAR(3)
- SGMTID07:
description:
@@ -8515,6 +9686,7 @@ cms:
original_type: CHAR
text: Jul. Segment ID
width: 3.0
+ reference: https://resdac.org/cms-data/variables/monthly-part-d-market-segment-identifier-july
type: VARCHAR(3)
- SGMTID08:
description:
@@ -8522,6 +9694,7 @@ cms:
original_type: CHAR
text: Aug. Segment ID
width: 3.0
+ reference: https://resdac.org/cms-data/variables/monthly-part-d-market-segment-identifier-august
type: VARCHAR(3)
- SGMTID09:
description:
@@ -8529,6 +9702,7 @@ cms:
original_type: CHAR
text: Sep. Segment ID
width: 3.0
+ reference: https://resdac.org/cms-data/variables/monthly-part-d-market-segment-identifier-september
type: VARCHAR(3)
- SGMTID10:
description:
@@ -8536,6 +9710,7 @@ cms:
original_type: CHAR
text: Oct. Segment ID
width: 3.0
+ reference: https://resdac.org/cms-data/variables/monthly-part-d-market-segment-identifier-october
type: VARCHAR(3)
- SGMTID11:
description:
@@ -8543,6 +9718,7 @@ cms:
original_type: CHAR
text: Nov. Segment ID
width: 3.0
+ reference: https://resdac.org/cms-data/variables/monthly-part-d-market-segment-identifier-november
type: VARCHAR(3)
- SGMTID12:
description:
@@ -8550,6 +9726,7 @@ cms:
original_type: CHAR
text: Dec. Segment ID
width: 3.0
+ reference: https://resdac.org/cms-data/variables/monthly-part-d-market-segment-identifier-december
type: VARCHAR(3)
- CSTSHR01:
description:
@@ -8557,6 +9734,7 @@ cms:
original_type: CHAR
text: Jan. Cost Share Group Code
width: 2.0
+ reference: https://resdac.org/cms-data/variables/monthly-cost-sharing-group-under-part-d-low-income-subsidy-january
type: VARCHAR(2)
- CSTSHR02:
description:
@@ -8564,6 +9742,7 @@ cms:
original_type: CHAR
text: Feb. Cost Share Group Code
width: 2.0
+ reference: https://resdac.org/cms-data/variables/monthly-cost-sharing-group-under-part-d-low-income-subsidy-february
type: VARCHAR(2)
- CSTSHR03:
description:
@@ -8571,6 +9750,7 @@ cms:
original_type: CHAR
text: Mar. Cost Share Group Code
width: 2.0
+ reference: https://resdac.org/cms-data/variables/monthly-cost-sharing-group-under-part-d-low-income-subsidy-march
type: VARCHAR(2)
- CSTSHR04:
description:
@@ -8578,6 +9758,7 @@ cms:
original_type: CHAR
text: Apr. Cost Share Group Code
width: 2.0
+ reference: https://resdac.org/cms-data/variables/monthly-cost-sharing-group-under-part-d-low-income-subsidy-april
type: VARCHAR(2)
- CSTSHR05:
description:
@@ -8585,6 +9766,7 @@ cms:
original_type: CHAR
text: May Cost Share Group Code
width: 2.0
+ reference: https://resdac.org/cms-data/variables/monthly-cost-sharing-group-under-part-d-low-income-subsidy-may
type: VARCHAR(2)
- CSTSHR06:
description:
@@ -8592,6 +9774,7 @@ cms:
original_type: CHAR
text: Jun. Cost Share Group Code
width: 2.0
+ reference: https://resdac.org/cms-data/variables/monthly-cost-sharing-group-under-part-d-low-income-subsidy-june
type: VARCHAR(2)
- CSTSHR07:
description:
@@ -8599,6 +9782,7 @@ cms:
original_type: CHAR
text: Jul. Cost Share Group Code
width: 2.0
+ reference: https://resdac.org/cms-data/variables/monthly-cost-sharing-group-under-part-d-low-income-subsidy-july
type: VARCHAR(2)
- CSTSHR08:
description:
@@ -8606,6 +9790,7 @@ cms:
original_type: CHAR
text: Aug. Cost Share Group Code
width: 2.0
+ reference: https://resdac.org/cms-data/variables/monthly-cost-sharing-group-under-part-d-low-income-subsidy-august
type: VARCHAR(2)
- CSTSHR09:
description:
@@ -8613,6 +9798,7 @@ cms:
original_type: CHAR
text: Sep. Cost Share Group Code
width: 2.0
+ reference: https://resdac.org/cms-data/variables/monthly-cost-sharing-group-under-part-d-low-income-subsidy-september
type: VARCHAR(2)
- CSTSHR10:
description:
@@ -8620,6 +9806,7 @@ cms:
original_type: CHAR
text: Oct. Cost Share Group Code
width: 2.0
+ reference: https://resdac.org/cms-data/variables/monthly-cost-sharing-group-under-part-d-low-income-subsidy-october
type: VARCHAR(2)
- CSTSHR11:
description:
@@ -8627,6 +9814,7 @@ cms:
original_type: CHAR
text: Nov. Cost Share Group Code
width: 2.0
+ reference: https://resdac.org/cms-data/variables/monthly-cost-sharing-group-under-part-d-low-income-subsidy-november
type: VARCHAR(2)
- CSTSHR12:
description:
@@ -8634,6 +9822,7 @@ cms:
original_type: CHAR
text: Dec. Cost Share Group Code
width: 2.0
+ reference: https://resdac.org/cms-data/variables/monthly-cost-sharing-group-under-part-d-low-income-subsidy-december
type: VARCHAR(2)
- RDSIND01:
description:
@@ -8641,6 +9830,7 @@ cms:
original_type: CHAR
text: Jan. RDS Code - Retiree Drug Subsidy Code
width: 1.0
+ reference: https://resdac.org/cms-data/variables/part-d-retiree-drug-subsidy-indicator-january
type: VARCHAR(1)
- RDSIND02:
description:
@@ -8648,6 +9838,7 @@ cms:
original_type: CHAR
text: Feb. RDS Code - Retiree Drug Subsidy Code
width: 1.0
+ reference: null
type: VARCHAR(1)
- RDSIND03:
description:
@@ -8655,6 +9846,7 @@ cms:
original_type: CHAR
text: Mar. RDS Code - Retiree Drug Subsidy Code
width: 1.0
+ reference: https://resdac.org/cms-data/variables/part-d-retiree-drug-subsidy-indicator-march
type: VARCHAR(1)
- RDSIND04:
description:
@@ -8662,6 +9854,7 @@ cms:
original_type: CHAR
text: Apr. RDS Code - Retiree Drug Subsidy Code
width: 1.0
+ reference: https://resdac.org/cms-data/variables/part-d-retiree-drug-subsidy-indicator-april
type: VARCHAR(1)
- RDSIND05:
description:
@@ -8669,6 +9862,7 @@ cms:
original_type: CHAR
text: May RDS Code - Retiree Drug Subsidy Code
width: 1.0
+ reference: https://resdac.org/cms-data/variables/part-d-retiree-drug-subsidy-indicator-may
type: VARCHAR(1)
- RDSIND06:
description:
@@ -8676,6 +9870,7 @@ cms:
original_type: CHAR
text: Jun. RDS Code - Retiree Drug Subsidy Code
width: 1.0
+ reference: https://resdac.org/cms-data/variables/part-d-retiree-drug-subsidy-indicator-june
type: VARCHAR(1)
- RDSIND07:
description:
@@ -8683,6 +9878,7 @@ cms:
original_type: CHAR
text: Jul. RDS Code - Retiree Drug Subsidy Code
width: 1.0
+ reference: https://resdac.org/cms-data/variables/part-d-retiree-drug-subsidy-indicator-july
type: VARCHAR(1)
- RDSIND08:
description:
@@ -8690,6 +9886,7 @@ cms:
original_type: CHAR
text: Aug. RDS Code - Retiree Drug Subsidy Code
width: 1.0
+ reference: https://resdac.org/cms-data/variables/part-d-retiree-drug-subsidy-indicator-august
type: VARCHAR(1)
- RDSIND09:
description:
@@ -8697,6 +9894,7 @@ cms:
original_type: CHAR
text: Sep. RDS Code - Retiree Drug Subsidy Code
width: 1.0
+ reference: https://resdac.org/cms-data/variables/part-d-retiree-drug-subsidy-indicator-september
type: VARCHAR(1)
- RDSIND10:
description:
@@ -8704,6 +9902,7 @@ cms:
original_type: CHAR
text: Oct. RDS Code - Retiree Drug Subsidy Code
width: 1.0
+ reference: https://resdac.org/cms-data/variables/part-d-retiree-drug-subsidy-indicator-october
type: VARCHAR(1)
- RDSIND11:
description:
@@ -8711,6 +9910,7 @@ cms:
original_type: CHAR
text: Nov. RDS Code - Retiree Drug Subsidy Code
width: 1.0
+ reference: https://resdac.org/cms-data/variables/part-d-retiree-drug-subsidy-indicator-november
type: VARCHAR(1)
- RDSIND12:
description:
@@ -8718,6 +9918,7 @@ cms:
original_type: CHAR
text: Dec. RDS Code - Retiree Drug Subsidy Code
width: 1.0
+ reference: https://resdac.org/cms-data/variables/part-d-retiree-drug-subsidy-indicator-december
type: VARCHAR(1)
- DUAL_01:
description:
@@ -8725,6 +9926,7 @@ cms:
original_type: CHAR
text: Jan. Dual Status Code
width: 2.0
+ reference: https://resdac.org/cms-data/variables/monthly-medicare-medicaid-dual-eligibility-code-january
type: VARCHAR(2)
- DUAL_02:
description:
@@ -8732,6 +9934,7 @@ cms:
original_type: CHAR
text: Feb. Dual Status Code
width: 2.0
+ reference: https://resdac.org/cms-data/variables/monthly-medicare-medicaid-dual-eligibility-code-february
type: VARCHAR(2)
- DUAL_03:
description:
@@ -8739,6 +9942,7 @@ cms:
original_type: CHAR
text: Mar. Dual Status Code
width: 2.0
+ reference: https://resdac.org/cms-data/variables/monthly-medicare-medicaid-dual-eligibility-code-march
type: VARCHAR(2)
- DUAL_04:
description:
@@ -8746,6 +9950,7 @@ cms:
original_type: CHAR
text: Apr. Dual Status Code
width: 2.0
+ reference: https://resdac.org/cms-data/variables/monthly-medicare-medicaid-dual-eligibility-code-april
type: VARCHAR(2)
- DUAL_05:
description:
@@ -8753,6 +9958,7 @@ cms:
original_type: CHAR
text: May Dual Status Code
width: 2.0
+ reference: https://resdac.org/cms-data/variables/monthly-medicare-medicaid-dual-eligibility-code-may
type: VARCHAR(2)
- DUAL_06:
description:
@@ -8760,6 +9966,7 @@ cms:
original_type: CHAR
text: Jun. Dual Status Code
width: 2.0
+ reference: https://resdac.org/cms-data/variables/monthly-medicare-medicaid-dual-eligibility-code-june
type: VARCHAR(2)
- DUAL_07:
description:
@@ -8767,6 +9974,7 @@ cms:
original_type: CHAR
text: Jul. Dual Status Code
width: 2.0
+ reference: https://resdac.org/cms-data/variables/monthly-medicare-medicaid-dual-eligibility-code-july
type: VARCHAR(2)
- DUAL_08:
description:
@@ -8774,6 +9982,7 @@ cms:
original_type: CHAR
text: Aug. Dual Status Code
width: 2.0
+ reference: https://resdac.org/cms-data/variables/monthly-medicare-medicaid-dual-eligibility-code-august
type: VARCHAR(2)
- DUAL_09:
description:
@@ -8781,6 +9990,7 @@ cms:
original_type: CHAR
text: Sep. Dual Status Code
width: 2.0
+ reference: https://resdac.org/cms-data/variables/monthly-medicare-medicaid-dual-eligibility-code-september
type: VARCHAR(2)
- DUAL_10:
description:
@@ -8788,6 +9998,7 @@ cms:
original_type: CHAR
text: Oct. Dual Status Code
width: 2.0
+ reference: https://resdac.org/cms-data/variables/monthly-medicare-medicaid-dual-eligibility-code-october
type: VARCHAR(2)
- DUAL_11:
description:
@@ -8795,6 +10006,7 @@ cms:
original_type: CHAR
text: Nov. Dual Status Code
width: 2.0
+ reference: https://resdac.org/cms-data/variables/monthly-medicare-medicaid-dual-eligibility-code-november
type: VARCHAR(2)
- DUAL_12:
description:
@@ -8802,6 +10014,7 @@ cms:
original_type: CHAR
text: Dec. Dual Status Code
width: 2.0
+ reference: https://resdac.org/cms-data/variables/monthly-medicare-medicaid-dual-eligibility-code-december
type: VARCHAR(2)
- FILE:
description:
@@ -8810,6 +10023,7 @@ cms:
width: 128
index:
required_before_loading_data: true
+ reference: null
source:
type: file
type: VARCHAR(128)
@@ -8818,6 +10032,7 @@ cms:
original_type: BIGSERIAL
text: Record number in the file
width: null
+ reference: https://resdac.org/cms-data/variables/nch-near-line-record-identification-code-ric
type: BIGSERIAL
- YEAR:
description:
@@ -8825,6 +10040,7 @@ cms:
text: Beneficiary Enrollment Reference Year
width: 4.0
index: true
+ reference: https://resdac.org/cms-data/variables/mbsf-cc-30/alzheimers-disease-end-year-indicator
source:
code: GENERATED ALWAYS AS (RFRNC_YR) STORED
type: generated
@@ -8846,6 +10062,7 @@ cms:
text: Encrypted 723 Beneficiary ID (Unique Key)
width: 15.0
index: true
+ reference: https://resdac.org/cms-data/variables/ccw-beneficiary-id
type: VARCHAR(15)
- RFRNC_YR:
description:
@@ -8853,6 +10070,7 @@ cms:
original_type: NUM
text: Beneficiary Enrollment Reference Year
width: 4.0
+ reference: https://resdac.org/cms-data/variables/reference-year-base
type: INT
- CRDCOVSW:
description:
@@ -8860,6 +10078,7 @@ cms:
original_type: CHAR
text: Creditable Coverage Switch
width: 1.0
+ reference: null
type: VARCHAR(1)
- PLNCOVMO:
description:
@@ -8867,6 +10086,7 @@ cms:
original_type: CHAR
text: Plan Coverage Months Number
width: 2.0
+ reference: null
type: VARCHAR(2)
- RDSCOVMO:
description:
@@ -8874,6 +10094,7 @@ cms:
original_type: CHAR
text: Retiree Drug Subsidy Coverage Months Number
width: 2.0
+ reference: null
type: VARCHAR(2)
- DUAL_MO:
description:
@@ -8881,6 +10102,7 @@ cms:
original_type: CHAR
text: Dual Eligible Months Number
width: 2.0
+ reference: https://resdac.org/cms-data/variables/months-dual-eligibility
type: VARCHAR(2)
- CNTRCT01:
description:
@@ -8888,6 +10110,7 @@ cms:
original_type: CHAR
text: Jan. Contract ID
width: 5.0
+ reference: https://resdac.org/cms-data/variables/monthly-part-d-contract-number-january
type: VARCHAR(5)
- CNTRCT02:
description:
@@ -8895,6 +10118,7 @@ cms:
original_type: CHAR
text: Feb. Contract ID
width: 5.0
+ reference: https://resdac.org/cms-data/variables/monthly-part-d-contract-number-february
type: VARCHAR(5)
- CNTRCT03:
description:
@@ -8902,6 +10126,7 @@ cms:
original_type: CHAR
text: Mar. Contract ID
width: 5.0
+ reference: https://resdac.org/cms-data/variables/monthly-part-d-contract-number-march
type: VARCHAR(5)
- CNTRCT04:
description:
@@ -8909,6 +10134,7 @@ cms:
original_type: CHAR
text: Apr. Contract ID
width: 5.0
+ reference: https://resdac.org/cms-data/variables/monthly-part-d-contract-number-april
type: VARCHAR(5)
- CNTRCT05:
description:
@@ -8916,6 +10142,7 @@ cms:
original_type: CHAR
text: May Contract ID
width: 5.0
+ reference: https://resdac.org/cms-data/variables/monthly-part-d-contract-number-may
type: VARCHAR(5)
- CNTRCT06:
description:
@@ -8923,6 +10150,7 @@ cms:
original_type: CHAR
text: Jun. Contract ID
width: 5.0
+ reference: https://resdac.org/cms-data/variables/monthly-part-d-contract-number-june
type: VARCHAR(5)
- CNTRCT07:
description:
@@ -8930,6 +10158,7 @@ cms:
original_type: CHAR
text: Jul. Contract ID
width: 5.0
+ reference: https://resdac.org/cms-data/variables/monthly-part-d-contract-number-july
type: VARCHAR(5)
- CNTRCT08:
description:
@@ -8937,6 +10166,7 @@ cms:
original_type: CHAR
text: Aug. Contract ID
width: 5.0
+ reference: https://resdac.org/cms-data/variables/monthly-part-d-contract-number-august
type: VARCHAR(5)
- CNTRCT09:
description:
@@ -8944,6 +10174,7 @@ cms:
original_type: CHAR
text: Sep. Contract ID
width: 5.0
+ reference: https://resdac.org/cms-data/variables/monthly-part-d-contract-number-september
type: VARCHAR(5)
- CNTRCT10:
description:
@@ -8951,6 +10182,7 @@ cms:
original_type: CHAR
text: Oct. Contract ID
width: 5.0
+ reference: https://resdac.org/cms-data/variables/monthly-part-d-contract-number-october
type: VARCHAR(5)
- CNTRCT11:
description:
@@ -8958,6 +10190,7 @@ cms:
original_type: CHAR
text: Nov. Contract ID
width: 5.0
+ reference: https://resdac.org/cms-data/variables/monthly-part-d-contract-number-november
type: VARCHAR(5)
- CNTRCT12:
description:
@@ -8965,6 +10198,7 @@ cms:
original_type: CHAR
text: Dec. Contract ID
width: 5.0
+ reference: https://resdac.org/cms-data/variables/monthly-part-d-contract-number-december
type: VARCHAR(5)
- PBPID01:
description:
@@ -8972,6 +10206,7 @@ cms:
original_type: CHAR
text: Jan. Plan Benefit Package ID
width: 3.0
+ reference: https://resdac.org/cms-data/variables/monthly-part-d-plan-benefit-package-number-january
type: VARCHAR(3)
- PBPID02:
description:
@@ -8979,6 +10214,7 @@ cms:
original_type: CHAR
text: Feb. Plan Benefit Package ID
width: 3.0
+ reference: https://resdac.org/cms-data/variables/monthly-part-d-plan-benefit-package-number-february
type: VARCHAR(3)
- PBPID03:
description:
@@ -8986,6 +10222,7 @@ cms:
original_type: CHAR
text: Mar. Plan Benefit Package ID
width: 3.0
+ reference: https://resdac.org/cms-data/variables/monthly-part-d-plan-benefit-package-number-march
type: VARCHAR(3)
- PBPID04:
description:
@@ -8993,6 +10230,7 @@ cms:
original_type: CHAR
text: Apr. Plan Benefit Package ID
width: 3.0
+ reference: https://resdac.org/cms-data/variables/monthly-part-d-plan-benefit-package-number-april
type: VARCHAR(3)
- PBPID05:
description:
@@ -9000,6 +10238,7 @@ cms:
original_type: CHAR
text: May Plan Benefit Package ID
width: 3.0
+ reference: https://resdac.org/cms-data/variables/monthly-part-d-plan-benefit-package-number-may
type: VARCHAR(3)
- PBPID06:
description:
@@ -9007,6 +10246,7 @@ cms:
original_type: CHAR
text: Jun. Plan Benefit Package ID
width: 3.0
+ reference: https://resdac.org/cms-data/variables/monthly-part-d-plan-benefit-package-number-june
type: VARCHAR(3)
- PBPID07:
description:
@@ -9014,6 +10254,7 @@ cms:
original_type: CHAR
text: Jul. Plan Benefit Package ID
width: 3.0
+ reference: https://resdac.org/cms-data/variables/monthly-part-d-plan-benefit-package-number-july
type: VARCHAR(3)
- PBPID08:
description:
@@ -9021,6 +10262,7 @@ cms:
original_type: CHAR
text: Aug. Plan Benefit Package ID
width: 3.0
+ reference: https://resdac.org/cms-data/variables/monthly-part-d-plan-benefit-package-number-august
type: VARCHAR(3)
- PBPID09:
description:
@@ -9028,6 +10270,7 @@ cms:
original_type: CHAR
text: Sep. Plan Benefit Package ID
width: 3.0
+ reference: https://resdac.org/cms-data/variables/monthly-part-d-plan-benefit-package-number-september
type: VARCHAR(3)
- PBPID10:
description:
@@ -9035,6 +10278,7 @@ cms:
original_type: CHAR
text: Oct. Plan Benefit Package ID
width: 3.0
+ reference: https://resdac.org/cms-data/variables/monthly-part-d-plan-benefit-package-number-october
type: VARCHAR(3)
- PBPID11:
description:
@@ -9042,6 +10286,7 @@ cms:
original_type: CHAR
text: Nov. Plan Benefit Package ID
width: 3.0
+ reference: https://resdac.org/cms-data/variables/monthly-part-d-plan-benefit-package-number-november
type: VARCHAR(3)
- PBPID12:
description:
@@ -9049,6 +10294,7 @@ cms:
original_type: CHAR
text: Dec. Plan Benefit Package ID
width: 3.0
+ reference: https://resdac.org/cms-data/variables/monthly-part-d-plan-benefit-package-number-december
type: VARCHAR(3)
- SGMTID01:
description:
@@ -9056,6 +10302,7 @@ cms:
original_type: CHAR
text: Jan. Segment ID
width: 3.0
+ reference: https://resdac.org/cms-data/variables/monthly-part-d-market-segment-identifier-january
type: VARCHAR(3)
- SGMTID02:
description:
@@ -9063,6 +10310,7 @@ cms:
original_type: CHAR
text: Feb. Segment ID
width: 3.0
+ reference: https://resdac.org/cms-data/variables/monthly-part-d-market-segment-identifier-february
type: VARCHAR(3)
- SGMTID03:
description:
@@ -9070,6 +10318,7 @@ cms:
original_type: CHAR
text: Mar. Segment ID
width: 3.0
+ reference: https://resdac.org/cms-data/variables/monthly-part-d-market-segment-identifier-march
type: VARCHAR(3)
- SGMTID04:
description:
@@ -9077,6 +10326,7 @@ cms:
original_type: CHAR
text: Apr. Segment ID
width: 3.0
+ reference: https://resdac.org/cms-data/variables/monthly-part-d-market-segment-identifier-april
type: VARCHAR(3)
- SGMTID05:
description:
@@ -9084,6 +10334,7 @@ cms:
original_type: CHAR
text: May Segment ID
width: 3.0
+ reference: https://resdac.org/cms-data/variables/monthly-part-d-market-segment-identifier-may
type: VARCHAR(3)
- SGMTID06:
description:
@@ -9091,6 +10342,7 @@ cms:
original_type: CHAR
text: Jun. Segment ID
width: 3.0
+ reference: https://resdac.org/cms-data/variables/monthly-part-d-market-segment-identifier-june
type: VARCHAR(3)
- SGMTID07:
description:
@@ -9098,6 +10350,7 @@ cms:
original_type: CHAR
text: Jul. Segment ID
width: 3.0
+ reference: https://resdac.org/cms-data/variables/monthly-part-d-market-segment-identifier-july
type: VARCHAR(3)
- SGMTID08:
description:
@@ -9105,6 +10358,7 @@ cms:
original_type: CHAR
text: Aug. Segment ID
width: 3.0
+ reference: https://resdac.org/cms-data/variables/monthly-part-d-market-segment-identifier-august
type: VARCHAR(3)
- SGMTID09:
description:
@@ -9112,6 +10366,7 @@ cms:
original_type: CHAR
text: Sep. Segment ID
width: 3.0
+ reference: https://resdac.org/cms-data/variables/monthly-part-d-market-segment-identifier-september
type: VARCHAR(3)
- SGMTID10:
description:
@@ -9119,6 +10374,7 @@ cms:
original_type: CHAR
text: Oct. Segment ID
width: 3.0
+ reference: https://resdac.org/cms-data/variables/monthly-part-d-market-segment-identifier-october
type: VARCHAR(3)
- SGMTID11:
description:
@@ -9126,6 +10382,7 @@ cms:
original_type: CHAR
text: Nov. Segment ID
width: 3.0
+ reference: https://resdac.org/cms-data/variables/monthly-part-d-market-segment-identifier-november
type: VARCHAR(3)
- SGMTID12:
description:
@@ -9133,6 +10390,7 @@ cms:
original_type: CHAR
text: Dec. Segment ID
width: 3.0
+ reference: https://resdac.org/cms-data/variables/monthly-part-d-market-segment-identifier-december
type: VARCHAR(3)
- CSTSHR01:
description:
@@ -9140,6 +10398,7 @@ cms:
original_type: CHAR
text: Jan. Cost Share Group Code
width: 2.0
+ reference: https://resdac.org/cms-data/variables/monthly-cost-sharing-group-under-part-d-low-income-subsidy-january
type: VARCHAR(2)
- CSTSHR02:
description:
@@ -9147,6 +10406,7 @@ cms:
original_type: CHAR
text: Feb. Cost Share Group Code
width: 2.0
+ reference: https://resdac.org/cms-data/variables/monthly-cost-sharing-group-under-part-d-low-income-subsidy-february
type: VARCHAR(2)
- CSTSHR03:
description:
@@ -9154,6 +10414,7 @@ cms:
original_type: CHAR
text: Mar. Cost Share Group Code
width: 2.0
+ reference: https://resdac.org/cms-data/variables/monthly-cost-sharing-group-under-part-d-low-income-subsidy-march
type: VARCHAR(2)
- CSTSHR04:
description:
@@ -9161,6 +10422,7 @@ cms:
original_type: CHAR
text: Apr. Cost Share Group Code
width: 2.0
+ reference: https://resdac.org/cms-data/variables/monthly-cost-sharing-group-under-part-d-low-income-subsidy-april
type: VARCHAR(2)
- CSTSHR05:
description:
@@ -9168,6 +10430,7 @@ cms:
original_type: CHAR
text: May Cost Share Group Code
width: 2.0
+ reference: https://resdac.org/cms-data/variables/monthly-cost-sharing-group-under-part-d-low-income-subsidy-may
type: VARCHAR(2)
- CSTSHR06:
description:
@@ -9175,6 +10438,7 @@ cms:
original_type: CHAR
text: Jun. Cost Share Group Code
width: 2.0
+ reference: https://resdac.org/cms-data/variables/monthly-cost-sharing-group-under-part-d-low-income-subsidy-june
type: VARCHAR(2)
- CSTSHR07:
description:
@@ -9182,6 +10446,7 @@ cms:
original_type: CHAR
text: Jul. Cost Share Group Code
width: 2.0
+ reference: https://resdac.org/cms-data/variables/monthly-cost-sharing-group-under-part-d-low-income-subsidy-july
type: VARCHAR(2)
- CSTSHR08:
description:
@@ -9189,6 +10454,7 @@ cms:
original_type: CHAR
text: Aug. Cost Share Group Code
width: 2.0
+ reference: https://resdac.org/cms-data/variables/monthly-cost-sharing-group-under-part-d-low-income-subsidy-august
type: VARCHAR(2)
- CSTSHR09:
description:
@@ -9196,6 +10462,7 @@ cms:
original_type: CHAR
text: Sep. Cost Share Group Code
width: 2.0
+ reference: https://resdac.org/cms-data/variables/monthly-cost-sharing-group-under-part-d-low-income-subsidy-september
type: VARCHAR(2)
- CSTSHR10:
description:
@@ -9203,6 +10470,7 @@ cms:
original_type: CHAR
text: Oct. Cost Share Group Code
width: 2.0
+ reference: https://resdac.org/cms-data/variables/monthly-cost-sharing-group-under-part-d-low-income-subsidy-october
type: VARCHAR(2)
- CSTSHR11:
description:
@@ -9210,6 +10478,7 @@ cms:
original_type: CHAR
text: Nov. Cost Share Group Code
width: 2.0
+ reference: https://resdac.org/cms-data/variables/monthly-cost-sharing-group-under-part-d-low-income-subsidy-november
type: VARCHAR(2)
- CSTSHR12:
description:
@@ -9217,6 +10486,7 @@ cms:
original_type: CHAR
text: Dec. Cost Share Group Code
width: 2.0
+ reference: https://resdac.org/cms-data/variables/monthly-cost-sharing-group-under-part-d-low-income-subsidy-december
type: VARCHAR(2)
- RDSIND01:
description:
@@ -9224,6 +10494,7 @@ cms:
original_type: CHAR
text: Jan. RDS Code - Retiree Drug Subsidy Code
width: 1.0
+ reference: https://resdac.org/cms-data/variables/part-d-retiree-drug-subsidy-indicator-january
type: VARCHAR(1)
- RDSIND02:
description:
@@ -9231,6 +10502,7 @@ cms:
original_type: CHAR
text: Feb. RDS Code - Retiree Drug Subsidy Code
width: 1.0
+ reference: null
type: VARCHAR(1)
- RDSIND03:
description:
@@ -9238,6 +10510,7 @@ cms:
original_type: CHAR
text: Mar. RDS Code - Retiree Drug Subsidy Code
width: 1.0
+ reference: https://resdac.org/cms-data/variables/part-d-retiree-drug-subsidy-indicator-march
type: VARCHAR(1)
- RDSIND04:
description:
@@ -9245,6 +10518,7 @@ cms:
original_type: CHAR
text: Apr. RDS Code - Retiree Drug Subsidy Code
width: 1.0
+ reference: https://resdac.org/cms-data/variables/part-d-retiree-drug-subsidy-indicator-april
type: VARCHAR(1)
- RDSIND05:
description:
@@ -9252,6 +10526,7 @@ cms:
original_type: CHAR
text: May RDS Code - Retiree Drug Subsidy Code
width: 1.0
+ reference: https://resdac.org/cms-data/variables/part-d-retiree-drug-subsidy-indicator-may
type: VARCHAR(1)
- RDSIND06:
description:
@@ -9259,6 +10534,7 @@ cms:
original_type: CHAR
text: Jun. RDS Code - Retiree Drug Subsidy Code
width: 1.0
+ reference: https://resdac.org/cms-data/variables/part-d-retiree-drug-subsidy-indicator-june
type: VARCHAR(1)
- RDSIND07:
description:
@@ -9266,6 +10542,7 @@ cms:
original_type: CHAR
text: Jul. RDS Code - Retiree Drug Subsidy Code
width: 1.0
+ reference: https://resdac.org/cms-data/variables/part-d-retiree-drug-subsidy-indicator-july
type: VARCHAR(1)
- RDSIND08:
description:
@@ -9273,6 +10550,7 @@ cms:
original_type: CHAR
text: Aug. RDS Code - Retiree Drug Subsidy Code
width: 1.0
+ reference: https://resdac.org/cms-data/variables/part-d-retiree-drug-subsidy-indicator-august
type: VARCHAR(1)
- RDSIND09:
description:
@@ -9280,6 +10558,7 @@ cms:
original_type: CHAR
text: Sep. RDS Code - Retiree Drug Subsidy Code
width: 1.0
+ reference: https://resdac.org/cms-data/variables/part-d-retiree-drug-subsidy-indicator-september
type: VARCHAR(1)
- RDSIND10:
description:
@@ -9287,6 +10566,7 @@ cms:
original_type: CHAR
text: Oct. RDS Code - Retiree Drug Subsidy Code
width: 1.0
+ reference: https://resdac.org/cms-data/variables/part-d-retiree-drug-subsidy-indicator-october
type: VARCHAR(1)
- RDSIND11:
description:
@@ -9294,6 +10574,7 @@ cms:
original_type: CHAR
text: Nov. RDS Code - Retiree Drug Subsidy Code
width: 1.0
+ reference: https://resdac.org/cms-data/variables/part-d-retiree-drug-subsidy-indicator-november
type: VARCHAR(1)
- RDSIND12:
description:
@@ -9301,6 +10582,7 @@ cms:
original_type: CHAR
text: Dec. RDS Code - Retiree Drug Subsidy Code
width: 1.0
+ reference: https://resdac.org/cms-data/variables/part-d-retiree-drug-subsidy-indicator-december
type: VARCHAR(1)
- DUAL_01:
description:
@@ -9308,6 +10590,7 @@ cms:
original_type: CHAR
text: Jan. Dual Status Code
width: 2.0
+ reference: https://resdac.org/cms-data/variables/monthly-medicare-medicaid-dual-eligibility-code-january
type: VARCHAR(2)
- DUAL_02:
description:
@@ -9315,6 +10598,7 @@ cms:
original_type: CHAR
text: Feb. Dual Status Code
width: 2.0
+ reference: https://resdac.org/cms-data/variables/monthly-medicare-medicaid-dual-eligibility-code-february
type: VARCHAR(2)
- DUAL_03:
description:
@@ -9322,6 +10606,7 @@ cms:
original_type: CHAR
text: Mar. Dual Status Code
width: 2.0
+ reference: https://resdac.org/cms-data/variables/monthly-medicare-medicaid-dual-eligibility-code-march
type: VARCHAR(2)
- DUAL_04:
description:
@@ -9329,6 +10614,7 @@ cms:
original_type: CHAR
text: Apr. Dual Status Code
width: 2.0
+ reference: https://resdac.org/cms-data/variables/monthly-medicare-medicaid-dual-eligibility-code-april
type: VARCHAR(2)
- DUAL_05:
description:
@@ -9336,6 +10622,7 @@ cms:
original_type: CHAR
text: May Dual Status Code
width: 2.0
+ reference: https://resdac.org/cms-data/variables/monthly-medicare-medicaid-dual-eligibility-code-may
type: VARCHAR(2)
- DUAL_06:
description:
@@ -9343,6 +10630,7 @@ cms:
original_type: CHAR
text: Jun. Dual Status Code
width: 2.0
+ reference: https://resdac.org/cms-data/variables/monthly-medicare-medicaid-dual-eligibility-code-june
type: VARCHAR(2)
- DUAL_07:
description:
@@ -9350,6 +10638,7 @@ cms:
original_type: CHAR
text: Jul. Dual Status Code
width: 2.0
+ reference: https://resdac.org/cms-data/variables/monthly-medicare-medicaid-dual-eligibility-code-july
type: VARCHAR(2)
- DUAL_08:
description:
@@ -9357,6 +10646,7 @@ cms:
original_type: CHAR
text: Aug. Dual Status Code
width: 2.0
+ reference: https://resdac.org/cms-data/variables/monthly-medicare-medicaid-dual-eligibility-code-august
type: VARCHAR(2)
- DUAL_09:
description:
@@ -9364,6 +10654,7 @@ cms:
original_type: CHAR
text: Sep. Dual Status Code
width: 2.0
+ reference: https://resdac.org/cms-data/variables/monthly-medicare-medicaid-dual-eligibility-code-september
type: VARCHAR(2)
- DUAL_10:
description:
@@ -9371,6 +10662,7 @@ cms:
original_type: CHAR
text: Oct. Dual Status Code
width: 2.0
+ reference: https://resdac.org/cms-data/variables/monthly-medicare-medicaid-dual-eligibility-code-october
type: VARCHAR(2)
- DUAL_11:
description:
@@ -9378,6 +10670,7 @@ cms:
original_type: CHAR
text: Nov. Dual Status Code
width: 2.0
+ reference: https://resdac.org/cms-data/variables/monthly-medicare-medicaid-dual-eligibility-code-november
type: VARCHAR(2)
- DUAL_12:
description:
@@ -9385,6 +10678,7 @@ cms:
original_type: CHAR
text: Dec. Dual Status Code
width: 2.0
+ reference: https://resdac.org/cms-data/variables/monthly-medicare-medicaid-dual-eligibility-code-december
type: VARCHAR(2)
- FILE:
description:
@@ -9393,6 +10687,7 @@ cms:
width: 128
index:
required_before_loading_data: true
+ reference: null
source:
type: file
type: VARCHAR(128)
@@ -9401,6 +10696,7 @@ cms:
original_type: BIGSERIAL
text: Record number in the file
width: null
+ reference: https://resdac.org/cms-data/variables/nch-near-line-record-identification-code-ric
type: BIGSERIAL
- YEAR:
description:
@@ -9408,6 +10704,7 @@ cms:
text: Beneficiary Enrollment Reference Year
width: 4.0
index: true
+ reference: https://resdac.org/cms-data/variables/mbsf-cc-30/alzheimers-disease-end-year-indicator
source:
code: GENERATED ALWAYS AS (RFRNC_YR) STORED
type: generated
@@ -9429,6 +10726,7 @@ cms:
text: Encrypted 723 Beneficiary ID
width: 15.0
index: true
+ reference: https://resdac.org/cms-data/variables/ccw-beneficiary-id
type: VARCHAR(15)
- MEDPARID:
description:
@@ -9436,6 +10734,7 @@ cms:
original_type: CHAR
text: Unique Key for CCW MedPAR Table
width: 15.0
+ reference: https://resdac.org/cms-data/variables/medpar-id-number
type: VARCHAR(15)
- MEDPAR_YR_NUM:
description:
@@ -9443,6 +10742,7 @@ cms:
original_type: CHAR
text: Year of MedPAR Record
width: 4.0
+ reference: https://resdac.org/cms-data/variables/year-medpar-record
type: VARCHAR(4)
- CLM_TYPE:
description:
@@ -9450,6 +10750,7 @@ cms:
original_type: CHAR
text: NCH Claim Type Code
width: 2.0
+ reference: https://resdac.org/cms-data/variables/nch-claim-type-code
type: VARCHAR(2)
- BIC:
description:
@@ -9457,6 +10758,7 @@ cms:
original_type: CHAR
text: BIC reported on first claim included in stay
width: 2.0
+ reference: https://resdac.org/cms-data/variables/bic-reported-first-claim-included-stay
type: VARCHAR(2)
- EQ_BIC:
description:
@@ -9464,6 +10766,7 @@ cms:
original_type: CHAR
text: Equated BIC
width: 2.0
+ reference: https://resdac.org/cms-data/variables/equated-bic
type: VARCHAR(2)
- AGE_CNT:
description:
@@ -9471,6 +10774,7 @@ cms:
original_type: NUM
text: Age as of Date of Admission.
width: 4.0
+ reference: https://resdac.org/cms-data/variables/age-date-admission
type: INT
- SEX:
description:
@@ -9478,6 +10782,7 @@ cms:
original_type: CHAR
text: Sex of Beneficiary
width: 1.0
+ reference: https://resdac.org/sites/datadocumentation.resdac.org/files/Introduction%20to%20DE-SynPUF%20%28Slides%29.pdf
type: VARCHAR(1)
- RACE:
description:
@@ -9485,6 +10790,7 @@ cms:
original_type: CHAR
text: Race of Beneficiary
width: 1.0
+ reference: https://resdac.org/cms-data/variables/beneficiary-race-code-base
type: VARCHAR(1)
- MS_CD:
description:
@@ -9492,6 +10798,7 @@ cms:
original_type: CHAR
text: Reason for entitlement to Medicare benefits as of CLM_THRU_DT
width: 2.0
+ reference: https://resdac.org/cms-data/variables/reason-entitlement-medicare-benefits-clmthrudt
type: VARCHAR(2)
- STATE_CD:
description:
@@ -9499,6 +10806,7 @@ cms:
original_type: CHAR
text: SSA standard state code of a beneficiarys residence.
width: 2.0
+ reference: https://resdac.org/cms-data/variables/state-code-beneficiary-ssa-code
type: VARCHAR(2)
- CNTY_CD:
description:
@@ -9506,6 +10814,7 @@ cms:
original_type: CHAR
text: SSA standard county code of a beneficiarys residence.
width: 3.0
+ reference: https://resdac.org/sites/datadocumentation.resdac.org/files/Introduction%20to%20DE-SynPUF%20%28Slides%29.pdf
type: VARCHAR(3)
- BENE_ZIP:
description:
@@ -9513,6 +10822,7 @@ cms:
original_type: CHAR
text: Zip code of the mailing address where the beneficiary may be contacted.
width: 5.0
+ reference: https://resdac.org/cms-data/variables/zip-code-beneficiary-home-or-mailing-address-latest-year
type: VARCHAR(5)
- DSCHRGCD:
description:
@@ -9520,6 +10830,7 @@ cms:
original_type: CHAR
text: Code identifying status of patient as of CLM_THRU_DT
width: 1.0
+ reference: https://resdac.org/cms-data/variables/code-identifying-status-patient-clmthrudt
type: VARCHAR(1)
- FICARR:
description:
@@ -9527,6 +10838,7 @@ cms:
original_type: CHAR
text: Intermediary processor identification
width: 5.0
+ reference: https://resdac.org/cms-data/variables/fiscal-intermediary-fi-id-number
type: VARCHAR(5)
- WRNGCD:
description:
@@ -9535,6 +10847,7 @@ cms:
text: Warn ind spcfyng dtld billing info obtnd frm clms analyzd for stay
prcss
width: 18.0
+ reference: https://resdac.org/cms-data/variables/warning-indicators-code-specifying-detailed-billing-info
type: VARCHAR(18)
- GHOPDCD:
description:
@@ -9542,6 +10855,7 @@ cms:
original_type: CHAR
text: Code indicating whether or not GHO has paid provider for claim(s)
width: 1.0
+ reference: https://resdac.org/cms-data/variables/code-indicating-whether-group-health-organization-gho-has-paid-provider-claims
type: VARCHAR(1)
- PPS_IND:
description:
@@ -9549,6 +10863,7 @@ cms:
original_type: CHAR
text: Code indicating whether or not facility is being paid under PPS
width: 1.0
+ reference: https://resdac.org/cms-data/variables/prospective-payment-system-pps-indicator-code
type: VARCHAR(1)
- ORGNPINM:
description:
@@ -9556,6 +10871,7 @@ cms:
original_type: CHAR
text: Organization NPI Number
width: 10.0
+ reference: https://resdac.org/cms-data/variables/organization-npi-number-ffs
type: VARCHAR(10)
- PRVDRNUM:
description:
@@ -9563,6 +10879,7 @@ cms:
original_type: CHAR
text: MEDPAR Provider Number
width: 10.0
+ reference: https://resdac.org/cms-data/variables/provider-number
type: VARCHAR(10)
- SPCLUNIT:
description:
@@ -9571,6 +10888,7 @@ cms:
text: Special num system code for hosp units that are PPS/SNF SB dsgntn
excl.
width: 1.0
+ reference: https://resdac.org/cms-data/variables/provider-number-special-unit-code
type: VARCHAR(1)
- SSLSSNF:
description:
@@ -9578,6 +10896,7 @@ cms:
original_type: CHAR
text: Code indicating whether stay is short stay, long stay, or SNF
width: 1.0
+ reference: https://resdac.org/cms-data/variables/short-staylong-staysnf-provider-indicator-code
type: VARCHAR(1)
- ACTV_XREF_IND:
description:
@@ -9585,6 +10904,7 @@ cms:
original_type: CHAR
text: Active Cross-Refference Indicator
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-active-cross-reference-indicator
type: VARCHAR(1)
- SLCT_RSN_CD:
description:
@@ -9592,6 +10912,7 @@ cms:
original_type: CHAR
text: Specifies whether this record is a case or control record.
width: 1.0
+ reference: https://resdac.org/cms-data/variables/specifies-whether-record-case-or-control-record
type: VARCHAR(1)
- FACLMCNT:
description:
@@ -9599,6 +10920,7 @@ cms:
original_type: NUM
text: Claims (final action) included in stay
width: 5.0
+ reference: https://resdac.org/cms-data/variables/number-claims-final-action-included-stay
type: INT
- ACRTNDT:
description:
@@ -9607,6 +10929,7 @@ cms:
text: Date latest claim incl in stay accreted to bene mstr rec at the
CWF host
width: 8.0
+ reference: https://resdac.org/cms-data/variables/latest-claim-accretion-date
type: DATE
- EXHST_DT:
description:
@@ -9614,6 +10937,7 @@ cms:
original_type: DATE
text: Last date beneficiary had Medicare coverage
width: 8.0
+ reference: https://resdac.org/cms-data/variables/beneficiary-medicare-benefit-exhausted-date
type: DATE
- QLFYFROM:
description:
@@ -9621,6 +10945,7 @@ cms:
original_type: DATE
text: Beginning date of beneficiarys qualifying stay
width: 8.0
+ reference: https://resdac.org/cms-data/variables/beginning-date-beneficiarys-qualifying-snf-stay
type: DATE
- QLFYTHRU:
description:
@@ -9628,6 +10953,7 @@ cms:
original_type: DATE
text: Ending date of beneficiarys qualifying stay
width: 8.0
+ reference: https://resdac.org/cms-data/variables/ending-date-beneficiarys-qualifying-snf-stay
type: DATE
- SRC_ADMS:
description:
@@ -9636,6 +10962,7 @@ cms:
text: Admssn to an Inp facility or, for newborn admssn, type of delivery
code
width: 1.0
+ reference: https://resdac.org/cms-data/variables/source-admission-inpatient-facility-newborn-admit-type-delivery-code
type: VARCHAR(1)
- TYPE_ADM:
description:
@@ -9644,6 +10971,7 @@ cms:
text: Type and priority of benes admission to facility for Inp hosp stay
code
width: 1.0
+ reference: https://resdac.org/cms-data/variables/inpatient-admission-type-code
type: VARCHAR(1)
- ADMSNDAY:
description:
@@ -9651,6 +10979,7 @@ cms:
original_type: CHAR
text: Code indicating day of week beneficiary was admitted to facility.
width: 1.0
+ reference: https://resdac.org/cms-data/variables/code-indicating-day-week-beneficiary-was-admitted-facility
type: VARCHAR(1)
- ADMSNDT:
description:
@@ -9658,6 +10987,7 @@ cms:
original_type: DATE
text: Date beneficiary admitted for Inpatient care or date care started
width: 8.0
+ reference: https://resdac.org/cms-data/variables/date-beneficiary-admitted-inpatient-care-or-date-care-started
type: DATE
- DSCHRGDT:
description:
@@ -9665,6 +10995,7 @@ cms:
original_type: DATE
text: Date beneficiary was discharged or died
width: 8.0
+ reference: https://resdac.org/cms-data/variables/discharge-date
type: DATE
- DSTNTNCD:
description:
@@ -9672,6 +11003,7 @@ cms:
original_type: CHAR
text: Destination upon discharge from facility code
width: 2.0
+ reference: https://resdac.org/cms-data/variables/medpar-discharge-destination-code
type: VARCHAR(2)
- CVRLVLDT:
description:
@@ -9679,6 +11011,7 @@ cms:
original_type: DATE
text: Date covered level of care ended in a SNF
width: 8.0
+ reference: null
type: DATE
- DEATHDT:
description:
@@ -9686,6 +11019,7 @@ cms:
original_type: DATE
text: Date beneficiary died
width: 8.0
+ reference: https://resdac.org/cms-data/variables/date-death
type: DATE
- DEATHCD:
description:
@@ -9693,6 +11027,7 @@ cms:
original_type: CHAR
text: Death Date Verification Code
width: 1.0
+ reference: https://resdac.org/cms-data/variables/death-date-verification-code
type: VARCHAR(1)
- DEATHDAY:
description:
@@ -9700,6 +11035,7 @@ cms:
original_type: NUM
text: Days from date admitted to facility to date of death
width: 7.0
+ reference: https://resdac.org/cms-data/variables/days-date-admitted-facility-date-death
type: INT
- SSICD:
description:
@@ -9707,6 +11043,7 @@ cms:
original_type: CHAR
text: MEDPAR Internal Use SSI Indicator Code
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-internal-use-ssi-indicator-code
type: VARCHAR(1)
- SSIDAY:
description:
@@ -9714,6 +11051,7 @@ cms:
original_type: NUM
text: MEDPAR Internal Use SSI Day Count
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-internal-use-ssi-day-count
type: INT
- INTRNL_USE_SSI_DATA:
description:
@@ -9721,6 +11059,7 @@ cms:
original_type: CHAR
text: Internal Use SSI Data
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-internal-use-ssi-data
type: VARCHAR(1)
- IPSBCD:
description:
@@ -9728,6 +11067,7 @@ cms:
original_type: CHAR
text: For internal Use Only. IPSB Code
width: 3.0
+ reference: https://resdac.org/cms-data/variables/medpar-internal-use-ipsb-code
type: VARCHAR(3)
- FILDTCD:
description:
@@ -9735,6 +11075,7 @@ cms:
original_type: CHAR
text: For internal use only. Fiscal year/calendar year segments.
width: 1.0
+ reference: https://resdac.org/cms-data/variables/internal-use-only-fiscal-yearcalendar-year-segments
type: VARCHAR(1)
- SMPLSIZE:
description:
@@ -9742,6 +11083,7 @@ cms:
original_type: CHAR
text: For internal use. MEDPAR sample size.
width: 1.0
+ reference: https://resdac.org/cms-data/variables/internal-use-medpar-sample-size
type: VARCHAR(1)
- LOSCNT:
description:
@@ -9749,6 +11091,7 @@ cms:
original_type: NUM
text: Days of beneficiarys stay in a hospital/SNF
width: 7.0
+ reference: https://resdac.org/cms-data/variables/days-beneficiarys-stay-hospitalsnf
type: INT
- OUTLRDAY:
description:
@@ -9757,6 +11100,7 @@ cms:
text: Days paid as outliers (either day or cost) under PPS beyond DRG
threshld
width: 5.0
+ reference: https://resdac.org/cms-data/variables/days-paid-outliers-either-day-or-cost-under-pps-beyond-drg-threshold
type: INT
- UTIL_DAY:
description:
@@ -9764,6 +11108,7 @@ cms:
original_type: NUM
text: Covered days of care chargeable to Medicare utilization for stay
width: 7.0
+ reference: https://resdac.org/cms-data/variables/covered-days-care-chargeable-medicare-utilization-stay
type: INT
- COIN_DAY:
description:
@@ -9771,6 +11116,7 @@ cms:
original_type: NUM
text: MEDPAR Beneficiary Total Coinsurance Day Count
width: 5.0
+ reference: https://resdac.org/cms-data/variables/medpar-beneficiary-total-coinsurance-day-count
type: INT
- LRD_USE:
description:
@@ -9778,6 +11124,7 @@ cms:
original_type: NUM
text: Lifetime reserve days (LRD) used by beneficiary for stay
width: 5.0
+ reference: https://resdac.org/cms-data/variables/lifetime-reserve-days-lrd-used-beneficiary-stay
type: INT
- COIN_AMT:
description:
@@ -9785,6 +11132,7 @@ cms:
original_type: NUM
text: Beneficiarys liability for part A coinsurance for stay ($)
width: 10.0
+ reference: https://resdac.org/cms-data/variables/beneficiarys-liability-part-coinsurance-stay
type: INT
- DED_AMT:
description:
@@ -9792,6 +11140,7 @@ cms:
original_type: NUM
text: Beneficiarys liability for stay ($)
width: 10.0
+ reference: https://resdac.org/cms-data/variables/beneficiarys-liability-deductible-stay
type: INT
- BLDDEDAM:
description:
@@ -9799,6 +11148,7 @@ cms:
original_type: NUM
text: Beneficiarys liability for blood deductible for stay ($)
width: 10.0
+ reference: https://resdac.org/cms-data/variables/beneficiarys-liability-blood-deductible-stay
type: INT
- PRPAY_CD:
description:
@@ -9806,6 +11156,7 @@ cms:
original_type: CHAR
text: Primary payer responsibility code
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-beneficiary-primary-payer-code
type: VARCHAR(1)
- PRPAYAMT:
description:
@@ -9814,6 +11165,7 @@ cms:
text: Primry payer other than Medicare for covered Medicare chrgs for
stay ($)
width: 10.0
+ reference: https://resdac.org/cms-data/variables/primary-payer-paid-amount
type: INT
- DRG_CD:
description:
@@ -9821,6 +11173,7 @@ cms:
original_type: CHAR
text: DRG Code
width: 3.0
+ reference: https://resdac.org/cms-data/variables/diagnosis-related-group-drg-code
type: VARCHAR(3)
- OUTLR_CD:
description:
@@ -9828,6 +11181,7 @@ cms:
original_type: CHAR
text: Cost or Day Outlier code
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-drgoutlier-stay-code
type: VARCHAR(1)
- OUTLRAMT:
description:
@@ -9836,6 +11190,7 @@ cms:
text: Addtnl approved due to outlier situation over DRG allowance for
stay ($)
width: 10.0
+ reference: https://resdac.org/cms-data/variables/drg-outlier-approved-payment-amount
type: INT
- DRGPRICE:
description:
@@ -9844,6 +11199,7 @@ cms:
text: Wld hv bn pd if no dedctbls,coinsrnc,prmry payrs,otlrs were invlvd
($)
width: 10.0
+ reference: https://resdac.org/cms-data/variables/drg-price-amount
type: INT
- DISP_SHR:
description:
@@ -9852,6 +11208,7 @@ cms:
text: Over the DRG amount for disproportionate share hospital for stay
($)
width: 10.0
+ reference: https://resdac.org/cms-data/variables/inpatient-disproportionate-share-dsh-amount
type: INT
- IME_AMT:
description:
@@ -9859,6 +11216,7 @@ cms:
original_type: NUM
text: Additional payment made to teaching hospitals for IME for stay ($)
width: 10.0
+ reference: https://resdac.org/cms-data/variables/indirect-medical-education-ime-amount
type: INT
- PASSTHRU:
description:
@@ -9866,6 +11224,7 @@ cms:
original_type: NUM
text: Total of all claim pass thru for stay ($)
width: 10.0
+ reference: https://resdac.org/cms-data/variables/pass-thru-diem-amount-stay
type: INT
- PPS_CPTL:
description:
@@ -9873,6 +11232,7 @@ cms:
original_type: NUM
text: Total payable for capital PPS ($)
width: 10.0
+ reference: https://resdac.org/cms-data/variables/total-pps-capital-amount
type: INT
- IP_LOW_VOL_PYMT_AMT:
description:
@@ -9880,6 +11240,7 @@ cms:
original_type: NUM
text: Inpatient Low Volume Payment Amount.
width: 10.0
+ reference: https://resdac.org/cms-data/variables/inpatient-low-volume-payment-amount
type: INT
- TOTCHRG:
description:
@@ -9888,6 +11249,7 @@ cms:
text: Total all charges for all srvcs provided to beneficiary for stay
($)
width: 10.0
+ reference: https://resdac.org/cms-data/variables/total-charge-amount
type: INT
- CVRCHRG:
description:
@@ -9895,6 +11257,7 @@ cms:
original_type: NUM
text: Portion of total charges covered by Medicare for stay ($)
width: 10.0
+ reference: https://resdac.org/cms-data/variables/total-covered-charge-amount
type: INT
- PMT_AMT:
description:
@@ -9903,6 +11266,7 @@ cms:
text: Amt of payment from Medicare trust fund for srvcs covered by claim
($)
width: 10.0
+ reference: https://resdac.org/cms-data/variables/total-medicare-payment-amount
type: INT
- ACMDTNS:
description:
@@ -9911,6 +11275,7 @@ cms:
text: Total charge for all accommodations related to beneficiarys stay
($)
width: 10.0
+ reference: https://resdac.org/cms-data/variables/total-charge-all-accommodations
type: INT
- DPRTMNTL:
description:
@@ -9919,6 +11284,7 @@ cms:
text: Total charge for all ancillary depts related to beneficiarys stay
($)
width: 10.0
+ reference: https://resdac.org/cms-data/variables/total-charge-all-ancillary-departments-related-beneficiarys-stay
type: INT
- PRVTDAY:
description:
@@ -9926,6 +11292,7 @@ cms:
original_type: NUM
text: Private room days used by beneficiary for stay
width: 5.0
+ reference: https://resdac.org/cms-data/variables/private-room-day-count
type: INT
- SPRVTDAY:
description:
@@ -9933,6 +11300,7 @@ cms:
original_type: NUM
text: Semi-private room days used by beneficiary for stay
width: 5.0
+ reference: https://resdac.org/cms-data/variables/semi-private-room-day-count
type: INT
- WARDDAY:
description:
@@ -9940,6 +11308,7 @@ cms:
original_type: NUM
text: Ward days used by beneficiary for stay
width: 5.0
+ reference: https://resdac.org/cms-data/variables/ward-day-count
type: INT
- ICARECNT:
description:
@@ -9947,6 +11316,7 @@ cms:
original_type: NUM
text: Intensive care days used by beneficiary for stay
width: 5.0
+ reference: https://resdac.org/cms-data/variables/intensive-care-day-count
type: INT
- CRNRYDAY:
description:
@@ -9954,6 +11324,7 @@ cms:
original_type: NUM
text: Coronary care days used by beneficiary for stay
width: 5.0
+ reference: https://resdac.org/cms-data/variables/coronary-care-day-count
type: INT
- PRVTAMT:
description:
@@ -9961,6 +11332,7 @@ cms:
original_type: NUM
text: Private room accommodations related to beneficiarys stay ($)
width: 10.0
+ reference: https://resdac.org/cms-data/variables/private-room-charge-amount
type: INT
- SPRVTAMT:
description:
@@ -9968,6 +11340,7 @@ cms:
original_type: NUM
text: Semi-private room accommodations related to beneficiarys stay ($)
width: 10.0
+ reference: https://resdac.org/cms-data/variables/semi-private-room-charge-amount
type: INT
- WARDAMT:
description:
@@ -9975,6 +11348,7 @@ cms:
original_type: NUM
text: Ward accommodations related to beneficiarys stay ($)
width: 10.0
+ reference: https://resdac.org/cms-data/variables/ward-charge-amount
type: INT
- ICAREAMT:
description:
@@ -9982,6 +11356,7 @@ cms:
original_type: NUM
text: Intensive care accommodations related to beneficiarys stay ($)
width: 10.0
+ reference: https://resdac.org/cms-data/variables/intensive-care-charge-amount
type: INT
- CRNRYAMT:
description:
@@ -9989,6 +11364,7 @@ cms:
original_type: NUM
text: Coronary care accommodations related to beneficiarys stay ($)
width: 10.0
+ reference: https://resdac.org/cms-data/variables/coronary-care-charge-amount
type: INT
- OTHRAMT:
description:
@@ -9996,6 +11372,7 @@ cms:
original_type: NUM
text: Other services related to beneficiarys stay ($)
width: 10.0
+ reference: https://resdac.org/cms-data/variables/other-service-charge-amount
type: INT
- PHRMCAMT:
description:
@@ -10003,6 +11380,7 @@ cms:
original_type: NUM
text: Pharmaceutical costs related to beneficiarys stay ($)
width: 10.0
+ reference: https://resdac.org/cms-data/variables/pharmacy-charge-amount
type: INT
- SUPLYAMT:
description:
@@ -10010,6 +11388,7 @@ cms:
original_type: NUM
text: Medical/surgical supplies related to beneficiarys stay ($)
width: 10.0
+ reference: https://resdac.org/cms-data/variables/medicalsurgical-supplies-charge-amount
type: INT
- DME_AMT:
description:
@@ -10017,6 +11396,7 @@ cms:
original_type: NUM
text: DME related to beneficiarys stay ($)
width: 10.0
+ reference: https://resdac.org/cms-data/variables/durable-medical-equipment-dme-charge-amount
type: INT
- UDME_AMT:
description:
@@ -10024,6 +11404,7 @@ cms:
original_type: NUM
text: Used DME related to beneficiarys stay ($)
width: 10.0
+ reference: https://resdac.org/cms-data/variables/used-durable-medical-equipment-dme-charge-amount
type: INT
- PHYTHAMT:
description:
@@ -10031,6 +11412,7 @@ cms:
original_type: NUM
text: Physical therapy services provided during beneficiarys stay ($)
width: 10.0
+ reference: https://resdac.org/cms-data/variables/physical-therapy-charge-amount
type: INT
- OCPTLAMT:
description:
@@ -10039,6 +11421,7 @@ cms:
text: Occupational therapy services provided during beneficiarys stay
($)
width: 10.0
+ reference: https://resdac.org/cms-data/variables/occupational-therapy-charge-amount
type: INT
- SPCH_AMT:
description:
@@ -10046,6 +11429,7 @@ cms:
original_type: NUM
text: Speech pathology services provided during beneficiarys stay ($)
width: 10.0
+ reference: https://resdac.org/cms-data/variables/speech-pathology-charge-amount
type: INT
- INHLTAMT:
description:
@@ -10053,6 +11437,7 @@ cms:
original_type: NUM
text: Inhalation therapy services provided during beneficiarys stay ($)
width: 10.0
+ reference: https://resdac.org/cms-data/variables/inhalation-therapy-charge-amount
type: INT
- BLOODAMT:
description:
@@ -10060,6 +11445,7 @@ cms:
original_type: NUM
text: Blood provided during beneficiarys stay ($)
width: 10.0
+ reference: https://resdac.org/cms-data/variables/blood-charge-amount
type: INT
- BLDADMIN:
description:
@@ -10067,6 +11453,7 @@ cms:
original_type: NUM
text: Blood storage and processing related to beneficiarys stay ($)
width: 10.0
+ reference: https://resdac.org/cms-data/variables/blood-storage-and-processing-charge-amount
type: INT
- BLDFRNSH:
description:
@@ -10075,6 +11462,7 @@ cms:
text: Quantity of blood (whole pints) furnished to beneficiary during
stay
width: 5.0
+ reference: https://resdac.org/cms-data/variables/blood-pints-furnished-quantity
type: INT
- OROOMAMT:
description:
@@ -10083,6 +11471,7 @@ cms:
text: OR, recovery rm, and labor rm delivery used by bene during stay
($)
width: 10.0
+ reference: https://resdac.org/cms-data/variables/operating-room-charge-amount
type: INT
- LTHTRPSY:
description:
@@ -10090,6 +11479,7 @@ cms:
original_type: NUM
text: Lithotripsy services provided during beneficiarys stay ($)
width: 10.0
+ reference: https://resdac.org/cms-data/variables/lithotripsy-charge-amount
type: INT
- CRDLGY:
description:
@@ -10098,6 +11488,7 @@ cms:
text: Cardiology services and ECG(s) provided during beneficiarys stay
($)
width: 10.0
+ reference: https://resdac.org/cms-data/variables/cardiology-charge-amount
type: INT
- ANSTHSA:
description:
@@ -10105,6 +11496,7 @@ cms:
original_type: NUM
text: Anesthesia services provided during beneficiarys stay ($)
width: 10.0
+ reference: https://resdac.org/cms-data/variables/anesthesia-charge-amount
type: INT
- LAB_AMT:
description:
@@ -10112,6 +11504,7 @@ cms:
original_type: NUM
text: Laboratory costs related to beneficiarys stay ($)
width: 10.0
+ reference: https://resdac.org/cms-data/variables/laboratory-charge-amount
type: INT
- RDLGYAMT:
description:
@@ -10119,6 +11512,7 @@ cms:
original_type: NUM
text: Radiology costs (excluding MRI) related to a beneficiarys stay ($)
width: 10.0
+ reference: https://resdac.org/cms-data/variables/radiology-charge-amount-excluding-mri
type: INT
- MRI_AMT:
description:
@@ -10126,6 +11520,7 @@ cms:
original_type: NUM
text: MRI services provided during beneficiarys stay ($)
width: 10.0
+ reference: https://resdac.org/cms-data/variables/magnetic-resonance-imaging-mri-charge-amount
type: INT
- OPSRVC:
description:
@@ -10133,6 +11528,7 @@ cms:
original_type: NUM
text: Outpatient services provided during beneficiarys stay ($)
width: 10.0
+ reference: https://resdac.org/cms-data/variables/outpatient-service-charge-amount
type: INT
- ER_AMT:
description:
@@ -10140,6 +11536,7 @@ cms:
original_type: NUM
text: Emergency room services provided during beneficiarys stay ($)
width: 10.0
+ reference: https://resdac.org/cms-data/variables/emergency-room-er-charge-amount
type: INT
- AMBLNC:
description:
@@ -10147,6 +11544,7 @@ cms:
original_type: NUM
text: Ambulance services related to beneficiarys stay ($)
width: 10.0
+ reference: https://resdac.org/cms-data/variables/ambulance-charge-amount
type: INT
- PROFFEES:
description:
@@ -10154,6 +11552,7 @@ cms:
original_type: NUM
text: Professional fees related to beneficiarys stay ($)
width: 10.0
+ reference: https://resdac.org/cms-data/variables/professional-fees-charge-amount
type: INT
- ORGNAMT:
description:
@@ -10162,6 +11561,7 @@ cms:
text: Organ acquisition or oth donor bank srvcs related to benes stay
($)
width: 10.0
+ reference: https://resdac.org/cms-data/variables/organ-acquisition-or-other-donor-bank-charge-amount
type: INT
- ESRDSETG:
description:
@@ -10169,6 +11569,7 @@ cms:
original_type: NUM
text: ESRD services related to beneficiarys stay ($)
width: 10.0
+ reference: https://resdac.org/cms-data/variables/end-stage-renal-disease-esrd-charge-amount
type: INT
- CLNC_AMT:
description:
@@ -10176,6 +11577,7 @@ cms:
original_type: NUM
text: Clinic visits related to beneficiarys stay ($)
width: 10.0
+ reference: https://resdac.org/cms-data/variables/clinic-visit-charge-amount
type: INT
- ICUINDCD:
description:
@@ -10183,6 +11585,7 @@ cms:
original_type: CHAR
text: ICU type code
width: 1.0
+ reference: https://resdac.org/cms-data/variables/intensive-care-unit-icu-indicator-code
type: VARCHAR(1)
- CRNRY_CD:
description:
@@ -10190,6 +11593,7 @@ cms:
original_type: CHAR
text: Coronary care unit type code
width: 1.0
+ reference: https://resdac.org/cms-data/variables/coronary-care-unit-ccu-indicator-code
type: VARCHAR(1)
- PHRMCYCD:
description:
@@ -10197,6 +11601,7 @@ cms:
original_type: CHAR
text: Drugs type code
width: 1.0
+ reference: https://resdac.org/cms-data/variables/pharmacy-indicator-code
type: VARCHAR(1)
- TRNSPLNT:
description:
@@ -10204,6 +11609,7 @@ cms:
original_type: CHAR
text: Organ transplant code
width: 1.0
+ reference: https://resdac.org/cms-data/variables/organ-transplant-indicator-code
type: VARCHAR(1)
- ONCLGYSW:
description:
@@ -10211,6 +11617,7 @@ cms:
original_type: CHAR
text: Radiology oncology services indicator
width: 1.0
+ reference: https://resdac.org/cms-data/variables/oncology-indicator
type: VARCHAR(1)
- DGNSTCSW:
description:
@@ -10218,6 +11625,7 @@ cms:
original_type: CHAR
text: Radiology diagnostic services indicator
width: 1.0
+ reference: https://resdac.org/cms-data/variables/diagnostic-radiology-indicator
type: VARCHAR(1)
- THRPTCSW:
description:
@@ -10225,6 +11633,7 @@ cms:
original_type: CHAR
text: Radiology therapeutic services indicator
width: 1.0
+ reference: https://resdac.org/cms-data/variables/therapeutic-radiology-indicator
type: VARCHAR(1)
- NUCLR_SW:
description:
@@ -10232,6 +11641,7 @@ cms:
original_type: CHAR
text: Radiology nuclear medicine services indicator
width: 1.0
+ reference: https://resdac.org/cms-data/variables/radiology-nuclear-medicine-indicator
type: VARCHAR(1)
- CTSCANSW:
description:
@@ -10239,6 +11649,7 @@ cms:
original_type: CHAR
text: Radiology computed tomographic (CT) scan services indicator
width: 1.0
+ reference: https://resdac.org/cms-data/variables/radiology-computed-tomographic-ct-scan-indicator
type: VARCHAR(1)
- IMGNG_SW:
description:
@@ -10246,6 +11657,7 @@ cms:
original_type: CHAR
text: Radiology other imaging services indicator
width: 1.0
+ reference: https://resdac.org/cms-data/variables/radiology-other-imaging-indicator
type: VARCHAR(1)
- OPSRVCCD:
description:
@@ -10253,6 +11665,7 @@ cms:
original_type: CHAR
text: Outpatient services/ambulatory surgical care code
width: 1.0
+ reference: https://resdac.org/cms-data/variables/outpatient-servicesambulatory-surgical-care-indicator-code
type: VARCHAR(1)
- ORGNCD:
description:
@@ -10260,6 +11673,7 @@ cms:
original_type: CHAR
text: Organ acquisition type code
width: 2.0
+ reference: https://resdac.org/cms-data/variables/organ-acquisition-type-code
type: VARCHAR(2)
- ESRD_CD:
description:
@@ -10267,6 +11681,7 @@ cms:
original_type: CHAR
text: ESRD condition code
width: 2.0
+ reference: https://resdac.org/cms-data/variables/end-stage-renal-disease-esrd-condition-indicator-code
type: VARCHAR(2)
- ESRDSTG1:
description:
@@ -10274,6 +11689,7 @@ cms:
original_type: CHAR
text: Dialysis type code I
width: 2.0
+ reference: https://resdac.org/cms-data/variables/dialysis-service-type-code-1
type: VARCHAR(2)
- ESRDSTG2:
description:
@@ -10281,6 +11697,7 @@ cms:
original_type: CHAR
text: Dialysis type code II
width: 2.0
+ reference: https://resdac.org/cms-data/variables/dialysis-service-type-code-2
type: VARCHAR(2)
- ESRDSTG3:
description:
@@ -10288,6 +11705,7 @@ cms:
original_type: CHAR
text: Dialysis type code III
width: 2.0
+ reference: https://resdac.org/cms-data/variables/dialysis-service-type-code-3
type: VARCHAR(2)
- ESRDSTG4:
description:
@@ -10295,6 +11713,7 @@ cms:
original_type: CHAR
text: Dialysis type code IV
width: 2.0
+ reference: https://resdac.org/cms-data/variables/dialysis-service-type-code-4
type: VARCHAR(2)
- ESRDSTG5:
description:
@@ -10302,6 +11721,7 @@ cms:
original_type: CHAR
text: Dialysis type code V
width: 2.0
+ reference: https://resdac.org/cms-data/variables/dialysis-service-type-code-5
type: VARCHAR(2)
- AD_DGNS:
description:
@@ -10309,6 +11729,7 @@ cms:
original_type: CHAR
text: Initial diagnosis at time of admission
width: 7.0
+ reference: https://resdac.org/cms-data/variables/admitting-diagnosis-code
type: VARCHAR(7)
- ADMTG_DGNS_VRSN_CD:
description:
@@ -10316,6 +11737,7 @@ cms:
original_type: CHAR
text: MEDPAR Admitting Diagnosis Version Code
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-admitting-diagnosis-version-code-icd-9-or-icd-10
type: VARCHAR(1)
- DGNSCNT:
description:
@@ -10323,6 +11745,7 @@ cms:
original_type: NUM
text: Diagnosis codes included in stay
width: 3.0
+ reference: https://resdac.org/cms-data/variables/count-diagnosis-codes
type: INT
- DGNS_VRSN_CD:
description:
@@ -10331,6 +11754,7 @@ cms:
text: Version Code - Indicate if diagnosis code is ICD-9 or ICD-10 (Earlier
Ve
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-version-code-icd-9-or-icd-10
type: VARCHAR(1)
- DGNS_VRSN_CD_1:
description:
@@ -10338,6 +11762,7 @@ cms:
original_type: CHAR
text: Version Code 01 - Indicate if diagnosis code is ICD-9 or ICD-10.
width: 1.0
+ reference: https://resdac.org/cms-data/variables/diagnosis-version-code-1-icd-9-or-icd-10
type: VARCHAR(1)
- DGNS_VRSN_CD_2:
description:
@@ -10345,6 +11770,7 @@ cms:
original_type: CHAR
text: Version Code 02 - Indicate if diagnosis code is ICD-9 or ICD-10.
width: 1.0
+ reference: https://resdac.org/cms-data/variables/diagnosis-version-code-2-icd-9-or-icd-10
type: VARCHAR(1)
- DGNS_VRSN_CD_3:
description:
@@ -10352,6 +11778,7 @@ cms:
original_type: CHAR
text: Version Code 03 - Indicate if diagnosis code is ICD-9 or ICD-10.
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-version-code-3-icd-9-or-icd-10
type: VARCHAR(1)
- DGNS_VRSN_CD_4:
description:
@@ -10359,6 +11786,7 @@ cms:
original_type: CHAR
text: Version Code 04 - Indicate if diagnosis code is ICD-9 or ICD-10.
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-version-code-4-icd-9-or-icd-10
type: VARCHAR(1)
- DGNS_VRSN_CD_5:
description:
@@ -10366,6 +11794,7 @@ cms:
original_type: CHAR
text: Version Code 05 - Indicate if diagnosis code is ICD-9 or ICD-10.
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-version-code-5-icd-9-or-icd-10
type: VARCHAR(1)
- DGNS_VRSN_CD_6:
description:
@@ -10373,6 +11802,7 @@ cms:
original_type: CHAR
text: Version Code 06 - Indicate if diagnosis code is ICD-9 or ICD-10.
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-version-code-6-icd-9-or-icd-10
type: VARCHAR(1)
- DGNS_VRSN_CD_7:
description:
@@ -10380,6 +11810,7 @@ cms:
original_type: CHAR
text: Version Code 07 - Indicate if diagnosis code is ICD-9 or ICD-10.
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-version-code-7-icd-9-or-icd-10
type: VARCHAR(1)
- DGNS_VRSN_CD_8:
description:
@@ -10387,6 +11818,7 @@ cms:
original_type: CHAR
text: Version Code 08 - Indicate if diagnosis code is ICD-9 or ICD-10.
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-version-code-8-icd-9-or-icd-10
type: VARCHAR(1)
- DGNS_VRSN_CD_9:
description:
@@ -10394,6 +11826,7 @@ cms:
original_type: CHAR
text: Version Code 09 - Indicate if diagnosis code is ICD-9 or ICD-10.
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-version-code-9-icd-9-or-icd-10
type: VARCHAR(1)
- DGNS_VRSN_CD_10:
description:
@@ -10401,6 +11834,7 @@ cms:
original_type: CHAR
text: Version Code 10 - Indicate if diagnosis code is ICD-9 or ICD-10.
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-version-code-10-icd-9-or-icd-10
type: VARCHAR(1)
- DGNS_VRSN_CD_11:
description:
@@ -10408,6 +11842,7 @@ cms:
original_type: CHAR
text: Version Code 11 - Indicate if diagnosis code is ICD-9 or ICD-10.
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-version-code-11-icd-9-or-icd-10
type: VARCHAR(1)
- DGNS_VRSN_CD_12:
description:
@@ -10415,6 +11850,7 @@ cms:
original_type: CHAR
text: Version Code 12 - Indicate if diagnosis code is ICD-9 or ICD-10.
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-version-code-12-icd-9-or-icd-10
type: VARCHAR(1)
- DGNS_VRSN_CD_13:
description:
@@ -10422,6 +11858,7 @@ cms:
original_type: CHAR
text: Version Code 13 - Indicate if diagnosis code is ICD-9 or ICD-10.
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-version-code-13-icd-9-or-icd-10
type: VARCHAR(1)
- DGNS_VRSN_CD_14:
description:
@@ -10429,6 +11866,7 @@ cms:
original_type: CHAR
text: Version Code 14 - Indicate if diagnosis code is ICD-9 or ICD-10.
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-version-code-14-icd-9-or-icd-10
type: VARCHAR(1)
- DGNS_VRSN_CD_15:
description:
@@ -10436,6 +11874,7 @@ cms:
original_type: CHAR
text: Version Code 15 - Indicate if diagnosis code is ICD-9 or ICD-10.
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-version-code-15-icd-9-or-icd-10
type: VARCHAR(1)
- DGNS_VRSN_CD_16:
description:
@@ -10443,6 +11882,7 @@ cms:
original_type: CHAR
text: Version Code 16 - Indicate if diagnosis code is ICD-9 or ICD-10.
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-version-code-16-icd-9-or-icd-10
type: VARCHAR(1)
- DGNS_VRSN_CD_17:
description:
@@ -10450,6 +11890,7 @@ cms:
original_type: CHAR
text: Version Code 17 - Indicate if diagnosis code is ICD-9 or ICD-10.
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-version-code-17-icd-9-or-icd-10
type: VARCHAR(1)
- DGNS_VRSN_CD_18:
description:
@@ -10457,6 +11898,7 @@ cms:
original_type: CHAR
text: Version Code 18 - Indicate if diagnosis code is ICD-9 or ICD-10.
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-version-code-18-icd-9-or-icd-10
type: VARCHAR(1)
- DGNS_VRSN_CD_19:
description:
@@ -10464,6 +11906,7 @@ cms:
original_type: CHAR
text: Version Code 19 - Indicate if diagnosis code is ICD-9 or ICD-10.
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-version-code-19-icd-9-or-icd-10
type: VARCHAR(1)
- DGNS_VRSN_CD_20:
description:
@@ -10471,6 +11914,7 @@ cms:
original_type: CHAR
text: Version Code 20 - Indicate if diagnosis code is ICD-9 or ICD-10.
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-version-code-20-icd-9-or-icd-10
type: VARCHAR(1)
- DGNS_VRSN_CD_21:
description:
@@ -10478,6 +11922,7 @@ cms:
original_type: CHAR
text: Version Code 21 - Indicate if diagnosis code is ICD-9 or ICD-10.
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-version-code-21-icd-9-or-icd-10
type: VARCHAR(1)
- DGNS_VRSN_CD_22:
description:
@@ -10485,6 +11930,7 @@ cms:
original_type: CHAR
text: Version Code 22 - Indicate if diagnosis code is ICD-9 or ICD-10.
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-version-code-22-icd-9-or-icd-10
type: VARCHAR(1)
- DGNS_VRSN_CD_23:
description:
@@ -10492,6 +11938,7 @@ cms:
original_type: CHAR
text: Version Code 23 - Indicate if diagnosis code is ICD-9 or ICD-10.
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-version-code-23-icd-9-or-icd-10
type: VARCHAR(1)
- DGNS_VRSN_CD_24:
description:
@@ -10499,6 +11946,7 @@ cms:
original_type: CHAR
text: Version Code 24 - Indicate if diagnosis code is ICD-9 or ICD-10.
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-version-code-24-icd-9-or-icd-10
type: VARCHAR(1)
- DGNS_VRSN_CD_25:
description:
@@ -10506,6 +11954,7 @@ cms:
original_type: CHAR
text: Version Code 25 - Indicate if diagnosis code is ICD-9 or ICD-10.
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-version-code-25-icd-9-or-icd-10
type: VARCHAR(1)
- DGNSCD1:
description:
@@ -10513,6 +11962,7 @@ cms:
original_type: CHAR
text: Primary ICD-9-CM code
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-principal-diagnosis-code
type: VARCHAR(7)
- DGNSCD2:
description:
@@ -10520,6 +11970,7 @@ cms:
original_type: CHAR
text: ICD-9-CM Diagnosis code II
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-code-2
type: VARCHAR(7)
- DGNSCD3:
description:
@@ -10527,6 +11978,7 @@ cms:
original_type: CHAR
text: ICD-9-CM Diagnosis code III
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-code-3
type: VARCHAR(7)
- DGNSCD4:
description:
@@ -10534,6 +11986,7 @@ cms:
original_type: CHAR
text: ICD-9-CM Diagnosis code IV
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-code-4
type: VARCHAR(7)
- DGNSCD5:
description:
@@ -10541,6 +11994,7 @@ cms:
original_type: CHAR
text: ICD-9-CM Diagnosis code V
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-code-5
type: VARCHAR(7)
- DGNSCD6:
description:
@@ -10548,6 +12002,7 @@ cms:
original_type: CHAR
text: ICD-9-CM Diagnosis code VI
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-code-6
type: VARCHAR(7)
- DGNSCD7:
description:
@@ -10555,6 +12010,7 @@ cms:
original_type: CHAR
text: ICD-9-CM Diagnosis code VII
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-code-7
type: VARCHAR(7)
- DGNSCD8:
description:
@@ -10562,6 +12018,7 @@ cms:
original_type: CHAR
text: ICD-9-CM Diagnosis code VIII
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-code-8
type: VARCHAR(7)
- DGNSCD9:
description:
@@ -10569,6 +12026,7 @@ cms:
original_type: CHAR
text: ICD-9-CM Diagnosis code IX
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-code-9
type: VARCHAR(7)
- DGNSCD10:
description:
@@ -10576,6 +12034,7 @@ cms:
original_type: CHAR
text: ICD-9-CM Diagnosis code X
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-icd-9-cm-diagnosis-code-10
type: VARCHAR(7)
- DGNSCD11:
description:
@@ -10583,6 +12042,7 @@ cms:
original_type: CHAR
text: ICD-9-CM Diagnosis code XI
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-icd-9-cm-diagnosis-code-11
type: VARCHAR(7)
- DGNSCD12:
description:
@@ -10590,6 +12050,7 @@ cms:
original_type: CHAR
text: ICD-9-CM Diagnosis code XII
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-icd-9-cm-diagnosis-code-12
type: VARCHAR(7)
- DGNSCD13:
description:
@@ -10597,6 +12058,7 @@ cms:
original_type: CHAR
text: ICD-9-CM Diagnosis code XIII
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-icd-9-cm-diagnosis-code-13
type: VARCHAR(7)
- DGNSCD14:
description:
@@ -10604,6 +12066,7 @@ cms:
original_type: CHAR
text: ICD-9-CM Diagnosis code XIV
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-icd-9-cm-diagnosis-code-14
type: VARCHAR(7)
- DGNSCD15:
description:
@@ -10611,6 +12074,7 @@ cms:
original_type: CHAR
text: ICD-9-CM Diagnosis code XV
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-icd-9-cm-diagnosis-code-15
type: VARCHAR(7)
- DGNSCD16:
description:
@@ -10618,6 +12082,7 @@ cms:
original_type: CHAR
text: ICD-9-CM Diagnosis code XVI
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-icd-9-cm-diagnosis-code-16
type: VARCHAR(7)
- DGNSCD17:
description:
@@ -10625,6 +12090,7 @@ cms:
original_type: CHAR
text: ICD-9-CM Diagnosis code XVII
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-icd-9-cm-diagnosis-code-17
type: VARCHAR(7)
- DGNSCD18:
description:
@@ -10632,6 +12098,7 @@ cms:
original_type: CHAR
text: ICD-9-CM Diagnosis code XVIII
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-icd-9-cm-diagnosis-code-18
type: VARCHAR(7)
- DGNSCD19:
description:
@@ -10639,6 +12106,7 @@ cms:
original_type: CHAR
text: ICD-9-CM Diagnosis code XIX
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-icd-9-cm-diagnosis-code-19
type: VARCHAR(7)
- DGNSCD20:
description:
@@ -10646,6 +12114,7 @@ cms:
original_type: CHAR
text: ICD-9-CM Diagnosis code XX
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-icd-9-cm-diagnosis-code-20
type: VARCHAR(7)
- DGNSCD21:
description:
@@ -10653,6 +12122,7 @@ cms:
original_type: CHAR
text: ICD-9-CM Diagnosis code XXI
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-icd-9-cm-diagnosis-code-21
type: VARCHAR(7)
- DGNSCD22:
description:
@@ -10660,6 +12130,7 @@ cms:
original_type: CHAR
text: ICD-9-CM Diagnosis code XXII
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-icd-9-cm-diagnosis-code-22
type: VARCHAR(7)
- DGNSCD23:
description:
@@ -10667,6 +12138,7 @@ cms:
original_type: CHAR
text: ICD-9-CM Diagnosis code XXIII
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-icd-9-cm-diagnosis-code-23
type: VARCHAR(7)
- DGNSCD24:
description:
@@ -10674,6 +12146,7 @@ cms:
original_type: CHAR
text: ICD-9-CM Diagnosis code XXIV
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-icd-9-cm-diagnosis-code-24
type: VARCHAR(7)
- DGNSCD25:
description:
@@ -10681,6 +12154,7 @@ cms:
original_type: CHAR
text: ICD-9-CM Diagnosis code XXV
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-icd-9-cm-diagnosis-code-25
type: VARCHAR(7)
- DGNS_POA:
description:
@@ -10688,6 +12162,7 @@ cms:
original_type: CHAR
text: Diagnosis Code POA Array
width: 10.0
+ reference: https://resdac.org/cms-data/variables/diagnosis-code-poa-array
type: VARCHAR(10)
- POA_DGNS_CD_CNT:
description:
@@ -10695,6 +12170,7 @@ cms:
original_type: NUM
text: MEDPAR Claim Present on Admission Diagnosis Code Count
width: 3.0
+ reference: https://resdac.org/cms-data/variables/count-present-admission-poa-diagnosis-codes
type: INT
- POA_DGNS_1_IND_CD:
description:
@@ -10702,6 +12178,7 @@ cms:
original_type: CHAR
text: Diagnosis Present on Admission Indicator 1
width: 1.0
+ reference: https://resdac.org/cms-data/variables/diagnosis-1-present-admission-poa-indicator-code
type: VARCHAR(1)
- POA_DGNS_2_IND_CD:
description:
@@ -10709,6 +12186,7 @@ cms:
original_type: CHAR
text: Diagnosis Present on Admission Indicator 2
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-present-admission-indicator-2
type: VARCHAR(1)
- POA_DGNS_3_IND_CD:
description:
@@ -10716,6 +12194,7 @@ cms:
original_type: CHAR
text: Diagnosis Present on Admission Indicator 3
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-present-admission-indicator-3
type: VARCHAR(1)
- POA_DGNS_4_IND_CD:
description:
@@ -10723,6 +12202,7 @@ cms:
original_type: CHAR
text: Diagnosis Present on Admission Indicator 4
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-present-admission-indicator-4
type: VARCHAR(1)
- POA_DGNS_5_IND_CD:
description:
@@ -10730,6 +12210,7 @@ cms:
original_type: CHAR
text: Diagnosis Present on Admission Indicator 5
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-present-admission-indicator-5
type: VARCHAR(1)
- POA_DGNS_6_IND_CD:
description:
@@ -10737,6 +12218,7 @@ cms:
original_type: CHAR
text: Diagnosis Present on Admission Indicator 6
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-present-admission-indicator-6
type: VARCHAR(1)
- POA_DGNS_7_IND_CD:
description:
@@ -10744,6 +12226,7 @@ cms:
original_type: CHAR
text: Diagnosis Present on Admission Indicator 7
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-present-admission-indicator-7
type: VARCHAR(1)
- POA_DGNS_8_IND_CD:
description:
@@ -10751,6 +12234,7 @@ cms:
original_type: CHAR
text: Diagnosis Present on Admission Indicator 8
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-present-admission-indicator-8
type: VARCHAR(1)
- POA_DGNS_9_IND_CD:
description:
@@ -10758,6 +12242,7 @@ cms:
original_type: CHAR
text: Diagnosis Present on Admission Indicator 9
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-present-admission-indicator-9
type: VARCHAR(1)
- POA_DGNS_10_IND_CD:
description:
@@ -10765,6 +12250,7 @@ cms:
original_type: CHAR
text: Diagnosis Present on Admission Indicator 10
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-present-admission-indicator-10
type: VARCHAR(1)
- POA_DGNS_11_IND_CD:
description:
@@ -10772,6 +12258,7 @@ cms:
original_type: CHAR
text: Diagnosis Present on Admission Indicator 11
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-present-admission-indicator-11
type: VARCHAR(1)
- POA_DGNS_12_IND_CD:
description:
@@ -10779,6 +12266,7 @@ cms:
original_type: CHAR
text: Diagnosis Present on Admission Indicator 12
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-present-admission-indicator-12
type: VARCHAR(1)
- POA_DGNS_13_IND_CD:
description:
@@ -10786,6 +12274,7 @@ cms:
original_type: CHAR
text: Diagnosis Present on Admission Indicator 13
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-present-admission-indicator-13
type: VARCHAR(1)
- POA_DGNS_14_IND_CD:
description:
@@ -10793,6 +12282,7 @@ cms:
original_type: CHAR
text: Diagnosis Present on Admission Indicator 14
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-present-admission-indicator-14
type: VARCHAR(1)
- POA_DGNS_15_IND_CD:
description:
@@ -10800,6 +12290,7 @@ cms:
original_type: CHAR
text: Diagnosis Present on Admission Indicator 15
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-present-admission-indicator-15
type: VARCHAR(1)
- POA_DGNS_16_IND_CD:
description:
@@ -10807,6 +12298,7 @@ cms:
original_type: CHAR
text: Diagnosis Present on Admission Indicator 16
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-present-admission-indicator-16
type: VARCHAR(1)
- POA_DGNS_17_IND_CD:
description:
@@ -10814,6 +12306,7 @@ cms:
original_type: CHAR
text: Diagnosis Present on Admission Indicator 17
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-present-admission-indicator-17
type: VARCHAR(1)
- POA_DGNS_18_IND_CD:
description:
@@ -10821,6 +12314,7 @@ cms:
original_type: CHAR
text: Diagnosis Present on Admission Indicator 18
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-present-admission-indicator-18
type: VARCHAR(1)
- POA_DGNS_19_IND_CD:
description:
@@ -10828,6 +12322,7 @@ cms:
original_type: CHAR
text: Diagnosis Present on Admission Indicator 19
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-present-admission-indicator-19
type: VARCHAR(1)
- POA_DGNS_20_IND_CD:
description:
@@ -10835,6 +12330,7 @@ cms:
original_type: CHAR
text: Diagnosis Present on Admission Indicator 20
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-present-admission-indicator-20
type: VARCHAR(1)
- POA_DGNS_21_IND_CD:
description:
@@ -10842,6 +12338,7 @@ cms:
original_type: CHAR
text: Diagnosis Present on Admission Indicator 21
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-present-admission-indicator-21
type: VARCHAR(1)
- POA_DGNS_22_IND_CD:
description:
@@ -10849,6 +12346,7 @@ cms:
original_type: CHAR
text: Diagnosis Present on Admission Indicator 22
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-present-admission-indicator-22
type: VARCHAR(1)
- POA_DGNS_23_IND_CD:
description:
@@ -10856,6 +12354,7 @@ cms:
original_type: CHAR
text: Diagnosis Present on Admission Indicator 23
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-present-admission-indicator-23
type: VARCHAR(1)
- POA_DGNS_24_IND_CD:
description:
@@ -10863,6 +12362,7 @@ cms:
original_type: CHAR
text: Diagnosis Present on Admission Indicator 24
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-present-admission-indicator-24
type: VARCHAR(1)
- POA_DGNS_25_IND_CD:
description:
@@ -10870,6 +12370,7 @@ cms:
original_type: CHAR
text: Diagnosis Present on Admission Indicator 25
width: 1.0
+ reference: https://resdac.org/cms-data/variables/diagnosis-e-code-present-admission-indicator-8
type: VARCHAR(1)
- DGNS_E_CD_CNT:
description:
@@ -10877,6 +12378,7 @@ cms:
original_type: NUM
text: MEDPAR Diagnosis E Code Count
width: 3.0
+ reference: https://resdac.org/cms-data/variables/count-diagnosis-e-codes
type: INT
- DGNS_E_VRSN_CD:
description:
@@ -10884,6 +12386,7 @@ cms:
original_type: CHAR
text: MEDPAR Diagnosis E Version Code (Earlier Version)
width: 1.0
+ reference: https://resdac.org/cms-data/variables/diagnosis-e-version-code-earlier-version
type: VARCHAR(1)
- DGNS_E_VRSN_CD_1:
description:
@@ -10891,6 +12394,7 @@ cms:
original_type: CHAR
text: MEDPAR Diagnosis E Version Code 01
width: 1.0
+ reference: https://resdac.org/cms-data/variables/diagnosis-e-version-code-1
type: VARCHAR(1)
- DGNS_E_VRSN_CD_2:
description:
@@ -10898,6 +12402,7 @@ cms:
original_type: CHAR
text: MEDPAR Diagnosis E Version Code 02
width: 1.0
+ reference: https://resdac.org/cms-data/variables/diagnosis-e-version-code-2
type: VARCHAR(1)
- DGNS_E_VRSN_CD_3:
description:
@@ -10905,6 +12410,7 @@ cms:
original_type: CHAR
text: MEDPAR Diagnosis E Version Code 03
width: 1.0
+ reference: https://resdac.org/cms-data/variables/diagnosis-e-version-code-3
type: VARCHAR(1)
- DGNS_E_VRSN_CD_4:
description:
@@ -10912,6 +12418,7 @@ cms:
original_type: CHAR
text: MEDPAR Diagnosis E Version Code 04
width: 1.0
+ reference: https://resdac.org/cms-data/variables/diagnosis-e-version-code-4
type: VARCHAR(1)
- DGNS_E_VRSN_CD_5:
description:
@@ -10919,6 +12426,7 @@ cms:
original_type: CHAR
text: MEDPAR Diagnosis E Version Code 05
width: 1.0
+ reference: https://resdac.org/cms-data/variables/diagnosis-e-version-code-5
type: VARCHAR(1)
- DGNS_E_VRSN_CD_6:
description:
@@ -10926,6 +12434,7 @@ cms:
original_type: CHAR
text: MEDPAR Diagnosis E Version Code 06
width: 1.0
+ reference: https://resdac.org/cms-data/variables/diagnosis-e-version-code-6
type: VARCHAR(1)
- DGNS_E_VRSN_CD_7:
description:
@@ -10933,6 +12442,7 @@ cms:
original_type: CHAR
text: MEDPAR Diagnosis E Version Code 07
width: 1.0
+ reference: https://resdac.org/cms-data/variables/diagnosis-e-version-code-7
type: VARCHAR(1)
- DGNS_E_VRSN_CD_8:
description:
@@ -10940,6 +12450,7 @@ cms:
original_type: CHAR
text: MEDPAR Diagnosis E Version Code 08
width: 1.0
+ reference: https://resdac.org/cms-data/variables/diagnosis-e-version-code-8
type: VARCHAR(1)
- DGNS_E_VRSN_CD_9:
description:
@@ -10947,6 +12458,7 @@ cms:
original_type: CHAR
text: MEDPAR Diagnosis E Version Code 09
width: 1.0
+ reference: https://resdac.org/cms-data/variables/diagnosis-e-version-code-9
type: VARCHAR(1)
- DGNS_E_VRSN_CD_10:
description:
@@ -10954,6 +12466,7 @@ cms:
original_type: CHAR
text: MEDPAR Diagnosis E Version Code 10
width: 1.0
+ reference: https://resdac.org/cms-data/variables/diagnosis-e-version-code-10
type: VARCHAR(1)
- DGNS_E_VRSN_CD_11:
description:
@@ -10961,6 +12474,7 @@ cms:
original_type: CHAR
text: MEDPAR Diagnosis E Version Code 11
width: 1.0
+ reference: https://resdac.org/cms-data/variables/diagnosis-e-version-code-11
type: VARCHAR(1)
- DGNS_E_VRSN_CD_12:
description:
@@ -10968,6 +12482,7 @@ cms:
original_type: CHAR
text: MEDPAR Diagnosis E Version Code 12
width: 1.0
+ reference: https://resdac.org/cms-data/variables/diagnosis-e-version-code-12
type: VARCHAR(1)
- DGNS_E_1_CD:
description:
@@ -10976,6 +12491,7 @@ cms:
text: E Diagnosis Code 1 - Extrnl cause of injury, poisoning, or oth
adverse
width: 7.0
+ reference: https://resdac.org/cms-data/variables/diagnosis-e-version-code-1
type: VARCHAR(7)
- DGNS_E_2_CD:
description:
@@ -10984,6 +12500,7 @@ cms:
text: E Diagnosis Code 2 - Extrnl cause of injury, poisoning, or oth
adverse
width: 7.0
+ reference: https://resdac.org/cms-data/variables/diagnosis-e-code-2
type: VARCHAR(7)
- DGNS_E_3_CD:
description:
@@ -10992,6 +12509,7 @@ cms:
text: E Diagnosis Code 3 - Extrnl cause of injury, poisoning, or oth
adverse
width: 7.0
+ reference: https://resdac.org/cms-data/variables/diagnosis-e-code-3
type: VARCHAR(7)
- DGNS_E_4_CD:
description:
@@ -11000,6 +12518,7 @@ cms:
text: E Diagnosis Code 4 - Extrnl cause of injury, poisoning, or oth
adverse
width: 7.0
+ reference: https://resdac.org/cms-data/variables/diagnosis-e-code-4
type: VARCHAR(7)
- DGNS_E_5_CD:
description:
@@ -11008,6 +12527,7 @@ cms:
text: E Diagnosis Code 5 - Extrnl cause of injury, poisoning, or oth
adverse
width: 7.0
+ reference: https://resdac.org/cms-data/variables/diagnosis-e-code-5
type: VARCHAR(7)
- DGNS_E_6_CD:
description:
@@ -11016,6 +12536,7 @@ cms:
text: E Diagnosis Code 6 - Extrnl cause of injury, poisoning, or oth
adverse
width: 7.0
+ reference: https://resdac.org/cms-data/variables/diagnosis-e-code-6
type: VARCHAR(7)
- DGNS_E_7_CD:
description:
@@ -11024,6 +12545,7 @@ cms:
text: E Diagnosis Code 7 - Extrnl cause of injury, poisoning, or oth
adverse
width: 7.0
+ reference: https://resdac.org/cms-data/variables/diagnosis-e-code-7
type: VARCHAR(7)
- DGNS_E_8_CD:
description:
@@ -11032,6 +12554,7 @@ cms:
text: E Diagnosis Code 8 - Extrnl cause of injury, poisoning, or oth
adverse
width: 7.0
+ reference: https://resdac.org/cms-data/variables/diagnosis-e-code-8
type: VARCHAR(7)
- DGNS_E_9_CD:
description:
@@ -11040,6 +12563,7 @@ cms:
text: E Diagnosis Code 9 - Extrnl cause of injury, poisoning, or oth
adverse
width: 7.0
+ reference: https://resdac.org/cms-data/variables/diagnosis-e-code-9
type: VARCHAR(7)
- DGNS_E_10_CD:
description:
@@ -11048,6 +12572,7 @@ cms:
text: E Diagnosis Code 10 - Extrnl cause of injury, poisoning, or oth
adverse
width: 7.0
+ reference: https://resdac.org/cms-data/variables/diagnosis-e-code-10
type: VARCHAR(7)
- DGNS_E_11_CD:
description:
@@ -11056,6 +12581,7 @@ cms:
text: E Diagnosis Code 11 - Extrnl cause of injury, poisoning, or oth
adverse
width: 7.0
+ reference: https://resdac.org/cms-data/variables/diagnosis-e-code-11
type: VARCHAR(7)
- DGNS_E_12_CD:
description:
@@ -11064,6 +12590,7 @@ cms:
text: E Diagnosis Code 12 - Extrnl cause of injury, poisoning, or oth
adverse
width: 7.0
+ reference: https://resdac.org/cms-data/variables/diagnosis-e-version-code-1
type: VARCHAR(7)
- POA_DGNS_E_CD_CNT:
description:
@@ -11071,6 +12598,7 @@ cms:
original_type: NUM
text: MEDPAR Claim Present on Admission Diagnosis E Code Count
width: 3.0
+ reference: https://resdac.org/cms-data/variables/count-present-admission-poa-diagnosis-e-codes
type: INT
- POA_DGNS_E_1_IND_CD:
description:
@@ -11078,6 +12606,7 @@ cms:
original_type: CHAR
text: Diagnosis E Code Present on Admission Indicator 1
width: 1.0
+ reference: https://resdac.org/cms-data/variables/diagnosis-1-present-admission-poa-indicator-code
type: VARCHAR(1)
- POA_DGNS_E_2_IND_CD:
description:
@@ -11085,6 +12614,7 @@ cms:
original_type: CHAR
text: Diagnosis E Code Present on Admission Indicator 2
width: 1.0
+ reference: https://resdac.org/cms-data/variables/diagnosis-e-code-present-admission-indicator-2
type: VARCHAR(1)
- POA_DGNS_E_3_IND_CD:
description:
@@ -11092,6 +12622,7 @@ cms:
original_type: CHAR
text: Diagnosis E Code Present on Admission Indicator 3
width: 1.0
+ reference: https://resdac.org/cms-data/variables/diagnosis-e-code-present-admission-indicator-3
type: VARCHAR(1)
- POA_DGNS_E_4_IND_CD:
description:
@@ -11099,6 +12630,7 @@ cms:
original_type: CHAR
text: Diagnosis E Code Present on Admission Indicator 4
width: 1.0
+ reference: https://resdac.org/cms-data/variables/diagnosis-e-code-present-admission-indicator-4
type: VARCHAR(1)
- POA_DGNS_E_5_IND_CD:
description:
@@ -11106,6 +12638,7 @@ cms:
original_type: CHAR
text: Diagnosis E Code Present on Admission Indicator 5
width: 1.0
+ reference: https://resdac.org/cms-data/variables/diagnosis-e-code-present-admission-indicator-5
type: VARCHAR(1)
- POA_DGNS_E_6_IND_CD:
description:
@@ -11113,6 +12646,7 @@ cms:
original_type: CHAR
text: Diagnosis E Code Present on Admission Indicator 6
width: 1.0
+ reference: https://resdac.org/cms-data/variables/diagnosis-e-code-present-admission-indicator-6
type: VARCHAR(1)
- POA_DGNS_E_7_IND_CD:
description:
@@ -11120,6 +12654,7 @@ cms:
original_type: CHAR
text: Diagnosis E Code Present on Admission Indicator 7
width: 1.0
+ reference: https://resdac.org/cms-data/variables/diagnosis-e-code-present-admission-indicator-7
type: VARCHAR(1)
- POA_DGNS_E_8_IND_CD:
description:
@@ -11127,6 +12662,7 @@ cms:
original_type: CHAR
text: Diagnosis E Code Present on Admission Indicator 8
width: 1.0
+ reference: https://resdac.org/cms-data/variables/diagnosis-e-code-present-admission-indicator-8
type: VARCHAR(1)
- POA_DGNS_E_9_IND_CD:
description:
@@ -11134,6 +12670,7 @@ cms:
original_type: CHAR
text: Diagnosis E Code Present on Admission Indicator 9
width: 1.0
+ reference: https://resdac.org/cms-data/variables/diagnosis-e-code-present-admission-indicator-9
type: VARCHAR(1)
- POA_DGNS_E_10_IND_CD:
description:
@@ -11141,6 +12678,7 @@ cms:
original_type: CHAR
text: Diagnosis E Code Present on Admission Indicator 10
width: 1.0
+ reference: https://resdac.org/cms-data/variables/diagnosis-e-code-present-admission-indicator-10
type: VARCHAR(1)
- POA_DGNS_E_11_IND_CD:
description:
@@ -11148,6 +12686,7 @@ cms:
original_type: CHAR
text: Diagnosis E Code Present on Admission Indicator 11
width: 1.0
+ reference: https://resdac.org/cms-data/variables/diagnosis-e-code-present-admission-indicator-11
type: VARCHAR(1)
- POA_DGNS_E_12_IND_CD:
description:
@@ -11155,6 +12694,7 @@ cms:
original_type: CHAR
text: Diagnosis E Code Present on Admission Indicator 12
width: 1.0
+ reference: https://resdac.org/cms-data/variables/diagnosis-e-code-present-admission-indicator-12
type: VARCHAR(1)
- PRCDRSW:
description:
@@ -11162,6 +12702,7 @@ cms:
original_type: CHAR
text: Surgical procedures indicator
width: 1.0
+ reference: https://resdac.org/cms-data/variables/surgical-procedure-indicator
type: VARCHAR(1)
- PRCDRCNT:
description:
@@ -11169,6 +12710,7 @@ cms:
original_type: NUM
text: Surgical procedure codes included in stay
width: 3.0
+ reference: https://resdac.org/cms-data/variables/surgical-procedure-codes-included-stay
type: INT
- SRGCL_PRCDR_VRSN_CD:
description:
@@ -11176,6 +12718,7 @@ cms:
original_type: CHAR
text: MEDPAR Surgical Procedure Version Code (Earlier Version)
width: 1.0
+ reference: https://resdac.org/cms-data/variables/surgical-procedure-version-code-earlier-version
type: VARCHAR(1)
- SRGCL_PRCDR_VRSN_CD_1:
description:
@@ -11183,6 +12726,7 @@ cms:
original_type: CHAR
text: MEDPAR Surgical Procedure Version Code 01
width: 1.0
+ reference: https://resdac.org/cms-data/variables/principal-procedure-code
type: VARCHAR(1)
- SRGCL_PRCDR_VRSN_CD_2:
description:
@@ -11190,6 +12734,7 @@ cms:
original_type: CHAR
text: MEDPAR Surgical Procedure Version Code 02
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-surgical-procedure-version-code-2
type: VARCHAR(1)
- SRGCL_PRCDR_VRSN_CD_3:
description:
@@ -11197,6 +12742,7 @@ cms:
original_type: CHAR
text: MEDPAR Surgical Procedure Version Code 03
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-surgical-procedure-version-code-3
type: VARCHAR(1)
- SRGCL_PRCDR_VRSN_CD_4:
description:
@@ -11204,6 +12750,7 @@ cms:
original_type: CHAR
text: MEDPAR Surgical Procedure Version Code 04
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-surgical-procedure-version-code-4
type: VARCHAR(1)
- SRGCL_PRCDR_VRSN_CD_5:
description:
@@ -11211,6 +12758,7 @@ cms:
original_type: CHAR
text: MEDPAR Surgical Procedure Version Code 05
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-surgical-procedure-version-code-5
type: VARCHAR(1)
- SRGCL_PRCDR_VRSN_CD_6:
description:
@@ -11218,6 +12766,7 @@ cms:
original_type: CHAR
text: MEDPAR Surgical Procedure Version Code 06
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-surgical-procedure-version-code-6
type: VARCHAR(1)
- SRGCL_PRCDR_VRSN_CD_7:
description:
@@ -11225,6 +12774,7 @@ cms:
original_type: CHAR
text: MEDPAR Surgical Procedure Version Code 07
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-surgical-procedure-version-code-7
type: VARCHAR(1)
- SRGCL_PRCDR_VRSN_CD_8:
description:
@@ -11232,6 +12782,7 @@ cms:
original_type: CHAR
text: MEDPAR Surgical Procedure Version Code 08
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-surgical-procedure-version-code-8
type: VARCHAR(1)
- SRGCL_PRCDR_VRSN_CD_9:
description:
@@ -11239,6 +12790,7 @@ cms:
original_type: CHAR
text: MEDPAR Surgical Procedure Version Code 09
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-surgical-procedure-version-code-9
type: VARCHAR(1)
- SRGCL_PRCDR_VRSN_CD_10:
description:
@@ -11246,6 +12798,7 @@ cms:
original_type: CHAR
text: MEDPAR Surgical Procedure Version Code 10
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-surgical-procedure-version-code-10
type: VARCHAR(1)
- SRGCL_PRCDR_VRSN_CD_11:
description:
@@ -11253,6 +12806,7 @@ cms:
original_type: CHAR
text: MEDPAR Surgical Procedure Version Code 11
width: 1.0
+ reference: https://resdac.org/cms-data/variables/surgical-procedure-version-code-earlier-version
type: VARCHAR(1)
- SRGCL_PRCDR_VRSN_CD_12:
description:
@@ -11260,6 +12814,7 @@ cms:
original_type: CHAR
text: MEDPAR Surgical Procedure Version Code 12
width: 1.0
+ reference: https://resdac.org/cms-data/variables/surgical-procedure-version-code-earlier-version
type: VARCHAR(1)
- SRGCL_PRCDR_VRSN_CD_13:
description:
@@ -11267,6 +12822,7 @@ cms:
original_type: CHAR
text: MEDPAR Surgical Procedure Version Code 13
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-surgical-procedure-version-code-13
type: VARCHAR(1)
- SRGCL_PRCDR_VRSN_CD_14:
description:
@@ -11274,6 +12830,7 @@ cms:
original_type: CHAR
text: MEDPAR Surgical Procedure Version Code 14
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-surgical-procedure-version-code-14
type: VARCHAR(1)
- SRGCL_PRCDR_VRSN_CD_15:
description:
@@ -11281,6 +12838,7 @@ cms:
original_type: CHAR
text: MEDPAR Surgical Procedure Version Code 15
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-surgical-procedure-version-code-15
type: VARCHAR(1)
- SRGCL_PRCDR_VRSN_CD_16:
description:
@@ -11288,6 +12846,7 @@ cms:
original_type: CHAR
text: MEDPAR Surgical Procedure Version Code 16
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-surgical-procedure-version-code-16
type: VARCHAR(1)
- SRGCL_PRCDR_VRSN_CD_17:
description:
@@ -11295,6 +12854,7 @@ cms:
original_type: CHAR
text: MEDPAR Surgical Procedure Version Code 17
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-surgical-procedure-version-code-17
type: VARCHAR(1)
- SRGCL_PRCDR_VRSN_CD_18:
description:
@@ -11302,6 +12862,7 @@ cms:
original_type: CHAR
text: MEDPAR Surgical Procedure Version Code 18
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-surgical-procedure-version-code-18
type: VARCHAR(1)
- SRGCL_PRCDR_VRSN_CD_19:
description:
@@ -11309,6 +12870,7 @@ cms:
original_type: CHAR
text: MEDPAR Surgical Procedure Version Code 19
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-surgical-procedure-version-code-19
type: VARCHAR(1)
- SRGCL_PRCDR_VRSN_CD_20:
description:
@@ -11316,6 +12878,7 @@ cms:
original_type: CHAR
text: MEDPAR Surgical Procedure Version Code 20
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-surgical-procedure-version-code-20
type: VARCHAR(1)
- SRGCL_PRCDR_VRSN_CD_21:
description:
@@ -11323,6 +12886,7 @@ cms:
original_type: CHAR
text: MEDPAR Surgical Procedure Version Code 21
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-surgical-procedure-version-code-21
type: VARCHAR(1)
- SRGCL_PRCDR_VRSN_CD_22:
description:
@@ -11330,6 +12894,7 @@ cms:
original_type: CHAR
text: MEDPAR Surgical Procedure Version Code 22
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-surgical-procedure-version-code-22
type: VARCHAR(1)
- SRGCL_PRCDR_VRSN_CD_23:
description:
@@ -11337,6 +12902,7 @@ cms:
original_type: CHAR
text: MEDPAR Surgical Procedure Version Code 23
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-surgical-procedure-version-code-23
type: VARCHAR(1)
- SRGCL_PRCDR_VRSN_CD_24:
description:
@@ -11344,6 +12910,7 @@ cms:
original_type: CHAR
text: MEDPAR Surgical Procedure Version Code 24
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-surgical-procedure-version-code-24
type: VARCHAR(1)
- SRGCL_PRCDR_VRSN_CD_25:
description:
@@ -11351,6 +12918,7 @@ cms:
original_type: CHAR
text: MEDPAR Surgical Procedure Version Code 25
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-procedure-code-4
type: VARCHAR(1)
- PRCDRCD1:
description:
@@ -11358,6 +12926,7 @@ cms:
original_type: CHAR
text: Principal Procedure code
width: 7.0
+ reference: https://resdac.org/cms-data/variables/principal-procedure-code
type: VARCHAR(7)
- PRCDRCD2:
description:
@@ -11365,6 +12934,7 @@ cms:
original_type: CHAR
text: Procedure Code II
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-procedure-code-2
type: VARCHAR(7)
- PRCDRCD3:
description:
@@ -11372,6 +12942,7 @@ cms:
original_type: CHAR
text: Procedure Code III
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-procedure-code-3
type: VARCHAR(7)
- PRCDRCD4:
description:
@@ -11379,6 +12950,7 @@ cms:
original_type: CHAR
text: Procedure Code IV
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-procedure-code-4
type: VARCHAR(7)
- PRCDRCD5:
description:
@@ -11386,6 +12958,7 @@ cms:
original_type: CHAR
text: Procedure Code V
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-procedure-code-5
type: VARCHAR(7)
- PRCDRCD6:
description:
@@ -11393,6 +12966,7 @@ cms:
original_type: CHAR
text: Procedure Code VI
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-procedure-code-6
type: VARCHAR(7)
- PRCDRCD7:
description:
@@ -11400,6 +12974,7 @@ cms:
original_type: CHAR
text: Procedure Code VII
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-procedure-code-7
type: VARCHAR(7)
- PRCDRCD8:
description:
@@ -11407,6 +12982,7 @@ cms:
original_type: CHAR
text: Procedure Code VIII
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-procedure-code-8
type: VARCHAR(7)
- PRCDRCD9:
description:
@@ -11414,6 +12990,7 @@ cms:
original_type: CHAR
text: Procedure Code IX
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-procedure-code-9
type: VARCHAR(7)
- PRCDRCD10:
description:
@@ -11421,6 +12998,7 @@ cms:
original_type: CHAR
text: Procedure Code X
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-procedure-code-10
type: VARCHAR(7)
- PRCDRCD11:
description:
@@ -11428,6 +13006,7 @@ cms:
original_type: CHAR
text: Procedure Code XI
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-procedure-code-11
type: VARCHAR(7)
- PRCDRCD12:
description:
@@ -11435,6 +13014,7 @@ cms:
original_type: CHAR
text: Procedure Code XII
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-procedure-code-12
type: VARCHAR(7)
- PRCDRCD13:
description:
@@ -11442,6 +13022,7 @@ cms:
original_type: CHAR
text: Procedure Code XIII
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-procedure-code-13
type: VARCHAR(7)
- PRCDRCD14:
description:
@@ -11449,6 +13030,7 @@ cms:
original_type: CHAR
text: Procedure Code XIV
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-procedure-code-14
type: VARCHAR(7)
- PRCDRCD15:
description:
@@ -11456,6 +13038,7 @@ cms:
original_type: CHAR
text: Procedure Code XV
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-procedure-code-15
type: VARCHAR(7)
- PRCDRCD16:
description:
@@ -11463,6 +13046,7 @@ cms:
original_type: CHAR
text: Procedure Code XVI
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-procedure-code-16
type: VARCHAR(7)
- PRCDRCD17:
description:
@@ -11470,6 +13054,7 @@ cms:
original_type: CHAR
text: Procedure Code XVII
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-procedure-code-17
type: VARCHAR(7)
- PRCDRCD18:
description:
@@ -11477,6 +13062,7 @@ cms:
original_type: CHAR
text: Procedure Code XVIII
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-procedure-code-18
type: VARCHAR(7)
- PRCDRCD19:
description:
@@ -11484,6 +13070,7 @@ cms:
original_type: CHAR
text: Procedure Code XIX
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-procedure-code-19
type: VARCHAR(7)
- PRCDRCD20:
description:
@@ -11491,6 +13078,7 @@ cms:
original_type: CHAR
text: Procedure Code XX
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-procedure-code-20
type: VARCHAR(7)
- PRCDRCD21:
description:
@@ -11498,6 +13086,7 @@ cms:
original_type: CHAR
text: Procedure Code XXI
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-procedure-code-21
type: VARCHAR(7)
- PRCDRCD22:
description:
@@ -11505,6 +13094,7 @@ cms:
original_type: CHAR
text: Procedure Code XXII
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-procedure-code-22
type: VARCHAR(7)
- PRCDRCD23:
description:
@@ -11512,6 +13102,7 @@ cms:
original_type: CHAR
text: Procedure Code XXIII
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-procedure-code-23
type: VARCHAR(7)
- PRCDRCD24:
description:
@@ -11519,6 +13110,7 @@ cms:
original_type: CHAR
text: Procedure Code XXIV
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-procedure-code-24
type: VARCHAR(7)
- PRCDRCD25:
description:
@@ -11526,6 +13118,7 @@ cms:
original_type: CHAR
text: Procedure Code XXV
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-procedure-code-25
type: VARCHAR(7)
- PRCDTCNT:
description:
@@ -11533,6 +13126,7 @@ cms:
original_type: NUM
text: Dates associated with surgical procedures included in stay
width: 3.0
+ reference: https://resdac.org/cms-data/variables/dates-associated-surgical-procedures-included-stay
type: INT
- PRCDRDT1:
description:
@@ -11540,6 +13134,7 @@ cms:
original_type: DATE
text: Principal Procedure Date
width: 8.0
+ reference: https://resdac.org/cms-data/variables/principal-procedure-date
type: DATE
- PRCDRDT2:
description:
@@ -11547,6 +13142,7 @@ cms:
original_type: DATE
text: Procedure Date II
width: 8.0
+ reference: https://resdac.org/cms-data/variables/procedure-date-2
type: DATE
- PRCDRDT3:
description:
@@ -11554,6 +13150,7 @@ cms:
original_type: DATE
text: Procedure Date III
width: 8.0
+ reference: https://resdac.org/cms-data/variables/procedure-date-3
type: DATE
- PRCDRDT4:
description:
@@ -11561,6 +13158,7 @@ cms:
original_type: DATE
text: Procedure Date IV
width: 8.0
+ reference: https://resdac.org/cms-data/variables/procedure-date-4
type: DATE
- PRCDRDT5:
description:
@@ -11568,6 +13166,7 @@ cms:
original_type: DATE
text: Procedure Date V
width: 8.0
+ reference: null
type: DATE
- PRCDRDT6:
description:
@@ -11575,6 +13174,7 @@ cms:
original_type: DATE
text: Procedure Date VI
width: 8.0
+ reference: https://resdac.org/cms-data/variables/procedure-date-6
type: DATE
- PRCDRDT7:
description:
@@ -11582,6 +13182,7 @@ cms:
original_type: DATE
text: Procedure Date VII
width: 8.0
+ reference: https://resdac.org/cms-data/variables/procedure-date-7
type: DATE
- PRCDRDT8:
description:
@@ -11589,6 +13190,7 @@ cms:
original_type: DATE
text: Procedure Date VIII
width: 8.0
+ reference: https://resdac.org/cms-data/variables/procedure-date-8
type: DATE
- PRCDRDT9:
description:
@@ -11596,6 +13198,7 @@ cms:
original_type: DATE
text: Procedure Date IX
width: 8.0
+ reference: https://resdac.org/cms-data/variables/procedure-date-9
type: DATE
- PRCDRDT10:
description:
@@ -11603,6 +13206,7 @@ cms:
original_type: DATE
text: Procedure Date X
width: 8.0
+ reference: https://resdac.org/cms-data/variables/procedure-date-10
type: DATE
- PRCDRDT11:
description:
@@ -11610,6 +13214,7 @@ cms:
original_type: DATE
text: Procedure Date XI
width: 8.0
+ reference: https://resdac.org/cms-data/variables/procedure-date-11
type: DATE
- PRCDRDT12:
description:
@@ -11617,6 +13222,7 @@ cms:
original_type: DATE
text: Procedure Date XII
width: 8.0
+ reference: https://resdac.org/cms-data/variables/procedure-date-12
type: DATE
- PRCDRDT13:
description:
@@ -11624,6 +13230,7 @@ cms:
original_type: DATE
text: Procedure Date XIII
width: 8.0
+ reference: https://resdac.org/cms-data/variables/procedure-date-13
type: DATE
- PRCDRDT14:
description:
@@ -11631,6 +13238,7 @@ cms:
original_type: DATE
text: Procedure Date XIV
width: 8.0
+ reference: https://resdac.org/cms-data/variables/procedure-date-14
type: DATE
- PRCDRDT15:
description:
@@ -11638,6 +13246,7 @@ cms:
original_type: DATE
text: Procedure Date XV
width: 8.0
+ reference: https://resdac.org/cms-data/variables/procedure-date-15
type: DATE
- PRCDRDT16:
description:
@@ -11645,6 +13254,7 @@ cms:
original_type: DATE
text: Procedure Date XVI
width: 8.0
+ reference: https://resdac.org/cms-data/variables/procedure-date-16
type: DATE
- PRCDRDT17:
description:
@@ -11652,6 +13262,7 @@ cms:
original_type: DATE
text: Procedure Date XVII
width: 8.0
+ reference: https://resdac.org/cms-data/variables/procedure-date-17
type: DATE
- PRCDRDT18:
description:
@@ -11659,6 +13270,7 @@ cms:
original_type: DATE
text: Procedure Date XVIII
width: 8.0
+ reference: https://resdac.org/cms-data/variables/procedure-date-18
type: DATE
- PRCDRDT19:
description:
@@ -11666,6 +13278,7 @@ cms:
original_type: DATE
text: Procedure Date XIX
width: 8.0
+ reference: https://resdac.org/cms-data/variables/procedure-date-19
type: DATE
- PRCDRDT20:
description:
@@ -11673,6 +13286,7 @@ cms:
original_type: DATE
text: Procedure Date XX
width: 8.0
+ reference: https://resdac.org/cms-data/variables/procedure-date-20
type: DATE
- PRCDRDT21:
description:
@@ -11680,6 +13294,7 @@ cms:
original_type: DATE
text: Procedure Date XXI
width: 8.0
+ reference: https://resdac.org/cms-data/variables/procedure-date-21
type: DATE
- PRCDRDT22:
description:
@@ -11687,6 +13302,7 @@ cms:
original_type: DATE
text: Procedure Date XXII
width: 8.0
+ reference: https://resdac.org/cms-data/variables/procedure-date-22
type: DATE
- PRCDRDT23:
description:
@@ -11694,6 +13310,7 @@ cms:
original_type: DATE
text: Procedure Date XXIII
width: 8.0
+ reference: https://resdac.org/cms-data/variables/procedure-date-23
type: DATE
- PRCDRDT24:
description:
@@ -11701,6 +13318,7 @@ cms:
original_type: DATE
text: Procedure Date XXIV
width: 8.0
+ reference: https://resdac.org/cms-data/variables/procedure-date-24
type: DATE
- PRCDRDT25:
description:
@@ -11708,6 +13326,7 @@ cms:
original_type: DATE
text: Procedure Date XXV
width: 8.0
+ reference: https://resdac.org/cms-data/variables/procedure-date-25
type: DATE
- CLM_PTNT_RLTNSHP_CD:
description:
@@ -11715,6 +13334,7 @@ cms:
original_type: CHAR
text: Claim Patient Relationship Code
width: 2.0
+ reference: https://resdac.org/cms-data/variables/claim-patient-relationship-code
type: VARCHAR(2)
- CARE_IMPRVMT_MODEL_1_CD:
description:
@@ -11722,6 +13342,7 @@ cms:
original_type: CHAR
text: Care Improvement Model 1 Code
width: 2.0
+ reference: https://resdac.org/cms-data/variables/care-improvement-model-1-code
type: VARCHAR(2)
- CARE_IMPRVMT_MODEL_2_CD:
description:
@@ -11729,6 +13350,7 @@ cms:
original_type: CHAR
text: Care Improvement Model 2 Code
width: 2.0
+ reference: https://resdac.org/cms-data/variables/care-improvement-model-2-code
type: VARCHAR(2)
- CARE_IMPRVMT_MODEL_3_CD:
description:
@@ -11736,6 +13358,7 @@ cms:
original_type: CHAR
text: Care Improvement Model 3 Code
width: 2.0
+ reference: https://resdac.org/cms-data/variables/care-improvement-model-3-code
type: VARCHAR(2)
- CARE_IMPRVMT_MODEL_4_CD:
description:
@@ -11743,6 +13366,7 @@ cms:
original_type: CHAR
text: Care Improvement Model 4 Code
width: 2.0
+ reference: https://resdac.org/cms-data/variables/care-improvement-model-4-code
type: VARCHAR(2)
- VBP_PRTCPNT_IND_CD:
description:
@@ -11750,6 +13374,7 @@ cms:
original_type: CHAR
text: VBP Participant Indicator Code
width: 1.0
+ reference: https://resdac.org/cms-data/variables/value-based-purchasing-vbp-participant-indicator-code
type: VARCHAR(1)
- HRR_PRTCPNT_IND_CD:
description:
@@ -11757,6 +13382,7 @@ cms:
original_type: CHAR
text: HRR Participant Indicator Code
width: 1.0
+ reference: https://resdac.org/cms-data/variables/hospital-readmission-reduction-hrr-participant-indicator-code
type: VARCHAR(1)
- BNDLD_MODEL_DSCNT_PCT:
description:
@@ -11764,6 +13390,7 @@ cms:
original_type: NUM
text: Bundled Model Discount Percent
width: 4.2
+ reference: https://resdac.org/cms-data/variables/bundled-payment-model-discount-percent
type: NUMERIC(4,2)
- VBP_ADJSTMT_PCT:
description:
@@ -11771,6 +13398,7 @@ cms:
original_type: NUM
text: VBP Adjustment Percent
width: 13.1
+ reference: https://resdac.org/cms-data/variables/value-based-purchasing-vbp-adjustment-percent
type: NUMERIC(13,1)
- HRR_ADJSTMT_PCT:
description:
@@ -11778,6 +13406,7 @@ cms:
original_type: NUM
text: HRR Adjustment Percent
width: 6.4
+ reference: https://resdac.org/cms-data/variables/hospital-readmission-reduction-hrr-adjustment-percent
type: NUMERIC(6,4)
- INFRMTL_ENCTR_IND_SW:
description:
@@ -11785,6 +13414,7 @@ cms:
original_type: CHAR
text: Informational Encounter Indicator Switch
width: 1.0
+ reference: https://resdac.org/cms-data/variables/informational-encounter-indicator
type: VARCHAR(1)
- MA_TCHNG_IND_SW:
description:
@@ -11792,6 +13422,7 @@ cms:
original_type: CHAR
text: MA Teaching Indicator Switch
width: 1.0
+ reference: https://resdac.org/cms-data/variables/ma-teaching-indicator
type: VARCHAR(1)
- PROD_RPLCMT_LIFECYC_SW:
description:
@@ -11799,6 +13430,7 @@ cms:
original_type: CHAR
text: Prod Replacement Lifecycle Switch
width: 1.0
+ reference: https://resdac.org/cms-data/variables/product-replacement-within-product-lifecycle-early
type: VARCHAR(1)
- PROD_RPLCMT_RCLL_SW:
description:
@@ -11806,6 +13438,7 @@ cms:
original_type: CHAR
text: Prod Replacement Recall Switch
width: 1.0
+ reference: https://resdac.org/cms-data/variables/product-replacement-recall-product
type: VARCHAR(1)
- CRED_RCVD_RPLCD_DVC_SW:
description:
@@ -11813,6 +13446,7 @@ cms:
original_type: CHAR
text: Credit Received Replaced Device Switch
width: 1.0
+ reference: https://resdac.org/cms-data/variables/credit-received-replaced-device
type: VARCHAR(1)
- OBSRVTN_SW:
description:
@@ -11820,6 +13454,7 @@ cms:
original_type: CHAR
text: Observation Switch
width: 1.0
+ reference: https://resdac.org/cms-data/variables/observation-unit-indicator
type: VARCHAR(1)
- NEW_TCHNLGY_ADD_ON_AMT:
description:
@@ -11827,6 +13462,7 @@ cms:
original_type: NUM
text: New Technology Add-On Amount
width: 10.0
+ reference: https://resdac.org/cms-data/variables/new-technology-add-amount
type: INT
- BASE_OPRTG_DRG_AMT:
description:
@@ -11834,6 +13470,7 @@ cms:
original_type: NUM
text: Base Operating DRG Amount
width: 10.0
+ reference: https://resdac.org/cms-data/variables/base-operating-drg-amount
type: INT
- OPRTG_HSP_AMT:
description:
@@ -11841,6 +13478,7 @@ cms:
original_type: NUM
text: Operating Hospital Amount
width: 10.0
+ reference: https://resdac.org/cms-data/variables/operating-hospital-amount
type: INT
- MDCL_SRGCL_GNRL_AMT:
description:
@@ -11848,6 +13486,7 @@ cms:
original_type: NUM
text: Medical/Surgical General Amount
width: 10.0
+ reference: https://resdac.org/cms-data/variables/medicalsurgical-supplies-prosthetic-orthotic-amount
type: INT
- MDCL_SRGCL_NSTRL_AMT:
description:
@@ -11855,6 +13494,7 @@ cms:
original_type: NUM
text: Medical/Surgical Non-Sterile Amount
width: 10.0
+ reference: https://resdac.org/cms-data/variables/medicalsurgical-non-sterile-supplies-amount
type: INT
- MDCL_SRGCL_STRL_AMT:
description:
@@ -11862,6 +13502,7 @@ cms:
original_type: NUM
text: Medical/Surgical Sterile Amount
width: 10.0
+ reference: https://resdac.org/cms-data/variables/medicalsurgical-sterile-supplies-amount
type: INT
- TAKE_HOME_AMT:
description:
@@ -11869,6 +13510,7 @@ cms:
original_type: NUM
text: Take Home Amount
width: 10.0
+ reference: https://resdac.org/cms-data/variables/medicalsurgical-supplies-take-home-amount
type: INT
- PRSTHTC_ORTHTC_AMT:
description:
@@ -11876,6 +13518,7 @@ cms:
original_type: NUM
text: Prosthetic Orthotic Amount
width: 10.0
+ reference: https://resdac.org/cms-data/variables/medicalsurgical-supplies-prosthetic-orthotic-amount
type: INT
- MDCL_SRGCL_PCMKR_AMT:
description:
@@ -11883,6 +13526,7 @@ cms:
original_type: NUM
text: Medical/Surgical Pacemaker Amount
width: 10.0
+ reference: https://resdac.org/cms-data/variables/medicalsurgical-pacemaker-amount
type: INT
- INTRAOCULAR_LENS_AMT:
description:
@@ -11890,6 +13534,7 @@ cms:
original_type: NUM
text: Intraocular Lens Amount
width: 10.0
+ reference: https://resdac.org/cms-data/variables/medicalsurgical-supplies-intraocular-lens-amount
type: INT
- OXYGN_TAKE_HOME_AMT:
description:
@@ -11897,6 +13542,7 @@ cms:
original_type: NUM
text: Oxygen Take Home Amount
width: 10.0
+ reference: https://resdac.org/cms-data/variables/medicalsurgical-supplies-oxygen-take-home-amount
type: INT
- OTHR_IMPLANTS_AMT:
description:
@@ -11904,6 +13550,7 @@ cms:
original_type: NUM
text: Other Implants Amount
width: 10.0
+ reference: https://resdac.org/cms-data/variables/medicalsurgical-supplies-other-implants-amount
type: INT
- OTHR_SUPLIES_DVC_AMT:
description:
@@ -11911,6 +13558,7 @@ cms:
original_type: NUM
text: Other Supplies Device Amount
width: 10.0
+ reference: https://resdac.org/cms-data/variables/medicalsurgical-supplies-other-device-amount
type: INT
- INCDNT_RDLGY_AMT:
description:
@@ -11918,6 +13566,7 @@ cms:
original_type: NUM
text: Incident Radiology Amount
width: 10.0
+ reference: https://resdac.org/cms-data/variables/medicalsurgical-supplies-incident-radiology-amount
type: INT
- INCDNT_DGNSTC_SRVCS_AMT:
description:
@@ -11925,6 +13574,7 @@ cms:
original_type: NUM
text: Incident Diagnostic Services Amount
width: 10.0
+ reference: https://resdac.org/cms-data/variables/medicalsurgical-supplies-incident-diagnostic-services-amount
type: INT
- MDCL_SRGCL_DRSNG_AMT:
description:
@@ -11932,6 +13582,7 @@ cms:
original_type: NUM
text: Medical/Surgical Dressing Amount
width: 10.0
+ reference: https://resdac.org/cms-data/variables/medicalsurgical-dressing-amount
type: INT
- INVSTGTNL_DVC_AMT:
description:
@@ -11939,6 +13590,7 @@ cms:
original_type: NUM
text: Investigational Device Amount
width: 10.0
+ reference: https://resdac.org/cms-data/variables/medicalsurgical-supplies-investigational-device-amount
type: INT
- MDCL_SRGCL_MISC_AMT:
description:
@@ -11946,6 +13598,7 @@ cms:
original_type: NUM
text: Medical/Surgical Miscellaneous Amount
width: 10.0
+ reference: https://resdac.org/cms-data/variables/medical-surgical-miscellaneous-amount
type: INT
- RDLGY_ONCOLOGY_AMT:
description:
@@ -11953,6 +13606,7 @@ cms:
original_type: NUM
text: Radiology/Oncology Amount
width: 10.0
+ reference: https://resdac.org/cms-data/variables/oncology-amount
type: INT
- RDLGY_DGNSTC_AMT:
description:
@@ -11960,6 +13614,7 @@ cms:
original_type: NUM
text: Radiology Diagnostic Amount
width: 10.0
+ reference: https://resdac.org/cms-data/variables/radiology-diagnostic-amount
type: INT
- RDLGY_THRPTC_AMT:
description:
@@ -11967,6 +13622,7 @@ cms:
original_type: NUM
text: Radiology Therapeutic Amount
width: 10.0
+ reference: https://resdac.org/cms-data/variables/radiology-therapeutic-amount
type: INT
- RDLGY_NUCLR_MDCN_AMT:
description:
@@ -11974,6 +13630,7 @@ cms:
original_type: NUM
text: Radiology Nuclear Medicine Amount
width: 10.0
+ reference: https://resdac.org/cms-data/variables/radiology-nuclear-medicine-amount
type: INT
- RDLGY_CT_SCAN_AMT:
description:
@@ -11981,6 +13638,7 @@ cms:
original_type: NUM
text: Radiology CT Scan Amount
width: 10.0
+ reference: https://resdac.org/cms-data/variables/radiology-ct-scan-amount
type: INT
- RDLGY_OTHR_IMGNG_AMT:
description:
@@ -11988,6 +13646,7 @@ cms:
original_type: NUM
text: Radiology Other Imaging Amount
width: 10.0
+ reference: https://resdac.org/cms-data/variables/radiology-other-imaging-amount
type: INT
- OPRTG_ROOM_AMT:
description:
@@ -11995,6 +13654,7 @@ cms:
original_type: NUM
text: Operating Room Amount
width: 10.0
+ reference: https://resdac.org/cms-data/variables/operating-and-recovery-room-amount
type: INT
- OR_LABOR_DLVRY_AMT:
description:
@@ -12002,6 +13662,7 @@ cms:
original_type: NUM
text: O/R Labor Delivery Amount
width: 10.0
+ reference: https://resdac.org/cms-data/variables/labor-room-and-delivery-amount
type: INT
- CRDC_CATHRZTN_AMT:
description:
@@ -12009,6 +13670,7 @@ cms:
original_type: NUM
text: Cardiac Catheterization Amount
width: 10.0
+ reference: https://resdac.org/cms-data/variables/cardiac-catheterization-lab-amount
type: INT
- FILE:
description:
@@ -12017,6 +13679,7 @@ cms:
width: 128
index:
required_before_loading_data: true
+ reference: null
source:
type: file
type: VARCHAR(128)
@@ -12025,6 +13688,7 @@ cms:
original_type: BIGSERIAL
text: Record number in the file
width: null
+ reference: https://resdac.org/cms-data/variables/nch-near-line-record-identification-code-ric
type: BIGSERIAL
- STATE:
description:
@@ -12032,6 +13696,7 @@ cms:
text: SSA standard state code of a beneficiarys residence.
width: 2.0
index: true
+ reference: https://resdac.org/cms-data/variables/state-code-beneficiary-ssa-code
source:
code: GENERATED ALWAYS AS (STATE_CD) STORED
type: generated
@@ -12042,6 +13707,7 @@ cms:
text: Year of MedPAR Record
width: 4.0
index: true
+ reference: https://resdac.org/cms-data/variables/mbsf-cc-30/alzheimers-disease-end-year-indicator
source:
code: GENERATED ALWAYS AS (MEDPAR_YR_NUM) STORED
type: generated
@@ -12052,6 +13718,7 @@ cms:
text: Zip code of the mailing address where the beneficiary may be contacted.
width: 5.0
index: true
+ reference: https://resdac.org/cms-data/variables/zip-code-beneficiary
source:
code: GENERATED ALWAYS AS (BENE_ZIP) STORED
type: generated
@@ -12073,6 +13740,7 @@ cms:
text: Encrypted 723 Beneficiary ID
width: 15.0
index: true
+ reference: https://resdac.org/cms-data/variables/ccw-beneficiary-id
type: VARCHAR(15)
- MEDPARID:
description:
@@ -12080,6 +13748,7 @@ cms:
original_type: CHAR
text: Unique Key for CCW MedPAR Table
width: 15.0
+ reference: https://resdac.org/cms-data/variables/medpar-id-number
type: VARCHAR(15)
- MEDPAR_YR_NUM:
description:
@@ -12087,6 +13756,7 @@ cms:
original_type: CHAR
text: Year of MedPAR Record
width: 4.0
+ reference: https://resdac.org/cms-data/variables/year-medpar-record
type: VARCHAR(4)
- CLM_TYPE:
description:
@@ -12094,6 +13764,7 @@ cms:
original_type: CHAR
text: NCH Claim Type Code
width: 2.0
+ reference: https://resdac.org/cms-data/variables/nch-claim-type-code
type: VARCHAR(2)
- BIC:
description:
@@ -12101,6 +13772,7 @@ cms:
original_type: CHAR
text: BIC reported on first claim included in stay
width: 2.0
+ reference: https://resdac.org/cms-data/variables/bic-reported-first-claim-included-stay
type: VARCHAR(2)
- EQ_BIC:
description:
@@ -12108,6 +13780,7 @@ cms:
original_type: CHAR
text: Equated BIC
width: 2.0
+ reference: https://resdac.org/cms-data/variables/equated-bic
type: VARCHAR(2)
- AGE_CNT:
description:
@@ -12115,6 +13788,7 @@ cms:
original_type: NUM
text: Age as of Date of Admission.
width: 4.0
+ reference: https://resdac.org/cms-data/variables/age-date-admission
type: INT
- SEX:
description:
@@ -12122,6 +13796,7 @@ cms:
original_type: CHAR
text: Sex of Beneficiary
width: 1.0
+ reference: https://resdac.org/sites/datadocumentation.resdac.org/files/Introduction%20to%20DE-SynPUF%20%28Slides%29.pdf
type: VARCHAR(1)
- RACE:
description:
@@ -12129,6 +13804,7 @@ cms:
original_type: CHAR
text: Race of Beneficiary
width: 1.0
+ reference: https://resdac.org/cms-data/variables/beneficiary-race-code-base
type: VARCHAR(1)
- MS_CD:
description:
@@ -12136,6 +13812,7 @@ cms:
original_type: CHAR
text: Reason for entitlement to Medicare benefits as of CLM_THRU_DT
width: 2.0
+ reference: https://resdac.org/cms-data/variables/reason-entitlement-medicare-benefits-clmthrudt
type: VARCHAR(2)
- STATE_CD:
description:
@@ -12143,6 +13820,7 @@ cms:
original_type: CHAR
text: SSA standard state code of a beneficiarys residence.
width: 2.0
+ reference: https://resdac.org/cms-data/variables/state-code-beneficiary-ssa-code
type: VARCHAR(2)
- CNTY_CD:
description:
@@ -12150,6 +13828,7 @@ cms:
original_type: CHAR
text: SSA standard county code of a beneficiarys residence.
width: 3.0
+ reference: https://resdac.org/sites/datadocumentation.resdac.org/files/Introduction%20to%20DE-SynPUF%20%28Slides%29.pdf
type: VARCHAR(3)
- BENE_ZIP:
description:
@@ -12157,6 +13836,7 @@ cms:
original_type: CHAR
text: Zip code of the mailing address where the beneficiary may be contacted.
width: 5.0
+ reference: https://resdac.org/cms-data/variables/zip-code-beneficiary-home-or-mailing-address-latest-year
type: VARCHAR(5)
- DSCHRGCD:
description:
@@ -12164,6 +13844,7 @@ cms:
original_type: CHAR
text: Code identifying status of patient as of CLM_THRU_DT
width: 1.0
+ reference: https://resdac.org/cms-data/variables/code-identifying-status-patient-clmthrudt
type: VARCHAR(1)
- FICARR:
description:
@@ -12171,6 +13852,7 @@ cms:
original_type: CHAR
text: Intermediary processor identification
width: 5.0
+ reference: https://resdac.org/cms-data/variables/fiscal-intermediary-fi-id-number
type: VARCHAR(5)
- WRNGCD:
description:
@@ -12179,6 +13861,7 @@ cms:
text: Warn ind spcfyng dtld billing info obtnd frm clms analyzd for stay
prcss
width: 18.0
+ reference: https://resdac.org/cms-data/variables/warning-indicators-code-specifying-detailed-billing-info
type: VARCHAR(18)
- GHOPDCD:
description:
@@ -12186,6 +13869,7 @@ cms:
original_type: CHAR
text: Code indicating whether or not GHO has paid provider for claim(s)
width: 1.0
+ reference: https://resdac.org/cms-data/variables/code-indicating-whether-group-health-organization-gho-has-paid-provider-claims
type: VARCHAR(1)
- PPS_IND:
description:
@@ -12193,6 +13877,7 @@ cms:
original_type: CHAR
text: Code indicating whether or not facility is being paid under PPS
width: 1.0
+ reference: https://resdac.org/cms-data/variables/prospective-payment-system-pps-indicator-code
type: VARCHAR(1)
- ORGNPINM:
description:
@@ -12200,6 +13885,7 @@ cms:
original_type: CHAR
text: Organization NPI Number
width: 10.0
+ reference: https://resdac.org/cms-data/variables/organization-npi-number-ffs
type: VARCHAR(10)
- PRVDRNUM:
description:
@@ -12207,6 +13893,7 @@ cms:
original_type: CHAR
text: MEDPAR Provider Number
width: 10.0
+ reference: https://resdac.org/cms-data/variables/provider-number
type: VARCHAR(10)
- SPCLUNIT:
description:
@@ -12215,6 +13902,7 @@ cms:
text: Special num system code for hosp units that are PPS/SNF SB dsgntn
excl.
width: 1.0
+ reference: https://resdac.org/cms-data/variables/provider-number-special-unit-code
type: VARCHAR(1)
- SSLSSNF:
description:
@@ -12222,6 +13910,7 @@ cms:
original_type: CHAR
text: Code indicating whether stay is short stay, long stay, or SNF
width: 1.0
+ reference: https://resdac.org/cms-data/variables/short-staylong-staysnf-provider-indicator-code
type: VARCHAR(1)
- ACTV_XREF_IND:
description:
@@ -12229,6 +13918,7 @@ cms:
original_type: CHAR
text: Active Cross-Refference Indicator
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-active-cross-reference-indicator
type: VARCHAR(1)
- SLCT_RSN_CD:
description:
@@ -12236,6 +13926,7 @@ cms:
original_type: CHAR
text: Specifies whether this record is a case or control record.
width: 1.0
+ reference: https://resdac.org/cms-data/variables/specifies-whether-record-case-or-control-record
type: VARCHAR(1)
- FACLMCNT:
description:
@@ -12243,6 +13934,7 @@ cms:
original_type: NUM
text: Claims (final action) included in stay
width: 5.0
+ reference: https://resdac.org/cms-data/variables/number-claims-final-action-included-stay
type: INT
- ACRTNDT:
description:
@@ -12251,6 +13943,7 @@ cms:
text: Date latest claim incl in stay accreted to bene mstr rec at the
CWF host
width: 8.0
+ reference: https://resdac.org/cms-data/variables/latest-claim-accretion-date
type: DATE
- EXHST_DT:
description:
@@ -12258,6 +13951,7 @@ cms:
original_type: DATE
text: Last date beneficiary had Medicare coverage
width: 8.0
+ reference: https://resdac.org/cms-data/variables/beneficiary-medicare-benefit-exhausted-date
type: DATE
- QLFYFROM:
description:
@@ -12265,6 +13959,7 @@ cms:
original_type: DATE
text: Beginning date of beneficiarys qualifying stay
width: 8.0
+ reference: https://resdac.org/cms-data/variables/beginning-date-beneficiarys-qualifying-snf-stay
type: DATE
- QLFYTHRU:
description:
@@ -12272,6 +13967,7 @@ cms:
original_type: DATE
text: Ending date of beneficiarys qualifying stay
width: 8.0
+ reference: https://resdac.org/cms-data/variables/ending-date-beneficiarys-qualifying-snf-stay
type: DATE
- SRC_ADMS:
description:
@@ -12280,6 +13976,7 @@ cms:
text: Admssn to an Inp facility or, for newborn admssn, type of delivery
code
width: 1.0
+ reference: https://resdac.org/cms-data/variables/source-admission-inpatient-facility-newborn-admit-type-delivery-code
type: VARCHAR(1)
- TYPE_ADM:
description:
@@ -12288,6 +13985,7 @@ cms:
text: Type and priority of benes admission to facility for Inp hosp stay
code
width: 1.0
+ reference: https://resdac.org/cms-data/variables/inpatient-admission-type-code
type: VARCHAR(1)
- ADMSNDAY:
description:
@@ -12295,6 +13993,7 @@ cms:
original_type: CHAR
text: Code indicating day of week beneficiary was admitted to facility.
width: 1.0
+ reference: https://resdac.org/cms-data/variables/code-indicating-day-week-beneficiary-was-admitted-facility
type: VARCHAR(1)
- ADMSNDT:
description:
@@ -12302,6 +14001,7 @@ cms:
original_type: DATE
text: Date beneficiary admitted for Inpatient care or date care started
width: 8.0
+ reference: https://resdac.org/cms-data/variables/date-beneficiary-admitted-inpatient-care-or-date-care-started
type: DATE
- DSCHRGDT:
description:
@@ -12309,6 +14009,7 @@ cms:
original_type: DATE
text: Date beneficiary was discharged or died
width: 8.0
+ reference: https://resdac.org/cms-data/variables/discharge-date
type: DATE
- DSTNTNCD:
description:
@@ -12316,6 +14017,7 @@ cms:
original_type: CHAR
text: Destination upon discharge from facility code
width: 2.0
+ reference: https://resdac.org/cms-data/variables/medpar-discharge-destination-code
type: VARCHAR(2)
- CVRLVLDT:
description:
@@ -12323,6 +14025,7 @@ cms:
original_type: DATE
text: Date covered level of care ended in a SNF
width: 8.0
+ reference: null
type: DATE
- DEATHDT:
description:
@@ -12330,6 +14033,7 @@ cms:
original_type: DATE
text: Date beneficiary died
width: 8.0
+ reference: https://resdac.org/cms-data/variables/date-death
type: DATE
- DEATHCD:
description:
@@ -12337,6 +14041,7 @@ cms:
original_type: CHAR
text: Death Date Verification Code
width: 1.0
+ reference: https://resdac.org/cms-data/variables/death-date-verification-code
type: VARCHAR(1)
- DEATHDAY:
description:
@@ -12344,6 +14049,7 @@ cms:
original_type: NUM
text: Days from date admitted to facility to date of death
width: 7.0
+ reference: https://resdac.org/cms-data/variables/days-date-admitted-facility-date-death
type: INT
- SSICD:
description:
@@ -12351,6 +14057,7 @@ cms:
original_type: CHAR
text: MEDPAR Internal Use SSI Indicator Code
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-internal-use-ssi-indicator-code
type: VARCHAR(1)
- SSIDAY:
description:
@@ -12358,6 +14065,7 @@ cms:
original_type: NUM
text: MEDPAR Internal Use SSI Day Count
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-internal-use-ssi-day-count
type: INT
- INTRNL_USE_SSI_DATA:
description:
@@ -12365,6 +14073,7 @@ cms:
original_type: CHAR
text: Internal Use SSI Data
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-internal-use-ssi-data
type: VARCHAR(1)
- IPSBCD:
description:
@@ -12372,6 +14081,7 @@ cms:
original_type: CHAR
text: For internal Use Only. IPSB Code
width: 3.0
+ reference: https://resdac.org/cms-data/variables/medpar-internal-use-ipsb-code
type: VARCHAR(3)
- FILDTCD:
description:
@@ -12379,6 +14089,7 @@ cms:
original_type: CHAR
text: For internal use only. Fiscal year/calendar year segments.
width: 1.0
+ reference: https://resdac.org/cms-data/variables/internal-use-only-fiscal-yearcalendar-year-segments
type: VARCHAR(1)
- SMPLSIZE:
description:
@@ -12386,6 +14097,7 @@ cms:
original_type: CHAR
text: For internal use. MEDPAR sample size.
width: 1.0
+ reference: https://resdac.org/cms-data/variables/internal-use-medpar-sample-size
type: VARCHAR(1)
- LOSCNT:
description:
@@ -12393,6 +14105,7 @@ cms:
original_type: NUM
text: Days of beneficiarys stay in a hospital/SNF
width: 7.0
+ reference: https://resdac.org/cms-data/variables/days-beneficiarys-stay-hospitalsnf
type: INT
- OUTLRDAY:
description:
@@ -12401,6 +14114,7 @@ cms:
text: Days paid as outliers (either day or cost) under PPS beyond DRG
threshld
width: 5.0
+ reference: https://resdac.org/cms-data/variables/days-paid-outliers-either-day-or-cost-under-pps-beyond-drg-threshold
type: INT
- UTIL_DAY:
description:
@@ -12408,6 +14122,7 @@ cms:
original_type: NUM
text: Covered days of care chargeable to Medicare utilization for stay
width: 7.0
+ reference: https://resdac.org/cms-data/variables/covered-days-care-chargeable-medicare-utilization-stay
type: INT
- COIN_DAY:
description:
@@ -12415,6 +14130,7 @@ cms:
original_type: NUM
text: MEDPAR Beneficiary Total Coinsurance Day Count
width: 5.0
+ reference: https://resdac.org/cms-data/variables/medpar-beneficiary-total-coinsurance-day-count
type: INT
- LRD_USE:
description:
@@ -12422,6 +14138,7 @@ cms:
original_type: NUM
text: Lifetime reserve days (LRD) used by beneficiary for stay
width: 5.0
+ reference: https://resdac.org/cms-data/variables/lifetime-reserve-days-lrd-used-beneficiary-stay
type: INT
- COIN_AMT:
description:
@@ -12429,6 +14146,7 @@ cms:
original_type: NUM
text: Beneficiarys liability for part A coinsurance for stay ($)
width: 10.0
+ reference: https://resdac.org/cms-data/variables/beneficiarys-liability-part-coinsurance-stay
type: INT
- DED_AMT:
description:
@@ -12436,6 +14154,7 @@ cms:
original_type: NUM
text: Beneficiarys liability for stay ($)
width: 10.0
+ reference: https://resdac.org/cms-data/variables/beneficiarys-liability-deductible-stay
type: INT
- BLDDEDAM:
description:
@@ -12443,6 +14162,7 @@ cms:
original_type: NUM
text: Beneficiarys liability for blood deductible for stay ($)
width: 10.0
+ reference: https://resdac.org/cms-data/variables/beneficiarys-liability-blood-deductible-stay
type: INT
- PRPAY_CD:
description:
@@ -12450,6 +14170,7 @@ cms:
original_type: CHAR
text: Primary payer responsibility code
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-beneficiary-primary-payer-code
type: VARCHAR(1)
- PRPAYAMT:
description:
@@ -12458,6 +14179,7 @@ cms:
text: Primry payer other than Medicare for covered Medicare chrgs for
stay ($)
width: 10.0
+ reference: https://resdac.org/cms-data/variables/primary-payer-paid-amount
type: INT
- DRG_CD:
description:
@@ -12465,6 +14187,7 @@ cms:
original_type: CHAR
text: DRG Code
width: 3.0
+ reference: https://resdac.org/cms-data/variables/diagnosis-related-group-drg-code
type: VARCHAR(3)
- OUTLR_CD:
description:
@@ -12472,6 +14195,7 @@ cms:
original_type: CHAR
text: Cost or Day Outlier code
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-drgoutlier-stay-code
type: VARCHAR(1)
- OUTLRAMT:
description:
@@ -12480,6 +14204,7 @@ cms:
text: Addtnl approved due to outlier situation over DRG allowance for
stay ($)
width: 10.0
+ reference: https://resdac.org/cms-data/variables/drg-outlier-approved-payment-amount
type: INT
- DRGPRICE:
description:
@@ -12488,6 +14213,7 @@ cms:
text: Wld hv bn pd if no dedctbls,coinsrnc,prmry payrs,otlrs were invlvd
($)
width: 10.0
+ reference: https://resdac.org/cms-data/variables/drg-price-amount
type: INT
- DISP_SHR:
description:
@@ -12496,6 +14222,7 @@ cms:
text: Over the DRG amount for disproportionate share hospital for stay
($)
width: 10.0
+ reference: https://resdac.org/cms-data/variables/inpatient-disproportionate-share-dsh-amount
type: INT
- IME_AMT:
description:
@@ -12503,6 +14230,7 @@ cms:
original_type: NUM
text: Additional payment made to teaching hospitals for IME for stay ($)
width: 10.0
+ reference: https://resdac.org/cms-data/variables/indirect-medical-education-ime-amount
type: INT
- PASSTHRU:
description:
@@ -12510,6 +14238,7 @@ cms:
original_type: NUM
text: Total of all claim pass thru for stay ($)
width: 10.0
+ reference: https://resdac.org/cms-data/variables/pass-thru-diem-amount-stay
type: INT
- PPS_CPTL:
description:
@@ -12517,6 +14246,7 @@ cms:
original_type: NUM
text: Total payable for capital PPS ($)
width: 10.0
+ reference: https://resdac.org/cms-data/variables/total-pps-capital-amount
type: INT
- IP_LOW_VOL_PYMT_AMT:
description:
@@ -12524,6 +14254,7 @@ cms:
original_type: NUM
text: Inpatient Low Volume Payment Amount.
width: 10.0
+ reference: https://resdac.org/cms-data/variables/inpatient-low-volume-payment-amount
type: INT
- TOTCHRG:
description:
@@ -12532,6 +14263,7 @@ cms:
text: Total all charges for all srvcs provided to beneficiary for stay
($)
width: 10.0
+ reference: https://resdac.org/cms-data/variables/total-charge-amount
type: INT
- CVRCHRG:
description:
@@ -12539,6 +14271,7 @@ cms:
original_type: NUM
text: Portion of total charges covered by Medicare for stay ($)
width: 10.0
+ reference: https://resdac.org/cms-data/variables/total-covered-charge-amount
type: INT
- PMT_AMT:
description:
@@ -12547,6 +14280,7 @@ cms:
text: Amt of payment from Medicare trust fund for srvcs covered by claim
($)
width: 10.0
+ reference: https://resdac.org/cms-data/variables/total-medicare-payment-amount
type: INT
- ACMDTNS:
description:
@@ -12555,6 +14289,7 @@ cms:
text: Total charge for all accommodations related to beneficiarys stay
($)
width: 10.0
+ reference: https://resdac.org/cms-data/variables/total-charge-all-accommodations
type: INT
- DPRTMNTL:
description:
@@ -12563,6 +14298,7 @@ cms:
text: Total charge for all ancillary depts related to beneficiarys stay
($)
width: 10.0
+ reference: https://resdac.org/cms-data/variables/total-charge-all-ancillary-departments-related-beneficiarys-stay
type: INT
- PRVTDAY:
description:
@@ -12570,6 +14306,7 @@ cms:
original_type: NUM
text: Private room days used by beneficiary for stay
width: 5.0
+ reference: https://resdac.org/cms-data/variables/private-room-day-count
type: INT
- SPRVTDAY:
description:
@@ -12577,6 +14314,7 @@ cms:
original_type: NUM
text: Semi-private room days used by beneficiary for stay
width: 5.0
+ reference: https://resdac.org/cms-data/variables/semi-private-room-day-count
type: INT
- WARDDAY:
description:
@@ -12584,6 +14322,7 @@ cms:
original_type: NUM
text: Ward days used by beneficiary for stay
width: 5.0
+ reference: https://resdac.org/cms-data/variables/ward-day-count
type: INT
- ICARECNT:
description:
@@ -12591,6 +14330,7 @@ cms:
original_type: NUM
text: Intensive care days used by beneficiary for stay
width: 5.0
+ reference: https://resdac.org/cms-data/variables/intensive-care-day-count
type: INT
- CRNRYDAY:
description:
@@ -12598,6 +14338,7 @@ cms:
original_type: NUM
text: Coronary care days used by beneficiary for stay
width: 5.0
+ reference: https://resdac.org/cms-data/variables/coronary-care-day-count
type: INT
- PRVTAMT:
description:
@@ -12605,6 +14346,7 @@ cms:
original_type: NUM
text: Private room accommodations related to beneficiarys stay ($)
width: 10.0
+ reference: https://resdac.org/cms-data/variables/private-room-charge-amount
type: INT
- SPRVTAMT:
description:
@@ -12612,6 +14354,7 @@ cms:
original_type: NUM
text: Semi-private room accommodations related to beneficiarys stay ($)
width: 10.0
+ reference: https://resdac.org/cms-data/variables/semi-private-room-charge-amount
type: INT
- WARDAMT:
description:
@@ -12619,6 +14362,7 @@ cms:
original_type: NUM
text: Ward accommodations related to beneficiarys stay ($)
width: 10.0
+ reference: https://resdac.org/cms-data/variables/ward-charge-amount
type: INT
- ICAREAMT:
description:
@@ -12626,6 +14370,7 @@ cms:
original_type: NUM
text: Intensive care accommodations related to beneficiarys stay ($)
width: 10.0
+ reference: https://resdac.org/cms-data/variables/intensive-care-charge-amount
type: INT
- CRNRYAMT:
description:
@@ -12633,6 +14378,7 @@ cms:
original_type: NUM
text: Coronary care accommodations related to beneficiarys stay ($)
width: 10.0
+ reference: https://resdac.org/cms-data/variables/coronary-care-charge-amount
type: INT
- OTHRAMT:
description:
@@ -12640,6 +14386,7 @@ cms:
original_type: NUM
text: Other services related to beneficiarys stay ($)
width: 10.0
+ reference: https://resdac.org/cms-data/variables/other-service-charge-amount
type: INT
- PHRMCAMT:
description:
@@ -12647,6 +14394,7 @@ cms:
original_type: NUM
text: Pharmaceutical costs related to beneficiarys stay ($)
width: 10.0
+ reference: https://resdac.org/cms-data/variables/pharmacy-charge-amount
type: INT
- SUPLYAMT:
description:
@@ -12654,6 +14402,7 @@ cms:
original_type: NUM
text: Medical/surgical supplies related to beneficiarys stay ($)
width: 10.0
+ reference: https://resdac.org/cms-data/variables/medicalsurgical-supplies-charge-amount
type: INT
- DME_AMT:
description:
@@ -12661,6 +14410,7 @@ cms:
original_type: NUM
text: DME related to beneficiarys stay ($)
width: 10.0
+ reference: https://resdac.org/cms-data/variables/durable-medical-equipment-dme-charge-amount
type: INT
- UDME_AMT:
description:
@@ -12668,6 +14418,7 @@ cms:
original_type: NUM
text: Used DME related to beneficiarys stay ($)
width: 10.0
+ reference: https://resdac.org/cms-data/variables/used-durable-medical-equipment-dme-charge-amount
type: INT
- PHYTHAMT:
description:
@@ -12675,6 +14426,7 @@ cms:
original_type: NUM
text: Physical therapy services provided during beneficiarys stay ($)
width: 10.0
+ reference: https://resdac.org/cms-data/variables/physical-therapy-charge-amount
type: INT
- OCPTLAMT:
description:
@@ -12683,6 +14435,7 @@ cms:
text: Occupational therapy services provided during beneficiarys stay
($)
width: 10.0
+ reference: https://resdac.org/cms-data/variables/occupational-therapy-charge-amount
type: INT
- SPCH_AMT:
description:
@@ -12690,6 +14443,7 @@ cms:
original_type: NUM
text: Speech pathology services provided during beneficiarys stay ($)
width: 10.0
+ reference: https://resdac.org/cms-data/variables/speech-pathology-charge-amount
type: INT
- INHLTAMT:
description:
@@ -12697,6 +14451,7 @@ cms:
original_type: NUM
text: Inhalation therapy services provided during beneficiarys stay ($)
width: 10.0
+ reference: https://resdac.org/cms-data/variables/inhalation-therapy-charge-amount
type: INT
- BLOODAMT:
description:
@@ -12704,6 +14459,7 @@ cms:
original_type: NUM
text: Blood provided during beneficiarys stay ($)
width: 10.0
+ reference: https://resdac.org/cms-data/variables/blood-charge-amount
type: INT
- BLDADMIN:
description:
@@ -12711,6 +14467,7 @@ cms:
original_type: NUM
text: Blood storage and processing related to beneficiarys stay ($)
width: 10.0
+ reference: https://resdac.org/cms-data/variables/blood-storage-and-processing-charge-amount
type: INT
- BLDFRNSH:
description:
@@ -12719,6 +14476,7 @@ cms:
text: Quantity of blood (whole pints) furnished to beneficiary during
stay
width: 5.0
+ reference: https://resdac.org/cms-data/variables/blood-pints-furnished-quantity
type: INT
- OROOMAMT:
description:
@@ -12727,6 +14485,7 @@ cms:
text: OR, recovery rm, and labor rm delivery used by bene during stay
($)
width: 10.0
+ reference: https://resdac.org/cms-data/variables/operating-room-charge-amount
type: INT
- LTHTRPSY:
description:
@@ -12734,6 +14493,7 @@ cms:
original_type: NUM
text: Lithotripsy services provided during beneficiarys stay ($)
width: 10.0
+ reference: https://resdac.org/cms-data/variables/lithotripsy-charge-amount
type: INT
- CRDLGY:
description:
@@ -12742,6 +14502,7 @@ cms:
text: Cardiology services and ECG(s) provided during beneficiarys stay
($)
width: 10.0
+ reference: https://resdac.org/cms-data/variables/cardiology-charge-amount
type: INT
- ANSTHSA:
description:
@@ -12749,6 +14510,7 @@ cms:
original_type: NUM
text: Anesthesia services provided during beneficiarys stay ($)
width: 10.0
+ reference: https://resdac.org/cms-data/variables/anesthesia-charge-amount
type: INT
- LAB_AMT:
description:
@@ -12756,6 +14518,7 @@ cms:
original_type: NUM
text: Laboratory costs related to beneficiarys stay ($)
width: 10.0
+ reference: https://resdac.org/cms-data/variables/laboratory-charge-amount
type: INT
- RDLGYAMT:
description:
@@ -12763,6 +14526,7 @@ cms:
original_type: NUM
text: Radiology costs (excluding MRI) related to a beneficiarys stay ($)
width: 10.0
+ reference: https://resdac.org/cms-data/variables/radiology-charge-amount-excluding-mri
type: INT
- MRI_AMT:
description:
@@ -12770,6 +14534,7 @@ cms:
original_type: NUM
text: MRI services provided during beneficiarys stay ($)
width: 10.0
+ reference: https://resdac.org/cms-data/variables/magnetic-resonance-imaging-mri-charge-amount
type: INT
- OPSRVC:
description:
@@ -12777,6 +14542,7 @@ cms:
original_type: NUM
text: Outpatient services provided during beneficiarys stay ($)
width: 10.0
+ reference: https://resdac.org/cms-data/variables/outpatient-service-charge-amount
type: INT
- ER_AMT:
description:
@@ -12784,6 +14550,7 @@ cms:
original_type: NUM
text: Emergency room services provided during beneficiarys stay ($)
width: 10.0
+ reference: https://resdac.org/cms-data/variables/emergency-room-er-charge-amount
type: INT
- AMBLNC:
description:
@@ -12791,6 +14558,7 @@ cms:
original_type: NUM
text: Ambulance services related to beneficiarys stay ($)
width: 10.0
+ reference: https://resdac.org/cms-data/variables/ambulance-charge-amount
type: INT
- PROFFEES:
description:
@@ -12798,6 +14566,7 @@ cms:
original_type: NUM
text: Professional fees related to beneficiarys stay ($)
width: 10.0
+ reference: https://resdac.org/cms-data/variables/professional-fees-charge-amount
type: INT
- ORGNAMT:
description:
@@ -12806,6 +14575,7 @@ cms:
text: Organ acquisition or oth donor bank srvcs related to benes stay
($)
width: 10.0
+ reference: https://resdac.org/cms-data/variables/organ-acquisition-or-other-donor-bank-charge-amount
type: INT
- ESRDSETG:
description:
@@ -12813,6 +14583,7 @@ cms:
original_type: NUM
text: ESRD services related to beneficiarys stay ($)
width: 10.0
+ reference: https://resdac.org/cms-data/variables/end-stage-renal-disease-esrd-charge-amount
type: INT
- CLNC_AMT:
description:
@@ -12820,6 +14591,7 @@ cms:
original_type: NUM
text: Clinic visits related to beneficiarys stay ($)
width: 10.0
+ reference: https://resdac.org/cms-data/variables/clinic-visit-charge-amount
type: INT
- ICUINDCD:
description:
@@ -12827,6 +14599,7 @@ cms:
original_type: CHAR
text: ICU type code
width: 1.0
+ reference: https://resdac.org/cms-data/variables/intensive-care-unit-icu-indicator-code
type: VARCHAR(1)
- CRNRY_CD:
description:
@@ -12834,6 +14607,7 @@ cms:
original_type: CHAR
text: Coronary care unit type code
width: 1.0
+ reference: https://resdac.org/cms-data/variables/coronary-care-unit-ccu-indicator-code
type: VARCHAR(1)
- PHRMCYCD:
description:
@@ -12841,6 +14615,7 @@ cms:
original_type: CHAR
text: Drugs type code
width: 1.0
+ reference: https://resdac.org/cms-data/variables/pharmacy-indicator-code
type: VARCHAR(1)
- TRNSPLNT:
description:
@@ -12848,6 +14623,7 @@ cms:
original_type: CHAR
text: Organ transplant code
width: 1.0
+ reference: https://resdac.org/cms-data/variables/organ-transplant-indicator-code
type: VARCHAR(1)
- ONCLGYSW:
description:
@@ -12855,6 +14631,7 @@ cms:
original_type: CHAR
text: Radiology oncology services indicator
width: 1.0
+ reference: https://resdac.org/cms-data/variables/oncology-indicator
type: VARCHAR(1)
- DGNSTCSW:
description:
@@ -12862,6 +14639,7 @@ cms:
original_type: CHAR
text: Radiology diagnostic services indicator
width: 1.0
+ reference: https://resdac.org/cms-data/variables/diagnostic-radiology-indicator
type: VARCHAR(1)
- THRPTCSW:
description:
@@ -12869,6 +14647,7 @@ cms:
original_type: CHAR
text: Radiology therapeutic services indicator
width: 1.0
+ reference: https://resdac.org/cms-data/variables/therapeutic-radiology-indicator
type: VARCHAR(1)
- NUCLR_SW:
description:
@@ -12876,6 +14655,7 @@ cms:
original_type: CHAR
text: Radiology nuclear medicine services indicator
width: 1.0
+ reference: https://resdac.org/cms-data/variables/radiology-nuclear-medicine-indicator
type: VARCHAR(1)
- CTSCANSW:
description:
@@ -12883,6 +14663,7 @@ cms:
original_type: CHAR
text: Radiology computed tomographic (CT) scan services indicator
width: 1.0
+ reference: https://resdac.org/cms-data/variables/radiology-computed-tomographic-ct-scan-indicator
type: VARCHAR(1)
- IMGNG_SW:
description:
@@ -12890,6 +14671,7 @@ cms:
original_type: CHAR
text: Radiology other imaging services indicator
width: 1.0
+ reference: https://resdac.org/cms-data/variables/radiology-other-imaging-indicator
type: VARCHAR(1)
- OPSRVCCD:
description:
@@ -12897,6 +14679,7 @@ cms:
original_type: CHAR
text: Outpatient services/ambulatory surgical care code
width: 1.0
+ reference: https://resdac.org/cms-data/variables/outpatient-servicesambulatory-surgical-care-indicator-code
type: VARCHAR(1)
- ORGNCD:
description:
@@ -12904,6 +14687,7 @@ cms:
original_type: CHAR
text: Organ acquisition type code
width: 2.0
+ reference: https://resdac.org/cms-data/variables/organ-acquisition-type-code
type: VARCHAR(2)
- ESRD_CD:
description:
@@ -12911,6 +14695,7 @@ cms:
original_type: CHAR
text: ESRD condition code
width: 2.0
+ reference: https://resdac.org/cms-data/variables/end-stage-renal-disease-esrd-condition-indicator-code
type: VARCHAR(2)
- ESRDSTG1:
description:
@@ -12918,6 +14703,7 @@ cms:
original_type: CHAR
text: Dialysis type code I
width: 2.0
+ reference: https://resdac.org/cms-data/variables/dialysis-service-type-code-1
type: VARCHAR(2)
- ESRDSTG2:
description:
@@ -12925,6 +14711,7 @@ cms:
original_type: CHAR
text: Dialysis type code II
width: 2.0
+ reference: https://resdac.org/cms-data/variables/dialysis-service-type-code-2
type: VARCHAR(2)
- ESRDSTG3:
description:
@@ -12932,6 +14719,7 @@ cms:
original_type: CHAR
text: Dialysis type code III
width: 2.0
+ reference: https://resdac.org/cms-data/variables/dialysis-service-type-code-3
type: VARCHAR(2)
- ESRDSTG4:
description:
@@ -12939,6 +14727,7 @@ cms:
original_type: CHAR
text: Dialysis type code IV
width: 2.0
+ reference: https://resdac.org/cms-data/variables/dialysis-service-type-code-4
type: VARCHAR(2)
- ESRDSTG5:
description:
@@ -12946,6 +14735,7 @@ cms:
original_type: CHAR
text: Dialysis type code V
width: 2.0
+ reference: https://resdac.org/cms-data/variables/dialysis-service-type-code-5
type: VARCHAR(2)
- AD_DGNS:
description:
@@ -12953,6 +14743,7 @@ cms:
original_type: CHAR
text: Initial diagnosis at time of admission
width: 7.0
+ reference: https://resdac.org/cms-data/variables/admitting-diagnosis-code
type: VARCHAR(7)
- ADMTG_DGNS_VRSN_CD:
description:
@@ -12960,6 +14751,7 @@ cms:
original_type: CHAR
text: MEDPAR Admitting Diagnosis Version Code
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-admitting-diagnosis-version-code-icd-9-or-icd-10
type: VARCHAR(1)
- DGNSCNT:
description:
@@ -12967,6 +14759,7 @@ cms:
original_type: NUM
text: Diagnosis codes included in stay
width: 3.0
+ reference: https://resdac.org/cms-data/variables/count-diagnosis-codes
type: INT
- DGNS_VRSN_CD:
description:
@@ -12975,6 +14768,7 @@ cms:
text: Version Code - Indicate if diagnosis code is ICD-9 or ICD-10 (Earlier
Ve
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-version-code-icd-9-or-icd-10
type: VARCHAR(1)
- DGNS_VRSN_CD_1:
description:
@@ -12982,6 +14776,7 @@ cms:
original_type: CHAR
text: Version Code 01 - Indicate if diagnosis code is ICD-9 or ICD-10.
width: 1.0
+ reference: https://resdac.org/cms-data/variables/diagnosis-version-code-1-icd-9-or-icd-10
type: VARCHAR(1)
- DGNS_VRSN_CD_2:
description:
@@ -12989,6 +14784,7 @@ cms:
original_type: CHAR
text: Version Code 02 - Indicate if diagnosis code is ICD-9 or ICD-10.
width: 1.0
+ reference: https://resdac.org/cms-data/variables/diagnosis-version-code-2-icd-9-or-icd-10
type: VARCHAR(1)
- DGNS_VRSN_CD_3:
description:
@@ -12996,6 +14792,7 @@ cms:
original_type: CHAR
text: Version Code 03 - Indicate if diagnosis code is ICD-9 or ICD-10.
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-version-code-3-icd-9-or-icd-10
type: VARCHAR(1)
- DGNS_VRSN_CD_4:
description:
@@ -13003,6 +14800,7 @@ cms:
original_type: CHAR
text: Version Code 04 - Indicate if diagnosis code is ICD-9 or ICD-10.
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-version-code-4-icd-9-or-icd-10
type: VARCHAR(1)
- DGNS_VRSN_CD_5:
description:
@@ -13010,6 +14808,7 @@ cms:
original_type: CHAR
text: Version Code 05 - Indicate if diagnosis code is ICD-9 or ICD-10.
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-version-code-5-icd-9-or-icd-10
type: VARCHAR(1)
- DGNS_VRSN_CD_6:
description:
@@ -13017,6 +14816,7 @@ cms:
original_type: CHAR
text: Version Code 06 - Indicate if diagnosis code is ICD-9 or ICD-10.
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-version-code-6-icd-9-or-icd-10
type: VARCHAR(1)
- DGNS_VRSN_CD_7:
description:
@@ -13024,6 +14824,7 @@ cms:
original_type: CHAR
text: Version Code 07 - Indicate if diagnosis code is ICD-9 or ICD-10.
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-version-code-7-icd-9-or-icd-10
type: VARCHAR(1)
- DGNS_VRSN_CD_8:
description:
@@ -13031,6 +14832,7 @@ cms:
original_type: CHAR
text: Version Code 08 - Indicate if diagnosis code is ICD-9 or ICD-10.
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-version-code-8-icd-9-or-icd-10
type: VARCHAR(1)
- DGNS_VRSN_CD_9:
description:
@@ -13038,6 +14840,7 @@ cms:
original_type: CHAR
text: Version Code 09 - Indicate if diagnosis code is ICD-9 or ICD-10.
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-version-code-9-icd-9-or-icd-10
type: VARCHAR(1)
- DGNS_VRSN_CD_10:
description:
@@ -13045,6 +14848,7 @@ cms:
original_type: CHAR
text: Version Code 10 - Indicate if diagnosis code is ICD-9 or ICD-10.
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-version-code-10-icd-9-or-icd-10
type: VARCHAR(1)
- DGNS_VRSN_CD_11:
description:
@@ -13052,6 +14856,7 @@ cms:
original_type: CHAR
text: Version Code 11 - Indicate if diagnosis code is ICD-9 or ICD-10.
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-version-code-11-icd-9-or-icd-10
type: VARCHAR(1)
- DGNS_VRSN_CD_12:
description:
@@ -13059,6 +14864,7 @@ cms:
original_type: CHAR
text: Version Code 12 - Indicate if diagnosis code is ICD-9 or ICD-10.
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-version-code-12-icd-9-or-icd-10
type: VARCHAR(1)
- DGNS_VRSN_CD_13:
description:
@@ -13066,6 +14872,7 @@ cms:
original_type: CHAR
text: Version Code 13 - Indicate if diagnosis code is ICD-9 or ICD-10.
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-version-code-13-icd-9-or-icd-10
type: VARCHAR(1)
- DGNS_VRSN_CD_14:
description:
@@ -13073,6 +14880,7 @@ cms:
original_type: CHAR
text: Version Code 14 - Indicate if diagnosis code is ICD-9 or ICD-10.
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-version-code-14-icd-9-or-icd-10
type: VARCHAR(1)
- DGNS_VRSN_CD_15:
description:
@@ -13080,6 +14888,7 @@ cms:
original_type: CHAR
text: Version Code 15 - Indicate if diagnosis code is ICD-9 or ICD-10.
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-version-code-15-icd-9-or-icd-10
type: VARCHAR(1)
- DGNS_VRSN_CD_16:
description:
@@ -13087,6 +14896,7 @@ cms:
original_type: CHAR
text: Version Code 16 - Indicate if diagnosis code is ICD-9 or ICD-10.
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-version-code-16-icd-9-or-icd-10
type: VARCHAR(1)
- DGNS_VRSN_CD_17:
description:
@@ -13094,6 +14904,7 @@ cms:
original_type: CHAR
text: Version Code 17 - Indicate if diagnosis code is ICD-9 or ICD-10.
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-version-code-17-icd-9-or-icd-10
type: VARCHAR(1)
- DGNS_VRSN_CD_18:
description:
@@ -13101,6 +14912,7 @@ cms:
original_type: CHAR
text: Version Code 18 - Indicate if diagnosis code is ICD-9 or ICD-10.
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-version-code-18-icd-9-or-icd-10
type: VARCHAR(1)
- DGNS_VRSN_CD_19:
description:
@@ -13108,6 +14920,7 @@ cms:
original_type: CHAR
text: Version Code 19 - Indicate if diagnosis code is ICD-9 or ICD-10.
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-version-code-19-icd-9-or-icd-10
type: VARCHAR(1)
- DGNS_VRSN_CD_20:
description:
@@ -13115,6 +14928,7 @@ cms:
original_type: CHAR
text: Version Code 20 - Indicate if diagnosis code is ICD-9 or ICD-10.
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-version-code-20-icd-9-or-icd-10
type: VARCHAR(1)
- DGNS_VRSN_CD_21:
description:
@@ -13122,6 +14936,7 @@ cms:
original_type: CHAR
text: Version Code 21 - Indicate if diagnosis code is ICD-9 or ICD-10.
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-version-code-21-icd-9-or-icd-10
type: VARCHAR(1)
- DGNS_VRSN_CD_22:
description:
@@ -13129,6 +14944,7 @@ cms:
original_type: CHAR
text: Version Code 22 - Indicate if diagnosis code is ICD-9 or ICD-10.
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-version-code-22-icd-9-or-icd-10
type: VARCHAR(1)
- DGNS_VRSN_CD_23:
description:
@@ -13136,6 +14952,7 @@ cms:
original_type: CHAR
text: Version Code 23 - Indicate if diagnosis code is ICD-9 or ICD-10.
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-version-code-23-icd-9-or-icd-10
type: VARCHAR(1)
- DGNS_VRSN_CD_24:
description:
@@ -13143,6 +14960,7 @@ cms:
original_type: CHAR
text: Version Code 24 - Indicate if diagnosis code is ICD-9 or ICD-10.
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-version-code-24-icd-9-or-icd-10
type: VARCHAR(1)
- DGNS_VRSN_CD_25:
description:
@@ -13150,6 +14968,7 @@ cms:
original_type: CHAR
text: Version Code 25 - Indicate if diagnosis code is ICD-9 or ICD-10.
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-version-code-25-icd-9-or-icd-10
type: VARCHAR(1)
- DGNSCD1:
description:
@@ -13157,6 +14976,7 @@ cms:
original_type: CHAR
text: Primary ICD-9-CM code
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-principal-diagnosis-code
type: VARCHAR(7)
- DGNSCD2:
description:
@@ -13164,6 +14984,7 @@ cms:
original_type: CHAR
text: ICD-9-CM Diagnosis code II
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-code-2
type: VARCHAR(7)
- DGNSCD3:
description:
@@ -13171,6 +14992,7 @@ cms:
original_type: CHAR
text: ICD-9-CM Diagnosis code III
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-code-3
type: VARCHAR(7)
- DGNSCD4:
description:
@@ -13178,6 +15000,7 @@ cms:
original_type: CHAR
text: ICD-9-CM Diagnosis code IV
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-code-4
type: VARCHAR(7)
- DGNSCD5:
description:
@@ -13185,6 +15008,7 @@ cms:
original_type: CHAR
text: ICD-9-CM Diagnosis code V
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-code-5
type: VARCHAR(7)
- DGNSCD6:
description:
@@ -13192,6 +15016,7 @@ cms:
original_type: CHAR
text: ICD-9-CM Diagnosis code VI
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-code-6
type: VARCHAR(7)
- DGNSCD7:
description:
@@ -13199,6 +15024,7 @@ cms:
original_type: CHAR
text: ICD-9-CM Diagnosis code VII
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-code-7
type: VARCHAR(7)
- DGNSCD8:
description:
@@ -13206,6 +15032,7 @@ cms:
original_type: CHAR
text: ICD-9-CM Diagnosis code VIII
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-code-8
type: VARCHAR(7)
- DGNSCD9:
description:
@@ -13213,6 +15040,7 @@ cms:
original_type: CHAR
text: ICD-9-CM Diagnosis code IX
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-code-9
type: VARCHAR(7)
- DGNSCD10:
description:
@@ -13220,6 +15048,7 @@ cms:
original_type: CHAR
text: ICD-9-CM Diagnosis code X
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-icd-9-cm-diagnosis-code-10
type: VARCHAR(7)
- DGNSCD11:
description:
@@ -13227,6 +15056,7 @@ cms:
original_type: CHAR
text: ICD-9-CM Diagnosis code XI
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-icd-9-cm-diagnosis-code-11
type: VARCHAR(7)
- DGNSCD12:
description:
@@ -13234,6 +15064,7 @@ cms:
original_type: CHAR
text: ICD-9-CM Diagnosis code XII
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-icd-9-cm-diagnosis-code-12
type: VARCHAR(7)
- DGNSCD13:
description:
@@ -13241,6 +15072,7 @@ cms:
original_type: CHAR
text: ICD-9-CM Diagnosis code XIII
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-icd-9-cm-diagnosis-code-13
type: VARCHAR(7)
- DGNSCD14:
description:
@@ -13248,6 +15080,7 @@ cms:
original_type: CHAR
text: ICD-9-CM Diagnosis code XIV
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-icd-9-cm-diagnosis-code-14
type: VARCHAR(7)
- DGNSCD15:
description:
@@ -13255,6 +15088,7 @@ cms:
original_type: CHAR
text: ICD-9-CM Diagnosis code XV
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-icd-9-cm-diagnosis-code-15
type: VARCHAR(7)
- DGNSCD16:
description:
@@ -13262,6 +15096,7 @@ cms:
original_type: CHAR
text: ICD-9-CM Diagnosis code XVI
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-icd-9-cm-diagnosis-code-16
type: VARCHAR(7)
- DGNSCD17:
description:
@@ -13269,6 +15104,7 @@ cms:
original_type: CHAR
text: ICD-9-CM Diagnosis code XVII
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-icd-9-cm-diagnosis-code-17
type: VARCHAR(7)
- DGNSCD18:
description:
@@ -13276,6 +15112,7 @@ cms:
original_type: CHAR
text: ICD-9-CM Diagnosis code XVIII
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-icd-9-cm-diagnosis-code-18
type: VARCHAR(7)
- DGNSCD19:
description:
@@ -13283,6 +15120,7 @@ cms:
original_type: CHAR
text: ICD-9-CM Diagnosis code XIX
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-icd-9-cm-diagnosis-code-19
type: VARCHAR(7)
- DGNSCD20:
description:
@@ -13290,6 +15128,7 @@ cms:
original_type: CHAR
text: ICD-9-CM Diagnosis code XX
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-icd-9-cm-diagnosis-code-20
type: VARCHAR(7)
- DGNSCD21:
description:
@@ -13297,6 +15136,7 @@ cms:
original_type: CHAR
text: ICD-9-CM Diagnosis code XXI
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-icd-9-cm-diagnosis-code-21
type: VARCHAR(7)
- DGNSCD22:
description:
@@ -13304,6 +15144,7 @@ cms:
original_type: CHAR
text: ICD-9-CM Diagnosis code XXII
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-icd-9-cm-diagnosis-code-22
type: VARCHAR(7)
- DGNSCD23:
description:
@@ -13311,6 +15152,7 @@ cms:
original_type: CHAR
text: ICD-9-CM Diagnosis code XXIII
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-icd-9-cm-diagnosis-code-23
type: VARCHAR(7)
- DGNSCD24:
description:
@@ -13318,6 +15160,7 @@ cms:
original_type: CHAR
text: ICD-9-CM Diagnosis code XXIV
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-icd-9-cm-diagnosis-code-24
type: VARCHAR(7)
- DGNSCD25:
description:
@@ -13325,6 +15168,7 @@ cms:
original_type: CHAR
text: ICD-9-CM Diagnosis code XXV
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-icd-9-cm-diagnosis-code-25
type: VARCHAR(7)
- DGNS_POA:
description:
@@ -13332,6 +15176,7 @@ cms:
original_type: CHAR
text: Diagnosis Code POA Array
width: 10.0
+ reference: https://resdac.org/cms-data/variables/diagnosis-code-poa-array
type: VARCHAR(10)
- POA_DGNS_CD_CNT:
description:
@@ -13339,6 +15184,7 @@ cms:
original_type: NUM
text: MEDPAR Claim Present on Admission Diagnosis Code Count
width: 3.0
+ reference: https://resdac.org/cms-data/variables/count-present-admission-poa-diagnosis-codes
type: INT
- POA_DGNS_1_IND_CD:
description:
@@ -13346,6 +15192,7 @@ cms:
original_type: CHAR
text: Diagnosis Present on Admission Indicator 1
width: 1.0
+ reference: https://resdac.org/cms-data/variables/diagnosis-1-present-admission-poa-indicator-code
type: VARCHAR(1)
- POA_DGNS_2_IND_CD:
description:
@@ -13353,6 +15200,7 @@ cms:
original_type: CHAR
text: Diagnosis Present on Admission Indicator 2
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-present-admission-indicator-2
type: VARCHAR(1)
- POA_DGNS_3_IND_CD:
description:
@@ -13360,6 +15208,7 @@ cms:
original_type: CHAR
text: Diagnosis Present on Admission Indicator 3
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-present-admission-indicator-3
type: VARCHAR(1)
- POA_DGNS_4_IND_CD:
description:
@@ -13367,6 +15216,7 @@ cms:
original_type: CHAR
text: Diagnosis Present on Admission Indicator 4
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-present-admission-indicator-4
type: VARCHAR(1)
- POA_DGNS_5_IND_CD:
description:
@@ -13374,6 +15224,7 @@ cms:
original_type: CHAR
text: Diagnosis Present on Admission Indicator 5
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-present-admission-indicator-5
type: VARCHAR(1)
- POA_DGNS_6_IND_CD:
description:
@@ -13381,6 +15232,7 @@ cms:
original_type: CHAR
text: Diagnosis Present on Admission Indicator 6
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-present-admission-indicator-6
type: VARCHAR(1)
- POA_DGNS_7_IND_CD:
description:
@@ -13388,6 +15240,7 @@ cms:
original_type: CHAR
text: Diagnosis Present on Admission Indicator 7
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-present-admission-indicator-7
type: VARCHAR(1)
- POA_DGNS_8_IND_CD:
description:
@@ -13395,6 +15248,7 @@ cms:
original_type: CHAR
text: Diagnosis Present on Admission Indicator 8
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-present-admission-indicator-8
type: VARCHAR(1)
- POA_DGNS_9_IND_CD:
description:
@@ -13402,6 +15256,7 @@ cms:
original_type: CHAR
text: Diagnosis Present on Admission Indicator 9
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-present-admission-indicator-9
type: VARCHAR(1)
- POA_DGNS_10_IND_CD:
description:
@@ -13409,6 +15264,7 @@ cms:
original_type: CHAR
text: Diagnosis Present on Admission Indicator 10
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-present-admission-indicator-10
type: VARCHAR(1)
- POA_DGNS_11_IND_CD:
description:
@@ -13416,6 +15272,7 @@ cms:
original_type: CHAR
text: Diagnosis Present on Admission Indicator 11
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-present-admission-indicator-11
type: VARCHAR(1)
- POA_DGNS_12_IND_CD:
description:
@@ -13423,6 +15280,7 @@ cms:
original_type: CHAR
text: Diagnosis Present on Admission Indicator 12
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-present-admission-indicator-12
type: VARCHAR(1)
- POA_DGNS_13_IND_CD:
description:
@@ -13430,6 +15288,7 @@ cms:
original_type: CHAR
text: Diagnosis Present on Admission Indicator 13
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-present-admission-indicator-13
type: VARCHAR(1)
- POA_DGNS_14_IND_CD:
description:
@@ -13437,6 +15296,7 @@ cms:
original_type: CHAR
text: Diagnosis Present on Admission Indicator 14
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-present-admission-indicator-14
type: VARCHAR(1)
- POA_DGNS_15_IND_CD:
description:
@@ -13444,6 +15304,7 @@ cms:
original_type: CHAR
text: Diagnosis Present on Admission Indicator 15
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-present-admission-indicator-15
type: VARCHAR(1)
- POA_DGNS_16_IND_CD:
description:
@@ -13451,6 +15312,7 @@ cms:
original_type: CHAR
text: Diagnosis Present on Admission Indicator 16
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-present-admission-indicator-16
type: VARCHAR(1)
- POA_DGNS_17_IND_CD:
description:
@@ -13458,6 +15320,7 @@ cms:
original_type: CHAR
text: Diagnosis Present on Admission Indicator 17
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-present-admission-indicator-17
type: VARCHAR(1)
- POA_DGNS_18_IND_CD:
description:
@@ -13465,6 +15328,7 @@ cms:
original_type: CHAR
text: Diagnosis Present on Admission Indicator 18
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-present-admission-indicator-18
type: VARCHAR(1)
- POA_DGNS_19_IND_CD:
description:
@@ -13472,6 +15336,7 @@ cms:
original_type: CHAR
text: Diagnosis Present on Admission Indicator 19
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-present-admission-indicator-19
type: VARCHAR(1)
- POA_DGNS_20_IND_CD:
description:
@@ -13479,6 +15344,7 @@ cms:
original_type: CHAR
text: Diagnosis Present on Admission Indicator 20
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-present-admission-indicator-20
type: VARCHAR(1)
- POA_DGNS_21_IND_CD:
description:
@@ -13486,6 +15352,7 @@ cms:
original_type: CHAR
text: Diagnosis Present on Admission Indicator 21
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-present-admission-indicator-21
type: VARCHAR(1)
- POA_DGNS_22_IND_CD:
description:
@@ -13493,6 +15360,7 @@ cms:
original_type: CHAR
text: Diagnosis Present on Admission Indicator 22
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-present-admission-indicator-22
type: VARCHAR(1)
- POA_DGNS_23_IND_CD:
description:
@@ -13500,6 +15368,7 @@ cms:
original_type: CHAR
text: Diagnosis Present on Admission Indicator 23
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-present-admission-indicator-23
type: VARCHAR(1)
- POA_DGNS_24_IND_CD:
description:
@@ -13507,6 +15376,7 @@ cms:
original_type: CHAR
text: Diagnosis Present on Admission Indicator 24
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-present-admission-indicator-24
type: VARCHAR(1)
- POA_DGNS_25_IND_CD:
description:
@@ -13514,6 +15384,7 @@ cms:
original_type: CHAR
text: Diagnosis Present on Admission Indicator 25
width: 1.0
+ reference: https://resdac.org/cms-data/variables/diagnosis-e-code-present-admission-indicator-8
type: VARCHAR(1)
- DGNS_E_CD_CNT:
description:
@@ -13521,6 +15392,7 @@ cms:
original_type: NUM
text: MEDPAR Diagnosis E Code Count
width: 3.0
+ reference: https://resdac.org/cms-data/variables/count-diagnosis-e-codes
type: INT
- DGNS_E_VRSN_CD:
description:
@@ -13528,6 +15400,7 @@ cms:
original_type: CHAR
text: MEDPAR Diagnosis E Version Code (Earlier Version)
width: 1.0
+ reference: https://resdac.org/cms-data/variables/diagnosis-e-version-code-earlier-version
type: VARCHAR(1)
- DGNS_E_VRSN_CD_1:
description:
@@ -13535,6 +15408,7 @@ cms:
original_type: CHAR
text: MEDPAR Diagnosis E Version Code 01
width: 1.0
+ reference: https://resdac.org/cms-data/variables/diagnosis-e-version-code-1
type: VARCHAR(1)
- DGNS_E_VRSN_CD_2:
description:
@@ -13542,6 +15416,7 @@ cms:
original_type: CHAR
text: MEDPAR Diagnosis E Version Code 02
width: 1.0
+ reference: https://resdac.org/cms-data/variables/diagnosis-e-version-code-2
type: VARCHAR(1)
- DGNS_E_VRSN_CD_3:
description:
@@ -13549,6 +15424,7 @@ cms:
original_type: CHAR
text: MEDPAR Diagnosis E Version Code 03
width: 1.0
+ reference: https://resdac.org/cms-data/variables/diagnosis-e-version-code-3
type: VARCHAR(1)
- DGNS_E_VRSN_CD_4:
description:
@@ -13556,6 +15432,7 @@ cms:
original_type: CHAR
text: MEDPAR Diagnosis E Version Code 04
width: 1.0
+ reference: https://resdac.org/cms-data/variables/diagnosis-e-version-code-4
type: VARCHAR(1)
- DGNS_E_VRSN_CD_5:
description:
@@ -13563,6 +15440,7 @@ cms:
original_type: CHAR
text: MEDPAR Diagnosis E Version Code 05
width: 1.0
+ reference: https://resdac.org/cms-data/variables/diagnosis-e-version-code-5
type: VARCHAR(1)
- DGNS_E_VRSN_CD_6:
description:
@@ -13570,6 +15448,7 @@ cms:
original_type: CHAR
text: MEDPAR Diagnosis E Version Code 06
width: 1.0
+ reference: https://resdac.org/cms-data/variables/diagnosis-e-version-code-6
type: VARCHAR(1)
- DGNS_E_VRSN_CD_7:
description:
@@ -13577,6 +15456,7 @@ cms:
original_type: CHAR
text: MEDPAR Diagnosis E Version Code 07
width: 1.0
+ reference: https://resdac.org/cms-data/variables/diagnosis-e-version-code-7
type: VARCHAR(1)
- DGNS_E_VRSN_CD_8:
description:
@@ -13584,6 +15464,7 @@ cms:
original_type: CHAR
text: MEDPAR Diagnosis E Version Code 08
width: 1.0
+ reference: https://resdac.org/cms-data/variables/diagnosis-e-version-code-8
type: VARCHAR(1)
- DGNS_E_VRSN_CD_9:
description:
@@ -13591,6 +15472,7 @@ cms:
original_type: CHAR
text: MEDPAR Diagnosis E Version Code 09
width: 1.0
+ reference: https://resdac.org/cms-data/variables/diagnosis-e-version-code-9
type: VARCHAR(1)
- DGNS_E_VRSN_CD_10:
description:
@@ -13598,6 +15480,7 @@ cms:
original_type: CHAR
text: MEDPAR Diagnosis E Version Code 10
width: 1.0
+ reference: https://resdac.org/cms-data/variables/diagnosis-e-version-code-10
type: VARCHAR(1)
- DGNS_E_VRSN_CD_11:
description:
@@ -13605,6 +15488,7 @@ cms:
original_type: CHAR
text: MEDPAR Diagnosis E Version Code 11
width: 1.0
+ reference: https://resdac.org/cms-data/variables/diagnosis-e-version-code-11
type: VARCHAR(1)
- DGNS_E_VRSN_CD_12:
description:
@@ -13612,6 +15496,7 @@ cms:
original_type: CHAR
text: MEDPAR Diagnosis E Version Code 12
width: 1.0
+ reference: https://resdac.org/cms-data/variables/diagnosis-e-version-code-12
type: VARCHAR(1)
- DGNS_E_1_CD:
description:
@@ -13620,6 +15505,7 @@ cms:
text: E Diagnosis Code 1 - Extrnl cause of injury, poisoning, or oth
adverse
width: 7.0
+ reference: https://resdac.org/cms-data/variables/diagnosis-e-version-code-1
type: VARCHAR(7)
- DGNS_E_2_CD:
description:
@@ -13628,6 +15514,7 @@ cms:
text: E Diagnosis Code 2 - Extrnl cause of injury, poisoning, or oth
adverse
width: 7.0
+ reference: https://resdac.org/cms-data/variables/diagnosis-e-code-2
type: VARCHAR(7)
- DGNS_E_3_CD:
description:
@@ -13636,6 +15523,7 @@ cms:
text: E Diagnosis Code 3 - Extrnl cause of injury, poisoning, or oth
adverse
width: 7.0
+ reference: https://resdac.org/cms-data/variables/diagnosis-e-code-3
type: VARCHAR(7)
- DGNS_E_4_CD:
description:
@@ -13644,6 +15532,7 @@ cms:
text: E Diagnosis Code 4 - Extrnl cause of injury, poisoning, or oth
adverse
width: 7.0
+ reference: https://resdac.org/cms-data/variables/diagnosis-e-code-4
type: VARCHAR(7)
- DGNS_E_5_CD:
description:
@@ -13652,6 +15541,7 @@ cms:
text: E Diagnosis Code 5 - Extrnl cause of injury, poisoning, or oth
adverse
width: 7.0
+ reference: https://resdac.org/cms-data/variables/diagnosis-e-code-5
type: VARCHAR(7)
- DGNS_E_6_CD:
description:
@@ -13660,6 +15550,7 @@ cms:
text: E Diagnosis Code 6 - Extrnl cause of injury, poisoning, or oth
adverse
width: 7.0
+ reference: https://resdac.org/cms-data/variables/diagnosis-e-code-6
type: VARCHAR(7)
- DGNS_E_7_CD:
description:
@@ -13668,6 +15559,7 @@ cms:
text: E Diagnosis Code 7 - Extrnl cause of injury, poisoning, or oth
adverse
width: 7.0
+ reference: https://resdac.org/cms-data/variables/diagnosis-e-code-7
type: VARCHAR(7)
- DGNS_E_8_CD:
description:
@@ -13676,6 +15568,7 @@ cms:
text: E Diagnosis Code 8 - Extrnl cause of injury, poisoning, or oth
adverse
width: 7.0
+ reference: https://resdac.org/cms-data/variables/diagnosis-e-code-8
type: VARCHAR(7)
- DGNS_E_9_CD:
description:
@@ -13684,6 +15577,7 @@ cms:
text: E Diagnosis Code 9 - Extrnl cause of injury, poisoning, or oth
adverse
width: 7.0
+ reference: https://resdac.org/cms-data/variables/diagnosis-e-code-9
type: VARCHAR(7)
- DGNS_E_10_CD:
description:
@@ -13692,6 +15586,7 @@ cms:
text: E Diagnosis Code 10 - Extrnl cause of injury, poisoning, or oth
adverse
width: 7.0
+ reference: https://resdac.org/cms-data/variables/diagnosis-e-code-10
type: VARCHAR(7)
- DGNS_E_11_CD:
description:
@@ -13700,6 +15595,7 @@ cms:
text: E Diagnosis Code 11 - Extrnl cause of injury, poisoning, or oth
adverse
width: 7.0
+ reference: https://resdac.org/cms-data/variables/diagnosis-e-code-11
type: VARCHAR(7)
- DGNS_E_12_CD:
description:
@@ -13708,6 +15604,7 @@ cms:
text: E Diagnosis Code 12 - Extrnl cause of injury, poisoning, or oth
adverse
width: 7.0
+ reference: https://resdac.org/cms-data/variables/diagnosis-e-version-code-1
type: VARCHAR(7)
- POA_DGNS_E_CD_CNT:
description:
@@ -13715,6 +15612,7 @@ cms:
original_type: NUM
text: MEDPAR Claim Present on Admission Diagnosis E Code Count
width: 3.0
+ reference: https://resdac.org/cms-data/variables/count-present-admission-poa-diagnosis-e-codes
type: INT
- POA_DGNS_E_1_IND_CD:
description:
@@ -13722,6 +15620,7 @@ cms:
original_type: CHAR
text: Diagnosis E Code Present on Admission Indicator 1
width: 1.0
+ reference: https://resdac.org/cms-data/variables/diagnosis-1-present-admission-poa-indicator-code
type: VARCHAR(1)
- POA_DGNS_E_2_IND_CD:
description:
@@ -13729,6 +15628,7 @@ cms:
original_type: CHAR
text: Diagnosis E Code Present on Admission Indicator 2
width: 1.0
+ reference: https://resdac.org/cms-data/variables/diagnosis-e-code-present-admission-indicator-2
type: VARCHAR(1)
- POA_DGNS_E_3_IND_CD:
description:
@@ -13736,6 +15636,7 @@ cms:
original_type: CHAR
text: Diagnosis E Code Present on Admission Indicator 3
width: 1.0
+ reference: https://resdac.org/cms-data/variables/diagnosis-e-code-present-admission-indicator-3
type: VARCHAR(1)
- POA_DGNS_E_4_IND_CD:
description:
@@ -13743,6 +15644,7 @@ cms:
original_type: CHAR
text: Diagnosis E Code Present on Admission Indicator 4
width: 1.0
+ reference: https://resdac.org/cms-data/variables/diagnosis-e-code-present-admission-indicator-4
type: VARCHAR(1)
- POA_DGNS_E_5_IND_CD:
description:
@@ -13750,6 +15652,7 @@ cms:
original_type: CHAR
text: Diagnosis E Code Present on Admission Indicator 5
width: 1.0
+ reference: https://resdac.org/cms-data/variables/diagnosis-e-code-present-admission-indicator-5
type: VARCHAR(1)
- POA_DGNS_E_6_IND_CD:
description:
@@ -13757,6 +15660,7 @@ cms:
original_type: CHAR
text: Diagnosis E Code Present on Admission Indicator 6
width: 1.0
+ reference: https://resdac.org/cms-data/variables/diagnosis-e-code-present-admission-indicator-6
type: VARCHAR(1)
- POA_DGNS_E_7_IND_CD:
description:
@@ -13764,6 +15668,7 @@ cms:
original_type: CHAR
text: Diagnosis E Code Present on Admission Indicator 7
width: 1.0
+ reference: https://resdac.org/cms-data/variables/diagnosis-e-code-present-admission-indicator-7
type: VARCHAR(1)
- POA_DGNS_E_8_IND_CD:
description:
@@ -13771,6 +15676,7 @@ cms:
original_type: CHAR
text: Diagnosis E Code Present on Admission Indicator 8
width: 1.0
+ reference: https://resdac.org/cms-data/variables/diagnosis-e-code-present-admission-indicator-8
type: VARCHAR(1)
- POA_DGNS_E_9_IND_CD:
description:
@@ -13778,6 +15684,7 @@ cms:
original_type: CHAR
text: Diagnosis E Code Present on Admission Indicator 9
width: 1.0
+ reference: https://resdac.org/cms-data/variables/diagnosis-e-code-present-admission-indicator-9
type: VARCHAR(1)
- POA_DGNS_E_10_IND_CD:
description:
@@ -13785,6 +15692,7 @@ cms:
original_type: CHAR
text: Diagnosis E Code Present on Admission Indicator 10
width: 1.0
+ reference: https://resdac.org/cms-data/variables/diagnosis-e-code-present-admission-indicator-10
type: VARCHAR(1)
- POA_DGNS_E_11_IND_CD:
description:
@@ -13792,6 +15700,7 @@ cms:
original_type: CHAR
text: Diagnosis E Code Present on Admission Indicator 11
width: 1.0
+ reference: https://resdac.org/cms-data/variables/diagnosis-e-code-present-admission-indicator-11
type: VARCHAR(1)
- POA_DGNS_E_12_IND_CD:
description:
@@ -13799,6 +15708,7 @@ cms:
original_type: CHAR
text: Diagnosis E Code Present on Admission Indicator 12
width: 1.0
+ reference: https://resdac.org/cms-data/variables/diagnosis-e-code-present-admission-indicator-12
type: VARCHAR(1)
- PRCDRSW:
description:
@@ -13806,6 +15716,7 @@ cms:
original_type: CHAR
text: Surgical procedures indicator
width: 1.0
+ reference: https://resdac.org/cms-data/variables/surgical-procedure-indicator
type: VARCHAR(1)
- PRCDRCNT:
description:
@@ -13813,6 +15724,7 @@ cms:
original_type: NUM
text: Surgical procedure codes included in stay
width: 3.0
+ reference: https://resdac.org/cms-data/variables/surgical-procedure-codes-included-stay
type: INT
- SRGCL_PRCDR_VRSN_CD:
description:
@@ -13820,6 +15732,7 @@ cms:
original_type: CHAR
text: MEDPAR Surgical Procedure Version Code (Earlier Version)
width: 1.0
+ reference: https://resdac.org/cms-data/variables/surgical-procedure-version-code-earlier-version
type: VARCHAR(1)
- SRGCL_PRCDR_VRSN_CD_1:
description:
@@ -13827,6 +15740,7 @@ cms:
original_type: CHAR
text: MEDPAR Surgical Procedure Version Code 01
width: 1.0
+ reference: https://resdac.org/cms-data/variables/principal-procedure-code
type: VARCHAR(1)
- SRGCL_PRCDR_VRSN_CD_2:
description:
@@ -13834,6 +15748,7 @@ cms:
original_type: CHAR
text: MEDPAR Surgical Procedure Version Code 02
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-surgical-procedure-version-code-2
type: VARCHAR(1)
- SRGCL_PRCDR_VRSN_CD_3:
description:
@@ -13841,6 +15756,7 @@ cms:
original_type: CHAR
text: MEDPAR Surgical Procedure Version Code 03
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-surgical-procedure-version-code-3
type: VARCHAR(1)
- SRGCL_PRCDR_VRSN_CD_4:
description:
@@ -13848,6 +15764,7 @@ cms:
original_type: CHAR
text: MEDPAR Surgical Procedure Version Code 04
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-surgical-procedure-version-code-4
type: VARCHAR(1)
- SRGCL_PRCDR_VRSN_CD_5:
description:
@@ -13855,6 +15772,7 @@ cms:
original_type: CHAR
text: MEDPAR Surgical Procedure Version Code 05
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-surgical-procedure-version-code-5
type: VARCHAR(1)
- SRGCL_PRCDR_VRSN_CD_6:
description:
@@ -13862,6 +15780,7 @@ cms:
original_type: CHAR
text: MEDPAR Surgical Procedure Version Code 06
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-surgical-procedure-version-code-6
type: VARCHAR(1)
- SRGCL_PRCDR_VRSN_CD_7:
description:
@@ -13869,6 +15788,7 @@ cms:
original_type: CHAR
text: MEDPAR Surgical Procedure Version Code 07
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-surgical-procedure-version-code-7
type: VARCHAR(1)
- SRGCL_PRCDR_VRSN_CD_8:
description:
@@ -13876,6 +15796,7 @@ cms:
original_type: CHAR
text: MEDPAR Surgical Procedure Version Code 08
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-surgical-procedure-version-code-8
type: VARCHAR(1)
- SRGCL_PRCDR_VRSN_CD_9:
description:
@@ -13883,6 +15804,7 @@ cms:
original_type: CHAR
text: MEDPAR Surgical Procedure Version Code 09
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-surgical-procedure-version-code-9
type: VARCHAR(1)
- SRGCL_PRCDR_VRSN_CD_10:
description:
@@ -13890,6 +15812,7 @@ cms:
original_type: CHAR
text: MEDPAR Surgical Procedure Version Code 10
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-surgical-procedure-version-code-10
type: VARCHAR(1)
- SRGCL_PRCDR_VRSN_CD_11:
description:
@@ -13897,6 +15820,7 @@ cms:
original_type: CHAR
text: MEDPAR Surgical Procedure Version Code 11
width: 1.0
+ reference: https://resdac.org/cms-data/variables/surgical-procedure-version-code-earlier-version
type: VARCHAR(1)
- SRGCL_PRCDR_VRSN_CD_12:
description:
@@ -13904,6 +15828,7 @@ cms:
original_type: CHAR
text: MEDPAR Surgical Procedure Version Code 12
width: 1.0
+ reference: https://resdac.org/cms-data/variables/surgical-procedure-version-code-earlier-version
type: VARCHAR(1)
- SRGCL_PRCDR_VRSN_CD_13:
description:
@@ -13911,6 +15836,7 @@ cms:
original_type: CHAR
text: MEDPAR Surgical Procedure Version Code 13
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-surgical-procedure-version-code-13
type: VARCHAR(1)
- SRGCL_PRCDR_VRSN_CD_14:
description:
@@ -13918,6 +15844,7 @@ cms:
original_type: CHAR
text: MEDPAR Surgical Procedure Version Code 14
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-surgical-procedure-version-code-14
type: VARCHAR(1)
- SRGCL_PRCDR_VRSN_CD_15:
description:
@@ -13925,6 +15852,7 @@ cms:
original_type: CHAR
text: MEDPAR Surgical Procedure Version Code 15
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-surgical-procedure-version-code-15
type: VARCHAR(1)
- SRGCL_PRCDR_VRSN_CD_16:
description:
@@ -13932,6 +15860,7 @@ cms:
original_type: CHAR
text: MEDPAR Surgical Procedure Version Code 16
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-surgical-procedure-version-code-16
type: VARCHAR(1)
- SRGCL_PRCDR_VRSN_CD_17:
description:
@@ -13939,6 +15868,7 @@ cms:
original_type: CHAR
text: MEDPAR Surgical Procedure Version Code 17
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-surgical-procedure-version-code-17
type: VARCHAR(1)
- SRGCL_PRCDR_VRSN_CD_18:
description:
@@ -13946,6 +15876,7 @@ cms:
original_type: CHAR
text: MEDPAR Surgical Procedure Version Code 18
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-surgical-procedure-version-code-18
type: VARCHAR(1)
- SRGCL_PRCDR_VRSN_CD_19:
description:
@@ -13953,6 +15884,7 @@ cms:
original_type: CHAR
text: MEDPAR Surgical Procedure Version Code 19
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-surgical-procedure-version-code-19
type: VARCHAR(1)
- SRGCL_PRCDR_VRSN_CD_20:
description:
@@ -13960,6 +15892,7 @@ cms:
original_type: CHAR
text: MEDPAR Surgical Procedure Version Code 20
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-surgical-procedure-version-code-20
type: VARCHAR(1)
- SRGCL_PRCDR_VRSN_CD_21:
description:
@@ -13967,6 +15900,7 @@ cms:
original_type: CHAR
text: MEDPAR Surgical Procedure Version Code 21
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-surgical-procedure-version-code-21
type: VARCHAR(1)
- SRGCL_PRCDR_VRSN_CD_22:
description:
@@ -13974,6 +15908,7 @@ cms:
original_type: CHAR
text: MEDPAR Surgical Procedure Version Code 22
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-surgical-procedure-version-code-22
type: VARCHAR(1)
- SRGCL_PRCDR_VRSN_CD_23:
description:
@@ -13981,6 +15916,7 @@ cms:
original_type: CHAR
text: MEDPAR Surgical Procedure Version Code 23
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-surgical-procedure-version-code-23
type: VARCHAR(1)
- SRGCL_PRCDR_VRSN_CD_24:
description:
@@ -13988,6 +15924,7 @@ cms:
original_type: CHAR
text: MEDPAR Surgical Procedure Version Code 24
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-surgical-procedure-version-code-24
type: VARCHAR(1)
- SRGCL_PRCDR_VRSN_CD_25:
description:
@@ -13995,6 +15932,7 @@ cms:
original_type: CHAR
text: MEDPAR Surgical Procedure Version Code 25
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-procedure-code-4
type: VARCHAR(1)
- PRCDRCD1:
description:
@@ -14002,6 +15940,7 @@ cms:
original_type: CHAR
text: Principal Procedure code
width: 7.0
+ reference: https://resdac.org/cms-data/variables/principal-procedure-code
type: VARCHAR(7)
- PRCDRCD2:
description:
@@ -14009,6 +15948,7 @@ cms:
original_type: CHAR
text: Procedure Code II
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-procedure-code-2
type: VARCHAR(7)
- PRCDRCD3:
description:
@@ -14016,6 +15956,7 @@ cms:
original_type: CHAR
text: Procedure Code III
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-procedure-code-3
type: VARCHAR(7)
- PRCDRCD4:
description:
@@ -14023,6 +15964,7 @@ cms:
original_type: CHAR
text: Procedure Code IV
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-procedure-code-4
type: VARCHAR(7)
- PRCDRCD5:
description:
@@ -14030,6 +15972,7 @@ cms:
original_type: CHAR
text: Procedure Code V
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-procedure-code-5
type: VARCHAR(7)
- PRCDRCD6:
description:
@@ -14037,6 +15980,7 @@ cms:
original_type: CHAR
text: Procedure Code VI
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-procedure-code-6
type: VARCHAR(7)
- PRCDRCD7:
description:
@@ -14044,6 +15988,7 @@ cms:
original_type: CHAR
text: Procedure Code VII
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-procedure-code-7
type: VARCHAR(7)
- PRCDRCD8:
description:
@@ -14051,6 +15996,7 @@ cms:
original_type: CHAR
text: Procedure Code VIII
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-procedure-code-8
type: VARCHAR(7)
- PRCDRCD9:
description:
@@ -14058,6 +16004,7 @@ cms:
original_type: CHAR
text: Procedure Code IX
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-procedure-code-9
type: VARCHAR(7)
- PRCDRCD10:
description:
@@ -14065,6 +16012,7 @@ cms:
original_type: CHAR
text: Procedure Code X
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-procedure-code-10
type: VARCHAR(7)
- PRCDRCD11:
description:
@@ -14072,6 +16020,7 @@ cms:
original_type: CHAR
text: Procedure Code XI
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-procedure-code-11
type: VARCHAR(7)
- PRCDRCD12:
description:
@@ -14079,6 +16028,7 @@ cms:
original_type: CHAR
text: Procedure Code XII
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-procedure-code-12
type: VARCHAR(7)
- PRCDRCD13:
description:
@@ -14086,6 +16036,7 @@ cms:
original_type: CHAR
text: Procedure Code XIII
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-procedure-code-13
type: VARCHAR(7)
- PRCDRCD14:
description:
@@ -14093,6 +16044,7 @@ cms:
original_type: CHAR
text: Procedure Code XIV
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-procedure-code-14
type: VARCHAR(7)
- PRCDRCD15:
description:
@@ -14100,6 +16052,7 @@ cms:
original_type: CHAR
text: Procedure Code XV
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-procedure-code-15
type: VARCHAR(7)
- PRCDRCD16:
description:
@@ -14107,6 +16060,7 @@ cms:
original_type: CHAR
text: Procedure Code XVI
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-procedure-code-16
type: VARCHAR(7)
- PRCDRCD17:
description:
@@ -14114,6 +16068,7 @@ cms:
original_type: CHAR
text: Procedure Code XVII
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-procedure-code-17
type: VARCHAR(7)
- PRCDRCD18:
description:
@@ -14121,6 +16076,7 @@ cms:
original_type: CHAR
text: Procedure Code XVIII
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-procedure-code-18
type: VARCHAR(7)
- PRCDRCD19:
description:
@@ -14128,6 +16084,7 @@ cms:
original_type: CHAR
text: Procedure Code XIX
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-procedure-code-19
type: VARCHAR(7)
- PRCDRCD20:
description:
@@ -14135,6 +16092,7 @@ cms:
original_type: CHAR
text: Procedure Code XX
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-procedure-code-20
type: VARCHAR(7)
- PRCDRCD21:
description:
@@ -14142,6 +16100,7 @@ cms:
original_type: CHAR
text: Procedure Code XXI
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-procedure-code-21
type: VARCHAR(7)
- PRCDRCD22:
description:
@@ -14149,6 +16108,7 @@ cms:
original_type: CHAR
text: Procedure Code XXII
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-procedure-code-22
type: VARCHAR(7)
- PRCDRCD23:
description:
@@ -14156,6 +16116,7 @@ cms:
original_type: CHAR
text: Procedure Code XXIII
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-procedure-code-23
type: VARCHAR(7)
- PRCDRCD24:
description:
@@ -14163,6 +16124,7 @@ cms:
original_type: CHAR
text: Procedure Code XXIV
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-procedure-code-24
type: VARCHAR(7)
- PRCDRCD25:
description:
@@ -14170,6 +16132,7 @@ cms:
original_type: CHAR
text: Procedure Code XXV
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-procedure-code-25
type: VARCHAR(7)
- PRCDTCNT:
description:
@@ -14177,6 +16140,7 @@ cms:
original_type: NUM
text: Dates associated with surgical procedures included in stay
width: 3.0
+ reference: https://resdac.org/cms-data/variables/dates-associated-surgical-procedures-included-stay
type: INT
- PRCDRDT1:
description:
@@ -14184,6 +16148,7 @@ cms:
original_type: DATE
text: Principal Procedure Date
width: 8.0
+ reference: https://resdac.org/cms-data/variables/principal-procedure-date
type: DATE
- PRCDRDT2:
description:
@@ -14191,6 +16156,7 @@ cms:
original_type: DATE
text: Procedure Date II
width: 8.0
+ reference: https://resdac.org/cms-data/variables/procedure-date-2
type: DATE
- PRCDRDT3:
description:
@@ -14198,6 +16164,7 @@ cms:
original_type: DATE
text: Procedure Date III
width: 8.0
+ reference: https://resdac.org/cms-data/variables/procedure-date-3
type: DATE
- PRCDRDT4:
description:
@@ -14205,6 +16172,7 @@ cms:
original_type: DATE
text: Procedure Date IV
width: 8.0
+ reference: https://resdac.org/cms-data/variables/procedure-date-4
type: DATE
- PRCDRDT5:
description:
@@ -14212,6 +16180,7 @@ cms:
original_type: DATE
text: Procedure Date V
width: 8.0
+ reference: null
type: DATE
- PRCDRDT6:
description:
@@ -14219,6 +16188,7 @@ cms:
original_type: DATE
text: Procedure Date VI
width: 8.0
+ reference: https://resdac.org/cms-data/variables/procedure-date-6
type: DATE
- PRCDRDT7:
description:
@@ -14226,6 +16196,7 @@ cms:
original_type: DATE
text: Procedure Date VII
width: 8.0
+ reference: https://resdac.org/cms-data/variables/procedure-date-7
type: DATE
- PRCDRDT8:
description:
@@ -14233,6 +16204,7 @@ cms:
original_type: DATE
text: Procedure Date VIII
width: 8.0
+ reference: https://resdac.org/cms-data/variables/procedure-date-8
type: DATE
- PRCDRDT9:
description:
@@ -14240,6 +16212,7 @@ cms:
original_type: DATE
text: Procedure Date IX
width: 8.0
+ reference: https://resdac.org/cms-data/variables/procedure-date-9
type: DATE
- PRCDRDT10:
description:
@@ -14247,6 +16220,7 @@ cms:
original_type: DATE
text: Procedure Date X
width: 8.0
+ reference: https://resdac.org/cms-data/variables/procedure-date-10
type: DATE
- PRCDRDT11:
description:
@@ -14254,6 +16228,7 @@ cms:
original_type: DATE
text: Procedure Date XI
width: 8.0
+ reference: https://resdac.org/cms-data/variables/procedure-date-11
type: DATE
- PRCDRDT12:
description:
@@ -14261,6 +16236,7 @@ cms:
original_type: DATE
text: Procedure Date XII
width: 8.0
+ reference: https://resdac.org/cms-data/variables/procedure-date-12
type: DATE
- PRCDRDT13:
description:
@@ -14268,6 +16244,7 @@ cms:
original_type: DATE
text: Procedure Date XIII
width: 8.0
+ reference: https://resdac.org/cms-data/variables/procedure-date-13
type: DATE
- PRCDRDT14:
description:
@@ -14275,6 +16252,7 @@ cms:
original_type: DATE
text: Procedure Date XIV
width: 8.0
+ reference: https://resdac.org/cms-data/variables/procedure-date-14
type: DATE
- PRCDRDT15:
description:
@@ -14282,6 +16260,7 @@ cms:
original_type: DATE
text: Procedure Date XV
width: 8.0
+ reference: https://resdac.org/cms-data/variables/procedure-date-15
type: DATE
- PRCDRDT16:
description:
@@ -14289,6 +16268,7 @@ cms:
original_type: DATE
text: Procedure Date XVI
width: 8.0
+ reference: https://resdac.org/cms-data/variables/procedure-date-16
type: DATE
- PRCDRDT17:
description:
@@ -14296,6 +16276,7 @@ cms:
original_type: DATE
text: Procedure Date XVII
width: 8.0
+ reference: https://resdac.org/cms-data/variables/procedure-date-17
type: DATE
- PRCDRDT18:
description:
@@ -14303,6 +16284,7 @@ cms:
original_type: DATE
text: Procedure Date XVIII
width: 8.0
+ reference: https://resdac.org/cms-data/variables/procedure-date-18
type: DATE
- PRCDRDT19:
description:
@@ -14310,6 +16292,7 @@ cms:
original_type: DATE
text: Procedure Date XIX
width: 8.0
+ reference: https://resdac.org/cms-data/variables/procedure-date-19
type: DATE
- PRCDRDT20:
description:
@@ -14317,6 +16300,7 @@ cms:
original_type: DATE
text: Procedure Date XX
width: 8.0
+ reference: https://resdac.org/cms-data/variables/procedure-date-20
type: DATE
- PRCDRDT21:
description:
@@ -14324,6 +16308,7 @@ cms:
original_type: DATE
text: Procedure Date XXI
width: 8.0
+ reference: https://resdac.org/cms-data/variables/procedure-date-21
type: DATE
- PRCDRDT22:
description:
@@ -14331,6 +16316,7 @@ cms:
original_type: DATE
text: Procedure Date XXII
width: 8.0
+ reference: https://resdac.org/cms-data/variables/procedure-date-22
type: DATE
- PRCDRDT23:
description:
@@ -14338,6 +16324,7 @@ cms:
original_type: DATE
text: Procedure Date XXIII
width: 8.0
+ reference: https://resdac.org/cms-data/variables/procedure-date-23
type: DATE
- PRCDRDT24:
description:
@@ -14345,6 +16332,7 @@ cms:
original_type: DATE
text: Procedure Date XXIV
width: 8.0
+ reference: https://resdac.org/cms-data/variables/procedure-date-24
type: DATE
- PRCDRDT25:
description:
@@ -14352,6 +16340,7 @@ cms:
original_type: DATE
text: Procedure Date XXV
width: 8.0
+ reference: https://resdac.org/cms-data/variables/procedure-date-25
type: DATE
- CLM_PTNT_RLTNSHP_CD:
description:
@@ -14359,6 +16348,7 @@ cms:
original_type: CHAR
text: Claim Patient Relationship Code
width: 2.0
+ reference: https://resdac.org/cms-data/variables/claim-patient-relationship-code
type: VARCHAR(2)
- CARE_IMPRVMT_MODEL_1_CD:
description:
@@ -14366,6 +16356,7 @@ cms:
original_type: CHAR
text: Care Improvement Model 1 Code
width: 2.0
+ reference: https://resdac.org/cms-data/variables/care-improvement-model-1-code
type: VARCHAR(2)
- CARE_IMPRVMT_MODEL_2_CD:
description:
@@ -14373,6 +16364,7 @@ cms:
original_type: CHAR
text: Care Improvement Model 2 Code
width: 2.0
+ reference: https://resdac.org/cms-data/variables/care-improvement-model-2-code
type: VARCHAR(2)
- CARE_IMPRVMT_MODEL_3_CD:
description:
@@ -14380,6 +16372,7 @@ cms:
original_type: CHAR
text: Care Improvement Model 3 Code
width: 2.0
+ reference: https://resdac.org/cms-data/variables/care-improvement-model-3-code
type: VARCHAR(2)
- CARE_IMPRVMT_MODEL_4_CD:
description:
@@ -14387,6 +16380,7 @@ cms:
original_type: CHAR
text: Care Improvement Model 4 Code
width: 2.0
+ reference: https://resdac.org/cms-data/variables/care-improvement-model-4-code
type: VARCHAR(2)
- VBP_PRTCPNT_IND_CD:
description:
@@ -14394,6 +16388,7 @@ cms:
original_type: CHAR
text: VBP Participant Indicator Code
width: 1.0
+ reference: https://resdac.org/cms-data/variables/value-based-purchasing-vbp-participant-indicator-code
type: VARCHAR(1)
- HRR_PRTCPNT_IND_CD:
description:
@@ -14401,6 +16396,7 @@ cms:
original_type: CHAR
text: HRR Participant Indicator Code
width: 1.0
+ reference: https://resdac.org/cms-data/variables/hospital-readmission-reduction-hrr-participant-indicator-code
type: VARCHAR(1)
- BNDLD_MODEL_DSCNT_PCT:
description:
@@ -14408,6 +16404,7 @@ cms:
original_type: NUM
text: Bundled Model Discount Percent
width: 4.2
+ reference: https://resdac.org/cms-data/variables/bundled-payment-model-discount-percent
type: NUMERIC(4,2)
- VBP_ADJSTMT_PCT:
description:
@@ -14415,6 +16412,7 @@ cms:
original_type: NUM
text: VBP Adjustment Percent
width: 13.1
+ reference: https://resdac.org/cms-data/variables/value-based-purchasing-vbp-adjustment-percent
type: NUMERIC(13,1)
- HRR_ADJSTMT_PCT:
description:
@@ -14422,6 +16420,7 @@ cms:
original_type: NUM
text: HRR Adjustment Percent
width: 6.4
+ reference: https://resdac.org/cms-data/variables/hospital-readmission-reduction-hrr-adjustment-percent
type: NUMERIC(6,4)
- INFRMTL_ENCTR_IND_SW:
description:
@@ -14429,6 +16428,7 @@ cms:
original_type: CHAR
text: Informational Encounter Indicator Switch
width: 1.0
+ reference: https://resdac.org/cms-data/variables/informational-encounter-indicator
type: VARCHAR(1)
- MA_TCHNG_IND_SW:
description:
@@ -14436,6 +16436,7 @@ cms:
original_type: CHAR
text: MA Teaching Indicator Switch
width: 1.0
+ reference: https://resdac.org/cms-data/variables/ma-teaching-indicator
type: VARCHAR(1)
- PROD_RPLCMT_LIFECYC_SW:
description:
@@ -14443,6 +16444,7 @@ cms:
original_type: CHAR
text: Prod Replacement Lifecycle Switch
width: 1.0
+ reference: https://resdac.org/cms-data/variables/product-replacement-within-product-lifecycle-early
type: VARCHAR(1)
- PROD_RPLCMT_RCLL_SW:
description:
@@ -14450,6 +16452,7 @@ cms:
original_type: CHAR
text: Prod Replacement Recall Switch
width: 1.0
+ reference: https://resdac.org/cms-data/variables/product-replacement-recall-product
type: VARCHAR(1)
- CRED_RCVD_RPLCD_DVC_SW:
description:
@@ -14457,6 +16460,7 @@ cms:
original_type: CHAR
text: Credit Received Replaced Device Switch
width: 1.0
+ reference: https://resdac.org/cms-data/variables/credit-received-replaced-device
type: VARCHAR(1)
- OBSRVTN_SW:
description:
@@ -14464,6 +16468,7 @@ cms:
original_type: CHAR
text: Observation Switch
width: 1.0
+ reference: https://resdac.org/cms-data/variables/observation-unit-indicator
type: VARCHAR(1)
- NEW_TCHNLGY_ADD_ON_AMT:
description:
@@ -14471,6 +16476,7 @@ cms:
original_type: NUM
text: New Technology Add-On Amount
width: 10.0
+ reference: https://resdac.org/cms-data/variables/new-technology-add-amount
type: INT
- BASE_OPRTG_DRG_AMT:
description:
@@ -14478,6 +16484,7 @@ cms:
original_type: NUM
text: Base Operating DRG Amount
width: 10.0
+ reference: https://resdac.org/cms-data/variables/base-operating-drg-amount
type: INT
- OPRTG_HSP_AMT:
description:
@@ -14485,6 +16492,7 @@ cms:
original_type: NUM
text: Operating Hospital Amount
width: 10.0
+ reference: https://resdac.org/cms-data/variables/operating-hospital-amount
type: INT
- MDCL_SRGCL_GNRL_AMT:
description:
@@ -14492,6 +16500,7 @@ cms:
original_type: NUM
text: Medical/Surgical General Amount
width: 10.0
+ reference: https://resdac.org/cms-data/variables/medicalsurgical-supplies-prosthetic-orthotic-amount
type: INT
- MDCL_SRGCL_NSTRL_AMT:
description:
@@ -14499,6 +16508,7 @@ cms:
original_type: NUM
text: Medical/Surgical Non-Sterile Amount
width: 10.0
+ reference: https://resdac.org/cms-data/variables/medicalsurgical-non-sterile-supplies-amount
type: INT
- MDCL_SRGCL_STRL_AMT:
description:
@@ -14506,6 +16516,7 @@ cms:
original_type: NUM
text: Medical/Surgical Sterile Amount
width: 10.0
+ reference: https://resdac.org/cms-data/variables/medicalsurgical-sterile-supplies-amount
type: INT
- TAKE_HOME_AMT:
description:
@@ -14513,6 +16524,7 @@ cms:
original_type: NUM
text: Take Home Amount
width: 10.0
+ reference: https://resdac.org/cms-data/variables/medicalsurgical-supplies-take-home-amount
type: INT
- PRSTHTC_ORTHTC_AMT:
description:
@@ -14520,6 +16532,7 @@ cms:
original_type: NUM
text: Prosthetic Orthotic Amount
width: 10.0
+ reference: https://resdac.org/cms-data/variables/medicalsurgical-supplies-prosthetic-orthotic-amount
type: INT
- MDCL_SRGCL_PCMKR_AMT:
description:
@@ -14527,6 +16540,7 @@ cms:
original_type: NUM
text: Medical/Surgical Pacemaker Amount
width: 10.0
+ reference: https://resdac.org/cms-data/variables/medicalsurgical-pacemaker-amount
type: INT
- INTRAOCULAR_LENS_AMT:
description:
@@ -14534,6 +16548,7 @@ cms:
original_type: NUM
text: Intraocular Lens Amount
width: 10.0
+ reference: https://resdac.org/cms-data/variables/medicalsurgical-supplies-intraocular-lens-amount
type: INT
- OXYGN_TAKE_HOME_AMT:
description:
@@ -14541,6 +16556,7 @@ cms:
original_type: NUM
text: Oxygen Take Home Amount
width: 10.0
+ reference: https://resdac.org/cms-data/variables/medicalsurgical-supplies-oxygen-take-home-amount
type: INT
- OTHR_IMPLANTS_AMT:
description:
@@ -14548,6 +16564,7 @@ cms:
original_type: NUM
text: Other Implants Amount
width: 10.0
+ reference: https://resdac.org/cms-data/variables/medicalsurgical-supplies-other-implants-amount
type: INT
- OTHR_SUPLIES_DVC_AMT:
description:
@@ -14555,6 +16572,7 @@ cms:
original_type: NUM
text: Other Supplies Device Amount
width: 10.0
+ reference: https://resdac.org/cms-data/variables/medicalsurgical-supplies-other-device-amount
type: INT
- INCDNT_RDLGY_AMT:
description:
@@ -14562,6 +16580,7 @@ cms:
original_type: NUM
text: Incident Radiology Amount
width: 10.0
+ reference: https://resdac.org/cms-data/variables/medicalsurgical-supplies-incident-radiology-amount
type: INT
- INCDNT_DGNSTC_SRVCS_AMT:
description:
@@ -14569,6 +16588,7 @@ cms:
original_type: NUM
text: Incident Diagnostic Services Amount
width: 10.0
+ reference: https://resdac.org/cms-data/variables/medicalsurgical-supplies-incident-diagnostic-services-amount
type: INT
- MDCL_SRGCL_DRSNG_AMT:
description:
@@ -14576,6 +16596,7 @@ cms:
original_type: NUM
text: Medical/Surgical Dressing Amount
width: 10.0
+ reference: https://resdac.org/cms-data/variables/medicalsurgical-dressing-amount
type: INT
- INVSTGTNL_DVC_AMT:
description:
@@ -14583,6 +16604,7 @@ cms:
original_type: NUM
text: Investigational Device Amount
width: 10.0
+ reference: https://resdac.org/cms-data/variables/medicalsurgical-supplies-investigational-device-amount
type: INT
- MDCL_SRGCL_MISC_AMT:
description:
@@ -14590,6 +16612,7 @@ cms:
original_type: NUM
text: Medical/Surgical Miscellaneous Amount
width: 10.0
+ reference: https://resdac.org/cms-data/variables/medical-surgical-miscellaneous-amount
type: INT
- RDLGY_ONCOLOGY_AMT:
description:
@@ -14597,6 +16620,7 @@ cms:
original_type: NUM
text: Radiology/Oncology Amount
width: 10.0
+ reference: https://resdac.org/cms-data/variables/oncology-amount
type: INT
- RDLGY_DGNSTC_AMT:
description:
@@ -14604,6 +16628,7 @@ cms:
original_type: NUM
text: Radiology Diagnostic Amount
width: 10.0
+ reference: https://resdac.org/cms-data/variables/radiology-diagnostic-amount
type: INT
- RDLGY_THRPTC_AMT:
description:
@@ -14611,6 +16636,7 @@ cms:
original_type: NUM
text: Radiology Therapeutic Amount
width: 10.0
+ reference: https://resdac.org/cms-data/variables/radiology-therapeutic-amount
type: INT
- RDLGY_NUCLR_MDCN_AMT:
description:
@@ -14618,6 +16644,7 @@ cms:
original_type: NUM
text: Radiology Nuclear Medicine Amount
width: 10.0
+ reference: https://resdac.org/cms-data/variables/radiology-nuclear-medicine-amount
type: INT
- RDLGY_CT_SCAN_AMT:
description:
@@ -14625,6 +16652,7 @@ cms:
original_type: NUM
text: Radiology CT Scan Amount
width: 10.0
+ reference: https://resdac.org/cms-data/variables/radiology-ct-scan-amount
type: INT
- RDLGY_OTHR_IMGNG_AMT:
description:
@@ -14632,6 +16660,7 @@ cms:
original_type: NUM
text: Radiology Other Imaging Amount
width: 10.0
+ reference: https://resdac.org/cms-data/variables/radiology-other-imaging-amount
type: INT
- OPRTG_ROOM_AMT:
description:
@@ -14639,6 +16668,7 @@ cms:
original_type: NUM
text: Operating Room Amount
width: 10.0
+ reference: https://resdac.org/cms-data/variables/operating-and-recovery-room-amount
type: INT
- OR_LABOR_DLVRY_AMT:
description:
@@ -14646,6 +16676,7 @@ cms:
original_type: NUM
text: O/R Labor Delivery Amount
width: 10.0
+ reference: https://resdac.org/cms-data/variables/labor-room-and-delivery-amount
type: INT
- CRDC_CATHRZTN_AMT:
description:
@@ -14653,6 +16684,7 @@ cms:
original_type: NUM
text: Cardiac Catheterization Amount
width: 10.0
+ reference: https://resdac.org/cms-data/variables/cardiac-catheterization-lab-amount
type: INT
- FILE:
description:
@@ -14661,6 +16693,7 @@ cms:
width: 128
index:
required_before_loading_data: true
+ reference: null
source:
type: file
type: VARCHAR(128)
@@ -14669,6 +16702,7 @@ cms:
original_type: BIGSERIAL
text: Record number in the file
width: null
+ reference: https://resdac.org/cms-data/variables/nch-near-line-record-identification-code-ric
type: BIGSERIAL
- STATE:
description:
@@ -14676,6 +16710,7 @@ cms:
text: SSA standard state code of a beneficiarys residence.
width: 2.0
index: true
+ reference: https://resdac.org/cms-data/variables/state-code-beneficiary-ssa-code
source:
code: GENERATED ALWAYS AS (STATE_CD) STORED
type: generated
@@ -14686,6 +16721,7 @@ cms:
text: Year of MedPAR Record
width: 4.0
index: true
+ reference: https://resdac.org/cms-data/variables/mbsf-cc-30/alzheimers-disease-end-year-indicator
source:
code: GENERATED ALWAYS AS (MEDPAR_YR_NUM) STORED
type: generated
@@ -14696,6 +16732,7 @@ cms:
text: Zip code of the mailing address where the beneficiary may be contacted.
width: 5.0
index: true
+ reference: https://resdac.org/cms-data/variables/zip-code-beneficiary
source:
code: GENERATED ALWAYS AS (BENE_ZIP) STORED
type: generated
@@ -14717,6 +16754,7 @@ cms:
text: Encrypted 723 Beneficiary ID
width: 15.0
index: true
+ reference: https://resdac.org/cms-data/variables/ccw-beneficiary-id
type: VARCHAR(15)
- MEDPARID:
description:
@@ -14724,6 +16762,7 @@ cms:
original_type: CHAR
text: Unique Key for CCW MedPAR Table
width: 15.0
+ reference: https://resdac.org/cms-data/variables/medpar-id-number
type: VARCHAR(15)
- MEDPAR_YR_NUM:
description:
@@ -14731,6 +16770,7 @@ cms:
original_type: CHAR
text: Year of MedPAR Record
width: 4.0
+ reference: https://resdac.org/cms-data/variables/year-medpar-record
type: VARCHAR(4)
- CLM_TYPE:
description:
@@ -14738,6 +16778,7 @@ cms:
original_type: CHAR
text: NCH Claim Type Code
width: 2.0
+ reference: https://resdac.org/cms-data/variables/nch-claim-type-code
type: VARCHAR(2)
- BIC:
description:
@@ -14745,6 +16786,7 @@ cms:
original_type: CHAR
text: BIC reported on first claim included in stay
width: 2.0
+ reference: https://resdac.org/cms-data/variables/bic-reported-first-claim-included-stay
type: VARCHAR(2)
- EQ_BIC:
description:
@@ -14752,6 +16794,7 @@ cms:
original_type: CHAR
text: Equated BIC
width: 2.0
+ reference: https://resdac.org/cms-data/variables/equated-bic
type: VARCHAR(2)
- AGE_CNT:
description:
@@ -14759,6 +16802,7 @@ cms:
original_type: NUM
text: Age as of Date of Admission.
width: 4.0
+ reference: https://resdac.org/cms-data/variables/age-date-admission
type: INT
- SEX:
description:
@@ -14766,6 +16810,7 @@ cms:
original_type: CHAR
text: Sex of Beneficiary
width: 1.0
+ reference: https://resdac.org/sites/datadocumentation.resdac.org/files/Introduction%20to%20DE-SynPUF%20%28Slides%29.pdf
type: VARCHAR(1)
- RACE:
description:
@@ -14773,6 +16818,7 @@ cms:
original_type: CHAR
text: Race of Beneficiary
width: 1.0
+ reference: https://resdac.org/cms-data/variables/beneficiary-race-code-base
type: VARCHAR(1)
- MS_CD:
description:
@@ -14780,6 +16826,7 @@ cms:
original_type: CHAR
text: Reason for entitlement to Medicare benefits as of CLM_THRU_DT
width: 2.0
+ reference: https://resdac.org/cms-data/variables/reason-entitlement-medicare-benefits-clmthrudt
type: VARCHAR(2)
- STATE_CD:
description:
@@ -14787,6 +16834,7 @@ cms:
original_type: CHAR
text: SSA standard state code of a beneficiarys residence.
width: 2.0
+ reference: https://resdac.org/cms-data/variables/state-code-beneficiary-ssa-code
type: VARCHAR(2)
- CNTY_CD:
description:
@@ -14794,6 +16842,7 @@ cms:
original_type: CHAR
text: SSA standard county code of a beneficiarys residence.
width: 3.0
+ reference: https://resdac.org/sites/datadocumentation.resdac.org/files/Introduction%20to%20DE-SynPUF%20%28Slides%29.pdf
type: VARCHAR(3)
- BENE_ZIP:
description:
@@ -14801,6 +16850,7 @@ cms:
original_type: CHAR
text: Zip code of the mailing address where the beneficiary may be contacted.
width: 5.0
+ reference: https://resdac.org/cms-data/variables/zip-code-beneficiary-home-or-mailing-address-latest-year
type: VARCHAR(5)
- DSCHRGCD:
description:
@@ -14808,6 +16858,7 @@ cms:
original_type: CHAR
text: Code identifying status of patient as of CLM_THRU_DT
width: 1.0
+ reference: https://resdac.org/cms-data/variables/code-identifying-status-patient-clmthrudt
type: VARCHAR(1)
- FICARR:
description:
@@ -14815,6 +16866,7 @@ cms:
original_type: CHAR
text: Intermediary processor identification
width: 5.0
+ reference: https://resdac.org/cms-data/variables/fiscal-intermediary-fi-id-number
type: VARCHAR(5)
- WRNGCD:
description:
@@ -14823,6 +16875,7 @@ cms:
text: Warn ind spcfyng dtld billing info obtnd frm clms analyzd for stay
prcss
width: 18.0
+ reference: https://resdac.org/cms-data/variables/warning-indicators-code-specifying-detailed-billing-info
type: VARCHAR(18)
- GHOPDCD:
description:
@@ -14830,6 +16883,7 @@ cms:
original_type: CHAR
text: Code indicating whether or not GHO has paid provider for claim(s)
width: 1.0
+ reference: https://resdac.org/cms-data/variables/code-indicating-whether-group-health-organization-gho-has-paid-provider-claims
type: VARCHAR(1)
- PPS_IND:
description:
@@ -14837,6 +16891,7 @@ cms:
original_type: CHAR
text: Code indicating whether or not facility is being paid under PPS
width: 1.0
+ reference: https://resdac.org/cms-data/variables/prospective-payment-system-pps-indicator-code
type: VARCHAR(1)
- ORGNPINM:
description:
@@ -14844,6 +16899,7 @@ cms:
original_type: CHAR
text: Organization NPI Number
width: 10.0
+ reference: https://resdac.org/cms-data/variables/organization-npi-number-ffs
type: VARCHAR(10)
- PRVDRNUM:
description:
@@ -14851,6 +16907,7 @@ cms:
original_type: CHAR
text: MEDPAR Provider Number
width: 10.0
+ reference: https://resdac.org/cms-data/variables/provider-number
type: VARCHAR(10)
- SPCLUNIT:
description:
@@ -14859,6 +16916,7 @@ cms:
text: Special num system code for hosp units that are PPS/SNF SB dsgntn
excl.
width: 1.0
+ reference: https://resdac.org/cms-data/variables/provider-number-special-unit-code
type: VARCHAR(1)
- SSLSSNF:
description:
@@ -14866,6 +16924,7 @@ cms:
original_type: CHAR
text: Code indicating whether stay is short stay, long stay, or SNF
width: 1.0
+ reference: https://resdac.org/cms-data/variables/short-staylong-staysnf-provider-indicator-code
type: VARCHAR(1)
- ACTV_XREF_IND:
description:
@@ -14873,6 +16932,7 @@ cms:
original_type: CHAR
text: Active Cross-Refference Indicator
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-active-cross-reference-indicator
type: VARCHAR(1)
- SLCT_RSN_CD:
description:
@@ -14880,6 +16940,7 @@ cms:
original_type: CHAR
text: Specifies whether this record is a case or control record.
width: 1.0
+ reference: https://resdac.org/cms-data/variables/specifies-whether-record-case-or-control-record
type: VARCHAR(1)
- FACLMCNT:
description:
@@ -14887,6 +16948,7 @@ cms:
original_type: NUM
text: Claims (final action) included in stay
width: 5.0
+ reference: https://resdac.org/cms-data/variables/number-claims-final-action-included-stay
type: INT
- ACRTNDT:
description:
@@ -14895,6 +16957,7 @@ cms:
text: Date latest claim incl in stay accreted to bene mstr rec at the
CWF host
width: 8.0
+ reference: https://resdac.org/cms-data/variables/latest-claim-accretion-date
type: DATE
- EXHST_DT:
description:
@@ -14902,6 +16965,7 @@ cms:
original_type: DATE
text: Last date beneficiary had Medicare coverage
width: 8.0
+ reference: https://resdac.org/cms-data/variables/beneficiary-medicare-benefit-exhausted-date
type: DATE
- QLFYFROM:
description:
@@ -14909,6 +16973,7 @@ cms:
original_type: DATE
text: Beginning date of beneficiarys qualifying stay
width: 8.0
+ reference: https://resdac.org/cms-data/variables/beginning-date-beneficiarys-qualifying-snf-stay
type: DATE
- QLFYTHRU:
description:
@@ -14916,6 +16981,7 @@ cms:
original_type: DATE
text: Ending date of beneficiarys qualifying stay
width: 8.0
+ reference: https://resdac.org/cms-data/variables/ending-date-beneficiarys-qualifying-snf-stay
type: DATE
- SRC_ADMS:
description:
@@ -14924,6 +16990,7 @@ cms:
text: Admssn to an Inp facility or, for newborn admssn, type of delivery
code
width: 1.0
+ reference: https://resdac.org/cms-data/variables/source-admission-inpatient-facility-newborn-admit-type-delivery-code
type: VARCHAR(1)
- TYPE_ADM:
description:
@@ -14932,6 +16999,7 @@ cms:
text: Type and priority of benes admission to facility for Inp hosp stay
code
width: 1.0
+ reference: https://resdac.org/cms-data/variables/inpatient-admission-type-code
type: VARCHAR(1)
- ADMSNDAY:
description:
@@ -14939,6 +17007,7 @@ cms:
original_type: CHAR
text: Code indicating day of week beneficiary was admitted to facility.
width: 1.0
+ reference: https://resdac.org/cms-data/variables/code-indicating-day-week-beneficiary-was-admitted-facility
type: VARCHAR(1)
- ADMSNDT:
description:
@@ -14946,6 +17015,7 @@ cms:
original_type: DATE
text: Date beneficiary admitted for Inpatient care or date care started
width: 8.0
+ reference: https://resdac.org/cms-data/variables/date-beneficiary-admitted-inpatient-care-or-date-care-started
type: DATE
- DSCHRGDT:
description:
@@ -14953,6 +17023,7 @@ cms:
original_type: DATE
text: Date beneficiary was discharged or died
width: 8.0
+ reference: https://resdac.org/cms-data/variables/discharge-date
type: DATE
- DSTNTNCD:
description:
@@ -14960,6 +17031,7 @@ cms:
original_type: CHAR
text: Destination upon discharge from facility code
width: 2.0
+ reference: https://resdac.org/cms-data/variables/medpar-discharge-destination-code
type: VARCHAR(2)
- CVRLVLDT:
description:
@@ -14967,6 +17039,7 @@ cms:
original_type: DATE
text: Date covered level of care ended in a SNF
width: 8.0
+ reference: null
type: DATE
- DEATHDT:
description:
@@ -14974,6 +17047,7 @@ cms:
original_type: DATE
text: Date beneficiary died
width: 8.0
+ reference: https://resdac.org/cms-data/variables/date-death
type: DATE
- DEATHCD:
description:
@@ -14981,6 +17055,7 @@ cms:
original_type: CHAR
text: Death Date Verification Code
width: 1.0
+ reference: https://resdac.org/cms-data/variables/death-date-verification-code
type: VARCHAR(1)
- DEATHDAY:
description:
@@ -14988,6 +17063,7 @@ cms:
original_type: NUM
text: Days from date admitted to facility to date of death
width: 7.0
+ reference: https://resdac.org/cms-data/variables/days-date-admitted-facility-date-death
type: INT
- SSICD:
description:
@@ -14995,6 +17071,7 @@ cms:
original_type: CHAR
text: MEDPAR Internal Use SSI Indicator Code
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-internal-use-ssi-indicator-code
type: VARCHAR(1)
- SSIDAY:
description:
@@ -15002,6 +17079,7 @@ cms:
original_type: NUM
text: MEDPAR Internal Use SSI Day Count
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-internal-use-ssi-day-count
type: INT
- INTRNL_USE_SSI_DATA:
description:
@@ -15009,6 +17087,7 @@ cms:
original_type: CHAR
text: Internal Use SSI Data
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-internal-use-ssi-data
type: VARCHAR(1)
- IPSBCD:
description:
@@ -15016,6 +17095,7 @@ cms:
original_type: CHAR
text: For internal Use Only. IPSB Code
width: 3.0
+ reference: https://resdac.org/cms-data/variables/medpar-internal-use-ipsb-code
type: VARCHAR(3)
- FILDTCD:
description:
@@ -15023,6 +17103,7 @@ cms:
original_type: CHAR
text: For internal use only. Fiscal year/calendar year segments.
width: 1.0
+ reference: https://resdac.org/cms-data/variables/internal-use-only-fiscal-yearcalendar-year-segments
type: VARCHAR(1)
- SMPLSIZE:
description:
@@ -15030,6 +17111,7 @@ cms:
original_type: CHAR
text: For internal use. MEDPAR sample size.
width: 1.0
+ reference: https://resdac.org/cms-data/variables/internal-use-medpar-sample-size
type: VARCHAR(1)
- LOSCNT:
description:
@@ -15037,6 +17119,7 @@ cms:
original_type: NUM
text: Days of beneficiarys stay in a hospital/SNF
width: 7.0
+ reference: https://resdac.org/cms-data/variables/days-beneficiarys-stay-hospitalsnf
type: INT
- OUTLRDAY:
description:
@@ -15045,6 +17128,7 @@ cms:
text: Days paid as outliers (either day or cost) under PPS beyond DRG
threshld
width: 5.0
+ reference: https://resdac.org/cms-data/variables/days-paid-outliers-either-day-or-cost-under-pps-beyond-drg-threshold
type: INT
- UTIL_DAY:
description:
@@ -15052,6 +17136,7 @@ cms:
original_type: NUM
text: Covered days of care chargeable to Medicare utilization for stay
width: 7.0
+ reference: https://resdac.org/cms-data/variables/covered-days-care-chargeable-medicare-utilization-stay
type: INT
- COIN_DAY:
description:
@@ -15059,6 +17144,7 @@ cms:
original_type: NUM
text: MEDPAR Beneficiary Total Coinsurance Day Count
width: 5.0
+ reference: https://resdac.org/cms-data/variables/medpar-beneficiary-total-coinsurance-day-count
type: INT
- LRD_USE:
description:
@@ -15066,6 +17152,7 @@ cms:
original_type: NUM
text: Lifetime reserve days (LRD) used by beneficiary for stay
width: 5.0
+ reference: https://resdac.org/cms-data/variables/lifetime-reserve-days-lrd-used-beneficiary-stay
type: INT
- COIN_AMT:
description:
@@ -15073,6 +17160,7 @@ cms:
original_type: NUM
text: Beneficiarys liability for part A coinsurance for stay ($)
width: 10.0
+ reference: https://resdac.org/cms-data/variables/beneficiarys-liability-part-coinsurance-stay
type: INT
- DED_AMT:
description:
@@ -15080,6 +17168,7 @@ cms:
original_type: NUM
text: Beneficiarys liability for stay ($)
width: 10.0
+ reference: https://resdac.org/cms-data/variables/beneficiarys-liability-deductible-stay
type: INT
- BLDDEDAM:
description:
@@ -15087,6 +17176,7 @@ cms:
original_type: NUM
text: Beneficiarys liability for blood deductible for stay ($)
width: 10.0
+ reference: https://resdac.org/cms-data/variables/beneficiarys-liability-blood-deductible-stay
type: INT
- PRPAY_CD:
description:
@@ -15094,6 +17184,7 @@ cms:
original_type: CHAR
text: Primary payer responsibility code
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-beneficiary-primary-payer-code
type: VARCHAR(1)
- PRPAYAMT:
description:
@@ -15102,6 +17193,7 @@ cms:
text: Primry payer other than Medicare for covered Medicare chrgs for
stay ($)
width: 10.0
+ reference: https://resdac.org/cms-data/variables/primary-payer-paid-amount
type: INT
- DRG_CD:
description:
@@ -15109,6 +17201,7 @@ cms:
original_type: CHAR
text: DRG Code
width: 3.0
+ reference: https://resdac.org/cms-data/variables/diagnosis-related-group-drg-code
type: VARCHAR(3)
- OUTLR_CD:
description:
@@ -15116,6 +17209,7 @@ cms:
original_type: CHAR
text: Cost or Day Outlier code
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-drgoutlier-stay-code
type: VARCHAR(1)
- OUTLRAMT:
description:
@@ -15124,6 +17218,7 @@ cms:
text: Addtnl approved due to outlier situation over DRG allowance for
stay ($)
width: 10.0
+ reference: https://resdac.org/cms-data/variables/drg-outlier-approved-payment-amount
type: INT
- DRGPRICE:
description:
@@ -15132,6 +17227,7 @@ cms:
text: Wld hv bn pd if no dedctbls,coinsrnc,prmry payrs,otlrs were invlvd
($)
width: 10.0
+ reference: https://resdac.org/cms-data/variables/drg-price-amount
type: INT
- DISP_SHR:
description:
@@ -15140,6 +17236,7 @@ cms:
text: Over the DRG amount for disproportionate share hospital for stay
($)
width: 10.0
+ reference: https://resdac.org/cms-data/variables/inpatient-disproportionate-share-dsh-amount
type: INT
- IME_AMT:
description:
@@ -15147,6 +17244,7 @@ cms:
original_type: NUM
text: Additional payment made to teaching hospitals for IME for stay ($)
width: 10.0
+ reference: https://resdac.org/cms-data/variables/indirect-medical-education-ime-amount
type: INT
- PASSTHRU:
description:
@@ -15154,6 +17252,7 @@ cms:
original_type: NUM
text: Total of all claim pass thru for stay ($)
width: 10.0
+ reference: https://resdac.org/cms-data/variables/pass-thru-diem-amount-stay
type: INT
- PPS_CPTL:
description:
@@ -15161,6 +17260,7 @@ cms:
original_type: NUM
text: Total payable for capital PPS ($)
width: 10.0
+ reference: https://resdac.org/cms-data/variables/total-pps-capital-amount
type: INT
- IP_LOW_VOL_PYMT_AMT:
description:
@@ -15168,6 +17268,7 @@ cms:
original_type: NUM
text: Inpatient Low Volume Payment Amount.
width: 10.0
+ reference: https://resdac.org/cms-data/variables/inpatient-low-volume-payment-amount
type: INT
- TOTCHRG:
description:
@@ -15176,6 +17277,7 @@ cms:
text: Total all charges for all srvcs provided to beneficiary for stay
($)
width: 10.0
+ reference: https://resdac.org/cms-data/variables/total-charge-amount
type: INT
- CVRCHRG:
description:
@@ -15183,6 +17285,7 @@ cms:
original_type: NUM
text: Portion of total charges covered by Medicare for stay ($)
width: 10.0
+ reference: https://resdac.org/cms-data/variables/total-covered-charge-amount
type: INT
- PMT_AMT:
description:
@@ -15191,6 +17294,7 @@ cms:
text: Amt of payment from Medicare trust fund for srvcs covered by claim
($)
width: 10.0
+ reference: https://resdac.org/cms-data/variables/total-medicare-payment-amount
type: INT
- ACMDTNS:
description:
@@ -15199,6 +17303,7 @@ cms:
text: Total charge for all accommodations related to beneficiarys stay
($)
width: 10.0
+ reference: https://resdac.org/cms-data/variables/total-charge-all-accommodations
type: INT
- DPRTMNTL:
description:
@@ -15207,6 +17312,7 @@ cms:
text: Total charge for all ancillary depts related to beneficiarys stay
($)
width: 10.0
+ reference: https://resdac.org/cms-data/variables/total-charge-all-ancillary-departments-related-beneficiarys-stay
type: INT
- PRVTDAY:
description:
@@ -15214,6 +17320,7 @@ cms:
original_type: NUM
text: Private room days used by beneficiary for stay
width: 5.0
+ reference: https://resdac.org/cms-data/variables/private-room-day-count
type: INT
- SPRVTDAY:
description:
@@ -15221,6 +17328,7 @@ cms:
original_type: NUM
text: Semi-private room days used by beneficiary for stay
width: 5.0
+ reference: https://resdac.org/cms-data/variables/semi-private-room-day-count
type: INT
- WARDDAY:
description:
@@ -15228,6 +17336,7 @@ cms:
original_type: NUM
text: Ward days used by beneficiary for stay
width: 5.0
+ reference: https://resdac.org/cms-data/variables/ward-day-count
type: INT
- ICARECNT:
description:
@@ -15235,6 +17344,7 @@ cms:
original_type: NUM
text: Intensive care days used by beneficiary for stay
width: 5.0
+ reference: https://resdac.org/cms-data/variables/intensive-care-day-count
type: INT
- CRNRYDAY:
description:
@@ -15242,6 +17352,7 @@ cms:
original_type: NUM
text: Coronary care days used by beneficiary for stay
width: 5.0
+ reference: https://resdac.org/cms-data/variables/coronary-care-day-count
type: INT
- PRVTAMT:
description:
@@ -15249,6 +17360,7 @@ cms:
original_type: NUM
text: Private room accommodations related to beneficiarys stay ($)
width: 10.0
+ reference: https://resdac.org/cms-data/variables/private-room-charge-amount
type: INT
- SPRVTAMT:
description:
@@ -15256,6 +17368,7 @@ cms:
original_type: NUM
text: Semi-private room accommodations related to beneficiarys stay ($)
width: 10.0
+ reference: https://resdac.org/cms-data/variables/semi-private-room-charge-amount
type: INT
- WARDAMT:
description:
@@ -15263,6 +17376,7 @@ cms:
original_type: NUM
text: Ward accommodations related to beneficiarys stay ($)
width: 10.0
+ reference: https://resdac.org/cms-data/variables/ward-charge-amount
type: INT
- ICAREAMT:
description:
@@ -15270,6 +17384,7 @@ cms:
original_type: NUM
text: Intensive care accommodations related to beneficiarys stay ($)
width: 10.0
+ reference: https://resdac.org/cms-data/variables/intensive-care-charge-amount
type: INT
- CRNRYAMT:
description:
@@ -15277,6 +17392,7 @@ cms:
original_type: NUM
text: Coronary care accommodations related to beneficiarys stay ($)
width: 10.0
+ reference: https://resdac.org/cms-data/variables/coronary-care-charge-amount
type: INT
- OTHRAMT:
description:
@@ -15284,6 +17400,7 @@ cms:
original_type: NUM
text: Other services related to beneficiarys stay ($)
width: 10.0
+ reference: https://resdac.org/cms-data/variables/other-service-charge-amount
type: INT
- PHRMCAMT:
description:
@@ -15291,6 +17408,7 @@ cms:
original_type: NUM
text: Pharmaceutical costs related to beneficiarys stay ($)
width: 10.0
+ reference: https://resdac.org/cms-data/variables/pharmacy-charge-amount
type: INT
- SUPLYAMT:
description:
@@ -15298,6 +17416,7 @@ cms:
original_type: NUM
text: Medical/surgical supplies related to beneficiarys stay ($)
width: 10.0
+ reference: https://resdac.org/cms-data/variables/medicalsurgical-supplies-charge-amount
type: INT
- DME_AMT:
description:
@@ -15305,6 +17424,7 @@ cms:
original_type: NUM
text: DME related to beneficiarys stay ($)
width: 10.0
+ reference: https://resdac.org/cms-data/variables/durable-medical-equipment-dme-charge-amount
type: INT
- UDME_AMT:
description:
@@ -15312,6 +17432,7 @@ cms:
original_type: NUM
text: Used DME related to beneficiarys stay ($)
width: 10.0
+ reference: https://resdac.org/cms-data/variables/used-durable-medical-equipment-dme-charge-amount
type: INT
- PHYTHAMT:
description:
@@ -15319,6 +17440,7 @@ cms:
original_type: NUM
text: Physical therapy services provided during beneficiarys stay ($)
width: 10.0
+ reference: https://resdac.org/cms-data/variables/physical-therapy-charge-amount
type: INT
- OCPTLAMT:
description:
@@ -15327,6 +17449,7 @@ cms:
text: Occupational therapy services provided during beneficiarys stay
($)
width: 10.0
+ reference: https://resdac.org/cms-data/variables/occupational-therapy-charge-amount
type: INT
- SPCH_AMT:
description:
@@ -15334,6 +17457,7 @@ cms:
original_type: NUM
text: Speech pathology services provided during beneficiarys stay ($)
width: 10.0
+ reference: https://resdac.org/cms-data/variables/speech-pathology-charge-amount
type: INT
- INHLTAMT:
description:
@@ -15341,6 +17465,7 @@ cms:
original_type: NUM
text: Inhalation therapy services provided during beneficiarys stay ($)
width: 10.0
+ reference: https://resdac.org/cms-data/variables/inhalation-therapy-charge-amount
type: INT
- BLOODAMT:
description:
@@ -15348,6 +17473,7 @@ cms:
original_type: NUM
text: Blood provided during beneficiarys stay ($)
width: 10.0
+ reference: https://resdac.org/cms-data/variables/blood-charge-amount
type: INT
- BLDADMIN:
description:
@@ -15355,6 +17481,7 @@ cms:
original_type: NUM
text: Blood storage and processing related to beneficiarys stay ($)
width: 10.0
+ reference: https://resdac.org/cms-data/variables/blood-storage-and-processing-charge-amount
type: INT
- BLDFRNSH:
description:
@@ -15363,6 +17490,7 @@ cms:
text: Quantity of blood (whole pints) furnished to beneficiary during
stay
width: 5.0
+ reference: https://resdac.org/cms-data/variables/blood-pints-furnished-quantity
type: INT
- OROOMAMT:
description:
@@ -15371,6 +17499,7 @@ cms:
text: OR, recovery rm, and labor rm delivery used by bene during stay
($)
width: 10.0
+ reference: https://resdac.org/cms-data/variables/operating-room-charge-amount
type: INT
- LTHTRPSY:
description:
@@ -15378,6 +17507,7 @@ cms:
original_type: NUM
text: Lithotripsy services provided during beneficiarys stay ($)
width: 10.0
+ reference: https://resdac.org/cms-data/variables/lithotripsy-charge-amount
type: INT
- CRDLGY:
description:
@@ -15386,6 +17516,7 @@ cms:
text: Cardiology services and ECG(s) provided during beneficiarys stay
($)
width: 10.0
+ reference: https://resdac.org/cms-data/variables/cardiology-charge-amount
type: INT
- ANSTHSA:
description:
@@ -15393,6 +17524,7 @@ cms:
original_type: NUM
text: Anesthesia services provided during beneficiarys stay ($)
width: 10.0
+ reference: https://resdac.org/cms-data/variables/anesthesia-charge-amount
type: INT
- LAB_AMT:
description:
@@ -15400,6 +17532,7 @@ cms:
original_type: NUM
text: Laboratory costs related to beneficiarys stay ($)
width: 10.0
+ reference: https://resdac.org/cms-data/variables/laboratory-charge-amount
type: INT
- RDLGYAMT:
description:
@@ -15407,6 +17540,7 @@ cms:
original_type: NUM
text: Radiology costs (excluding MRI) related to a beneficiarys stay ($)
width: 10.0
+ reference: https://resdac.org/cms-data/variables/radiology-charge-amount-excluding-mri
type: INT
- MRI_AMT:
description:
@@ -15414,6 +17548,7 @@ cms:
original_type: NUM
text: MRI services provided during beneficiarys stay ($)
width: 10.0
+ reference: https://resdac.org/cms-data/variables/magnetic-resonance-imaging-mri-charge-amount
type: INT
- OPSRVC:
description:
@@ -15421,6 +17556,7 @@ cms:
original_type: NUM
text: Outpatient services provided during beneficiarys stay ($)
width: 10.0
+ reference: https://resdac.org/cms-data/variables/outpatient-service-charge-amount
type: INT
- ER_AMT:
description:
@@ -15428,6 +17564,7 @@ cms:
original_type: NUM
text: Emergency room services provided during beneficiarys stay ($)
width: 10.0
+ reference: https://resdac.org/cms-data/variables/emergency-room-er-charge-amount
type: INT
- AMBLNC:
description:
@@ -15435,6 +17572,7 @@ cms:
original_type: NUM
text: Ambulance services related to beneficiarys stay ($)
width: 10.0
+ reference: https://resdac.org/cms-data/variables/ambulance-charge-amount
type: INT
- PROFFEES:
description:
@@ -15442,6 +17580,7 @@ cms:
original_type: NUM
text: Professional fees related to beneficiarys stay ($)
width: 10.0
+ reference: https://resdac.org/cms-data/variables/professional-fees-charge-amount
type: INT
- ORGNAMT:
description:
@@ -15450,6 +17589,7 @@ cms:
text: Organ acquisition or oth donor bank srvcs related to benes stay
($)
width: 10.0
+ reference: https://resdac.org/cms-data/variables/organ-acquisition-or-other-donor-bank-charge-amount
type: INT
- ESRDSETG:
description:
@@ -15457,6 +17597,7 @@ cms:
original_type: NUM
text: ESRD services related to beneficiarys stay ($)
width: 10.0
+ reference: https://resdac.org/cms-data/variables/end-stage-renal-disease-esrd-charge-amount
type: INT
- CLNC_AMT:
description:
@@ -15464,6 +17605,7 @@ cms:
original_type: NUM
text: Clinic visits related to beneficiarys stay ($)
width: 10.0
+ reference: https://resdac.org/cms-data/variables/clinic-visit-charge-amount
type: INT
- ICUINDCD:
description:
@@ -15471,6 +17613,7 @@ cms:
original_type: CHAR
text: ICU type code
width: 1.0
+ reference: https://resdac.org/cms-data/variables/intensive-care-unit-icu-indicator-code
type: VARCHAR(1)
- CRNRY_CD:
description:
@@ -15478,6 +17621,7 @@ cms:
original_type: CHAR
text: Coronary care unit type code
width: 1.0
+ reference: https://resdac.org/cms-data/variables/coronary-care-unit-ccu-indicator-code
type: VARCHAR(1)
- PHRMCYCD:
description:
@@ -15485,6 +17629,7 @@ cms:
original_type: CHAR
text: Drugs type code
width: 1.0
+ reference: https://resdac.org/cms-data/variables/pharmacy-indicator-code
type: VARCHAR(1)
- TRNSPLNT:
description:
@@ -15492,6 +17637,7 @@ cms:
original_type: CHAR
text: Organ transplant code
width: 1.0
+ reference: https://resdac.org/cms-data/variables/organ-transplant-indicator-code
type: VARCHAR(1)
- ONCLGYSW:
description:
@@ -15499,6 +17645,7 @@ cms:
original_type: CHAR
text: Radiology oncology services indicator
width: 1.0
+ reference: https://resdac.org/cms-data/variables/oncology-indicator
type: VARCHAR(1)
- DGNSTCSW:
description:
@@ -15506,6 +17653,7 @@ cms:
original_type: CHAR
text: Radiology diagnostic services indicator
width: 1.0
+ reference: https://resdac.org/cms-data/variables/diagnostic-radiology-indicator
type: VARCHAR(1)
- THRPTCSW:
description:
@@ -15513,6 +17661,7 @@ cms:
original_type: CHAR
text: Radiology therapeutic services indicator
width: 1.0
+ reference: https://resdac.org/cms-data/variables/therapeutic-radiology-indicator
type: VARCHAR(1)
- NUCLR_SW:
description:
@@ -15520,6 +17669,7 @@ cms:
original_type: CHAR
text: Radiology nuclear medicine services indicator
width: 1.0
+ reference: https://resdac.org/cms-data/variables/radiology-nuclear-medicine-indicator
type: VARCHAR(1)
- CTSCANSW:
description:
@@ -15527,6 +17677,7 @@ cms:
original_type: CHAR
text: Radiology computed tomographic (CT) scan services indicator
width: 1.0
+ reference: https://resdac.org/cms-data/variables/radiology-computed-tomographic-ct-scan-indicator
type: VARCHAR(1)
- IMGNG_SW:
description:
@@ -15534,6 +17685,7 @@ cms:
original_type: CHAR
text: Radiology other imaging services indicator
width: 1.0
+ reference: https://resdac.org/cms-data/variables/radiology-other-imaging-indicator
type: VARCHAR(1)
- OPSRVCCD:
description:
@@ -15541,6 +17693,7 @@ cms:
original_type: CHAR
text: Outpatient services/ambulatory surgical care code
width: 1.0
+ reference: https://resdac.org/cms-data/variables/outpatient-servicesambulatory-surgical-care-indicator-code
type: VARCHAR(1)
- ORGNCD:
description:
@@ -15548,6 +17701,7 @@ cms:
original_type: CHAR
text: Organ acquisition type code
width: 2.0
+ reference: https://resdac.org/cms-data/variables/organ-acquisition-type-code
type: VARCHAR(2)
- ESRD_CD:
description:
@@ -15555,6 +17709,7 @@ cms:
original_type: CHAR
text: ESRD condition code
width: 2.0
+ reference: https://resdac.org/cms-data/variables/end-stage-renal-disease-esrd-condition-indicator-code
type: VARCHAR(2)
- ESRDSTG1:
description:
@@ -15562,6 +17717,7 @@ cms:
original_type: CHAR
text: Dialysis type code I
width: 2.0
+ reference: https://resdac.org/cms-data/variables/dialysis-service-type-code-1
type: VARCHAR(2)
- ESRDSTG2:
description:
@@ -15569,6 +17725,7 @@ cms:
original_type: CHAR
text: Dialysis type code II
width: 2.0
+ reference: https://resdac.org/cms-data/variables/dialysis-service-type-code-2
type: VARCHAR(2)
- ESRDSTG3:
description:
@@ -15576,6 +17733,7 @@ cms:
original_type: CHAR
text: Dialysis type code III
width: 2.0
+ reference: https://resdac.org/cms-data/variables/dialysis-service-type-code-3
type: VARCHAR(2)
- ESRDSTG4:
description:
@@ -15583,6 +17741,7 @@ cms:
original_type: CHAR
text: Dialysis type code IV
width: 2.0
+ reference: https://resdac.org/cms-data/variables/dialysis-service-type-code-4
type: VARCHAR(2)
- ESRDSTG5:
description:
@@ -15590,6 +17749,7 @@ cms:
original_type: CHAR
text: Dialysis type code V
width: 2.0
+ reference: https://resdac.org/cms-data/variables/dialysis-service-type-code-5
type: VARCHAR(2)
- AD_DGNS:
description:
@@ -15597,6 +17757,7 @@ cms:
original_type: CHAR
text: Initial diagnosis at time of admission
width: 7.0
+ reference: https://resdac.org/cms-data/variables/admitting-diagnosis-code
type: VARCHAR(7)
- ADMTG_DGNS_VRSN_CD:
description:
@@ -15604,6 +17765,7 @@ cms:
original_type: CHAR
text: MEDPAR Admitting Diagnosis Version Code
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-admitting-diagnosis-version-code-icd-9-or-icd-10
type: VARCHAR(1)
- DGNSCNT:
description:
@@ -15611,6 +17773,7 @@ cms:
original_type: NUM
text: Diagnosis codes included in stay
width: 3.0
+ reference: https://resdac.org/cms-data/variables/count-diagnosis-codes
type: INT
- DGNS_VRSN_CD:
description:
@@ -15619,6 +17782,7 @@ cms:
text: Version Code - Indicate if diagnosis code is ICD-9 or ICD-10 (Earlier
Ve
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-version-code-icd-9-or-icd-10
type: VARCHAR(1)
- DGNS_VRSN_CD_1:
description:
@@ -15626,6 +17790,7 @@ cms:
original_type: CHAR
text: Version Code 01 - Indicate if diagnosis code is ICD-9 or ICD-10.
width: 1.0
+ reference: https://resdac.org/cms-data/variables/diagnosis-version-code-1-icd-9-or-icd-10
type: VARCHAR(1)
- DGNS_VRSN_CD_2:
description:
@@ -15633,6 +17798,7 @@ cms:
original_type: CHAR
text: Version Code 02 - Indicate if diagnosis code is ICD-9 or ICD-10.
width: 1.0
+ reference: https://resdac.org/cms-data/variables/diagnosis-version-code-2-icd-9-or-icd-10
type: VARCHAR(1)
- DGNS_VRSN_CD_3:
description:
@@ -15640,6 +17806,7 @@ cms:
original_type: CHAR
text: Version Code 03 - Indicate if diagnosis code is ICD-9 or ICD-10.
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-version-code-3-icd-9-or-icd-10
type: VARCHAR(1)
- DGNS_VRSN_CD_4:
description:
@@ -15647,6 +17814,7 @@ cms:
original_type: CHAR
text: Version Code 04 - Indicate if diagnosis code is ICD-9 or ICD-10.
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-version-code-4-icd-9-or-icd-10
type: VARCHAR(1)
- DGNS_VRSN_CD_5:
description:
@@ -15654,6 +17822,7 @@ cms:
original_type: CHAR
text: Version Code 05 - Indicate if diagnosis code is ICD-9 or ICD-10.
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-version-code-5-icd-9-or-icd-10
type: VARCHAR(1)
- DGNS_VRSN_CD_6:
description:
@@ -15661,6 +17830,7 @@ cms:
original_type: CHAR
text: Version Code 06 - Indicate if diagnosis code is ICD-9 or ICD-10.
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-version-code-6-icd-9-or-icd-10
type: VARCHAR(1)
- DGNS_VRSN_CD_7:
description:
@@ -15668,6 +17838,7 @@ cms:
original_type: CHAR
text: Version Code 07 - Indicate if diagnosis code is ICD-9 or ICD-10.
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-version-code-7-icd-9-or-icd-10
type: VARCHAR(1)
- DGNS_VRSN_CD_8:
description:
@@ -15675,6 +17846,7 @@ cms:
original_type: CHAR
text: Version Code 08 - Indicate if diagnosis code is ICD-9 or ICD-10.
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-version-code-8-icd-9-or-icd-10
type: VARCHAR(1)
- DGNS_VRSN_CD_9:
description:
@@ -15682,6 +17854,7 @@ cms:
original_type: CHAR
text: Version Code 09 - Indicate if diagnosis code is ICD-9 or ICD-10.
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-version-code-9-icd-9-or-icd-10
type: VARCHAR(1)
- DGNS_VRSN_CD_10:
description:
@@ -15689,6 +17862,7 @@ cms:
original_type: CHAR
text: Version Code 10 - Indicate if diagnosis code is ICD-9 or ICD-10.
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-version-code-10-icd-9-or-icd-10
type: VARCHAR(1)
- DGNS_VRSN_CD_11:
description:
@@ -15696,6 +17870,7 @@ cms:
original_type: CHAR
text: Version Code 11 - Indicate if diagnosis code is ICD-9 or ICD-10.
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-version-code-11-icd-9-or-icd-10
type: VARCHAR(1)
- DGNS_VRSN_CD_12:
description:
@@ -15703,6 +17878,7 @@ cms:
original_type: CHAR
text: Version Code 12 - Indicate if diagnosis code is ICD-9 or ICD-10.
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-version-code-12-icd-9-or-icd-10
type: VARCHAR(1)
- DGNS_VRSN_CD_13:
description:
@@ -15710,6 +17886,7 @@ cms:
original_type: CHAR
text: Version Code 13 - Indicate if diagnosis code is ICD-9 or ICD-10.
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-version-code-13-icd-9-or-icd-10
type: VARCHAR(1)
- DGNS_VRSN_CD_14:
description:
@@ -15717,6 +17894,7 @@ cms:
original_type: CHAR
text: Version Code 14 - Indicate if diagnosis code is ICD-9 or ICD-10.
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-version-code-14-icd-9-or-icd-10
type: VARCHAR(1)
- DGNS_VRSN_CD_15:
description:
@@ -15724,6 +17902,7 @@ cms:
original_type: CHAR
text: Version Code 15 - Indicate if diagnosis code is ICD-9 or ICD-10.
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-version-code-15-icd-9-or-icd-10
type: VARCHAR(1)
- DGNS_VRSN_CD_16:
description:
@@ -15731,6 +17910,7 @@ cms:
original_type: CHAR
text: Version Code 16 - Indicate if diagnosis code is ICD-9 or ICD-10.
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-version-code-16-icd-9-or-icd-10
type: VARCHAR(1)
- DGNS_VRSN_CD_17:
description:
@@ -15738,6 +17918,7 @@ cms:
original_type: CHAR
text: Version Code 17 - Indicate if diagnosis code is ICD-9 or ICD-10.
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-version-code-17-icd-9-or-icd-10
type: VARCHAR(1)
- DGNS_VRSN_CD_18:
description:
@@ -15745,6 +17926,7 @@ cms:
original_type: CHAR
text: Version Code 18 - Indicate if diagnosis code is ICD-9 or ICD-10.
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-version-code-18-icd-9-or-icd-10
type: VARCHAR(1)
- DGNS_VRSN_CD_19:
description:
@@ -15752,6 +17934,7 @@ cms:
original_type: CHAR
text: Version Code 19 - Indicate if diagnosis code is ICD-9 or ICD-10.
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-version-code-19-icd-9-or-icd-10
type: VARCHAR(1)
- DGNS_VRSN_CD_20:
description:
@@ -15759,6 +17942,7 @@ cms:
original_type: CHAR
text: Version Code 20 - Indicate if diagnosis code is ICD-9 or ICD-10.
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-version-code-20-icd-9-or-icd-10
type: VARCHAR(1)
- DGNS_VRSN_CD_21:
description:
@@ -15766,6 +17950,7 @@ cms:
original_type: CHAR
text: Version Code 21 - Indicate if diagnosis code is ICD-9 or ICD-10.
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-version-code-21-icd-9-or-icd-10
type: VARCHAR(1)
- DGNS_VRSN_CD_22:
description:
@@ -15773,6 +17958,7 @@ cms:
original_type: CHAR
text: Version Code 22 - Indicate if diagnosis code is ICD-9 or ICD-10.
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-version-code-22-icd-9-or-icd-10
type: VARCHAR(1)
- DGNS_VRSN_CD_23:
description:
@@ -15780,6 +17966,7 @@ cms:
original_type: CHAR
text: Version Code 23 - Indicate if diagnosis code is ICD-9 or ICD-10.
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-version-code-23-icd-9-or-icd-10
type: VARCHAR(1)
- DGNS_VRSN_CD_24:
description:
@@ -15787,6 +17974,7 @@ cms:
original_type: CHAR
text: Version Code 24 - Indicate if diagnosis code is ICD-9 or ICD-10.
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-version-code-24-icd-9-or-icd-10
type: VARCHAR(1)
- DGNS_VRSN_CD_25:
description:
@@ -15794,6 +17982,7 @@ cms:
original_type: CHAR
text: Version Code 25 - Indicate if diagnosis code is ICD-9 or ICD-10.
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-version-code-25-icd-9-or-icd-10
type: VARCHAR(1)
- DGNSCD1:
description:
@@ -15801,6 +17990,7 @@ cms:
original_type: CHAR
text: Primary ICD-9-CM code
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-principal-diagnosis-code
type: VARCHAR(7)
- DGNSCD2:
description:
@@ -15808,6 +17998,7 @@ cms:
original_type: CHAR
text: ICD-9-CM Diagnosis code II
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-code-2
type: VARCHAR(7)
- DGNSCD3:
description:
@@ -15815,6 +18006,7 @@ cms:
original_type: CHAR
text: ICD-9-CM Diagnosis code III
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-code-3
type: VARCHAR(7)
- DGNSCD4:
description:
@@ -15822,6 +18014,7 @@ cms:
original_type: CHAR
text: ICD-9-CM Diagnosis code IV
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-code-4
type: VARCHAR(7)
- DGNSCD5:
description:
@@ -15829,6 +18022,7 @@ cms:
original_type: CHAR
text: ICD-9-CM Diagnosis code V
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-code-5
type: VARCHAR(7)
- DGNSCD6:
description:
@@ -15836,6 +18030,7 @@ cms:
original_type: CHAR
text: ICD-9-CM Diagnosis code VI
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-code-6
type: VARCHAR(7)
- DGNSCD7:
description:
@@ -15843,6 +18038,7 @@ cms:
original_type: CHAR
text: ICD-9-CM Diagnosis code VII
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-code-7
type: VARCHAR(7)
- DGNSCD8:
description:
@@ -15850,6 +18046,7 @@ cms:
original_type: CHAR
text: ICD-9-CM Diagnosis code VIII
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-code-8
type: VARCHAR(7)
- DGNSCD9:
description:
@@ -15857,6 +18054,7 @@ cms:
original_type: CHAR
text: ICD-9-CM Diagnosis code IX
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-code-9
type: VARCHAR(7)
- DGNSCD10:
description:
@@ -15864,6 +18062,7 @@ cms:
original_type: CHAR
text: ICD-9-CM Diagnosis code X
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-icd-9-cm-diagnosis-code-10
type: VARCHAR(7)
- DGNSCD11:
description:
@@ -15871,6 +18070,7 @@ cms:
original_type: CHAR
text: ICD-9-CM Diagnosis code XI
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-icd-9-cm-diagnosis-code-11
type: VARCHAR(7)
- DGNSCD12:
description:
@@ -15878,6 +18078,7 @@ cms:
original_type: CHAR
text: ICD-9-CM Diagnosis code XII
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-icd-9-cm-diagnosis-code-12
type: VARCHAR(7)
- DGNSCD13:
description:
@@ -15885,6 +18086,7 @@ cms:
original_type: CHAR
text: ICD-9-CM Diagnosis code XIII
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-icd-9-cm-diagnosis-code-13
type: VARCHAR(7)
- DGNSCD14:
description:
@@ -15892,6 +18094,7 @@ cms:
original_type: CHAR
text: ICD-9-CM Diagnosis code XIV
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-icd-9-cm-diagnosis-code-14
type: VARCHAR(7)
- DGNSCD15:
description:
@@ -15899,6 +18102,7 @@ cms:
original_type: CHAR
text: ICD-9-CM Diagnosis code XV
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-icd-9-cm-diagnosis-code-15
type: VARCHAR(7)
- DGNSCD16:
description:
@@ -15906,6 +18110,7 @@ cms:
original_type: CHAR
text: ICD-9-CM Diagnosis code XVI
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-icd-9-cm-diagnosis-code-16
type: VARCHAR(7)
- DGNSCD17:
description:
@@ -15913,6 +18118,7 @@ cms:
original_type: CHAR
text: ICD-9-CM Diagnosis code XVII
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-icd-9-cm-diagnosis-code-17
type: VARCHAR(7)
- DGNSCD18:
description:
@@ -15920,6 +18126,7 @@ cms:
original_type: CHAR
text: ICD-9-CM Diagnosis code XVIII
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-icd-9-cm-diagnosis-code-18
type: VARCHAR(7)
- DGNSCD19:
description:
@@ -15927,6 +18134,7 @@ cms:
original_type: CHAR
text: ICD-9-CM Diagnosis code XIX
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-icd-9-cm-diagnosis-code-19
type: VARCHAR(7)
- DGNSCD20:
description:
@@ -15934,6 +18142,7 @@ cms:
original_type: CHAR
text: ICD-9-CM Diagnosis code XX
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-icd-9-cm-diagnosis-code-20
type: VARCHAR(7)
- DGNSCD21:
description:
@@ -15941,6 +18150,7 @@ cms:
original_type: CHAR
text: ICD-9-CM Diagnosis code XXI
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-icd-9-cm-diagnosis-code-21
type: VARCHAR(7)
- DGNSCD22:
description:
@@ -15948,6 +18158,7 @@ cms:
original_type: CHAR
text: ICD-9-CM Diagnosis code XXII
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-icd-9-cm-diagnosis-code-22
type: VARCHAR(7)
- DGNSCD23:
description:
@@ -15955,6 +18166,7 @@ cms:
original_type: CHAR
text: ICD-9-CM Diagnosis code XXIII
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-icd-9-cm-diagnosis-code-23
type: VARCHAR(7)
- DGNSCD24:
description:
@@ -15962,6 +18174,7 @@ cms:
original_type: CHAR
text: ICD-9-CM Diagnosis code XXIV
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-icd-9-cm-diagnosis-code-24
type: VARCHAR(7)
- DGNSCD25:
description:
@@ -15969,6 +18182,7 @@ cms:
original_type: CHAR
text: ICD-9-CM Diagnosis code XXV
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-icd-9-cm-diagnosis-code-25
type: VARCHAR(7)
- DGNS_POA:
description:
@@ -15976,6 +18190,7 @@ cms:
original_type: CHAR
text: Diagnosis Code POA Array
width: 10.0
+ reference: https://resdac.org/cms-data/variables/diagnosis-code-poa-array
type: VARCHAR(10)
- POA_DGNS_CD_CNT:
description:
@@ -15983,6 +18198,7 @@ cms:
original_type: NUM
text: MEDPAR Claim Present on Admission Diagnosis Code Count
width: 3.0
+ reference: https://resdac.org/cms-data/variables/count-present-admission-poa-diagnosis-codes
type: INT
- POA_DGNS_1_IND_CD:
description:
@@ -15990,6 +18206,7 @@ cms:
original_type: CHAR
text: Diagnosis Present on Admission Indicator 1
width: 1.0
+ reference: https://resdac.org/cms-data/variables/diagnosis-1-present-admission-poa-indicator-code
type: VARCHAR(1)
- POA_DGNS_2_IND_CD:
description:
@@ -15997,6 +18214,7 @@ cms:
original_type: CHAR
text: Diagnosis Present on Admission Indicator 2
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-present-admission-indicator-2
type: VARCHAR(1)
- POA_DGNS_3_IND_CD:
description:
@@ -16004,6 +18222,7 @@ cms:
original_type: CHAR
text: Diagnosis Present on Admission Indicator 3
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-present-admission-indicator-3
type: VARCHAR(1)
- POA_DGNS_4_IND_CD:
description:
@@ -16011,6 +18230,7 @@ cms:
original_type: CHAR
text: Diagnosis Present on Admission Indicator 4
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-present-admission-indicator-4
type: VARCHAR(1)
- POA_DGNS_5_IND_CD:
description:
@@ -16018,6 +18238,7 @@ cms:
original_type: CHAR
text: Diagnosis Present on Admission Indicator 5
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-present-admission-indicator-5
type: VARCHAR(1)
- POA_DGNS_6_IND_CD:
description:
@@ -16025,6 +18246,7 @@ cms:
original_type: CHAR
text: Diagnosis Present on Admission Indicator 6
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-present-admission-indicator-6
type: VARCHAR(1)
- POA_DGNS_7_IND_CD:
description:
@@ -16032,6 +18254,7 @@ cms:
original_type: CHAR
text: Diagnosis Present on Admission Indicator 7
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-present-admission-indicator-7
type: VARCHAR(1)
- POA_DGNS_8_IND_CD:
description:
@@ -16039,6 +18262,7 @@ cms:
original_type: CHAR
text: Diagnosis Present on Admission Indicator 8
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-present-admission-indicator-8
type: VARCHAR(1)
- POA_DGNS_9_IND_CD:
description:
@@ -16046,6 +18270,7 @@ cms:
original_type: CHAR
text: Diagnosis Present on Admission Indicator 9
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-present-admission-indicator-9
type: VARCHAR(1)
- POA_DGNS_10_IND_CD:
description:
@@ -16053,6 +18278,7 @@ cms:
original_type: CHAR
text: Diagnosis Present on Admission Indicator 10
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-present-admission-indicator-10
type: VARCHAR(1)
- POA_DGNS_11_IND_CD:
description:
@@ -16060,6 +18286,7 @@ cms:
original_type: CHAR
text: Diagnosis Present on Admission Indicator 11
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-present-admission-indicator-11
type: VARCHAR(1)
- POA_DGNS_12_IND_CD:
description:
@@ -16067,6 +18294,7 @@ cms:
original_type: CHAR
text: Diagnosis Present on Admission Indicator 12
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-present-admission-indicator-12
type: VARCHAR(1)
- POA_DGNS_13_IND_CD:
description:
@@ -16074,6 +18302,7 @@ cms:
original_type: CHAR
text: Diagnosis Present on Admission Indicator 13
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-present-admission-indicator-13
type: VARCHAR(1)
- POA_DGNS_14_IND_CD:
description:
@@ -16081,6 +18310,7 @@ cms:
original_type: CHAR
text: Diagnosis Present on Admission Indicator 14
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-present-admission-indicator-14
type: VARCHAR(1)
- POA_DGNS_15_IND_CD:
description:
@@ -16088,6 +18318,7 @@ cms:
original_type: CHAR
text: Diagnosis Present on Admission Indicator 15
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-present-admission-indicator-15
type: VARCHAR(1)
- POA_DGNS_16_IND_CD:
description:
@@ -16095,6 +18326,7 @@ cms:
original_type: CHAR
text: Diagnosis Present on Admission Indicator 16
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-present-admission-indicator-16
type: VARCHAR(1)
- POA_DGNS_17_IND_CD:
description:
@@ -16102,6 +18334,7 @@ cms:
original_type: CHAR
text: Diagnosis Present on Admission Indicator 17
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-present-admission-indicator-17
type: VARCHAR(1)
- POA_DGNS_18_IND_CD:
description:
@@ -16109,6 +18342,7 @@ cms:
original_type: CHAR
text: Diagnosis Present on Admission Indicator 18
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-present-admission-indicator-18
type: VARCHAR(1)
- POA_DGNS_19_IND_CD:
description:
@@ -16116,6 +18350,7 @@ cms:
original_type: CHAR
text: Diagnosis Present on Admission Indicator 19
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-present-admission-indicator-19
type: VARCHAR(1)
- POA_DGNS_20_IND_CD:
description:
@@ -16123,6 +18358,7 @@ cms:
original_type: CHAR
text: Diagnosis Present on Admission Indicator 20
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-present-admission-indicator-20
type: VARCHAR(1)
- POA_DGNS_21_IND_CD:
description:
@@ -16130,6 +18366,7 @@ cms:
original_type: CHAR
text: Diagnosis Present on Admission Indicator 21
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-present-admission-indicator-21
type: VARCHAR(1)
- POA_DGNS_22_IND_CD:
description:
@@ -16137,6 +18374,7 @@ cms:
original_type: CHAR
text: Diagnosis Present on Admission Indicator 22
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-present-admission-indicator-22
type: VARCHAR(1)
- POA_DGNS_23_IND_CD:
description:
@@ -16144,6 +18382,7 @@ cms:
original_type: CHAR
text: Diagnosis Present on Admission Indicator 23
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-present-admission-indicator-23
type: VARCHAR(1)
- POA_DGNS_24_IND_CD:
description:
@@ -16151,6 +18390,7 @@ cms:
original_type: CHAR
text: Diagnosis Present on Admission Indicator 24
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-present-admission-indicator-24
type: VARCHAR(1)
- POA_DGNS_25_IND_CD:
description:
@@ -16158,6 +18398,7 @@ cms:
original_type: CHAR
text: Diagnosis Present on Admission Indicator 25
width: 1.0
+ reference: https://resdac.org/cms-data/variables/diagnosis-e-code-present-admission-indicator-8
type: VARCHAR(1)
- DGNS_E_CD_CNT:
description:
@@ -16165,6 +18406,7 @@ cms:
original_type: NUM
text: MEDPAR Diagnosis E Code Count
width: 3.0
+ reference: https://resdac.org/cms-data/variables/count-diagnosis-e-codes
type: INT
- DGNS_E_VRSN_CD:
description:
@@ -16172,6 +18414,7 @@ cms:
original_type: CHAR
text: MEDPAR Diagnosis E Version Code (Earlier Version)
width: 1.0
+ reference: https://resdac.org/cms-data/variables/diagnosis-e-version-code-earlier-version
type: VARCHAR(1)
- DGNS_E_VRSN_CD_1:
description:
@@ -16179,6 +18422,7 @@ cms:
original_type: CHAR
text: MEDPAR Diagnosis E Version Code 01
width: 1.0
+ reference: https://resdac.org/cms-data/variables/diagnosis-e-version-code-1
type: VARCHAR(1)
- DGNS_E_VRSN_CD_2:
description:
@@ -16186,6 +18430,7 @@ cms:
original_type: CHAR
text: MEDPAR Diagnosis E Version Code 02
width: 1.0
+ reference: https://resdac.org/cms-data/variables/diagnosis-e-version-code-2
type: VARCHAR(1)
- DGNS_E_VRSN_CD_3:
description:
@@ -16193,6 +18438,7 @@ cms:
original_type: CHAR
text: MEDPAR Diagnosis E Version Code 03
width: 1.0
+ reference: https://resdac.org/cms-data/variables/diagnosis-e-version-code-3
type: VARCHAR(1)
- DGNS_E_VRSN_CD_4:
description:
@@ -16200,6 +18446,7 @@ cms:
original_type: CHAR
text: MEDPAR Diagnosis E Version Code 04
width: 1.0
+ reference: https://resdac.org/cms-data/variables/diagnosis-e-version-code-4
type: VARCHAR(1)
- DGNS_E_VRSN_CD_5:
description:
@@ -16207,6 +18454,7 @@ cms:
original_type: CHAR
text: MEDPAR Diagnosis E Version Code 05
width: 1.0
+ reference: https://resdac.org/cms-data/variables/diagnosis-e-version-code-5
type: VARCHAR(1)
- DGNS_E_VRSN_CD_6:
description:
@@ -16214,6 +18462,7 @@ cms:
original_type: CHAR
text: MEDPAR Diagnosis E Version Code 06
width: 1.0
+ reference: https://resdac.org/cms-data/variables/diagnosis-e-version-code-6
type: VARCHAR(1)
- DGNS_E_VRSN_CD_7:
description:
@@ -16221,6 +18470,7 @@ cms:
original_type: CHAR
text: MEDPAR Diagnosis E Version Code 07
width: 1.0
+ reference: https://resdac.org/cms-data/variables/diagnosis-e-version-code-7
type: VARCHAR(1)
- DGNS_E_VRSN_CD_8:
description:
@@ -16228,6 +18478,7 @@ cms:
original_type: CHAR
text: MEDPAR Diagnosis E Version Code 08
width: 1.0
+ reference: https://resdac.org/cms-data/variables/diagnosis-e-version-code-8
type: VARCHAR(1)
- DGNS_E_VRSN_CD_9:
description:
@@ -16235,6 +18486,7 @@ cms:
original_type: CHAR
text: MEDPAR Diagnosis E Version Code 09
width: 1.0
+ reference: https://resdac.org/cms-data/variables/diagnosis-e-version-code-9
type: VARCHAR(1)
- DGNS_E_VRSN_CD_10:
description:
@@ -16242,6 +18494,7 @@ cms:
original_type: CHAR
text: MEDPAR Diagnosis E Version Code 10
width: 1.0
+ reference: https://resdac.org/cms-data/variables/diagnosis-e-version-code-10
type: VARCHAR(1)
- DGNS_E_VRSN_CD_11:
description:
@@ -16249,6 +18502,7 @@ cms:
original_type: CHAR
text: MEDPAR Diagnosis E Version Code 11
width: 1.0
+ reference: https://resdac.org/cms-data/variables/diagnosis-e-version-code-11
type: VARCHAR(1)
- DGNS_E_VRSN_CD_12:
description:
@@ -16256,6 +18510,7 @@ cms:
original_type: CHAR
text: MEDPAR Diagnosis E Version Code 12
width: 1.0
+ reference: https://resdac.org/cms-data/variables/diagnosis-e-version-code-12
type: VARCHAR(1)
- DGNS_E_1_CD:
description:
@@ -16264,6 +18519,7 @@ cms:
text: E Diagnosis Code 1 - Extrnl cause of injury, poisoning, or oth
adverse
width: 7.0
+ reference: https://resdac.org/cms-data/variables/diagnosis-e-version-code-1
type: VARCHAR(7)
- DGNS_E_2_CD:
description:
@@ -16272,6 +18528,7 @@ cms:
text: E Diagnosis Code 2 - Extrnl cause of injury, poisoning, or oth
adverse
width: 7.0
+ reference: https://resdac.org/cms-data/variables/diagnosis-e-code-2
type: VARCHAR(7)
- DGNS_E_3_CD:
description:
@@ -16280,6 +18537,7 @@ cms:
text: E Diagnosis Code 3 - Extrnl cause of injury, poisoning, or oth
adverse
width: 7.0
+ reference: https://resdac.org/cms-data/variables/diagnosis-e-code-3
type: VARCHAR(7)
- DGNS_E_4_CD:
description:
@@ -16288,6 +18546,7 @@ cms:
text: E Diagnosis Code 4 - Extrnl cause of injury, poisoning, or oth
adverse
width: 7.0
+ reference: https://resdac.org/cms-data/variables/diagnosis-e-code-4
type: VARCHAR(7)
- DGNS_E_5_CD:
description:
@@ -16296,6 +18555,7 @@ cms:
text: E Diagnosis Code 5 - Extrnl cause of injury, poisoning, or oth
adverse
width: 7.0
+ reference: https://resdac.org/cms-data/variables/diagnosis-e-code-5
type: VARCHAR(7)
- DGNS_E_6_CD:
description:
@@ -16304,6 +18564,7 @@ cms:
text: E Diagnosis Code 6 - Extrnl cause of injury, poisoning, or oth
adverse
width: 7.0
+ reference: https://resdac.org/cms-data/variables/diagnosis-e-code-6
type: VARCHAR(7)
- DGNS_E_7_CD:
description:
@@ -16312,6 +18573,7 @@ cms:
text: E Diagnosis Code 7 - Extrnl cause of injury, poisoning, or oth
adverse
width: 7.0
+ reference: https://resdac.org/cms-data/variables/diagnosis-e-code-7
type: VARCHAR(7)
- DGNS_E_8_CD:
description:
@@ -16320,6 +18582,7 @@ cms:
text: E Diagnosis Code 8 - Extrnl cause of injury, poisoning, or oth
adverse
width: 7.0
+ reference: https://resdac.org/cms-data/variables/diagnosis-e-code-8
type: VARCHAR(7)
- DGNS_E_9_CD:
description:
@@ -16328,6 +18591,7 @@ cms:
text: E Diagnosis Code 9 - Extrnl cause of injury, poisoning, or oth
adverse
width: 7.0
+ reference: https://resdac.org/cms-data/variables/diagnosis-e-code-9
type: VARCHAR(7)
- DGNS_E_10_CD:
description:
@@ -16336,6 +18600,7 @@ cms:
text: E Diagnosis Code 10 - Extrnl cause of injury, poisoning, or oth
adverse
width: 7.0
+ reference: https://resdac.org/cms-data/variables/diagnosis-e-code-10
type: VARCHAR(7)
- DGNS_E_11_CD:
description:
@@ -16344,6 +18609,7 @@ cms:
text: E Diagnosis Code 11 - Extrnl cause of injury, poisoning, or oth
adverse
width: 7.0
+ reference: https://resdac.org/cms-data/variables/diagnosis-e-code-11
type: VARCHAR(7)
- DGNS_E_12_CD:
description:
@@ -16352,6 +18618,7 @@ cms:
text: E Diagnosis Code 12 - Extrnl cause of injury, poisoning, or oth
adverse
width: 7.0
+ reference: https://resdac.org/cms-data/variables/diagnosis-e-version-code-1
type: VARCHAR(7)
- POA_DGNS_E_CD_CNT:
description:
@@ -16359,6 +18626,7 @@ cms:
original_type: NUM
text: MEDPAR Claim Present on Admission Diagnosis E Code Count
width: 3.0
+ reference: https://resdac.org/cms-data/variables/count-present-admission-poa-diagnosis-e-codes
type: INT
- POA_DGNS_E_1_IND_CD:
description:
@@ -16366,6 +18634,7 @@ cms:
original_type: CHAR
text: Diagnosis E Code Present on Admission Indicator 1
width: 1.0
+ reference: https://resdac.org/cms-data/variables/diagnosis-1-present-admission-poa-indicator-code
type: VARCHAR(1)
- POA_DGNS_E_2_IND_CD:
description:
@@ -16373,6 +18642,7 @@ cms:
original_type: CHAR
text: Diagnosis E Code Present on Admission Indicator 2
width: 1.0
+ reference: https://resdac.org/cms-data/variables/diagnosis-e-code-present-admission-indicator-2
type: VARCHAR(1)
- POA_DGNS_E_3_IND_CD:
description:
@@ -16380,6 +18650,7 @@ cms:
original_type: CHAR
text: Diagnosis E Code Present on Admission Indicator 3
width: 1.0
+ reference: https://resdac.org/cms-data/variables/diagnosis-e-code-present-admission-indicator-3
type: VARCHAR(1)
- POA_DGNS_E_4_IND_CD:
description:
@@ -16387,6 +18658,7 @@ cms:
original_type: CHAR
text: Diagnosis E Code Present on Admission Indicator 4
width: 1.0
+ reference: https://resdac.org/cms-data/variables/diagnosis-e-code-present-admission-indicator-4
type: VARCHAR(1)
- POA_DGNS_E_5_IND_CD:
description:
@@ -16394,6 +18666,7 @@ cms:
original_type: CHAR
text: Diagnosis E Code Present on Admission Indicator 5
width: 1.0
+ reference: https://resdac.org/cms-data/variables/diagnosis-e-code-present-admission-indicator-5
type: VARCHAR(1)
- POA_DGNS_E_6_IND_CD:
description:
@@ -16401,6 +18674,7 @@ cms:
original_type: CHAR
text: Diagnosis E Code Present on Admission Indicator 6
width: 1.0
+ reference: https://resdac.org/cms-data/variables/diagnosis-e-code-present-admission-indicator-6
type: VARCHAR(1)
- POA_DGNS_E_7_IND_CD:
description:
@@ -16408,6 +18682,7 @@ cms:
original_type: CHAR
text: Diagnosis E Code Present on Admission Indicator 7
width: 1.0
+ reference: https://resdac.org/cms-data/variables/diagnosis-e-code-present-admission-indicator-7
type: VARCHAR(1)
- POA_DGNS_E_8_IND_CD:
description:
@@ -16415,6 +18690,7 @@ cms:
original_type: CHAR
text: Diagnosis E Code Present on Admission Indicator 8
width: 1.0
+ reference: https://resdac.org/cms-data/variables/diagnosis-e-code-present-admission-indicator-8
type: VARCHAR(1)
- POA_DGNS_E_9_IND_CD:
description:
@@ -16422,6 +18698,7 @@ cms:
original_type: CHAR
text: Diagnosis E Code Present on Admission Indicator 9
width: 1.0
+ reference: https://resdac.org/cms-data/variables/diagnosis-e-code-present-admission-indicator-9
type: VARCHAR(1)
- POA_DGNS_E_10_IND_CD:
description:
@@ -16429,6 +18706,7 @@ cms:
original_type: CHAR
text: Diagnosis E Code Present on Admission Indicator 10
width: 1.0
+ reference: https://resdac.org/cms-data/variables/diagnosis-e-code-present-admission-indicator-10
type: VARCHAR(1)
- POA_DGNS_E_11_IND_CD:
description:
@@ -16436,6 +18714,7 @@ cms:
original_type: CHAR
text: Diagnosis E Code Present on Admission Indicator 11
width: 1.0
+ reference: https://resdac.org/cms-data/variables/diagnosis-e-code-present-admission-indicator-11
type: VARCHAR(1)
- POA_DGNS_E_12_IND_CD:
description:
@@ -16443,6 +18722,7 @@ cms:
original_type: CHAR
text: Diagnosis E Code Present on Admission Indicator 12
width: 1.0
+ reference: https://resdac.org/cms-data/variables/diagnosis-e-code-present-admission-indicator-12
type: VARCHAR(1)
- PRCDRSW:
description:
@@ -16450,6 +18730,7 @@ cms:
original_type: CHAR
text: Surgical procedures indicator
width: 1.0
+ reference: https://resdac.org/cms-data/variables/surgical-procedure-indicator
type: VARCHAR(1)
- PRCDRCNT:
description:
@@ -16457,6 +18738,7 @@ cms:
original_type: NUM
text: Surgical procedure codes included in stay
width: 3.0
+ reference: https://resdac.org/cms-data/variables/surgical-procedure-codes-included-stay
type: INT
- SRGCL_PRCDR_VRSN_CD:
description:
@@ -16464,6 +18746,7 @@ cms:
original_type: CHAR
text: MEDPAR Surgical Procedure Version Code (Earlier Version)
width: 1.0
+ reference: https://resdac.org/cms-data/variables/surgical-procedure-version-code-earlier-version
type: VARCHAR(1)
- SRGCL_PRCDR_VRSN_CD_1:
description:
@@ -16471,6 +18754,7 @@ cms:
original_type: CHAR
text: MEDPAR Surgical Procedure Version Code 01
width: 1.0
+ reference: https://resdac.org/cms-data/variables/principal-procedure-code
type: VARCHAR(1)
- SRGCL_PRCDR_VRSN_CD_2:
description:
@@ -16478,6 +18762,7 @@ cms:
original_type: CHAR
text: MEDPAR Surgical Procedure Version Code 02
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-surgical-procedure-version-code-2
type: VARCHAR(1)
- SRGCL_PRCDR_VRSN_CD_3:
description:
@@ -16485,6 +18770,7 @@ cms:
original_type: CHAR
text: MEDPAR Surgical Procedure Version Code 03
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-surgical-procedure-version-code-3
type: VARCHAR(1)
- SRGCL_PRCDR_VRSN_CD_4:
description:
@@ -16492,6 +18778,7 @@ cms:
original_type: CHAR
text: MEDPAR Surgical Procedure Version Code 04
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-surgical-procedure-version-code-4
type: VARCHAR(1)
- SRGCL_PRCDR_VRSN_CD_5:
description:
@@ -16499,6 +18786,7 @@ cms:
original_type: CHAR
text: MEDPAR Surgical Procedure Version Code 05
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-surgical-procedure-version-code-5
type: VARCHAR(1)
- SRGCL_PRCDR_VRSN_CD_6:
description:
@@ -16506,6 +18794,7 @@ cms:
original_type: CHAR
text: MEDPAR Surgical Procedure Version Code 06
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-surgical-procedure-version-code-6
type: VARCHAR(1)
- SRGCL_PRCDR_VRSN_CD_7:
description:
@@ -16513,6 +18802,7 @@ cms:
original_type: CHAR
text: MEDPAR Surgical Procedure Version Code 07
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-surgical-procedure-version-code-7
type: VARCHAR(1)
- SRGCL_PRCDR_VRSN_CD_8:
description:
@@ -16520,6 +18810,7 @@ cms:
original_type: CHAR
text: MEDPAR Surgical Procedure Version Code 08
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-surgical-procedure-version-code-8
type: VARCHAR(1)
- SRGCL_PRCDR_VRSN_CD_9:
description:
@@ -16527,6 +18818,7 @@ cms:
original_type: CHAR
text: MEDPAR Surgical Procedure Version Code 09
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-surgical-procedure-version-code-9
type: VARCHAR(1)
- SRGCL_PRCDR_VRSN_CD_10:
description:
@@ -16534,6 +18826,7 @@ cms:
original_type: CHAR
text: MEDPAR Surgical Procedure Version Code 10
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-surgical-procedure-version-code-10
type: VARCHAR(1)
- SRGCL_PRCDR_VRSN_CD_11:
description:
@@ -16541,6 +18834,7 @@ cms:
original_type: CHAR
text: MEDPAR Surgical Procedure Version Code 11
width: 1.0
+ reference: https://resdac.org/cms-data/variables/surgical-procedure-version-code-earlier-version
type: VARCHAR(1)
- SRGCL_PRCDR_VRSN_CD_12:
description:
@@ -16548,6 +18842,7 @@ cms:
original_type: CHAR
text: MEDPAR Surgical Procedure Version Code 12
width: 1.0
+ reference: https://resdac.org/cms-data/variables/surgical-procedure-version-code-earlier-version
type: VARCHAR(1)
- SRGCL_PRCDR_VRSN_CD_13:
description:
@@ -16555,6 +18850,7 @@ cms:
original_type: CHAR
text: MEDPAR Surgical Procedure Version Code 13
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-surgical-procedure-version-code-13
type: VARCHAR(1)
- SRGCL_PRCDR_VRSN_CD_14:
description:
@@ -16562,6 +18858,7 @@ cms:
original_type: CHAR
text: MEDPAR Surgical Procedure Version Code 14
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-surgical-procedure-version-code-14
type: VARCHAR(1)
- SRGCL_PRCDR_VRSN_CD_15:
description:
@@ -16569,6 +18866,7 @@ cms:
original_type: CHAR
text: MEDPAR Surgical Procedure Version Code 15
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-surgical-procedure-version-code-15
type: VARCHAR(1)
- SRGCL_PRCDR_VRSN_CD_16:
description:
@@ -16576,6 +18874,7 @@ cms:
original_type: CHAR
text: MEDPAR Surgical Procedure Version Code 16
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-surgical-procedure-version-code-16
type: VARCHAR(1)
- SRGCL_PRCDR_VRSN_CD_17:
description:
@@ -16583,6 +18882,7 @@ cms:
original_type: CHAR
text: MEDPAR Surgical Procedure Version Code 17
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-surgical-procedure-version-code-17
type: VARCHAR(1)
- SRGCL_PRCDR_VRSN_CD_18:
description:
@@ -16590,6 +18890,7 @@ cms:
original_type: CHAR
text: MEDPAR Surgical Procedure Version Code 18
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-surgical-procedure-version-code-18
type: VARCHAR(1)
- SRGCL_PRCDR_VRSN_CD_19:
description:
@@ -16597,6 +18898,7 @@ cms:
original_type: CHAR
text: MEDPAR Surgical Procedure Version Code 19
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-surgical-procedure-version-code-19
type: VARCHAR(1)
- SRGCL_PRCDR_VRSN_CD_20:
description:
@@ -16604,6 +18906,7 @@ cms:
original_type: CHAR
text: MEDPAR Surgical Procedure Version Code 20
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-surgical-procedure-version-code-20
type: VARCHAR(1)
- SRGCL_PRCDR_VRSN_CD_21:
description:
@@ -16611,6 +18914,7 @@ cms:
original_type: CHAR
text: MEDPAR Surgical Procedure Version Code 21
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-surgical-procedure-version-code-21
type: VARCHAR(1)
- SRGCL_PRCDR_VRSN_CD_22:
description:
@@ -16618,6 +18922,7 @@ cms:
original_type: CHAR
text: MEDPAR Surgical Procedure Version Code 22
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-surgical-procedure-version-code-22
type: VARCHAR(1)
- SRGCL_PRCDR_VRSN_CD_23:
description:
@@ -16625,6 +18930,7 @@ cms:
original_type: CHAR
text: MEDPAR Surgical Procedure Version Code 23
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-surgical-procedure-version-code-23
type: VARCHAR(1)
- SRGCL_PRCDR_VRSN_CD_24:
description:
@@ -16632,6 +18938,7 @@ cms:
original_type: CHAR
text: MEDPAR Surgical Procedure Version Code 24
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-surgical-procedure-version-code-24
type: VARCHAR(1)
- SRGCL_PRCDR_VRSN_CD_25:
description:
@@ -16639,6 +18946,7 @@ cms:
original_type: CHAR
text: MEDPAR Surgical Procedure Version Code 25
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-procedure-code-4
type: VARCHAR(1)
- PRCDRCD1:
description:
@@ -16646,6 +18954,7 @@ cms:
original_type: CHAR
text: Principal Procedure code
width: 7.0
+ reference: https://resdac.org/cms-data/variables/principal-procedure-code
type: VARCHAR(7)
- PRCDRCD2:
description:
@@ -16653,6 +18962,7 @@ cms:
original_type: CHAR
text: Procedure Code II
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-procedure-code-2
type: VARCHAR(7)
- PRCDRCD3:
description:
@@ -16660,6 +18970,7 @@ cms:
original_type: CHAR
text: Procedure Code III
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-procedure-code-3
type: VARCHAR(7)
- PRCDRCD4:
description:
@@ -16667,6 +18978,7 @@ cms:
original_type: CHAR
text: Procedure Code IV
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-procedure-code-4
type: VARCHAR(7)
- PRCDRCD5:
description:
@@ -16674,6 +18986,7 @@ cms:
original_type: CHAR
text: Procedure Code V
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-procedure-code-5
type: VARCHAR(7)
- PRCDRCD6:
description:
@@ -16681,6 +18994,7 @@ cms:
original_type: CHAR
text: Procedure Code VI
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-procedure-code-6
type: VARCHAR(7)
- PRCDRCD7:
description:
@@ -16688,6 +19002,7 @@ cms:
original_type: CHAR
text: Procedure Code VII
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-procedure-code-7
type: VARCHAR(7)
- PRCDRCD8:
description:
@@ -16695,6 +19010,7 @@ cms:
original_type: CHAR
text: Procedure Code VIII
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-procedure-code-8
type: VARCHAR(7)
- PRCDRCD9:
description:
@@ -16702,6 +19018,7 @@ cms:
original_type: CHAR
text: Procedure Code IX
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-procedure-code-9
type: VARCHAR(7)
- PRCDRCD10:
description:
@@ -16709,6 +19026,7 @@ cms:
original_type: CHAR
text: Procedure Code X
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-procedure-code-10
type: VARCHAR(7)
- PRCDRCD11:
description:
@@ -16716,6 +19034,7 @@ cms:
original_type: CHAR
text: Procedure Code XI
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-procedure-code-11
type: VARCHAR(7)
- PRCDRCD12:
description:
@@ -16723,6 +19042,7 @@ cms:
original_type: CHAR
text: Procedure Code XII
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-procedure-code-12
type: VARCHAR(7)
- PRCDRCD13:
description:
@@ -16730,6 +19050,7 @@ cms:
original_type: CHAR
text: Procedure Code XIII
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-procedure-code-13
type: VARCHAR(7)
- PRCDRCD14:
description:
@@ -16737,6 +19058,7 @@ cms:
original_type: CHAR
text: Procedure Code XIV
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-procedure-code-14
type: VARCHAR(7)
- PRCDRCD15:
description:
@@ -16744,6 +19066,7 @@ cms:
original_type: CHAR
text: Procedure Code XV
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-procedure-code-15
type: VARCHAR(7)
- PRCDRCD16:
description:
@@ -16751,6 +19074,7 @@ cms:
original_type: CHAR
text: Procedure Code XVI
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-procedure-code-16
type: VARCHAR(7)
- PRCDRCD17:
description:
@@ -16758,6 +19082,7 @@ cms:
original_type: CHAR
text: Procedure Code XVII
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-procedure-code-17
type: VARCHAR(7)
- PRCDRCD18:
description:
@@ -16765,6 +19090,7 @@ cms:
original_type: CHAR
text: Procedure Code XVIII
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-procedure-code-18
type: VARCHAR(7)
- PRCDRCD19:
description:
@@ -16772,6 +19098,7 @@ cms:
original_type: CHAR
text: Procedure Code XIX
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-procedure-code-19
type: VARCHAR(7)
- PRCDRCD20:
description:
@@ -16779,6 +19106,7 @@ cms:
original_type: CHAR
text: Procedure Code XX
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-procedure-code-20
type: VARCHAR(7)
- PRCDRCD21:
description:
@@ -16786,6 +19114,7 @@ cms:
original_type: CHAR
text: Procedure Code XXI
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-procedure-code-21
type: VARCHAR(7)
- PRCDRCD22:
description:
@@ -16793,6 +19122,7 @@ cms:
original_type: CHAR
text: Procedure Code XXII
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-procedure-code-22
type: VARCHAR(7)
- PRCDRCD23:
description:
@@ -16800,6 +19130,7 @@ cms:
original_type: CHAR
text: Procedure Code XXIII
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-procedure-code-23
type: VARCHAR(7)
- PRCDRCD24:
description:
@@ -16807,6 +19138,7 @@ cms:
original_type: CHAR
text: Procedure Code XXIV
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-procedure-code-24
type: VARCHAR(7)
- PRCDRCD25:
description:
@@ -16814,6 +19146,7 @@ cms:
original_type: CHAR
text: Procedure Code XXV
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-procedure-code-25
type: VARCHAR(7)
- PRCDTCNT:
description:
@@ -16821,6 +19154,7 @@ cms:
original_type: NUM
text: Dates associated with surgical procedures included in stay
width: 3.0
+ reference: https://resdac.org/cms-data/variables/dates-associated-surgical-procedures-included-stay
type: INT
- PRCDRDT1:
description:
@@ -16828,6 +19162,7 @@ cms:
original_type: DATE
text: Principal Procedure Date
width: 8.0
+ reference: https://resdac.org/cms-data/variables/principal-procedure-date
type: DATE
- PRCDRDT2:
description:
@@ -16835,6 +19170,7 @@ cms:
original_type: DATE
text: Procedure Date II
width: 8.0
+ reference: https://resdac.org/cms-data/variables/procedure-date-2
type: DATE
- PRCDRDT3:
description:
@@ -16842,6 +19178,7 @@ cms:
original_type: DATE
text: Procedure Date III
width: 8.0
+ reference: https://resdac.org/cms-data/variables/procedure-date-3
type: DATE
- PRCDRDT4:
description:
@@ -16849,6 +19186,7 @@ cms:
original_type: DATE
text: Procedure Date IV
width: 8.0
+ reference: https://resdac.org/cms-data/variables/procedure-date-4
type: DATE
- PRCDRDT5:
description:
@@ -16856,6 +19194,7 @@ cms:
original_type: DATE
text: Procedure Date V
width: 8.0
+ reference: null
type: DATE
- PRCDRDT6:
description:
@@ -16863,6 +19202,7 @@ cms:
original_type: DATE
text: Procedure Date VI
width: 8.0
+ reference: https://resdac.org/cms-data/variables/procedure-date-6
type: DATE
- PRCDRDT7:
description:
@@ -16870,6 +19210,7 @@ cms:
original_type: DATE
text: Procedure Date VII
width: 8.0
+ reference: https://resdac.org/cms-data/variables/procedure-date-7
type: DATE
- PRCDRDT8:
description:
@@ -16877,6 +19218,7 @@ cms:
original_type: DATE
text: Procedure Date VIII
width: 8.0
+ reference: https://resdac.org/cms-data/variables/procedure-date-8
type: DATE
- PRCDRDT9:
description:
@@ -16884,6 +19226,7 @@ cms:
original_type: DATE
text: Procedure Date IX
width: 8.0
+ reference: https://resdac.org/cms-data/variables/procedure-date-9
type: DATE
- PRCDRDT10:
description:
@@ -16891,6 +19234,7 @@ cms:
original_type: DATE
text: Procedure Date X
width: 8.0
+ reference: https://resdac.org/cms-data/variables/procedure-date-10
type: DATE
- PRCDRDT11:
description:
@@ -16898,6 +19242,7 @@ cms:
original_type: DATE
text: Procedure Date XI
width: 8.0
+ reference: https://resdac.org/cms-data/variables/procedure-date-11
type: DATE
- PRCDRDT12:
description:
@@ -16905,6 +19250,7 @@ cms:
original_type: DATE
text: Procedure Date XII
width: 8.0
+ reference: https://resdac.org/cms-data/variables/procedure-date-12
type: DATE
- PRCDRDT13:
description:
@@ -16912,6 +19258,7 @@ cms:
original_type: DATE
text: Procedure Date XIII
width: 8.0
+ reference: https://resdac.org/cms-data/variables/procedure-date-13
type: DATE
- PRCDRDT14:
description:
@@ -16919,6 +19266,7 @@ cms:
original_type: DATE
text: Procedure Date XIV
width: 8.0
+ reference: https://resdac.org/cms-data/variables/procedure-date-14
type: DATE
- PRCDRDT15:
description:
@@ -16926,6 +19274,7 @@ cms:
original_type: DATE
text: Procedure Date XV
width: 8.0
+ reference: https://resdac.org/cms-data/variables/procedure-date-15
type: DATE
- PRCDRDT16:
description:
@@ -16933,6 +19282,7 @@ cms:
original_type: DATE
text: Procedure Date XVI
width: 8.0
+ reference: https://resdac.org/cms-data/variables/procedure-date-16
type: DATE
- PRCDRDT17:
description:
@@ -16940,6 +19290,7 @@ cms:
original_type: DATE
text: Procedure Date XVII
width: 8.0
+ reference: https://resdac.org/cms-data/variables/procedure-date-17
type: DATE
- PRCDRDT18:
description:
@@ -16947,6 +19298,7 @@ cms:
original_type: DATE
text: Procedure Date XVIII
width: 8.0
+ reference: https://resdac.org/cms-data/variables/procedure-date-18
type: DATE
- PRCDRDT19:
description:
@@ -16954,6 +19306,7 @@ cms:
original_type: DATE
text: Procedure Date XIX
width: 8.0
+ reference: https://resdac.org/cms-data/variables/procedure-date-19
type: DATE
- PRCDRDT20:
description:
@@ -16961,6 +19314,7 @@ cms:
original_type: DATE
text: Procedure Date XX
width: 8.0
+ reference: https://resdac.org/cms-data/variables/procedure-date-20
type: DATE
- PRCDRDT21:
description:
@@ -16968,6 +19322,7 @@ cms:
original_type: DATE
text: Procedure Date XXI
width: 8.0
+ reference: https://resdac.org/cms-data/variables/procedure-date-21
type: DATE
- PRCDRDT22:
description:
@@ -16975,6 +19330,7 @@ cms:
original_type: DATE
text: Procedure Date XXII
width: 8.0
+ reference: https://resdac.org/cms-data/variables/procedure-date-22
type: DATE
- PRCDRDT23:
description:
@@ -16982,6 +19338,7 @@ cms:
original_type: DATE
text: Procedure Date XXIII
width: 8.0
+ reference: https://resdac.org/cms-data/variables/procedure-date-23
type: DATE
- PRCDRDT24:
description:
@@ -16989,6 +19346,7 @@ cms:
original_type: DATE
text: Procedure Date XXIV
width: 8.0
+ reference: https://resdac.org/cms-data/variables/procedure-date-24
type: DATE
- PRCDRDT25:
description:
@@ -16996,6 +19354,7 @@ cms:
original_type: DATE
text: Procedure Date XXV
width: 8.0
+ reference: https://resdac.org/cms-data/variables/procedure-date-25
type: DATE
- CLM_PTNT_RLTNSHP_CD:
description:
@@ -17003,6 +19362,7 @@ cms:
original_type: CHAR
text: Claim Patient Relationship Code
width: 2.0
+ reference: https://resdac.org/cms-data/variables/claim-patient-relationship-code
type: VARCHAR(2)
- CARE_IMPRVMT_MODEL_1_CD:
description:
@@ -17010,6 +19370,7 @@ cms:
original_type: CHAR
text: Care Improvement Model 1 Code
width: 2.0
+ reference: https://resdac.org/cms-data/variables/care-improvement-model-1-code
type: VARCHAR(2)
- CARE_IMPRVMT_MODEL_2_CD:
description:
@@ -17017,6 +19378,7 @@ cms:
original_type: CHAR
text: Care Improvement Model 2 Code
width: 2.0
+ reference: https://resdac.org/cms-data/variables/care-improvement-model-2-code
type: VARCHAR(2)
- CARE_IMPRVMT_MODEL_3_CD:
description:
@@ -17024,6 +19386,7 @@ cms:
original_type: CHAR
text: Care Improvement Model 3 Code
width: 2.0
+ reference: https://resdac.org/cms-data/variables/care-improvement-model-3-code
type: VARCHAR(2)
- CARE_IMPRVMT_MODEL_4_CD:
description:
@@ -17031,6 +19394,7 @@ cms:
original_type: CHAR
text: Care Improvement Model 4 Code
width: 2.0
+ reference: https://resdac.org/cms-data/variables/care-improvement-model-4-code
type: VARCHAR(2)
- VBP_PRTCPNT_IND_CD:
description:
@@ -17038,6 +19402,7 @@ cms:
original_type: CHAR
text: VBP Participant Indicator Code
width: 1.0
+ reference: https://resdac.org/cms-data/variables/value-based-purchasing-vbp-participant-indicator-code
type: VARCHAR(1)
- HRR_PRTCPNT_IND_CD:
description:
@@ -17045,6 +19410,7 @@ cms:
original_type: CHAR
text: HRR Participant Indicator Code
width: 1.0
+ reference: https://resdac.org/cms-data/variables/hospital-readmission-reduction-hrr-participant-indicator-code
type: VARCHAR(1)
- BNDLD_MODEL_DSCNT_PCT:
description:
@@ -17052,6 +19418,7 @@ cms:
original_type: NUM
text: Bundled Model Discount Percent
width: 4.2
+ reference: https://resdac.org/cms-data/variables/bundled-payment-model-discount-percent
type: NUMERIC(4,2)
- VBP_ADJSTMT_PCT:
description:
@@ -17059,6 +19426,7 @@ cms:
original_type: NUM
text: VBP Adjustment Percent
width: 13.1
+ reference: https://resdac.org/cms-data/variables/value-based-purchasing-vbp-adjustment-percent
type: NUMERIC(13,1)
- HRR_ADJSTMT_PCT:
description:
@@ -17066,6 +19434,7 @@ cms:
original_type: NUM
text: HRR Adjustment Percent
width: 6.4
+ reference: https://resdac.org/cms-data/variables/hospital-readmission-reduction-hrr-adjustment-percent
type: NUMERIC(6,4)
- INFRMTL_ENCTR_IND_SW:
description:
@@ -17073,6 +19442,7 @@ cms:
original_type: CHAR
text: Informational Encounter Indicator Switch
width: 1.0
+ reference: https://resdac.org/cms-data/variables/informational-encounter-indicator
type: VARCHAR(1)
- MA_TCHNG_IND_SW:
description:
@@ -17080,6 +19450,7 @@ cms:
original_type: CHAR
text: MA Teaching Indicator Switch
width: 1.0
+ reference: https://resdac.org/cms-data/variables/ma-teaching-indicator
type: VARCHAR(1)
- PROD_RPLCMT_LIFECYC_SW:
description:
@@ -17087,6 +19458,7 @@ cms:
original_type: CHAR
text: Prod Replacement Lifecycle Switch
width: 1.0
+ reference: https://resdac.org/cms-data/variables/product-replacement-within-product-lifecycle-early
type: VARCHAR(1)
- PROD_RPLCMT_RCLL_SW:
description:
@@ -17094,6 +19466,7 @@ cms:
original_type: CHAR
text: Prod Replacement Recall Switch
width: 1.0
+ reference: https://resdac.org/cms-data/variables/product-replacement-recall-product
type: VARCHAR(1)
- CRED_RCVD_RPLCD_DVC_SW:
description:
@@ -17101,6 +19474,7 @@ cms:
original_type: CHAR
text: Credit Received Replaced Device Switch
width: 1.0
+ reference: https://resdac.org/cms-data/variables/credit-received-replaced-device
type: VARCHAR(1)
- OBSRVTN_SW:
description:
@@ -17108,6 +19482,7 @@ cms:
original_type: CHAR
text: Observation Switch
width: 1.0
+ reference: https://resdac.org/cms-data/variables/observation-unit-indicator
type: VARCHAR(1)
- NEW_TCHNLGY_ADD_ON_AMT:
description:
@@ -17115,6 +19490,7 @@ cms:
original_type: NUM
text: New Technology Add-On Amount
width: 10.0
+ reference: https://resdac.org/cms-data/variables/new-technology-add-amount
type: INT
- BASE_OPRTG_DRG_AMT:
description:
@@ -17122,6 +19498,7 @@ cms:
original_type: NUM
text: Base Operating DRG Amount
width: 10.0
+ reference: https://resdac.org/cms-data/variables/base-operating-drg-amount
type: INT
- OPRTG_HSP_AMT:
description:
@@ -17129,6 +19506,7 @@ cms:
original_type: NUM
text: Operating Hospital Amount
width: 10.0
+ reference: https://resdac.org/cms-data/variables/operating-hospital-amount
type: INT
- MDCL_SRGCL_GNRL_AMT:
description:
@@ -17136,6 +19514,7 @@ cms:
original_type: NUM
text: Medical/Surgical General Amount
width: 10.0
+ reference: https://resdac.org/cms-data/variables/medicalsurgical-supplies-prosthetic-orthotic-amount
type: INT
- MDCL_SRGCL_NSTRL_AMT:
description:
@@ -17143,6 +19522,7 @@ cms:
original_type: NUM
text: Medical/Surgical Non-Sterile Amount
width: 10.0
+ reference: https://resdac.org/cms-data/variables/medicalsurgical-non-sterile-supplies-amount
type: INT
- MDCL_SRGCL_STRL_AMT:
description:
@@ -17150,6 +19530,7 @@ cms:
original_type: NUM
text: Medical/Surgical Sterile Amount
width: 10.0
+ reference: https://resdac.org/cms-data/variables/medicalsurgical-sterile-supplies-amount
type: INT
- TAKE_HOME_AMT:
description:
@@ -17157,6 +19538,7 @@ cms:
original_type: NUM
text: Take Home Amount
width: 10.0
+ reference: https://resdac.org/cms-data/variables/medicalsurgical-supplies-take-home-amount
type: INT
- PRSTHTC_ORTHTC_AMT:
description:
@@ -17164,6 +19546,7 @@ cms:
original_type: NUM
text: Prosthetic Orthotic Amount
width: 10.0
+ reference: https://resdac.org/cms-data/variables/medicalsurgical-supplies-prosthetic-orthotic-amount
type: INT
- MDCL_SRGCL_PCMKR_AMT:
description:
@@ -17171,6 +19554,7 @@ cms:
original_type: NUM
text: Medical/Surgical Pacemaker Amount
width: 10.0
+ reference: https://resdac.org/cms-data/variables/medicalsurgical-pacemaker-amount
type: INT
- INTRAOCULAR_LENS_AMT:
description:
@@ -17178,6 +19562,7 @@ cms:
original_type: NUM
text: Intraocular Lens Amount
width: 10.0
+ reference: https://resdac.org/cms-data/variables/medicalsurgical-supplies-intraocular-lens-amount
type: INT
- OXYGN_TAKE_HOME_AMT:
description:
@@ -17185,6 +19570,7 @@ cms:
original_type: NUM
text: Oxygen Take Home Amount
width: 10.0
+ reference: https://resdac.org/cms-data/variables/medicalsurgical-supplies-oxygen-take-home-amount
type: INT
- OTHR_IMPLANTS_AMT:
description:
@@ -17192,6 +19578,7 @@ cms:
original_type: NUM
text: Other Implants Amount
width: 10.0
+ reference: https://resdac.org/cms-data/variables/medicalsurgical-supplies-other-implants-amount
type: INT
- OTHR_SUPLIES_DVC_AMT:
description:
@@ -17199,6 +19586,7 @@ cms:
original_type: NUM
text: Other Supplies Device Amount
width: 10.0
+ reference: https://resdac.org/cms-data/variables/medicalsurgical-supplies-other-device-amount
type: INT
- INCDNT_RDLGY_AMT:
description:
@@ -17206,6 +19594,7 @@ cms:
original_type: NUM
text: Incident Radiology Amount
width: 10.0
+ reference: https://resdac.org/cms-data/variables/medicalsurgical-supplies-incident-radiology-amount
type: INT
- INCDNT_DGNSTC_SRVCS_AMT:
description:
@@ -17213,6 +19602,7 @@ cms:
original_type: NUM
text: Incident Diagnostic Services Amount
width: 10.0
+ reference: https://resdac.org/cms-data/variables/medicalsurgical-supplies-incident-diagnostic-services-amount
type: INT
- MDCL_SRGCL_DRSNG_AMT:
description:
@@ -17220,6 +19610,7 @@ cms:
original_type: NUM
text: Medical/Surgical Dressing Amount
width: 10.0
+ reference: https://resdac.org/cms-data/variables/medicalsurgical-dressing-amount
type: INT
- INVSTGTNL_DVC_AMT:
description:
@@ -17227,6 +19618,7 @@ cms:
original_type: NUM
text: Investigational Device Amount
width: 10.0
+ reference: https://resdac.org/cms-data/variables/medicalsurgical-supplies-investigational-device-amount
type: INT
- MDCL_SRGCL_MISC_AMT:
description:
@@ -17234,6 +19626,7 @@ cms:
original_type: NUM
text: Medical/Surgical Miscellaneous Amount
width: 10.0
+ reference: https://resdac.org/cms-data/variables/medical-surgical-miscellaneous-amount
type: INT
- RDLGY_ONCOLOGY_AMT:
description:
@@ -17241,6 +19634,7 @@ cms:
original_type: NUM
text: Radiology/Oncology Amount
width: 10.0
+ reference: https://resdac.org/cms-data/variables/oncology-amount
type: INT
- RDLGY_DGNSTC_AMT:
description:
@@ -17248,6 +19642,7 @@ cms:
original_type: NUM
text: Radiology Diagnostic Amount
width: 10.0
+ reference: https://resdac.org/cms-data/variables/radiology-diagnostic-amount
type: INT
- RDLGY_THRPTC_AMT:
description:
@@ -17255,6 +19650,7 @@ cms:
original_type: NUM
text: Radiology Therapeutic Amount
width: 10.0
+ reference: https://resdac.org/cms-data/variables/radiology-therapeutic-amount
type: INT
- RDLGY_NUCLR_MDCN_AMT:
description:
@@ -17262,6 +19658,7 @@ cms:
original_type: NUM
text: Radiology Nuclear Medicine Amount
width: 10.0
+ reference: https://resdac.org/cms-data/variables/radiology-nuclear-medicine-amount
type: INT
- RDLGY_CT_SCAN_AMT:
description:
@@ -17269,6 +19666,7 @@ cms:
original_type: NUM
text: Radiology CT Scan Amount
width: 10.0
+ reference: https://resdac.org/cms-data/variables/radiology-ct-scan-amount
type: INT
- RDLGY_OTHR_IMGNG_AMT:
description:
@@ -17276,6 +19674,7 @@ cms:
original_type: NUM
text: Radiology Other Imaging Amount
width: 10.0
+ reference: https://resdac.org/cms-data/variables/radiology-other-imaging-amount
type: INT
- OPRTG_ROOM_AMT:
description:
@@ -17283,6 +19682,7 @@ cms:
original_type: NUM
text: Operating Room Amount
width: 10.0
+ reference: https://resdac.org/cms-data/variables/operating-and-recovery-room-amount
type: INT
- OR_LABOR_DLVRY_AMT:
description:
@@ -17290,6 +19690,7 @@ cms:
original_type: NUM
text: O/R Labor Delivery Amount
width: 10.0
+ reference: https://resdac.org/cms-data/variables/labor-room-and-delivery-amount
type: INT
- CRDC_CATHRZTN_AMT:
description:
@@ -17297,6 +19698,7 @@ cms:
original_type: NUM
text: Cardiac Catheterization Amount
width: 10.0
+ reference: https://resdac.org/cms-data/variables/cardiac-catheterization-lab-amount
type: INT
- SQSTRTN_RDCTN_AMT:
description:
@@ -17304,6 +19706,7 @@ cms:
original_type: NUM
text: Sequestration Reduction Amount
width: 10.0
+ reference: https://resdac.org/cms-data/variables/sequestration-reduction-amount
type: INT
- UNCOMPD_CARE_PYMT_AMT:
description:
@@ -17311,6 +19714,7 @@ cms:
original_type: NUM
text: Uncompensated Care Payment Amount
width: 10.0
+ reference: https://resdac.org/cms-data/variables/uncompensated-care-payment-amount
type: INT
- BNDLD_ADJSTMT_AMT:
description:
@@ -17318,6 +19722,7 @@ cms:
original_type: NUM
text: Bundled Adjustment Amount
width: 10.0
+ reference: https://resdac.org/cms-data/variables/bundled-payment-adjustment-amount
type: INT
- VBP_ADJSTMT_AMT:
description:
@@ -17325,6 +19730,7 @@ cms:
original_type: NUM
text: Hospital Value Based Purchasing (VBP) Amount
width: 10.0
+ reference: https://resdac.org/cms-data/variables/hospital-value-based-purchasing-vbp-amount
type: INT
- HRR_ADJSTMT_AMT:
description:
@@ -17332,6 +19738,7 @@ cms:
original_type: NUM
text: Hospital Readmission Reduction (HRR) Adjustment Amount
width: 10.0
+ reference: https://resdac.org/cms-data/variables/hospital-readmission-reduction-hrr-adjustment-amount
type: INT
- FILE:
description:
@@ -17340,6 +19747,7 @@ cms:
width: 128
index:
required_before_loading_data: true
+ reference: null
source:
type: file
type: VARCHAR(128)
@@ -17348,6 +19756,7 @@ cms:
original_type: BIGSERIAL
text: Record number in the file
width: null
+ reference: https://resdac.org/cms-data/variables/nch-near-line-record-identification-code-ric
type: BIGSERIAL
- STATE:
description:
@@ -17355,6 +19764,7 @@ cms:
text: SSA standard state code of a beneficiarys residence.
width: 2.0
index: true
+ reference: https://resdac.org/cms-data/variables/state-code-beneficiary-ssa-code
source:
code: GENERATED ALWAYS AS (STATE_CD) STORED
type: generated
@@ -17365,6 +19775,7 @@ cms:
text: Year of MedPAR Record
width: 4.0
index: true
+ reference: https://resdac.org/cms-data/variables/mbsf-cc-30/alzheimers-disease-end-year-indicator
source:
code: GENERATED ALWAYS AS (MEDPAR_YR_NUM) STORED
type: generated
@@ -17375,6 +19786,7 @@ cms:
text: Zip code of the mailing address where the beneficiary may be contacted.
width: 5.0
index: true
+ reference: https://resdac.org/cms-data/variables/zip-code-beneficiary
source:
code: GENERATED ALWAYS AS (BENE_ZIP) STORED
type: generated
@@ -17396,6 +19808,7 @@ cms:
text: Encrypted 723 Beneficiary ID
width: 15.0
index: true
+ reference: https://resdac.org/cms-data/variables/ccw-beneficiary-id
type: VARCHAR(15)
- MEDPARID:
description:
@@ -17403,6 +19816,7 @@ cms:
original_type: CHAR
text: Unique Key for CCW MedPAR Table
width: 15.0
+ reference: https://resdac.org/cms-data/variables/medpar-id-number
type: VARCHAR(15)
- MEDPAR_YR_NUM:
description:
@@ -17410,6 +19824,7 @@ cms:
original_type: CHAR
text: Year of MedPAR Record
width: 4.0
+ reference: https://resdac.org/cms-data/variables/year-medpar-record
type: VARCHAR(4)
- CLM_TYPE:
description:
@@ -17417,6 +19832,7 @@ cms:
original_type: CHAR
text: NCH Claim Type Code
width: 2.0
+ reference: https://resdac.org/cms-data/variables/nch-claim-type-code
type: VARCHAR(2)
- BIC:
description:
@@ -17424,6 +19840,7 @@ cms:
original_type: CHAR
text: BIC reported on first claim included in stay
width: 2.0
+ reference: https://resdac.org/cms-data/variables/bic-reported-first-claim-included-stay
type: VARCHAR(2)
- EQ_BIC:
description:
@@ -17431,6 +19848,7 @@ cms:
original_type: CHAR
text: Equated BIC
width: 2.0
+ reference: https://resdac.org/cms-data/variables/equated-bic
type: VARCHAR(2)
- AGE_CNT:
description:
@@ -17438,6 +19856,7 @@ cms:
original_type: NUM
text: Age as of Date of Admission.
width: 4.0
+ reference: https://resdac.org/cms-data/variables/age-date-admission
type: INT
- SEX:
description:
@@ -17445,6 +19864,7 @@ cms:
original_type: CHAR
text: Sex of Beneficiary
width: 1.0
+ reference: https://resdac.org/sites/datadocumentation.resdac.org/files/Introduction%20to%20DE-SynPUF%20%28Slides%29.pdf
type: VARCHAR(1)
- RACE:
description:
@@ -17452,6 +19872,7 @@ cms:
original_type: CHAR
text: Race of Beneficiary
width: 1.0
+ reference: https://resdac.org/cms-data/variables/beneficiary-race-code-base
type: VARCHAR(1)
- MS_CD:
description:
@@ -17459,6 +19880,7 @@ cms:
original_type: CHAR
text: Reason for entitlement to Medicare benefits as of CLM_THRU_DT
width: 2.0
+ reference: https://resdac.org/cms-data/variables/reason-entitlement-medicare-benefits-clmthrudt
type: VARCHAR(2)
- STATE_CD:
description:
@@ -17466,6 +19888,7 @@ cms:
original_type: CHAR
text: SSA standard state code of a beneficiarys residence.
width: 2.0
+ reference: https://resdac.org/cms-data/variables/state-code-beneficiary-ssa-code
type: VARCHAR(2)
- CNTY_CD:
description:
@@ -17473,6 +19896,7 @@ cms:
original_type: CHAR
text: SSA standard county code of a beneficiarys residence.
width: 3.0
+ reference: https://resdac.org/sites/datadocumentation.resdac.org/files/Introduction%20to%20DE-SynPUF%20%28Slides%29.pdf
type: VARCHAR(3)
- BENE_ZIP:
description:
@@ -17480,6 +19904,7 @@ cms:
original_type: CHAR
text: Zip code of the mailing address where the beneficiary may be contacted.
width: 5.0
+ reference: https://resdac.org/cms-data/variables/zip-code-beneficiary-home-or-mailing-address-latest-year
type: VARCHAR(5)
- DSCHRGCD:
description:
@@ -17487,6 +19912,7 @@ cms:
original_type: CHAR
text: Code identifying status of patient as of CLM_THRU_DT
width: 1.0
+ reference: https://resdac.org/cms-data/variables/code-identifying-status-patient-clmthrudt
type: VARCHAR(1)
- FICARR:
description:
@@ -17494,6 +19920,7 @@ cms:
original_type: CHAR
text: Intermediary processor identification
width: 5.0
+ reference: https://resdac.org/cms-data/variables/fiscal-intermediary-fi-id-number
type: VARCHAR(5)
- WRNGCD:
description:
@@ -17502,6 +19929,7 @@ cms:
text: Warn ind spcfyng dtld billing info obtnd frm clms analyzd for stay
prcss
width: 18.0
+ reference: https://resdac.org/cms-data/variables/warning-indicators-code-specifying-detailed-billing-info
type: VARCHAR(18)
- GHOPDCD:
description:
@@ -17509,6 +19937,7 @@ cms:
original_type: CHAR
text: Code indicating whether or not GHO has paid provider for claim(s)
width: 1.0
+ reference: https://resdac.org/cms-data/variables/code-indicating-whether-group-health-organization-gho-has-paid-provider-claims
type: VARCHAR(1)
- PPS_IND:
description:
@@ -17516,6 +19945,7 @@ cms:
original_type: CHAR
text: Code indicating whether or not facility is being paid under PPS
width: 1.0
+ reference: https://resdac.org/cms-data/variables/prospective-payment-system-pps-indicator-code
type: VARCHAR(1)
- ORGNPINM:
description:
@@ -17523,6 +19953,7 @@ cms:
original_type: CHAR
text: Organization NPI Number
width: 10.0
+ reference: https://resdac.org/cms-data/variables/organization-npi-number-ffs
type: VARCHAR(10)
- PRVDRNUM:
description:
@@ -17530,6 +19961,7 @@ cms:
original_type: CHAR
text: MEDPAR Provider Number
width: 10.0
+ reference: https://resdac.org/cms-data/variables/provider-number
type: VARCHAR(10)
- SPCLUNIT:
description:
@@ -17538,6 +19970,7 @@ cms:
text: Special num system code for hosp units that are PPS/SNF SB dsgntn
excl.
width: 1.0
+ reference: https://resdac.org/cms-data/variables/provider-number-special-unit-code
type: VARCHAR(1)
- SSLSSNF:
description:
@@ -17545,6 +19978,7 @@ cms:
original_type: CHAR
text: Code indicating whether stay is short stay, long stay, or SNF
width: 1.0
+ reference: https://resdac.org/cms-data/variables/short-staylong-staysnf-provider-indicator-code
type: VARCHAR(1)
- ACTV_XREF_IND:
description:
@@ -17552,6 +19986,7 @@ cms:
original_type: CHAR
text: Active Cross-Refference Indicator
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-active-cross-reference-indicator
type: VARCHAR(1)
- SLCT_RSN_CD:
description:
@@ -17559,6 +19994,7 @@ cms:
original_type: CHAR
text: Specifies whether this record is a case or control record.
width: 1.0
+ reference: https://resdac.org/cms-data/variables/specifies-whether-record-case-or-control-record
type: VARCHAR(1)
- FACLMCNT:
description:
@@ -17566,6 +20002,7 @@ cms:
original_type: NUM
text: Claims (final action) included in stay
width: 5.0
+ reference: https://resdac.org/cms-data/variables/number-claims-final-action-included-stay
type: INT
- ACRTNDT:
description:
@@ -17574,6 +20011,7 @@ cms:
text: Date latest claim incl in stay accreted to bene mstr rec at the
CWF host
width: 8.0
+ reference: https://resdac.org/cms-data/variables/latest-claim-accretion-date
type: DATE
- EXHST_DT:
description:
@@ -17581,6 +20019,7 @@ cms:
original_type: DATE
text: Last date beneficiary had Medicare coverage
width: 8.0
+ reference: https://resdac.org/cms-data/variables/beneficiary-medicare-benefit-exhausted-date
type: DATE
- QLFYFROM:
description:
@@ -17588,6 +20027,7 @@ cms:
original_type: DATE
text: Beginning date of beneficiarys qualifying stay
width: 8.0
+ reference: https://resdac.org/cms-data/variables/beginning-date-beneficiarys-qualifying-snf-stay
type: DATE
- QLFYTHRU:
description:
@@ -17595,6 +20035,7 @@ cms:
original_type: DATE
text: Ending date of beneficiarys qualifying stay
width: 8.0
+ reference: https://resdac.org/cms-data/variables/ending-date-beneficiarys-qualifying-snf-stay
type: DATE
- SRC_ADMS:
description:
@@ -17603,6 +20044,7 @@ cms:
text: Admssn to an Inp facility or, for newborn admssn, type of delivery
code
width: 1.0
+ reference: https://resdac.org/cms-data/variables/source-admission-inpatient-facility-newborn-admit-type-delivery-code
type: VARCHAR(1)
- TYPE_ADM:
description:
@@ -17611,6 +20053,7 @@ cms:
text: Type and priority of benes admission to facility for Inp hosp stay
code
width: 1.0
+ reference: https://resdac.org/cms-data/variables/inpatient-admission-type-code
type: VARCHAR(1)
- ADMSNDAY:
description:
@@ -17618,6 +20061,7 @@ cms:
original_type: CHAR
text: Code indicating day of week beneficiary was admitted to facility.
width: 1.0
+ reference: https://resdac.org/cms-data/variables/code-indicating-day-week-beneficiary-was-admitted-facility
type: VARCHAR(1)
- ADMSNDT:
description:
@@ -17625,6 +20069,7 @@ cms:
original_type: DATE
text: Date beneficiary admitted for Inpatient care or date care started
width: 8.0
+ reference: https://resdac.org/cms-data/variables/date-beneficiary-admitted-inpatient-care-or-date-care-started
type: DATE
- DSCHRGDT:
description:
@@ -17632,6 +20077,7 @@ cms:
original_type: DATE
text: Date beneficiary was discharged or died
width: 8.0
+ reference: https://resdac.org/cms-data/variables/discharge-date
type: DATE
- DSTNTNCD:
description:
@@ -17639,6 +20085,7 @@ cms:
original_type: CHAR
text: Destination upon discharge from facility code
width: 2.0
+ reference: https://resdac.org/cms-data/variables/medpar-discharge-destination-code
type: VARCHAR(2)
- CVRLVLDT:
description:
@@ -17646,6 +20093,7 @@ cms:
original_type: DATE
text: Date covered level of care ended in a SNF
width: 8.0
+ reference: null
type: DATE
- DEATHDT:
description:
@@ -17653,6 +20101,7 @@ cms:
original_type: DATE
text: Date beneficiary died
width: 8.0
+ reference: https://resdac.org/cms-data/variables/date-death
type: DATE
- DEATHCD:
description:
@@ -17660,6 +20109,7 @@ cms:
original_type: CHAR
text: Death Date Verification Code
width: 1.0
+ reference: https://resdac.org/cms-data/variables/death-date-verification-code
type: VARCHAR(1)
- DEATHDAY:
description:
@@ -17667,6 +20117,7 @@ cms:
original_type: NUM
text: Days from date admitted to facility to date of death
width: 7.0
+ reference: https://resdac.org/cms-data/variables/days-date-admitted-facility-date-death
type: INT
- SSICD:
description:
@@ -17674,6 +20125,7 @@ cms:
original_type: CHAR
text: MEDPAR Internal Use SSI Indicator Code
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-internal-use-ssi-indicator-code
type: VARCHAR(1)
- SSIDAY:
description:
@@ -17681,6 +20133,7 @@ cms:
original_type: NUM
text: MEDPAR Internal Use SSI Day Count
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-internal-use-ssi-day-count
type: INT
- INTRNL_USE_SSI_DATA:
description:
@@ -17688,6 +20141,7 @@ cms:
original_type: CHAR
text: Internal Use SSI Data
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-internal-use-ssi-data
type: VARCHAR(1)
- IPSBCD:
description:
@@ -17695,6 +20149,7 @@ cms:
original_type: CHAR
text: For internal Use Only. IPSB Code
width: 3.0
+ reference: https://resdac.org/cms-data/variables/medpar-internal-use-ipsb-code
type: VARCHAR(3)
- FILDTCD:
description:
@@ -17702,6 +20157,7 @@ cms:
original_type: CHAR
text: For internal use only. Fiscal year/calendar year segments.
width: 1.0
+ reference: https://resdac.org/cms-data/variables/internal-use-only-fiscal-yearcalendar-year-segments
type: VARCHAR(1)
- SMPLSIZE:
description:
@@ -17709,6 +20165,7 @@ cms:
original_type: CHAR
text: For internal use. MEDPAR sample size.
width: 1.0
+ reference: https://resdac.org/cms-data/variables/internal-use-medpar-sample-size
type: VARCHAR(1)
- LOSCNT:
description:
@@ -17716,6 +20173,7 @@ cms:
original_type: NUM
text: Days of beneficiarys stay in a hospital/SNF
width: 7.0
+ reference: https://resdac.org/cms-data/variables/days-beneficiarys-stay-hospitalsnf
type: INT
- OUTLRDAY:
description:
@@ -17724,6 +20182,7 @@ cms:
text: Days paid as outliers (either day or cost) under PPS beyond DRG
threshld
width: 5.0
+ reference: https://resdac.org/cms-data/variables/days-paid-outliers-either-day-or-cost-under-pps-beyond-drg-threshold
type: INT
- UTIL_DAY:
description:
@@ -17731,6 +20190,7 @@ cms:
original_type: NUM
text: Covered days of care chargeable to Medicare utilization for stay
width: 7.0
+ reference: https://resdac.org/cms-data/variables/covered-days-care-chargeable-medicare-utilization-stay
type: INT
- COIN_DAY:
description:
@@ -17738,6 +20198,7 @@ cms:
original_type: NUM
text: MEDPAR Beneficiary Total Coinsurance Day Count
width: 5.0
+ reference: https://resdac.org/cms-data/variables/medpar-beneficiary-total-coinsurance-day-count
type: INT
- LRD_USE:
description:
@@ -17745,6 +20206,7 @@ cms:
original_type: NUM
text: Lifetime reserve days (LRD) used by beneficiary for stay
width: 5.0
+ reference: https://resdac.org/cms-data/variables/lifetime-reserve-days-lrd-used-beneficiary-stay
type: INT
- COIN_AMT:
description:
@@ -17752,6 +20214,7 @@ cms:
original_type: NUM
text: Beneficiarys liability for part A coinsurance for stay ($)
width: 10.0
+ reference: https://resdac.org/cms-data/variables/beneficiarys-liability-part-coinsurance-stay
type: INT
- DED_AMT:
description:
@@ -17759,6 +20222,7 @@ cms:
original_type: NUM
text: Beneficiarys liability for stay ($)
width: 10.0
+ reference: https://resdac.org/cms-data/variables/beneficiarys-liability-deductible-stay
type: INT
- BLDDEDAM:
description:
@@ -17766,6 +20230,7 @@ cms:
original_type: NUM
text: Beneficiarys liability for blood deductible for stay ($)
width: 10.0
+ reference: https://resdac.org/cms-data/variables/beneficiarys-liability-blood-deductible-stay
type: INT
- PRPAY_CD:
description:
@@ -17773,6 +20238,7 @@ cms:
original_type: CHAR
text: Primary payer responsibility code
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-beneficiary-primary-payer-code
type: VARCHAR(1)
- PRPAYAMT:
description:
@@ -17781,6 +20247,7 @@ cms:
text: Primry payer other than Medicare for covered Medicare chrgs for
stay ($)
width: 10.0
+ reference: https://resdac.org/cms-data/variables/primary-payer-paid-amount
type: INT
- DRG_CD:
description:
@@ -17788,6 +20255,7 @@ cms:
original_type: CHAR
text: DRG Code
width: 3.0
+ reference: https://resdac.org/cms-data/variables/diagnosis-related-group-drg-code
type: VARCHAR(3)
- OUTLR_CD:
description:
@@ -17795,6 +20263,7 @@ cms:
original_type: CHAR
text: Cost or Day Outlier code
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-drgoutlier-stay-code
type: VARCHAR(1)
- OUTLRAMT:
description:
@@ -17803,6 +20272,7 @@ cms:
text: Addtnl approved due to outlier situation over DRG allowance for
stay ($)
width: 10.0
+ reference: https://resdac.org/cms-data/variables/drg-outlier-approved-payment-amount
type: INT
- DRGPRICE:
description:
@@ -17811,6 +20281,7 @@ cms:
text: Wld hv bn pd if no dedctbls,coinsrnc,prmry payrs,otlrs were invlvd
($)
width: 10.0
+ reference: https://resdac.org/cms-data/variables/drg-price-amount
type: INT
- DISP_SHR:
description:
@@ -17819,6 +20290,7 @@ cms:
text: Over the DRG amount for disproportionate share hospital for stay
($)
width: 10.0
+ reference: https://resdac.org/cms-data/variables/inpatient-disproportionate-share-dsh-amount
type: INT
- IME_AMT:
description:
@@ -17826,6 +20298,7 @@ cms:
original_type: NUM
text: Additional payment made to teaching hospitals for IME for stay ($)
width: 10.0
+ reference: https://resdac.org/cms-data/variables/indirect-medical-education-ime-amount
type: INT
- PASSTHRU:
description:
@@ -17833,6 +20306,7 @@ cms:
original_type: NUM
text: Total of all claim pass thru for stay ($)
width: 10.0
+ reference: https://resdac.org/cms-data/variables/pass-thru-diem-amount-stay
type: INT
- PPS_CPTL:
description:
@@ -17840,6 +20314,7 @@ cms:
original_type: NUM
text: Total payable for capital PPS ($)
width: 10.0
+ reference: https://resdac.org/cms-data/variables/total-pps-capital-amount
type: INT
- IP_LOW_VOL_PYMT_AMT:
description:
@@ -17847,6 +20322,7 @@ cms:
original_type: NUM
text: Inpatient Low Volume Payment Amount.
width: 10.0
+ reference: https://resdac.org/cms-data/variables/inpatient-low-volume-payment-amount
type: INT
- TOTCHRG:
description:
@@ -17855,6 +20331,7 @@ cms:
text: Total all charges for all srvcs provided to beneficiary for stay
($)
width: 10.0
+ reference: https://resdac.org/cms-data/variables/total-charge-amount
type: INT
- CVRCHRG:
description:
@@ -17862,6 +20339,7 @@ cms:
original_type: NUM
text: Portion of total charges covered by Medicare for stay ($)
width: 10.0
+ reference: https://resdac.org/cms-data/variables/total-covered-charge-amount
type: INT
- PMT_AMT:
description:
@@ -17870,6 +20348,7 @@ cms:
text: Amt of payment from Medicare trust fund for srvcs covered by claim
($)
width: 10.0
+ reference: https://resdac.org/cms-data/variables/total-medicare-payment-amount
type: INT
- ACMDTNS:
description:
@@ -17878,6 +20357,7 @@ cms:
text: Total charge for all accommodations related to beneficiarys stay
($)
width: 10.0
+ reference: https://resdac.org/cms-data/variables/total-charge-all-accommodations
type: INT
- DPRTMNTL:
description:
@@ -17886,6 +20366,7 @@ cms:
text: Total charge for all ancillary depts related to beneficiarys stay
($)
width: 10.0
+ reference: https://resdac.org/cms-data/variables/total-charge-all-ancillary-departments-related-beneficiarys-stay
type: INT
- PRVTDAY:
description:
@@ -17893,6 +20374,7 @@ cms:
original_type: NUM
text: Private room days used by beneficiary for stay
width: 5.0
+ reference: https://resdac.org/cms-data/variables/private-room-day-count
type: INT
- SPRVTDAY:
description:
@@ -17900,6 +20382,7 @@ cms:
original_type: NUM
text: Semi-private room days used by beneficiary for stay
width: 5.0
+ reference: https://resdac.org/cms-data/variables/semi-private-room-day-count
type: INT
- WARDDAY:
description:
@@ -17907,6 +20390,7 @@ cms:
original_type: NUM
text: Ward days used by beneficiary for stay
width: 5.0
+ reference: https://resdac.org/cms-data/variables/ward-day-count
type: INT
- ICARECNT:
description:
@@ -17914,6 +20398,7 @@ cms:
original_type: NUM
text: Intensive care days used by beneficiary for stay
width: 5.0
+ reference: https://resdac.org/cms-data/variables/intensive-care-day-count
type: INT
- CRNRYDAY:
description:
@@ -17921,6 +20406,7 @@ cms:
original_type: NUM
text: Coronary care days used by beneficiary for stay
width: 5.0
+ reference: https://resdac.org/cms-data/variables/coronary-care-day-count
type: INT
- PRVTAMT:
description:
@@ -17928,6 +20414,7 @@ cms:
original_type: NUM
text: Private room accommodations related to beneficiarys stay ($)
width: 10.0
+ reference: https://resdac.org/cms-data/variables/private-room-charge-amount
type: INT
- SPRVTAMT:
description:
@@ -17935,6 +20422,7 @@ cms:
original_type: NUM
text: Semi-private room accommodations related to beneficiarys stay ($)
width: 10.0
+ reference: https://resdac.org/cms-data/variables/semi-private-room-charge-amount
type: INT
- WARDAMT:
description:
@@ -17942,6 +20430,7 @@ cms:
original_type: NUM
text: Ward accommodations related to beneficiarys stay ($)
width: 10.0
+ reference: https://resdac.org/cms-data/variables/ward-charge-amount
type: INT
- ICAREAMT:
description:
@@ -17949,6 +20438,7 @@ cms:
original_type: NUM
text: Intensive care accommodations related to beneficiarys stay ($)
width: 10.0
+ reference: https://resdac.org/cms-data/variables/intensive-care-charge-amount
type: INT
- CRNRYAMT:
description:
@@ -17956,6 +20446,7 @@ cms:
original_type: NUM
text: Coronary care accommodations related to beneficiarys stay ($)
width: 10.0
+ reference: https://resdac.org/cms-data/variables/coronary-care-charge-amount
type: INT
- OTHRAMT:
description:
@@ -17963,6 +20454,7 @@ cms:
original_type: NUM
text: Other services related to beneficiarys stay ($)
width: 10.0
+ reference: https://resdac.org/cms-data/variables/other-service-charge-amount
type: INT
- PHRMCAMT:
description:
@@ -17970,6 +20462,7 @@ cms:
original_type: NUM
text: Pharmaceutical costs related to beneficiarys stay ($)
width: 10.0
+ reference: https://resdac.org/cms-data/variables/pharmacy-charge-amount
type: INT
- SUPLYAMT:
description:
@@ -17977,6 +20470,7 @@ cms:
original_type: NUM
text: Medical/surgical supplies related to beneficiarys stay ($)
width: 10.0
+ reference: https://resdac.org/cms-data/variables/medicalsurgical-supplies-charge-amount
type: INT
- DME_AMT:
description:
@@ -17984,6 +20478,7 @@ cms:
original_type: NUM
text: DME related to beneficiarys stay ($)
width: 10.0
+ reference: https://resdac.org/cms-data/variables/durable-medical-equipment-dme-charge-amount
type: INT
- UDME_AMT:
description:
@@ -17991,6 +20486,7 @@ cms:
original_type: NUM
text: Used DME related to beneficiarys stay ($)
width: 10.0
+ reference: https://resdac.org/cms-data/variables/used-durable-medical-equipment-dme-charge-amount
type: INT
- PHYTHAMT:
description:
@@ -17998,6 +20494,7 @@ cms:
original_type: NUM
text: Physical therapy services provided during beneficiarys stay ($)
width: 10.0
+ reference: https://resdac.org/cms-data/variables/physical-therapy-charge-amount
type: INT
- OCPTLAMT:
description:
@@ -18006,6 +20503,7 @@ cms:
text: Occupational therapy services provided during beneficiarys stay
($)
width: 10.0
+ reference: https://resdac.org/cms-data/variables/occupational-therapy-charge-amount
type: INT
- SPCH_AMT:
description:
@@ -18013,6 +20511,7 @@ cms:
original_type: NUM
text: Speech pathology services provided during beneficiarys stay ($)
width: 10.0
+ reference: https://resdac.org/cms-data/variables/speech-pathology-charge-amount
type: INT
- INHLTAMT:
description:
@@ -18020,6 +20519,7 @@ cms:
original_type: NUM
text: Inhalation therapy services provided during beneficiarys stay ($)
width: 10.0
+ reference: https://resdac.org/cms-data/variables/inhalation-therapy-charge-amount
type: INT
- BLOODAMT:
description:
@@ -18027,6 +20527,7 @@ cms:
original_type: NUM
text: Blood provided during beneficiarys stay ($)
width: 10.0
+ reference: https://resdac.org/cms-data/variables/blood-charge-amount
type: INT
- BLDADMIN:
description:
@@ -18034,6 +20535,7 @@ cms:
original_type: NUM
text: Blood storage and processing related to beneficiarys stay ($)
width: 10.0
+ reference: https://resdac.org/cms-data/variables/blood-storage-and-processing-charge-amount
type: INT
- BLDFRNSH:
description:
@@ -18042,6 +20544,7 @@ cms:
text: Quantity of blood (whole pints) furnished to beneficiary during
stay
width: 5.0
+ reference: https://resdac.org/cms-data/variables/blood-pints-furnished-quantity
type: INT
- OROOMAMT:
description:
@@ -18050,6 +20553,7 @@ cms:
text: OR, recovery rm, and labor rm delivery used by bene during stay
($)
width: 10.0
+ reference: https://resdac.org/cms-data/variables/operating-room-charge-amount
type: INT
- LTHTRPSY:
description:
@@ -18057,6 +20561,7 @@ cms:
original_type: NUM
text: Lithotripsy services provided during beneficiarys stay ($)
width: 10.0
+ reference: https://resdac.org/cms-data/variables/lithotripsy-charge-amount
type: INT
- CRDLGY:
description:
@@ -18065,6 +20570,7 @@ cms:
text: Cardiology services and ECG(s) provided during beneficiarys stay
($)
width: 10.0
+ reference: https://resdac.org/cms-data/variables/cardiology-charge-amount
type: INT
- ANSTHSA:
description:
@@ -18072,6 +20578,7 @@ cms:
original_type: NUM
text: Anesthesia services provided during beneficiarys stay ($)
width: 10.0
+ reference: https://resdac.org/cms-data/variables/anesthesia-charge-amount
type: INT
- LAB_AMT:
description:
@@ -18079,6 +20586,7 @@ cms:
original_type: NUM
text: Laboratory costs related to beneficiarys stay ($)
width: 10.0
+ reference: https://resdac.org/cms-data/variables/laboratory-charge-amount
type: INT
- RDLGYAMT:
description:
@@ -18086,6 +20594,7 @@ cms:
original_type: NUM
text: Radiology costs (excluding MRI) related to a beneficiarys stay ($)
width: 10.0
+ reference: https://resdac.org/cms-data/variables/radiology-charge-amount-excluding-mri
type: INT
- MRI_AMT:
description:
@@ -18093,6 +20602,7 @@ cms:
original_type: NUM
text: MRI services provided during beneficiarys stay ($)
width: 10.0
+ reference: https://resdac.org/cms-data/variables/magnetic-resonance-imaging-mri-charge-amount
type: INT
- OPSRVC:
description:
@@ -18100,6 +20610,7 @@ cms:
original_type: NUM
text: Outpatient services provided during beneficiarys stay ($)
width: 10.0
+ reference: https://resdac.org/cms-data/variables/outpatient-service-charge-amount
type: INT
- ER_AMT:
description:
@@ -18107,6 +20618,7 @@ cms:
original_type: NUM
text: Emergency room services provided during beneficiarys stay ($)
width: 10.0
+ reference: https://resdac.org/cms-data/variables/emergency-room-er-charge-amount
type: INT
- AMBLNC:
description:
@@ -18114,6 +20626,7 @@ cms:
original_type: NUM
text: Ambulance services related to beneficiarys stay ($)
width: 10.0
+ reference: https://resdac.org/cms-data/variables/ambulance-charge-amount
type: INT
- PROFFEES:
description:
@@ -18121,6 +20634,7 @@ cms:
original_type: NUM
text: Professional fees related to beneficiarys stay ($)
width: 10.0
+ reference: https://resdac.org/cms-data/variables/professional-fees-charge-amount
type: INT
- ORGNAMT:
description:
@@ -18129,6 +20643,7 @@ cms:
text: Organ acquisition or oth donor bank srvcs related to benes stay
($)
width: 10.0
+ reference: https://resdac.org/cms-data/variables/organ-acquisition-or-other-donor-bank-charge-amount
type: INT
- ESRDSETG:
description:
@@ -18136,6 +20651,7 @@ cms:
original_type: NUM
text: ESRD services related to beneficiarys stay ($)
width: 10.0
+ reference: https://resdac.org/cms-data/variables/end-stage-renal-disease-esrd-charge-amount
type: INT
- CLNC_AMT:
description:
@@ -18143,6 +20659,7 @@ cms:
original_type: NUM
text: Clinic visits related to beneficiarys stay ($)
width: 10.0
+ reference: https://resdac.org/cms-data/variables/clinic-visit-charge-amount
type: INT
- ICUINDCD:
description:
@@ -18150,6 +20667,7 @@ cms:
original_type: CHAR
text: ICU type code
width: 1.0
+ reference: https://resdac.org/cms-data/variables/intensive-care-unit-icu-indicator-code
type: VARCHAR(1)
- CRNRY_CD:
description:
@@ -18157,6 +20675,7 @@ cms:
original_type: CHAR
text: Coronary care unit type code
width: 1.0
+ reference: https://resdac.org/cms-data/variables/coronary-care-unit-ccu-indicator-code
type: VARCHAR(1)
- PHRMCYCD:
description:
@@ -18164,6 +20683,7 @@ cms:
original_type: CHAR
text: Drugs type code
width: 1.0
+ reference: https://resdac.org/cms-data/variables/pharmacy-indicator-code
type: VARCHAR(1)
- TRNSPLNT:
description:
@@ -18171,6 +20691,7 @@ cms:
original_type: CHAR
text: Organ transplant code
width: 1.0
+ reference: https://resdac.org/cms-data/variables/organ-transplant-indicator-code
type: VARCHAR(1)
- ONCLGYSW:
description:
@@ -18178,6 +20699,7 @@ cms:
original_type: CHAR
text: Radiology oncology services indicator
width: 1.0
+ reference: https://resdac.org/cms-data/variables/oncology-indicator
type: VARCHAR(1)
- DGNSTCSW:
description:
@@ -18185,6 +20707,7 @@ cms:
original_type: CHAR
text: Radiology diagnostic services indicator
width: 1.0
+ reference: https://resdac.org/cms-data/variables/diagnostic-radiology-indicator
type: VARCHAR(1)
- THRPTCSW:
description:
@@ -18192,6 +20715,7 @@ cms:
original_type: CHAR
text: Radiology therapeutic services indicator
width: 1.0
+ reference: https://resdac.org/cms-data/variables/therapeutic-radiology-indicator
type: VARCHAR(1)
- NUCLR_SW:
description:
@@ -18199,6 +20723,7 @@ cms:
original_type: CHAR
text: Radiology nuclear medicine services indicator
width: 1.0
+ reference: https://resdac.org/cms-data/variables/radiology-nuclear-medicine-indicator
type: VARCHAR(1)
- CTSCANSW:
description:
@@ -18206,6 +20731,7 @@ cms:
original_type: CHAR
text: Radiology computed tomographic (CT) scan services indicator
width: 1.0
+ reference: https://resdac.org/cms-data/variables/radiology-computed-tomographic-ct-scan-indicator
type: VARCHAR(1)
- IMGNG_SW:
description:
@@ -18213,6 +20739,7 @@ cms:
original_type: CHAR
text: Radiology other imaging services indicator
width: 1.0
+ reference: https://resdac.org/cms-data/variables/radiology-other-imaging-indicator
type: VARCHAR(1)
- OPSRVCCD:
description:
@@ -18220,6 +20747,7 @@ cms:
original_type: CHAR
text: Outpatient services/ambulatory surgical care code
width: 1.0
+ reference: https://resdac.org/cms-data/variables/outpatient-servicesambulatory-surgical-care-indicator-code
type: VARCHAR(1)
- ORGNCD:
description:
@@ -18227,6 +20755,7 @@ cms:
original_type: CHAR
text: Organ acquisition type code
width: 2.0
+ reference: https://resdac.org/cms-data/variables/organ-acquisition-type-code
type: VARCHAR(2)
- ESRD_CD:
description:
@@ -18234,6 +20763,7 @@ cms:
original_type: CHAR
text: ESRD condition code
width: 2.0
+ reference: https://resdac.org/cms-data/variables/end-stage-renal-disease-esrd-condition-indicator-code
type: VARCHAR(2)
- ESRDSTG1:
description:
@@ -18241,6 +20771,7 @@ cms:
original_type: CHAR
text: Dialysis type code I
width: 2.0
+ reference: https://resdac.org/cms-data/variables/dialysis-service-type-code-1
type: VARCHAR(2)
- ESRDSTG2:
description:
@@ -18248,6 +20779,7 @@ cms:
original_type: CHAR
text: Dialysis type code II
width: 2.0
+ reference: https://resdac.org/cms-data/variables/dialysis-service-type-code-2
type: VARCHAR(2)
- ESRDSTG3:
description:
@@ -18255,6 +20787,7 @@ cms:
original_type: CHAR
text: Dialysis type code III
width: 2.0
+ reference: https://resdac.org/cms-data/variables/dialysis-service-type-code-3
type: VARCHAR(2)
- ESRDSTG4:
description:
@@ -18262,6 +20795,7 @@ cms:
original_type: CHAR
text: Dialysis type code IV
width: 2.0
+ reference: https://resdac.org/cms-data/variables/dialysis-service-type-code-4
type: VARCHAR(2)
- ESRDSTG5:
description:
@@ -18269,6 +20803,7 @@ cms:
original_type: CHAR
text: Dialysis type code V
width: 2.0
+ reference: https://resdac.org/cms-data/variables/dialysis-service-type-code-5
type: VARCHAR(2)
- AD_DGNS:
description:
@@ -18276,6 +20811,7 @@ cms:
original_type: CHAR
text: Initial diagnosis at time of admission
width: 7.0
+ reference: https://resdac.org/cms-data/variables/admitting-diagnosis-code
type: VARCHAR(7)
- ADMTG_DGNS_VRSN_CD:
description:
@@ -18283,6 +20819,7 @@ cms:
original_type: CHAR
text: MEDPAR Admitting Diagnosis Version Code
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-admitting-diagnosis-version-code-icd-9-or-icd-10
type: VARCHAR(1)
- DGNSCNT:
description:
@@ -18290,6 +20827,7 @@ cms:
original_type: NUM
text: Diagnosis codes included in stay
width: 3.0
+ reference: https://resdac.org/cms-data/variables/count-diagnosis-codes
type: INT
- DGNS_VRSN_CD:
description:
@@ -18298,6 +20836,7 @@ cms:
text: Version Code - Indicate if diagnosis code is ICD-9 or ICD-10 (Earlier
Version)
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-version-code-icd-9-or-icd-10
type: VARCHAR(1)
- DGNS_VRSN_CD_1:
description:
@@ -18305,6 +20844,7 @@ cms:
original_type: CHAR
text: Version Code 01 - Indicate if diagnosis code is ICD-9 or ICD-10.
width: 1.0
+ reference: https://resdac.org/cms-data/variables/diagnosis-version-code-1-icd-9-or-icd-10
type: VARCHAR(1)
- DGNS_VRSN_CD_2:
description:
@@ -18312,6 +20852,7 @@ cms:
original_type: CHAR
text: Version Code 02 - Indicate if diagnosis code is ICD-9 or ICD-10.
width: 1.0
+ reference: https://resdac.org/cms-data/variables/diagnosis-version-code-2-icd-9-or-icd-10
type: VARCHAR(1)
- DGNS_VRSN_CD_3:
description:
@@ -18319,6 +20860,7 @@ cms:
original_type: CHAR
text: Version Code 03 - Indicate if diagnosis code is ICD-9 or ICD-10.
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-version-code-3-icd-9-or-icd-10
type: VARCHAR(1)
- DGNS_VRSN_CD_4:
description:
@@ -18326,6 +20868,7 @@ cms:
original_type: CHAR
text: Version Code 04 - Indicate if diagnosis code is ICD-9 or ICD-10.
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-version-code-4-icd-9-or-icd-10
type: VARCHAR(1)
- DGNS_VRSN_CD_5:
description:
@@ -18333,6 +20876,7 @@ cms:
original_type: CHAR
text: Version Code 05 - Indicate if diagnosis code is ICD-9 or ICD-10.
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-version-code-5-icd-9-or-icd-10
type: VARCHAR(1)
- DGNS_VRSN_CD_6:
description:
@@ -18340,6 +20884,7 @@ cms:
original_type: CHAR
text: Version Code 06 - Indicate if diagnosis code is ICD-9 or ICD-10.
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-version-code-6-icd-9-or-icd-10
type: VARCHAR(1)
- DGNS_VRSN_CD_7:
description:
@@ -18347,6 +20892,7 @@ cms:
original_type: CHAR
text: Version Code 07 - Indicate if diagnosis code is ICD-9 or ICD-10.
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-version-code-7-icd-9-or-icd-10
type: VARCHAR(1)
- DGNS_VRSN_CD_8:
description:
@@ -18354,6 +20900,7 @@ cms:
original_type: CHAR
text: Version Code 08 - Indicate if diagnosis code is ICD-9 or ICD-10.
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-version-code-8-icd-9-or-icd-10
type: VARCHAR(1)
- DGNS_VRSN_CD_9:
description:
@@ -18361,6 +20908,7 @@ cms:
original_type: CHAR
text: Version Code 09 - Indicate if diagnosis code is ICD-9 or ICD-10.
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-version-code-9-icd-9-or-icd-10
type: VARCHAR(1)
- DGNS_VRSN_CD_10:
description:
@@ -18368,6 +20916,7 @@ cms:
original_type: CHAR
text: Version Code 10 - Indicate if diagnosis code is ICD-9 or ICD-10.
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-version-code-10-icd-9-or-icd-10
type: VARCHAR(1)
- DGNS_VRSN_CD_11:
description:
@@ -18375,6 +20924,7 @@ cms:
original_type: CHAR
text: Version Code 11 - Indicate if diagnosis code is ICD-9 or ICD-10.
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-version-code-11-icd-9-or-icd-10
type: VARCHAR(1)
- DGNS_VRSN_CD_12:
description:
@@ -18382,6 +20932,7 @@ cms:
original_type: CHAR
text: Version Code 12 - Indicate if diagnosis code is ICD-9 or ICD-10.
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-version-code-12-icd-9-or-icd-10
type: VARCHAR(1)
- DGNS_VRSN_CD_13:
description:
@@ -18389,6 +20940,7 @@ cms:
original_type: CHAR
text: Version Code 13 - Indicate if diagnosis code is ICD-9 or ICD-10.
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-version-code-13-icd-9-or-icd-10
type: VARCHAR(1)
- DGNS_VRSN_CD_14:
description:
@@ -18396,6 +20948,7 @@ cms:
original_type: CHAR
text: Version Code 14 - Indicate if diagnosis code is ICD-9 or ICD-10.
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-version-code-14-icd-9-or-icd-10
type: VARCHAR(1)
- DGNS_VRSN_CD_15:
description:
@@ -18403,6 +20956,7 @@ cms:
original_type: CHAR
text: Version Code 15 - Indicate if diagnosis code is ICD-9 or ICD-10.
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-version-code-15-icd-9-or-icd-10
type: VARCHAR(1)
- DGNS_VRSN_CD_16:
description:
@@ -18410,6 +20964,7 @@ cms:
original_type: CHAR
text: Version Code 16 - Indicate if diagnosis code is ICD-9 or ICD-10.
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-version-code-16-icd-9-or-icd-10
type: VARCHAR(1)
- DGNS_VRSN_CD_17:
description:
@@ -18417,6 +20972,7 @@ cms:
original_type: CHAR
text: Version Code 17 - Indicate if diagnosis code is ICD-9 or ICD-10.
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-version-code-17-icd-9-or-icd-10
type: VARCHAR(1)
- DGNS_VRSN_CD_18:
description:
@@ -18424,6 +20980,7 @@ cms:
original_type: CHAR
text: Version Code 18 - Indicate if diagnosis code is ICD-9 or ICD-10.
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-version-code-18-icd-9-or-icd-10
type: VARCHAR(1)
- DGNS_VRSN_CD_19:
description:
@@ -18431,6 +20988,7 @@ cms:
original_type: CHAR
text: Version Code 19 - Indicate if diagnosis code is ICD-9 or ICD-10.
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-version-code-19-icd-9-or-icd-10
type: VARCHAR(1)
- DGNS_VRSN_CD_20:
description:
@@ -18438,6 +20996,7 @@ cms:
original_type: CHAR
text: Version Code 20 - Indicate if diagnosis code is ICD-9 or ICD-10.
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-version-code-20-icd-9-or-icd-10
type: VARCHAR(1)
- DGNS_VRSN_CD_21:
description:
@@ -18445,6 +21004,7 @@ cms:
original_type: CHAR
text: Version Code 21 - Indicate if diagnosis code is ICD-9 or ICD-10.
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-version-code-21-icd-9-or-icd-10
type: VARCHAR(1)
- DGNS_VRSN_CD_22:
description:
@@ -18452,6 +21012,7 @@ cms:
original_type: CHAR
text: Version Code 22 - Indicate if diagnosis code is ICD-9 or ICD-10.
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-version-code-22-icd-9-or-icd-10
type: VARCHAR(1)
- DGNS_VRSN_CD_23:
description:
@@ -18459,6 +21020,7 @@ cms:
original_type: CHAR
text: Version Code 23 - Indicate if diagnosis code is ICD-9 or ICD-10.
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-version-code-23-icd-9-or-icd-10
type: VARCHAR(1)
- DGNS_VRSN_CD_24:
description:
@@ -18466,6 +21028,7 @@ cms:
original_type: CHAR
text: Version Code 24 - Indicate if diagnosis code is ICD-9 or ICD-10.
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-version-code-24-icd-9-or-icd-10
type: VARCHAR(1)
- DGNS_VRSN_CD_25:
description:
@@ -18473,6 +21036,7 @@ cms:
original_type: CHAR
text: Version Code 25 - Indicate if diagnosis code is ICD-9 or ICD-10.
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-version-code-25-icd-9-or-icd-10
type: VARCHAR(1)
- DGNSCD1:
description:
@@ -18480,6 +21044,7 @@ cms:
original_type: CHAR
text: Primary ICD-9-CM code
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-principal-diagnosis-code
type: VARCHAR(7)
- DGNSCD2:
description:
@@ -18487,6 +21052,7 @@ cms:
original_type: CHAR
text: ICD-9-CM Diagnosis code II
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-code-2
type: VARCHAR(7)
- DGNSCD3:
description:
@@ -18494,6 +21060,7 @@ cms:
original_type: CHAR
text: ICD-9-CM Diagnosis code III
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-code-3
type: VARCHAR(7)
- DGNSCD4:
description:
@@ -18501,6 +21068,7 @@ cms:
original_type: CHAR
text: ICD-9-CM Diagnosis code IV
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-code-4
type: VARCHAR(7)
- DGNSCD5:
description:
@@ -18508,6 +21076,7 @@ cms:
original_type: CHAR
text: ICD-9-CM Diagnosis code V
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-code-5
type: VARCHAR(7)
- DGNSCD6:
description:
@@ -18515,6 +21084,7 @@ cms:
original_type: CHAR
text: ICD-9-CM Diagnosis code VI
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-code-6
type: VARCHAR(7)
- DGNSCD7:
description:
@@ -18522,6 +21092,7 @@ cms:
original_type: CHAR
text: ICD-9-CM Diagnosis code VII
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-code-7
type: VARCHAR(7)
- DGNSCD8:
description:
@@ -18529,6 +21100,7 @@ cms:
original_type: CHAR
text: ICD-9-CM Diagnosis code VIII
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-code-8
type: VARCHAR(7)
- DGNSCD9:
description:
@@ -18536,6 +21108,7 @@ cms:
original_type: CHAR
text: ICD-9-CM Diagnosis code IX
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-code-9
type: VARCHAR(7)
- DGNSCD10:
description:
@@ -18543,6 +21116,7 @@ cms:
original_type: CHAR
text: ICD-9-CM Diagnosis code X
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-icd-9-cm-diagnosis-code-10
type: VARCHAR(7)
- DGNSCD11:
description:
@@ -18550,6 +21124,7 @@ cms:
original_type: CHAR
text: ICD-9-CM Diagnosis code XI
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-icd-9-cm-diagnosis-code-11
type: VARCHAR(7)
- DGNSCD12:
description:
@@ -18557,6 +21132,7 @@ cms:
original_type: CHAR
text: ICD-9-CM Diagnosis code XII
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-icd-9-cm-diagnosis-code-12
type: VARCHAR(7)
- DGNSCD13:
description:
@@ -18564,6 +21140,7 @@ cms:
original_type: CHAR
text: ICD-9-CM Diagnosis code XIII
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-icd-9-cm-diagnosis-code-13
type: VARCHAR(7)
- DGNSCD14:
description:
@@ -18571,6 +21148,7 @@ cms:
original_type: CHAR
text: ICD-9-CM Diagnosis code XIV
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-icd-9-cm-diagnosis-code-14
type: VARCHAR(7)
- DGNSCD15:
description:
@@ -18578,6 +21156,7 @@ cms:
original_type: CHAR
text: ICD-9-CM Diagnosis code XV
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-icd-9-cm-diagnosis-code-15
type: VARCHAR(7)
- DGNSCD16:
description:
@@ -18585,6 +21164,7 @@ cms:
original_type: CHAR
text: ICD-9-CM Diagnosis code XVI
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-icd-9-cm-diagnosis-code-16
type: VARCHAR(7)
- DGNSCD17:
description:
@@ -18592,6 +21172,7 @@ cms:
original_type: CHAR
text: ICD-9-CM Diagnosis code XVII
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-icd-9-cm-diagnosis-code-17
type: VARCHAR(7)
- DGNSCD18:
description:
@@ -18599,6 +21180,7 @@ cms:
original_type: CHAR
text: ICD-9-CM Diagnosis code XVIII
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-icd-9-cm-diagnosis-code-18
type: VARCHAR(7)
- DGNSCD19:
description:
@@ -18606,6 +21188,7 @@ cms:
original_type: CHAR
text: ICD-9-CM Diagnosis code XIX
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-icd-9-cm-diagnosis-code-19
type: VARCHAR(7)
- DGNSCD20:
description:
@@ -18613,6 +21196,7 @@ cms:
original_type: CHAR
text: ICD-9-CM Diagnosis code XX
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-icd-9-cm-diagnosis-code-20
type: VARCHAR(7)
- DGNSCD21:
description:
@@ -18620,6 +21204,7 @@ cms:
original_type: CHAR
text: ICD-9-CM Diagnosis code XXI
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-icd-9-cm-diagnosis-code-21
type: VARCHAR(7)
- DGNSCD22:
description:
@@ -18627,6 +21212,7 @@ cms:
original_type: CHAR
text: ICD-9-CM Diagnosis code XXII
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-icd-9-cm-diagnosis-code-22
type: VARCHAR(7)
- DGNSCD23:
description:
@@ -18634,6 +21220,7 @@ cms:
original_type: CHAR
text: ICD-9-CM Diagnosis code XXIII
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-icd-9-cm-diagnosis-code-23
type: VARCHAR(7)
- DGNSCD24:
description:
@@ -18641,6 +21228,7 @@ cms:
original_type: CHAR
text: ICD-9-CM Diagnosis code XXIV
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-icd-9-cm-diagnosis-code-24
type: VARCHAR(7)
- DGNSCD25:
description:
@@ -18648,6 +21236,7 @@ cms:
original_type: CHAR
text: ICD-9-CM Diagnosis code XXV
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-icd-9-cm-diagnosis-code-25
type: VARCHAR(7)
- DGNS_POA:
description:
@@ -18655,6 +21244,7 @@ cms:
original_type: CHAR
text: Diagnosis Code POA Array
width: 10.0
+ reference: https://resdac.org/cms-data/variables/diagnosis-code-poa-array
type: VARCHAR(10)
- POA_DGNS_CD_CNT:
description:
@@ -18662,6 +21252,7 @@ cms:
original_type: NUM
text: MEDPAR Claim Present on Admission Diagnosis Code Count
width: 3.0
+ reference: https://resdac.org/cms-data/variables/count-present-admission-poa-diagnosis-codes
type: INT
- POA_DGNS_1_IND_CD:
description:
@@ -18669,6 +21260,7 @@ cms:
original_type: CHAR
text: Diagnosis Present on Admission Indicator 1
width: 1.0
+ reference: https://resdac.org/cms-data/variables/diagnosis-1-present-admission-poa-indicator-code
type: VARCHAR(1)
- POA_DGNS_2_IND_CD:
description:
@@ -18676,6 +21268,7 @@ cms:
original_type: CHAR
text: Diagnosis Present on Admission Indicator 2
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-present-admission-indicator-2
type: VARCHAR(1)
- POA_DGNS_3_IND_CD:
description:
@@ -18683,6 +21276,7 @@ cms:
original_type: CHAR
text: Diagnosis Present on Admission Indicator 3
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-present-admission-indicator-3
type: VARCHAR(1)
- POA_DGNS_4_IND_CD:
description:
@@ -18690,6 +21284,7 @@ cms:
original_type: CHAR
text: Diagnosis Present on Admission Indicator 4
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-present-admission-indicator-4
type: VARCHAR(1)
- POA_DGNS_5_IND_CD:
description:
@@ -18697,6 +21292,7 @@ cms:
original_type: CHAR
text: Diagnosis Present on Admission Indicator 5
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-present-admission-indicator-5
type: VARCHAR(1)
- POA_DGNS_6_IND_CD:
description:
@@ -18704,6 +21300,7 @@ cms:
original_type: CHAR
text: Diagnosis Present on Admission Indicator 6
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-present-admission-indicator-6
type: VARCHAR(1)
- POA_DGNS_7_IND_CD:
description:
@@ -18711,6 +21308,7 @@ cms:
original_type: CHAR
text: Diagnosis Present on Admission Indicator 7
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-present-admission-indicator-7
type: VARCHAR(1)
- POA_DGNS_8_IND_CD:
description:
@@ -18718,6 +21316,7 @@ cms:
original_type: CHAR
text: Diagnosis Present on Admission Indicator 8
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-present-admission-indicator-8
type: VARCHAR(1)
- POA_DGNS_9_IND_CD:
description:
@@ -18725,6 +21324,7 @@ cms:
original_type: CHAR
text: Diagnosis Present on Admission Indicator 9
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-present-admission-indicator-9
type: VARCHAR(1)
- POA_DGNS_10_IND_CD:
description:
@@ -18732,6 +21332,7 @@ cms:
original_type: CHAR
text: Diagnosis Present on Admission Indicator 10
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-present-admission-indicator-10
type: VARCHAR(1)
- POA_DGNS_11_IND_CD:
description:
@@ -18739,6 +21340,7 @@ cms:
original_type: CHAR
text: Diagnosis Present on Admission Indicator 11
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-present-admission-indicator-11
type: VARCHAR(1)
- POA_DGNS_12_IND_CD:
description:
@@ -18746,6 +21348,7 @@ cms:
original_type: CHAR
text: Diagnosis Present on Admission Indicator 12
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-present-admission-indicator-12
type: VARCHAR(1)
- POA_DGNS_13_IND_CD:
description:
@@ -18753,6 +21356,7 @@ cms:
original_type: CHAR
text: Diagnosis Present on Admission Indicator 13
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-present-admission-indicator-13
type: VARCHAR(1)
- POA_DGNS_14_IND_CD:
description:
@@ -18760,6 +21364,7 @@ cms:
original_type: CHAR
text: Diagnosis Present on Admission Indicator 14
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-present-admission-indicator-14
type: VARCHAR(1)
- POA_DGNS_15_IND_CD:
description:
@@ -18767,6 +21372,7 @@ cms:
original_type: CHAR
text: Diagnosis Present on Admission Indicator 15
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-present-admission-indicator-15
type: VARCHAR(1)
- POA_DGNS_16_IND_CD:
description:
@@ -18774,6 +21380,7 @@ cms:
original_type: CHAR
text: Diagnosis Present on Admission Indicator 16
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-present-admission-indicator-16
type: VARCHAR(1)
- POA_DGNS_17_IND_CD:
description:
@@ -18781,6 +21388,7 @@ cms:
original_type: CHAR
text: Diagnosis Present on Admission Indicator 17
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-present-admission-indicator-17
type: VARCHAR(1)
- POA_DGNS_18_IND_CD:
description:
@@ -18788,6 +21396,7 @@ cms:
original_type: CHAR
text: Diagnosis Present on Admission Indicator 18
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-present-admission-indicator-18
type: VARCHAR(1)
- POA_DGNS_19_IND_CD:
description:
@@ -18795,6 +21404,7 @@ cms:
original_type: CHAR
text: Diagnosis Present on Admission Indicator 19
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-present-admission-indicator-19
type: VARCHAR(1)
- POA_DGNS_20_IND_CD:
description:
@@ -18802,6 +21412,7 @@ cms:
original_type: CHAR
text: Diagnosis Present on Admission Indicator 20
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-present-admission-indicator-20
type: VARCHAR(1)
- POA_DGNS_21_IND_CD:
description:
@@ -18809,6 +21420,7 @@ cms:
original_type: CHAR
text: Diagnosis Present on Admission Indicator 21
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-present-admission-indicator-21
type: VARCHAR(1)
- POA_DGNS_22_IND_CD:
description:
@@ -18816,6 +21428,7 @@ cms:
original_type: CHAR
text: Diagnosis Present on Admission Indicator 22
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-present-admission-indicator-22
type: VARCHAR(1)
- POA_DGNS_23_IND_CD:
description:
@@ -18823,6 +21436,7 @@ cms:
original_type: CHAR
text: Diagnosis Present on Admission Indicator 23
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-present-admission-indicator-23
type: VARCHAR(1)
- POA_DGNS_24_IND_CD:
description:
@@ -18830,6 +21444,7 @@ cms:
original_type: CHAR
text: Diagnosis Present on Admission Indicator 24
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-present-admission-indicator-24
type: VARCHAR(1)
- POA_DGNS_25_IND_CD:
description:
@@ -18837,6 +21452,7 @@ cms:
original_type: CHAR
text: Diagnosis Present on Admission Indicator 25
width: 1.0
+ reference: https://resdac.org/cms-data/variables/diagnosis-e-code-present-admission-indicator-8
type: VARCHAR(1)
- DGNS_E_CD_CNT:
description:
@@ -18844,6 +21460,7 @@ cms:
original_type: NUM
text: MEDPAR Diagnosis E Code Count
width: 3.0
+ reference: https://resdac.org/cms-data/variables/count-diagnosis-e-codes
type: INT
- DGNS_E_VRSN_CD:
description:
@@ -18851,6 +21468,7 @@ cms:
original_type: CHAR
text: MEDPAR Diagnosis E Version Code (Earlier Version)
width: 1.0
+ reference: https://resdac.org/cms-data/variables/diagnosis-e-version-code-earlier-version
type: VARCHAR(1)
- DGNS_E_VRSN_CD_1:
description:
@@ -18858,6 +21476,7 @@ cms:
original_type: CHAR
text: MEDPAR Diagnosis E Version Code 01
width: 1.0
+ reference: https://resdac.org/cms-data/variables/diagnosis-e-version-code-1
type: VARCHAR(1)
- DGNS_E_VRSN_CD_2:
description:
@@ -18865,6 +21484,7 @@ cms:
original_type: CHAR
text: MEDPAR Diagnosis E Version Code 02
width: 1.0
+ reference: https://resdac.org/cms-data/variables/diagnosis-e-version-code-2
type: VARCHAR(1)
- DGNS_E_VRSN_CD_3:
description:
@@ -18872,6 +21492,7 @@ cms:
original_type: CHAR
text: MEDPAR Diagnosis E Version Code 03
width: 1.0
+ reference: https://resdac.org/cms-data/variables/diagnosis-e-version-code-3
type: VARCHAR(1)
- DGNS_E_VRSN_CD_4:
description:
@@ -18879,6 +21500,7 @@ cms:
original_type: CHAR
text: MEDPAR Diagnosis E Version Code 04
width: 1.0
+ reference: https://resdac.org/cms-data/variables/diagnosis-e-version-code-4
type: VARCHAR(1)
- DGNS_E_VRSN_CD_5:
description:
@@ -18886,6 +21508,7 @@ cms:
original_type: CHAR
text: MEDPAR Diagnosis E Version Code 05
width: 1.0
+ reference: https://resdac.org/cms-data/variables/diagnosis-e-version-code-5
type: VARCHAR(1)
- DGNS_E_VRSN_CD_6:
description:
@@ -18893,6 +21516,7 @@ cms:
original_type: CHAR
text: MEDPAR Diagnosis E Version Code 06
width: 1.0
+ reference: https://resdac.org/cms-data/variables/diagnosis-e-version-code-6
type: VARCHAR(1)
- DGNS_E_VRSN_CD_7:
description:
@@ -18900,6 +21524,7 @@ cms:
original_type: CHAR
text: MEDPAR Diagnosis E Version Code 07
width: 1.0
+ reference: https://resdac.org/cms-data/variables/diagnosis-e-version-code-7
type: VARCHAR(1)
- DGNS_E_VRSN_CD_8:
description:
@@ -18907,6 +21532,7 @@ cms:
original_type: CHAR
text: MEDPAR Diagnosis E Version Code 08
width: 1.0
+ reference: https://resdac.org/cms-data/variables/diagnosis-e-version-code-8
type: VARCHAR(1)
- DGNS_E_VRSN_CD_9:
description:
@@ -18914,6 +21540,7 @@ cms:
original_type: CHAR
text: MEDPAR Diagnosis E Version Code 09
width: 1.0
+ reference: https://resdac.org/cms-data/variables/diagnosis-e-version-code-9
type: VARCHAR(1)
- DGNS_E_VRSN_CD_10:
description:
@@ -18921,6 +21548,7 @@ cms:
original_type: CHAR
text: MEDPAR Diagnosis E Version Code 10
width: 1.0
+ reference: https://resdac.org/cms-data/variables/diagnosis-e-version-code-10
type: VARCHAR(1)
- DGNS_E_VRSN_CD_11:
description:
@@ -18928,6 +21556,7 @@ cms:
original_type: CHAR
text: MEDPAR Diagnosis E Version Code 11
width: 1.0
+ reference: https://resdac.org/cms-data/variables/diagnosis-e-version-code-11
type: VARCHAR(1)
- DGNS_E_VRSN_CD_12:
description:
@@ -18935,6 +21564,7 @@ cms:
original_type: CHAR
text: MEDPAR Diagnosis E Version Code 12
width: 1.0
+ reference: https://resdac.org/cms-data/variables/diagnosis-e-version-code-12
type: VARCHAR(1)
- DGNS_E_1_CD:
description:
@@ -18943,6 +21573,7 @@ cms:
text: E Diagnosis Code 1 - Extrnl cause of injury, poisoning, or oth
adverse effect
width: 7.0
+ reference: https://resdac.org/cms-data/variables/diagnosis-e-version-code-1
type: VARCHAR(7)
- DGNS_E_2_CD:
description:
@@ -18951,6 +21582,7 @@ cms:
text: E Diagnosis Code 2 - Extrnl cause of injury, poisoning, or oth
adverse effect
width: 7.0
+ reference: https://resdac.org/cms-data/variables/diagnosis-e-code-2
type: VARCHAR(7)
- DGNS_E_3_CD:
description:
@@ -18959,6 +21591,7 @@ cms:
text: E Diagnosis Code 3 - Extrnl cause of injury, poisoning, or oth
adverse effect
width: 7.0
+ reference: https://resdac.org/cms-data/variables/diagnosis-e-code-3
type: VARCHAR(7)
- DGNS_E_4_CD:
description:
@@ -18967,6 +21600,7 @@ cms:
text: E Diagnosis Code 4 - Extrnl cause of injury, poisoning, or oth
adverse effect
width: 7.0
+ reference: https://resdac.org/cms-data/variables/diagnosis-e-code-4
type: VARCHAR(7)
- DGNS_E_5_CD:
description:
@@ -18975,6 +21609,7 @@ cms:
text: E Diagnosis Code 5 - Extrnl cause of injury, poisoning, or oth
adverse effect
width: 7.0
+ reference: https://resdac.org/cms-data/variables/diagnosis-e-code-5
type: VARCHAR(7)
- DGNS_E_6_CD:
description:
@@ -18983,6 +21618,7 @@ cms:
text: E Diagnosis Code 6 - Extrnl cause of injury, poisoning, or oth
adverse effect
width: 7.0
+ reference: https://resdac.org/cms-data/variables/diagnosis-e-code-6
type: VARCHAR(7)
- DGNS_E_7_CD:
description:
@@ -18991,6 +21627,7 @@ cms:
text: E Diagnosis Code 7 - Extrnl cause of injury, poisoning, or oth
adverse effect
width: 7.0
+ reference: https://resdac.org/cms-data/variables/diagnosis-e-code-7
type: VARCHAR(7)
- DGNS_E_8_CD:
description:
@@ -18999,6 +21636,7 @@ cms:
text: E Diagnosis Code 8 - Extrnl cause of injury, poisoning, or oth
adverse effect
width: 7.0
+ reference: https://resdac.org/cms-data/variables/diagnosis-e-code-8
type: VARCHAR(7)
- DGNS_E_9_CD:
description:
@@ -19007,6 +21645,7 @@ cms:
text: E Diagnosis Code 9 - Extrnl cause of injury, poisoning, or oth
adverse effect
width: 7.0
+ reference: https://resdac.org/cms-data/variables/diagnosis-e-code-9
type: VARCHAR(7)
- DGNS_E_10_CD:
description:
@@ -19015,6 +21654,7 @@ cms:
text: E Diagnosis Code 10 - Extrnl cause of injury, poisoning, or oth
adverse effect
width: 7.0
+ reference: https://resdac.org/cms-data/variables/diagnosis-e-code-10
type: VARCHAR(7)
- DGNS_E_11_CD:
description:
@@ -19023,6 +21663,7 @@ cms:
text: E Diagnosis Code 11 - Extrnl cause of injury, poisoning, or oth
adverse effect
width: 7.0
+ reference: https://resdac.org/cms-data/variables/diagnosis-e-code-11
type: VARCHAR(7)
- DGNS_E_12_CD:
description:
@@ -19031,6 +21672,7 @@ cms:
text: E Diagnosis Code 12 - Extrnl cause of injury, poisoning, or oth
adverse effect
width: 7.0
+ reference: https://resdac.org/cms-data/variables/diagnosis-e-version-code-1
type: VARCHAR(7)
- POA_DGNS_E_CD_CNT:
description:
@@ -19038,6 +21680,7 @@ cms:
original_type: NUM
text: MEDPAR Claim Present on Admission Diagnosis E Code Count
width: 3.0
+ reference: https://resdac.org/cms-data/variables/count-present-admission-poa-diagnosis-e-codes
type: INT
- POA_DGNS_E_1_IND_CD:
description:
@@ -19045,6 +21688,7 @@ cms:
original_type: CHAR
text: Diagnosis E Code Present on Admission Indicator 1
width: 1.0
+ reference: https://resdac.org/cms-data/variables/diagnosis-1-present-admission-poa-indicator-code
type: VARCHAR(1)
- POA_DGNS_E_2_IND_CD:
description:
@@ -19052,6 +21696,7 @@ cms:
original_type: CHAR
text: Diagnosis E Code Present on Admission Indicator 2
width: 1.0
+ reference: https://resdac.org/cms-data/variables/diagnosis-e-code-present-admission-indicator-2
type: VARCHAR(1)
- POA_DGNS_E_3_IND_CD:
description:
@@ -19059,6 +21704,7 @@ cms:
original_type: CHAR
text: Diagnosis E Code Present on Admission Indicator 3
width: 1.0
+ reference: https://resdac.org/cms-data/variables/diagnosis-e-code-present-admission-indicator-3
type: VARCHAR(1)
- POA_DGNS_E_4_IND_CD:
description:
@@ -19066,6 +21712,7 @@ cms:
original_type: CHAR
text: Diagnosis E Code Present on Admission Indicator 4
width: 1.0
+ reference: https://resdac.org/cms-data/variables/diagnosis-e-code-present-admission-indicator-4
type: VARCHAR(1)
- POA_DGNS_E_5_IND_CD:
description:
@@ -19073,6 +21720,7 @@ cms:
original_type: CHAR
text: Diagnosis E Code Present on Admission Indicator 5
width: 1.0
+ reference: https://resdac.org/cms-data/variables/diagnosis-e-code-present-admission-indicator-5
type: VARCHAR(1)
- POA_DGNS_E_6_IND_CD:
description:
@@ -19080,6 +21728,7 @@ cms:
original_type: CHAR
text: Diagnosis E Code Present on Admission Indicator 6
width: 1.0
+ reference: https://resdac.org/cms-data/variables/diagnosis-e-code-present-admission-indicator-6
type: VARCHAR(1)
- POA_DGNS_E_7_IND_CD:
description:
@@ -19087,6 +21736,7 @@ cms:
original_type: CHAR
text: Diagnosis E Code Present on Admission Indicator 7
width: 1.0
+ reference: https://resdac.org/cms-data/variables/diagnosis-e-code-present-admission-indicator-7
type: VARCHAR(1)
- POA_DGNS_E_8_IND_CD:
description:
@@ -19094,6 +21744,7 @@ cms:
original_type: CHAR
text: Diagnosis E Code Present on Admission Indicator 8
width: 1.0
+ reference: https://resdac.org/cms-data/variables/diagnosis-e-code-present-admission-indicator-8
type: VARCHAR(1)
- POA_DGNS_E_9_IND_CD:
description:
@@ -19101,6 +21752,7 @@ cms:
original_type: CHAR
text: Diagnosis E Code Present on Admission Indicator 9
width: 1.0
+ reference: https://resdac.org/cms-data/variables/diagnosis-e-code-present-admission-indicator-9
type: VARCHAR(1)
- POA_DGNS_E_10_IND_CD:
description:
@@ -19108,6 +21760,7 @@ cms:
original_type: CHAR
text: Diagnosis E Code Present on Admission Indicator 10
width: 1.0
+ reference: https://resdac.org/cms-data/variables/diagnosis-e-code-present-admission-indicator-10
type: VARCHAR(1)
- POA_DGNS_E_11_IND_CD:
description:
@@ -19115,6 +21768,7 @@ cms:
original_type: CHAR
text: Diagnosis E Code Present on Admission Indicator 11
width: 1.0
+ reference: https://resdac.org/cms-data/variables/diagnosis-e-code-present-admission-indicator-11
type: VARCHAR(1)
- POA_DGNS_E_12_IND_CD:
description:
@@ -19122,6 +21776,7 @@ cms:
original_type: CHAR
text: Diagnosis E Code Present on Admission Indicator 12
width: 1.0
+ reference: https://resdac.org/cms-data/variables/diagnosis-e-code-present-admission-indicator-12
type: VARCHAR(1)
- PRCDRSW:
description:
@@ -19129,6 +21784,7 @@ cms:
original_type: CHAR
text: Surgical procedures indicator
width: 1.0
+ reference: https://resdac.org/cms-data/variables/surgical-procedure-indicator
type: VARCHAR(1)
- PRCDRCNT:
description:
@@ -19136,6 +21792,7 @@ cms:
original_type: NUM
text: Surgical procedure codes included in stay
width: 3.0
+ reference: https://resdac.org/cms-data/variables/surgical-procedure-codes-included-stay
type: INT
- SRGCL_PRCDR_VRSN_CD:
description:
@@ -19143,6 +21800,7 @@ cms:
original_type: CHAR
text: MEDPAR Surgical Procedure Version Code (Earlier Version)
width: 1.0
+ reference: https://resdac.org/cms-data/variables/surgical-procedure-version-code-earlier-version
type: VARCHAR(1)
- SRGCL_PRCDR_VRSN_CD_1:
description:
@@ -19150,6 +21808,7 @@ cms:
original_type: CHAR
text: MEDPAR Surgical Procedure Version Code 01
width: 1.0
+ reference: https://resdac.org/cms-data/variables/principal-procedure-code
type: VARCHAR(1)
- SRGCL_PRCDR_VRSN_CD_2:
description:
@@ -19157,6 +21816,7 @@ cms:
original_type: CHAR
text: MEDPAR Surgical Procedure Version Code 02
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-surgical-procedure-version-code-2
type: VARCHAR(1)
- SRGCL_PRCDR_VRSN_CD_3:
description:
@@ -19164,6 +21824,7 @@ cms:
original_type: CHAR
text: MEDPAR Surgical Procedure Version Code 03
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-surgical-procedure-version-code-3
type: VARCHAR(1)
- SRGCL_PRCDR_VRSN_CD_4:
description:
@@ -19171,6 +21832,7 @@ cms:
original_type: CHAR
text: MEDPAR Surgical Procedure Version Code 04
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-surgical-procedure-version-code-4
type: VARCHAR(1)
- SRGCL_PRCDR_VRSN_CD_5:
description:
@@ -19178,6 +21840,7 @@ cms:
original_type: CHAR
text: MEDPAR Surgical Procedure Version Code 05
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-surgical-procedure-version-code-5
type: VARCHAR(1)
- SRGCL_PRCDR_VRSN_CD_6:
description:
@@ -19185,6 +21848,7 @@ cms:
original_type: CHAR
text: MEDPAR Surgical Procedure Version Code 06
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-surgical-procedure-version-code-6
type: VARCHAR(1)
- SRGCL_PRCDR_VRSN_CD_7:
description:
@@ -19192,6 +21856,7 @@ cms:
original_type: CHAR
text: MEDPAR Surgical Procedure Version Code 07
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-surgical-procedure-version-code-7
type: VARCHAR(1)
- SRGCL_PRCDR_VRSN_CD_8:
description:
@@ -19199,6 +21864,7 @@ cms:
original_type: CHAR
text: MEDPAR Surgical Procedure Version Code 08
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-surgical-procedure-version-code-8
type: VARCHAR(1)
- SRGCL_PRCDR_VRSN_CD_9:
description:
@@ -19206,6 +21872,7 @@ cms:
original_type: CHAR
text: MEDPAR Surgical Procedure Version Code 09
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-surgical-procedure-version-code-9
type: VARCHAR(1)
- SRGCL_PRCDR_VRSN_CD_10:
description:
@@ -19213,6 +21880,7 @@ cms:
original_type: CHAR
text: MEDPAR Surgical Procedure Version Code 10
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-surgical-procedure-version-code-10
type: VARCHAR(1)
- SRGCL_PRCDR_VRSN_CD_11:
description:
@@ -19220,6 +21888,7 @@ cms:
original_type: CHAR
text: MEDPAR Surgical Procedure Version Code 11
width: 1.0
+ reference: https://resdac.org/cms-data/variables/surgical-procedure-version-code-earlier-version
type: VARCHAR(1)
- SRGCL_PRCDR_VRSN_CD_12:
description:
@@ -19227,6 +21896,7 @@ cms:
original_type: CHAR
text: MEDPAR Surgical Procedure Version Code 12
width: 1.0
+ reference: https://resdac.org/cms-data/variables/surgical-procedure-version-code-earlier-version
type: VARCHAR(1)
- SRGCL_PRCDR_VRSN_CD_13:
description:
@@ -19234,6 +21904,7 @@ cms:
original_type: CHAR
text: MEDPAR Surgical Procedure Version Code 13
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-surgical-procedure-version-code-13
type: VARCHAR(1)
- SRGCL_PRCDR_VRSN_CD_14:
description:
@@ -19241,6 +21912,7 @@ cms:
original_type: CHAR
text: MEDPAR Surgical Procedure Version Code 14
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-surgical-procedure-version-code-14
type: VARCHAR(1)
- SRGCL_PRCDR_VRSN_CD_15:
description:
@@ -19248,6 +21920,7 @@ cms:
original_type: CHAR
text: MEDPAR Surgical Procedure Version Code 15
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-surgical-procedure-version-code-15
type: VARCHAR(1)
- SRGCL_PRCDR_VRSN_CD_16:
description:
@@ -19255,6 +21928,7 @@ cms:
original_type: CHAR
text: MEDPAR Surgical Procedure Version Code 16
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-surgical-procedure-version-code-16
type: VARCHAR(1)
- SRGCL_PRCDR_VRSN_CD_17:
description:
@@ -19262,6 +21936,7 @@ cms:
original_type: CHAR
text: MEDPAR Surgical Procedure Version Code 17
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-surgical-procedure-version-code-17
type: VARCHAR(1)
- SRGCL_PRCDR_VRSN_CD_18:
description:
@@ -19269,6 +21944,7 @@ cms:
original_type: CHAR
text: MEDPAR Surgical Procedure Version Code 18
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-surgical-procedure-version-code-18
type: VARCHAR(1)
- SRGCL_PRCDR_VRSN_CD_19:
description:
@@ -19276,6 +21952,7 @@ cms:
original_type: CHAR
text: MEDPAR Surgical Procedure Version Code 19
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-surgical-procedure-version-code-19
type: VARCHAR(1)
- SRGCL_PRCDR_VRSN_CD_20:
description:
@@ -19283,6 +21960,7 @@ cms:
original_type: CHAR
text: MEDPAR Surgical Procedure Version Code 20
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-surgical-procedure-version-code-20
type: VARCHAR(1)
- SRGCL_PRCDR_VRSN_CD_21:
description:
@@ -19290,6 +21968,7 @@ cms:
original_type: CHAR
text: MEDPAR Surgical Procedure Version Code 21
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-surgical-procedure-version-code-21
type: VARCHAR(1)
- SRGCL_PRCDR_VRSN_CD_22:
description:
@@ -19297,6 +21976,7 @@ cms:
original_type: CHAR
text: MEDPAR Surgical Procedure Version Code 22
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-surgical-procedure-version-code-22
type: VARCHAR(1)
- SRGCL_PRCDR_VRSN_CD_23:
description:
@@ -19304,6 +21984,7 @@ cms:
original_type: CHAR
text: MEDPAR Surgical Procedure Version Code 23
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-surgical-procedure-version-code-23
type: VARCHAR(1)
- SRGCL_PRCDR_VRSN_CD_24:
description:
@@ -19311,6 +21992,7 @@ cms:
original_type: CHAR
text: MEDPAR Surgical Procedure Version Code 24
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-surgical-procedure-version-code-24
type: VARCHAR(1)
- SRGCL_PRCDR_VRSN_CD_25:
description:
@@ -19318,6 +22000,7 @@ cms:
original_type: CHAR
text: MEDPAR Surgical Procedure Version Code 25
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-procedure-code-4
type: VARCHAR(1)
- PRCDRCD1:
description:
@@ -19325,6 +22008,7 @@ cms:
original_type: CHAR
text: Principal Procedure code
width: 7.0
+ reference: https://resdac.org/cms-data/variables/principal-procedure-code
type: VARCHAR(7)
- PRCDRCD2:
description:
@@ -19332,6 +22016,7 @@ cms:
original_type: CHAR
text: Procedure Code II
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-procedure-code-2
type: VARCHAR(7)
- PRCDRCD3:
description:
@@ -19339,6 +22024,7 @@ cms:
original_type: CHAR
text: Procedure Code III
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-procedure-code-3
type: VARCHAR(7)
- PRCDRCD4:
description:
@@ -19346,6 +22032,7 @@ cms:
original_type: CHAR
text: Procedure Code IV
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-procedure-code-4
type: VARCHAR(7)
- PRCDRCD5:
description:
@@ -19353,6 +22040,7 @@ cms:
original_type: CHAR
text: Procedure Code V
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-procedure-code-5
type: VARCHAR(7)
- PRCDRCD6:
description:
@@ -19360,6 +22048,7 @@ cms:
original_type: CHAR
text: Procedure Code VI
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-procedure-code-6
type: VARCHAR(7)
- PRCDRCD7:
description:
@@ -19367,6 +22056,7 @@ cms:
original_type: CHAR
text: Procedure Code VII
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-procedure-code-7
type: VARCHAR(7)
- PRCDRCD8:
description:
@@ -19374,6 +22064,7 @@ cms:
original_type: CHAR
text: Procedure Code VIII
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-procedure-code-8
type: VARCHAR(7)
- PRCDRCD9:
description:
@@ -19381,6 +22072,7 @@ cms:
original_type: CHAR
text: Procedure Code IX
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-procedure-code-9
type: VARCHAR(7)
- PRCDRCD10:
description:
@@ -19388,6 +22080,7 @@ cms:
original_type: CHAR
text: Procedure Code X
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-procedure-code-10
type: VARCHAR(7)
- PRCDRCD11:
description:
@@ -19395,6 +22088,7 @@ cms:
original_type: CHAR
text: Procedure Code XI
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-procedure-code-11
type: VARCHAR(7)
- PRCDRCD12:
description:
@@ -19402,6 +22096,7 @@ cms:
original_type: CHAR
text: Procedure Code XII
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-procedure-code-12
type: VARCHAR(7)
- PRCDRCD13:
description:
@@ -19409,6 +22104,7 @@ cms:
original_type: CHAR
text: Procedure Code XIII
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-procedure-code-13
type: VARCHAR(7)
- PRCDRCD14:
description:
@@ -19416,6 +22112,7 @@ cms:
original_type: CHAR
text: Procedure Code XIV
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-procedure-code-14
type: VARCHAR(7)
- PRCDRCD15:
description:
@@ -19423,6 +22120,7 @@ cms:
original_type: CHAR
text: Procedure Code XV
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-procedure-code-15
type: VARCHAR(7)
- PRCDRCD16:
description:
@@ -19430,6 +22128,7 @@ cms:
original_type: CHAR
text: Procedure Code XVI
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-procedure-code-16
type: VARCHAR(7)
- PRCDRCD17:
description:
@@ -19437,6 +22136,7 @@ cms:
original_type: CHAR
text: Procedure Code XVII
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-procedure-code-17
type: VARCHAR(7)
- PRCDRCD18:
description:
@@ -19444,6 +22144,7 @@ cms:
original_type: CHAR
text: Procedure Code XVIII
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-procedure-code-18
type: VARCHAR(7)
- PRCDRCD19:
description:
@@ -19451,6 +22152,7 @@ cms:
original_type: CHAR
text: Procedure Code XIX
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-procedure-code-19
type: VARCHAR(7)
- PRCDRCD20:
description:
@@ -19458,6 +22160,7 @@ cms:
original_type: CHAR
text: Procedure Code XX
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-procedure-code-20
type: VARCHAR(7)
- PRCDRCD21:
description:
@@ -19465,6 +22168,7 @@ cms:
original_type: CHAR
text: Procedure Code XXI
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-procedure-code-21
type: VARCHAR(7)
- PRCDRCD22:
description:
@@ -19472,6 +22176,7 @@ cms:
original_type: CHAR
text: Procedure Code XXII
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-procedure-code-22
type: VARCHAR(7)
- PRCDRCD23:
description:
@@ -19479,6 +22184,7 @@ cms:
original_type: CHAR
text: Procedure Code XXIII
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-procedure-code-23
type: VARCHAR(7)
- PRCDRCD24:
description:
@@ -19486,6 +22192,7 @@ cms:
original_type: CHAR
text: Procedure Code XXIV
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-procedure-code-24
type: VARCHAR(7)
- PRCDRCD25:
description:
@@ -19493,6 +22200,7 @@ cms:
original_type: CHAR
text: Procedure Code XXV
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-procedure-code-25
type: VARCHAR(7)
- PRCDTCNT:
description:
@@ -19500,6 +22208,7 @@ cms:
original_type: NUM
text: Dates associated with surgical procedures included in stay
width: 3.0
+ reference: https://resdac.org/cms-data/variables/dates-associated-surgical-procedures-included-stay
type: INT
- PRCDRDT1:
description:
@@ -19507,6 +22216,7 @@ cms:
original_type: DATE
text: Principal Procedure Date
width: 8.0
+ reference: https://resdac.org/cms-data/variables/principal-procedure-date
type: DATE
- PRCDRDT2:
description:
@@ -19514,6 +22224,7 @@ cms:
original_type: DATE
text: Procedure Date II
width: 8.0
+ reference: https://resdac.org/cms-data/variables/procedure-date-2
type: DATE
- PRCDRDT3:
description:
@@ -19521,6 +22232,7 @@ cms:
original_type: DATE
text: Procedure Date III
width: 8.0
+ reference: https://resdac.org/cms-data/variables/procedure-date-3
type: DATE
- PRCDRDT4:
description:
@@ -19528,6 +22240,7 @@ cms:
original_type: DATE
text: Procedure Date IV
width: 8.0
+ reference: https://resdac.org/cms-data/variables/procedure-date-4
type: DATE
- PRCDRDT5:
description:
@@ -19535,6 +22248,7 @@ cms:
original_type: DATE
text: Procedure Date V
width: 8.0
+ reference: null
type: DATE
- PRCDRDT6:
description:
@@ -19542,6 +22256,7 @@ cms:
original_type: DATE
text: Procedure Date VI
width: 8.0
+ reference: https://resdac.org/cms-data/variables/procedure-date-6
type: DATE
- PRCDRDT7:
description:
@@ -19549,6 +22264,7 @@ cms:
original_type: DATE
text: Procedure Date VII
width: 8.0
+ reference: https://resdac.org/cms-data/variables/procedure-date-7
type: DATE
- PRCDRDT8:
description:
@@ -19556,6 +22272,7 @@ cms:
original_type: DATE
text: Procedure Date VIII
width: 8.0
+ reference: https://resdac.org/cms-data/variables/procedure-date-8
type: DATE
- PRCDRDT9:
description:
@@ -19563,6 +22280,7 @@ cms:
original_type: DATE
text: Procedure Date IX
width: 8.0
+ reference: https://resdac.org/cms-data/variables/procedure-date-9
type: DATE
- PRCDRDT10:
description:
@@ -19570,6 +22288,7 @@ cms:
original_type: DATE
text: Procedure Date X
width: 8.0
+ reference: https://resdac.org/cms-data/variables/procedure-date-10
type: DATE
- PRCDRDT11:
description:
@@ -19577,6 +22296,7 @@ cms:
original_type: DATE
text: Procedure Date XI
width: 8.0
+ reference: https://resdac.org/cms-data/variables/procedure-date-11
type: DATE
- PRCDRDT12:
description:
@@ -19584,6 +22304,7 @@ cms:
original_type: DATE
text: Procedure Date XII
width: 8.0
+ reference: https://resdac.org/cms-data/variables/procedure-date-12
type: DATE
- PRCDRDT13:
description:
@@ -19591,6 +22312,7 @@ cms:
original_type: DATE
text: Procedure Date XIII
width: 8.0
+ reference: https://resdac.org/cms-data/variables/procedure-date-13
type: DATE
- PRCDRDT14:
description:
@@ -19598,6 +22320,7 @@ cms:
original_type: DATE
text: Procedure Date XIV
width: 8.0
+ reference: https://resdac.org/cms-data/variables/procedure-date-14
type: DATE
- PRCDRDT15:
description:
@@ -19605,6 +22328,7 @@ cms:
original_type: DATE
text: Procedure Date XV
width: 8.0
+ reference: https://resdac.org/cms-data/variables/procedure-date-15
type: DATE
- PRCDRDT16:
description:
@@ -19612,6 +22336,7 @@ cms:
original_type: DATE
text: Procedure Date XVI
width: 8.0
+ reference: https://resdac.org/cms-data/variables/procedure-date-16
type: DATE
- PRCDRDT17:
description:
@@ -19619,6 +22344,7 @@ cms:
original_type: DATE
text: Procedure Date XVII
width: 8.0
+ reference: https://resdac.org/cms-data/variables/procedure-date-17
type: DATE
- PRCDRDT18:
description:
@@ -19626,6 +22352,7 @@ cms:
original_type: DATE
text: Procedure Date XVIII
width: 8.0
+ reference: https://resdac.org/cms-data/variables/procedure-date-18
type: DATE
- PRCDRDT19:
description:
@@ -19633,6 +22360,7 @@ cms:
original_type: DATE
text: Procedure Date XIX
width: 8.0
+ reference: https://resdac.org/cms-data/variables/procedure-date-19
type: DATE
- PRCDRDT20:
description:
@@ -19640,6 +22368,7 @@ cms:
original_type: DATE
text: Procedure Date XX
width: 8.0
+ reference: https://resdac.org/cms-data/variables/procedure-date-20
type: DATE
- PRCDRDT21:
description:
@@ -19647,6 +22376,7 @@ cms:
original_type: DATE
text: Procedure Date XXI
width: 8.0
+ reference: https://resdac.org/cms-data/variables/procedure-date-21
type: DATE
- PRCDRDT22:
description:
@@ -19654,6 +22384,7 @@ cms:
original_type: DATE
text: Procedure Date XXII
width: 8.0
+ reference: https://resdac.org/cms-data/variables/procedure-date-22
type: DATE
- PRCDRDT23:
description:
@@ -19661,6 +22392,7 @@ cms:
original_type: DATE
text: Procedure Date XXIII
width: 8.0
+ reference: https://resdac.org/cms-data/variables/procedure-date-23
type: DATE
- PRCDRDT24:
description:
@@ -19668,6 +22400,7 @@ cms:
original_type: DATE
text: Procedure Date XXIV
width: 8.0
+ reference: https://resdac.org/cms-data/variables/procedure-date-24
type: DATE
- PRCDRDT25:
description:
@@ -19675,6 +22408,7 @@ cms:
original_type: DATE
text: Procedure Date XXV
width: 8.0
+ reference: https://resdac.org/cms-data/variables/procedure-date-25
type: DATE
- CLM_PTNT_RLTNSHP_CD:
description:
@@ -19682,6 +22416,7 @@ cms:
original_type: CHAR
text: Claim Patient Relationship Code
width: 2.0
+ reference: https://resdac.org/cms-data/variables/claim-patient-relationship-code
type: VARCHAR(2)
- CARE_IMPRVMT_MODEL_1_CD:
description:
@@ -19689,6 +22424,7 @@ cms:
original_type: CHAR
text: Care Improvement Model 1 Code
width: 2.0
+ reference: https://resdac.org/cms-data/variables/care-improvement-model-1-code
type: VARCHAR(2)
- CARE_IMPRVMT_MODEL_2_CD:
description:
@@ -19696,6 +22432,7 @@ cms:
original_type: CHAR
text: Care Improvement Model 2 Code
width: 2.0
+ reference: https://resdac.org/cms-data/variables/care-improvement-model-2-code
type: VARCHAR(2)
- CARE_IMPRVMT_MODEL_3_CD:
description:
@@ -19703,6 +22440,7 @@ cms:
original_type: CHAR
text: Care Improvement Model 3 Code
width: 2.0
+ reference: https://resdac.org/cms-data/variables/care-improvement-model-3-code
type: VARCHAR(2)
- CARE_IMPRVMT_MODEL_4_CD:
description:
@@ -19710,6 +22448,7 @@ cms:
original_type: CHAR
text: Care Improvement Model 4 Code
width: 2.0
+ reference: https://resdac.org/cms-data/variables/care-improvement-model-4-code
type: VARCHAR(2)
- VBP_PRTCPNT_IND_CD:
description:
@@ -19717,6 +22456,7 @@ cms:
original_type: CHAR
text: VBP Participant Indicator Code
width: 1.0
+ reference: https://resdac.org/cms-data/variables/value-based-purchasing-vbp-participant-indicator-code
type: VARCHAR(1)
- HRR_PRTCPNT_IND_CD:
description:
@@ -19724,6 +22464,7 @@ cms:
original_type: CHAR
text: HRR Participant Indicator Code
width: 1.0
+ reference: https://resdac.org/cms-data/variables/hospital-readmission-reduction-hrr-participant-indicator-code
type: VARCHAR(1)
- BNDLD_MODEL_DSCNT_PCT:
description:
@@ -19731,6 +22472,7 @@ cms:
original_type: NUM
text: Bundled Model Discount Percent
width: 7.4
+ reference: https://resdac.org/cms-data/variables/bundled-payment-model-discount-percent
type: NUMERIC(7,4)
- VBP_ADJSTMT_PCT:
description:
@@ -19738,6 +22480,7 @@ cms:
original_type: NUM
text: VBP Adjustment Percent
width: 15.12
+ reference: https://resdac.org/cms-data/variables/value-based-purchasing-vbp-adjustment-percent
type: NUMERIC(15,12)
- HRR_ADJSTMT_PCT:
description:
@@ -19745,6 +22488,7 @@ cms:
original_type: NUM
text: HRR Adjustment Percent
width: 8.5
+ reference: https://resdac.org/cms-data/variables/hospital-readmission-reduction-hrr-adjustment-percent
type: NUMERIC(8,5)
- INFRMTL_ENCTR_IND_SW:
description:
@@ -19752,6 +22496,7 @@ cms:
original_type: CHAR
text: Informational Encounter Indicator Switch
width: 1.0
+ reference: https://resdac.org/cms-data/variables/informational-encounter-indicator
type: VARCHAR(1)
- MA_TCHNG_IND_SW:
description:
@@ -19759,6 +22504,7 @@ cms:
original_type: CHAR
text: MA Teaching Indicator Switch
width: 1.0
+ reference: https://resdac.org/cms-data/variables/ma-teaching-indicator
type: VARCHAR(1)
- PROD_RPLCMT_LIFECYC_SW:
description:
@@ -19766,6 +22512,7 @@ cms:
original_type: CHAR
text: Prod Replacement Lifecycle Switch
width: 1.0
+ reference: https://resdac.org/cms-data/variables/product-replacement-within-product-lifecycle-early
type: VARCHAR(1)
- PROD_RPLCMT_RCLL_SW:
description:
@@ -19773,6 +22520,7 @@ cms:
original_type: CHAR
text: Prod Replacement Recall Switch
width: 1.0
+ reference: https://resdac.org/cms-data/variables/product-replacement-recall-product
type: VARCHAR(1)
- CRED_RCVD_RPLCD_DVC_SW:
description:
@@ -19780,6 +22528,7 @@ cms:
original_type: CHAR
text: Credit Received Replaced Device Switch
width: 1.0
+ reference: https://resdac.org/cms-data/variables/credit-received-replaced-device
type: VARCHAR(1)
- OBSRVTN_SW:
description:
@@ -19787,6 +22536,7 @@ cms:
original_type: CHAR
text: Observation Switch
width: 1.0
+ reference: https://resdac.org/cms-data/variables/observation-unit-indicator
type: VARCHAR(1)
- NEW_TCHNLGY_ADD_ON_AMT:
description:
@@ -19794,6 +22544,7 @@ cms:
original_type: NUM
text: New Technology Add-On Amount
width: 10.0
+ reference: https://resdac.org/cms-data/variables/new-technology-add-amount
type: INT
- BASE_OPRTG_DRG_AMT:
description:
@@ -19801,6 +22552,7 @@ cms:
original_type: NUM
text: Base Operating DRG Amount
width: 10.0
+ reference: https://resdac.org/cms-data/variables/base-operating-drg-amount
type: INT
- OPRTG_HSP_AMT:
description:
@@ -19808,6 +22560,7 @@ cms:
original_type: NUM
text: Operating Hospital Amount
width: 10.0
+ reference: https://resdac.org/cms-data/variables/operating-hospital-amount
type: INT
- MDCL_SRGCL_GNRL_AMT:
description:
@@ -19815,6 +22568,7 @@ cms:
original_type: NUM
text: Medical/Surgical General Amount
width: 10.0
+ reference: https://resdac.org/cms-data/variables/medicalsurgical-supplies-prosthetic-orthotic-amount
type: INT
- MDCL_SRGCL_NSTRL_AMT:
description:
@@ -19822,6 +22576,7 @@ cms:
original_type: NUM
text: Medical/Surgical Non-Sterile Amount
width: 10.0
+ reference: https://resdac.org/cms-data/variables/medicalsurgical-non-sterile-supplies-amount
type: INT
- MDCL_SRGCL_STRL_AMT:
description:
@@ -19829,6 +22584,7 @@ cms:
original_type: NUM
text: Medical/Surgical Sterile Amount
width: 10.0
+ reference: https://resdac.org/cms-data/variables/medicalsurgical-sterile-supplies-amount
type: INT
- TAKE_HOME_AMT:
description:
@@ -19836,6 +22592,7 @@ cms:
original_type: NUM
text: Take Home Amount
width: 10.0
+ reference: https://resdac.org/cms-data/variables/medicalsurgical-supplies-take-home-amount
type: INT
- PRSTHTC_ORTHTC_AMT:
description:
@@ -19843,6 +22600,7 @@ cms:
original_type: NUM
text: Prosthetic Orthotic Amount
width: 10.0
+ reference: https://resdac.org/cms-data/variables/medicalsurgical-supplies-prosthetic-orthotic-amount
type: INT
- MDCL_SRGCL_PCMKR_AMT:
description:
@@ -19850,6 +22608,7 @@ cms:
original_type: NUM
text: Medical/Surgical Pacemaker Amount
width: 10.0
+ reference: https://resdac.org/cms-data/variables/medicalsurgical-pacemaker-amount
type: INT
- INTRAOCULAR_LENS_AMT:
description:
@@ -19857,6 +22616,7 @@ cms:
original_type: NUM
text: Intraocular Lens Amount
width: 10.0
+ reference: https://resdac.org/cms-data/variables/medicalsurgical-supplies-intraocular-lens-amount
type: INT
- OXYGN_TAKE_HOME_AMT:
description:
@@ -19864,6 +22624,7 @@ cms:
original_type: NUM
text: Oxygen Take Home Amount
width: 10.0
+ reference: https://resdac.org/cms-data/variables/medicalsurgical-supplies-oxygen-take-home-amount
type: INT
- OTHR_IMPLANTS_AMT:
description:
@@ -19871,6 +22632,7 @@ cms:
original_type: NUM
text: Other Implants Amount
width: 10.0
+ reference: https://resdac.org/cms-data/variables/medicalsurgical-supplies-other-implants-amount
type: INT
- OTHR_SUPLIES_DVC_AMT:
description:
@@ -19878,6 +22640,7 @@ cms:
original_type: NUM
text: Other Supplies Device Amount
width: 10.0
+ reference: https://resdac.org/cms-data/variables/medicalsurgical-supplies-other-device-amount
type: INT
- INCDNT_RDLGY_AMT:
description:
@@ -19885,6 +22648,7 @@ cms:
original_type: NUM
text: Incident Radiology Amount
width: 10.0
+ reference: https://resdac.org/cms-data/variables/medicalsurgical-supplies-incident-radiology-amount
type: INT
- INCDNT_DGNSTC_SRVCS_AMT:
description:
@@ -19892,6 +22656,7 @@ cms:
original_type: NUM
text: Incident Diagnostic Services Amount
width: 10.0
+ reference: https://resdac.org/cms-data/variables/medicalsurgical-supplies-incident-diagnostic-services-amount
type: INT
- MDCL_SRGCL_DRSNG_AMT:
description:
@@ -19899,6 +22664,7 @@ cms:
original_type: NUM
text: Medical/Surgical Dressing Amount
width: 10.0
+ reference: https://resdac.org/cms-data/variables/medicalsurgical-dressing-amount
type: INT
- INVSTGTNL_DVC_AMT:
description:
@@ -19906,6 +22672,7 @@ cms:
original_type: NUM
text: Investigational Device Amount
width: 10.0
+ reference: https://resdac.org/cms-data/variables/medicalsurgical-supplies-investigational-device-amount
type: INT
- MDCL_SRGCL_MISC_AMT:
description:
@@ -19913,6 +22680,7 @@ cms:
original_type: NUM
text: Medical/Surgical Miscellaneous Amount
width: 10.0
+ reference: https://resdac.org/cms-data/variables/medical-surgical-miscellaneous-amount
type: INT
- RDLGY_ONCOLOGY_AMT:
description:
@@ -19920,6 +22688,7 @@ cms:
original_type: NUM
text: Radiology/Oncology Amount
width: 10.0
+ reference: https://resdac.org/cms-data/variables/oncology-amount
type: INT
- RDLGY_DGNSTC_AMT:
description:
@@ -19927,6 +22696,7 @@ cms:
original_type: NUM
text: Radiology Diagnostic Amount
width: 10.0
+ reference: https://resdac.org/cms-data/variables/radiology-diagnostic-amount
type: INT
- RDLGY_THRPTC_AMT:
description:
@@ -19934,6 +22704,7 @@ cms:
original_type: NUM
text: Radiology Therapeutic Amount
width: 10.0
+ reference: https://resdac.org/cms-data/variables/radiology-therapeutic-amount
type: INT
- RDLGY_NUCLR_MDCN_AMT:
description:
@@ -19941,6 +22712,7 @@ cms:
original_type: NUM
text: Radiology Nuclear Medicine Amount
width: 10.0
+ reference: https://resdac.org/cms-data/variables/radiology-nuclear-medicine-amount
type: INT
- RDLGY_CT_SCAN_AMT:
description:
@@ -19948,6 +22720,7 @@ cms:
original_type: NUM
text: Radiology CT Scan Amount
width: 10.0
+ reference: https://resdac.org/cms-data/variables/radiology-ct-scan-amount
type: INT
- RDLGY_OTHR_IMGNG_AMT:
description:
@@ -19955,6 +22728,7 @@ cms:
original_type: NUM
text: Radiology Other Imaging Amount
width: 10.0
+ reference: https://resdac.org/cms-data/variables/radiology-other-imaging-amount
type: INT
- OPRTG_ROOM_AMT:
description:
@@ -19962,6 +22736,7 @@ cms:
original_type: NUM
text: Operating Room Amount
width: 10.0
+ reference: https://resdac.org/cms-data/variables/operating-and-recovery-room-amount
type: INT
- OR_LABOR_DLVRY_AMT:
description:
@@ -19969,6 +22744,7 @@ cms:
original_type: NUM
text: O/R Labor Delivery Amount
width: 10.0
+ reference: https://resdac.org/cms-data/variables/labor-room-and-delivery-amount
type: INT
- CRDC_CATHRZTN_AMT:
description:
@@ -19976,6 +22752,7 @@ cms:
original_type: NUM
text: Cardiac Catheterization Amount
width: 10.0
+ reference: https://resdac.org/cms-data/variables/cardiac-catheterization-lab-amount
type: INT
- SQSTRTN_RDCTN_AMT:
description:
@@ -19983,6 +22760,7 @@ cms:
original_type: NUM
text: Sequestration Reduction Amount
width: 10.0
+ reference: https://resdac.org/cms-data/variables/sequestration-reduction-amount
type: INT
- UNCOMPD_CARE_PYMT_AMT:
description:
@@ -19990,6 +22768,7 @@ cms:
original_type: NUM
text: Uncompensated Care Payment Amount
width: 10.0
+ reference: https://resdac.org/cms-data/variables/uncompensated-care-payment-amount
type: INT
- BNDLD_ADJSTMT_AMT:
description:
@@ -19997,6 +22776,7 @@ cms:
original_type: NUM
text: Bundled Adjustment Amount
width: 10.0
+ reference: https://resdac.org/cms-data/variables/bundled-payment-adjustment-amount
type: INT
- VBP_ADJSTMT_AMT:
description:
@@ -20004,6 +22784,7 @@ cms:
original_type: NUM
text: Hospital Value Based Purchasing (VBP) Amount
width: 10.0
+ reference: https://resdac.org/cms-data/variables/hospital-value-based-purchasing-vbp-amount
type: INT
- HRR_ADJSTMT_AMT:
description:
@@ -20011,6 +22792,7 @@ cms:
original_type: NUM
text: Hospital Readmission Reduction (HRR) Adjustment Amount
width: 10.0
+ reference: https://resdac.org/cms-data/variables/hospital-readmission-reduction-hrr-adjustment-amount
type: INT
- EHR_PYMT_ADJSTMT_AMT:
description:
@@ -20018,6 +22800,7 @@ cms:
original_type: NUM
text: Electronic Health Record (EHR) Payment Adjustment Amount
width: 10.0
+ reference: https://resdac.org/cms-data/variables/electronic-health-record-ehr-payment-adjustment-amount
type: INT
- PPS_STD_VAL_PYMT_AMT:
description:
@@ -20025,6 +22808,7 @@ cms:
original_type: NUM
text: Claim PPS Standard Value Payment Amount
width: 10.0
+ reference: https://resdac.org/cms-data/variables/standard-payment-amount
type: INT
- FINL_STD_AMT:
description:
@@ -20032,6 +22816,7 @@ cms:
original_type: NUM
text: Claim Final Standard Amount
width: 10.0
+ reference: https://resdac.org/cms-data/variables/claim-final-standard-payment-amount
type: INT
- IPPS_FLEX_PYMT_6_AMT:
description:
@@ -20039,6 +22824,7 @@ cms:
original_type: NUM
text: IPPS Flexible Payment Amount I
width: 10.0
+ reference: https://resdac.org/cms-data/variables/flexible-payment-amount-6th-renamed-hospital-acquired-conditions-hac-reduction
type: INT
- IPPS_FLEX_PYMT_7_AMT:
description:
@@ -20046,6 +22832,7 @@ cms:
original_type: NUM
text: IPPS Flexible Payment Amount II
width: 10.0
+ reference: https://resdac.org/cms-data/variables/flexible-payment-amount-7th-placeholder
type: INT
- PTNT_ADD_ON_PYMT_AMT:
description:
@@ -20053,6 +22840,7 @@ cms:
original_type: NUM
text: Revenue Center Patient/Initial Visit Add-On Amount
width: 10.0
+ reference: https://resdac.org/cms-data/variables/patient-add-payment-amount-new-patient
type: INT
- HAC_PGM_RDCTN_IND_SW:
description:
@@ -20060,6 +22848,7 @@ cms:
original_type: CHAR
text: Hospital Acquired Conditions (HAC) Program Reduction Indicator Switch
width: 1.0
+ reference: https://resdac.org/cms-data/variables/claim-hospital-acquired-condition-hac-program-reduction-indicator-switch
type: VARCHAR(1)
- PGM_RDCTN_IND_SW:
description:
@@ -20067,6 +22856,7 @@ cms:
original_type: CHAR
text: Electronic Health Records (EHR) Program Reduction Indicator Switch
width: 1.0
+ reference: https://resdac.org/cms-data/variables/electronic-health-records-ehr-program-reduction-indicator
type: VARCHAR(1)
- PA_IND_CD:
description:
@@ -20074,6 +22864,7 @@ cms:
original_type: CHAR
text: Claim Prior Authorization Indicator Code
width: 4.0
+ reference: https://resdac.org/cms-data/variables/prior-authorization-indicator-code
type: VARCHAR(4)
- UNIQ_TRKNG_NUM:
description:
@@ -20081,6 +22872,7 @@ cms:
original_type: CHAR
text: Claim Unique Tracking Number
width: 14.0
+ reference: https://resdac.org/cms-data/variables/unique-tracking-number
type: VARCHAR(14)
- STAY_2_IND_SW:
description:
@@ -20088,6 +22880,7 @@ cms:
original_type: CHAR
text: Stay 2 Indicator Switch
width: 1.0
+ reference: https://resdac.org/cms-data/variables/two-midnight-stay-indicator
type: VARCHAR(1)
- FILE:
description:
@@ -20096,6 +22889,7 @@ cms:
width: 128
index:
required_before_loading_data: true
+ reference: null
source:
type: file
type: VARCHAR(128)
@@ -20104,6 +22898,7 @@ cms:
original_type: BIGSERIAL
text: Record number in the file
width: null
+ reference: https://resdac.org/cms-data/variables/nch-near-line-record-identification-code-ric
type: BIGSERIAL
- STATE:
description:
@@ -20111,6 +22906,7 @@ cms:
text: SSA standard state code of a beneficiarys residence.
width: 2.0
index: true
+ reference: https://resdac.org/cms-data/variables/state-code-beneficiary-ssa-code
source:
code: GENERATED ALWAYS AS (STATE_CD) STORED
type: generated
@@ -20121,6 +22917,7 @@ cms:
text: Year of MedPAR Record
width: 4.0
index: true
+ reference: https://resdac.org/cms-data/variables/mbsf-cc-30/alzheimers-disease-end-year-indicator
source:
code: GENERATED ALWAYS AS (MEDPAR_YR_NUM) STORED
type: generated
@@ -20131,6 +22928,7 @@ cms:
text: Zip code of the mailing address where the beneficiary may be contacted.
width: 5.0
index: true
+ reference: https://resdac.org/cms-data/variables/zip-code-beneficiary
source:
code: GENERATED ALWAYS AS (BENE_ZIP) STORED
type: generated
@@ -20152,6 +22950,7 @@ cms:
text: Encrypted 723 Beneficiary ID
width: 15.0
index: true
+ reference: https://resdac.org/cms-data/variables/ccw-beneficiary-id
type: VARCHAR(15)
- MEDPARID:
description:
@@ -20159,6 +22958,7 @@ cms:
original_type: CHAR
text: Unique Key for CCW MedPAR Table
width: 15.0
+ reference: https://resdac.org/cms-data/variables/medpar-id-number
type: VARCHAR(15)
- MEDPAR_YR_NUM:
description:
@@ -20166,6 +22966,7 @@ cms:
original_type: CHAR
text: Year of MedPAR Record
width: 4.0
+ reference: https://resdac.org/cms-data/variables/year-medpar-record
type: VARCHAR(4)
- CLM_TYPE:
description:
@@ -20173,6 +22974,7 @@ cms:
original_type: CHAR
text: NCH Claim Type Code
width: 2.0
+ reference: https://resdac.org/cms-data/variables/nch-claim-type-code
type: VARCHAR(2)
- BIC:
description:
@@ -20180,6 +22982,7 @@ cms:
original_type: CHAR
text: BIC reported on first claim included in stay
width: 2.0
+ reference: https://resdac.org/cms-data/variables/bic-reported-first-claim-included-stay
type: VARCHAR(2)
- EQ_BIC:
description:
@@ -20187,6 +22990,7 @@ cms:
original_type: CHAR
text: Equated BIC
width: 2.0
+ reference: https://resdac.org/cms-data/variables/equated-bic
type: VARCHAR(2)
- AGE_CNT:
description:
@@ -20194,6 +22998,7 @@ cms:
original_type: NUM
text: Age as of Date of Admission.
width: 4.0
+ reference: https://resdac.org/cms-data/variables/age-date-admission
type: INT
- SEX:
description:
@@ -20201,6 +23006,7 @@ cms:
original_type: CHAR
text: Sex of Beneficiary
width: 1.0
+ reference: https://resdac.org/sites/datadocumentation.resdac.org/files/Introduction%20to%20DE-SynPUF%20%28Slides%29.pdf
type: VARCHAR(1)
- RACE:
description:
@@ -20208,6 +23014,7 @@ cms:
original_type: CHAR
text: Race of Beneficiary
width: 1.0
+ reference: https://resdac.org/cms-data/variables/beneficiary-race-code-base
type: VARCHAR(1)
- MS_CD:
description:
@@ -20215,6 +23022,7 @@ cms:
original_type: CHAR
text: Reason for entitlement to Medicare benefits as of CLM_THRU_DT
width: 2.0
+ reference: https://resdac.org/cms-data/variables/reason-entitlement-medicare-benefits-clmthrudt
type: VARCHAR(2)
- STATE_CD:
description:
@@ -20222,6 +23030,7 @@ cms:
original_type: CHAR
text: SSA standard state code of a beneficiarys residence.
width: 2.0
+ reference: https://resdac.org/cms-data/variables/state-code-beneficiary-ssa-code
type: VARCHAR(2)
- CNTY_CD:
description:
@@ -20229,6 +23038,7 @@ cms:
original_type: CHAR
text: SSA standard county code of a beneficiarys residence.
width: 3.0
+ reference: https://resdac.org/sites/datadocumentation.resdac.org/files/Introduction%20to%20DE-SynPUF%20%28Slides%29.pdf
type: VARCHAR(3)
- BENE_ZIP:
description:
@@ -20236,6 +23046,7 @@ cms:
original_type: CHAR
text: Zip code of the mailing address where the beneficiary may be contacted.
width: 5.0
+ reference: https://resdac.org/cms-data/variables/zip-code-beneficiary-home-or-mailing-address-latest-year
type: VARCHAR(5)
- DSCHRGCD:
description:
@@ -20243,6 +23054,7 @@ cms:
original_type: CHAR
text: Code identifying status of patient as of CLM_THRU_DT
width: 1.0
+ reference: https://resdac.org/cms-data/variables/code-identifying-status-patient-clmthrudt
type: VARCHAR(1)
- FICARR:
description:
@@ -20250,6 +23062,7 @@ cms:
original_type: CHAR
text: Intermediary processor identification
width: 5.0
+ reference: https://resdac.org/cms-data/variables/fiscal-intermediary-fi-id-number
type: VARCHAR(5)
- WRNGCD:
description:
@@ -20258,6 +23071,7 @@ cms:
text: Warn ind spcfyng dtld billing info obtnd frm clms analyzd for stay
prcss
width: 18.0
+ reference: https://resdac.org/cms-data/variables/warning-indicators-code-specifying-detailed-billing-info
type: VARCHAR(18)
- GHOPDCD:
description:
@@ -20265,6 +23079,7 @@ cms:
original_type: CHAR
text: Code indicating whether or not GHO has paid provider for claim(s)
width: 1.0
+ reference: https://resdac.org/cms-data/variables/code-indicating-whether-group-health-organization-gho-has-paid-provider-claims
type: VARCHAR(1)
- PPS_IND:
description:
@@ -20272,6 +23087,7 @@ cms:
original_type: CHAR
text: Code indicating whether or not facility is being paid under PPS
width: 1.0
+ reference: https://resdac.org/cms-data/variables/prospective-payment-system-pps-indicator-code
type: VARCHAR(1)
- ORGNPINM:
description:
@@ -20279,6 +23095,7 @@ cms:
original_type: CHAR
text: Organization NPI Number
width: 10.0
+ reference: https://resdac.org/cms-data/variables/organization-npi-number-ffs
type: VARCHAR(10)
- PRVDRNUM:
description:
@@ -20286,6 +23103,7 @@ cms:
original_type: CHAR
text: MEDPAR Provider Number
width: 10.0
+ reference: https://resdac.org/cms-data/variables/provider-number
type: VARCHAR(10)
- SPCLUNIT:
description:
@@ -20294,6 +23112,7 @@ cms:
text: Special num system code for hosp units that are PPS/SNF SB dsgntn
excl.
width: 1.0
+ reference: https://resdac.org/cms-data/variables/provider-number-special-unit-code
type: VARCHAR(1)
- SSLSSNF:
description:
@@ -20301,6 +23120,7 @@ cms:
original_type: CHAR
text: Code indicating whether stay is short stay, long stay, or SNF
width: 1.0
+ reference: https://resdac.org/cms-data/variables/short-staylong-staysnf-provider-indicator-code
type: VARCHAR(1)
- ACTV_XREF_IND:
description:
@@ -20308,6 +23128,7 @@ cms:
original_type: CHAR
text: Active Cross-Refference Indicator
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-active-cross-reference-indicator
type: VARCHAR(1)
- SLCT_RSN_CD:
description:
@@ -20315,6 +23136,7 @@ cms:
original_type: CHAR
text: Specifies whether this record is a case or control record.
width: 1.0
+ reference: https://resdac.org/cms-data/variables/specifies-whether-record-case-or-control-record
type: VARCHAR(1)
- FACLMCNT:
description:
@@ -20322,6 +23144,7 @@ cms:
original_type: NUM
text: Claims (final action) included in stay
width: 5.0
+ reference: https://resdac.org/cms-data/variables/number-claims-final-action-included-stay
type: INT
- ACRTNDT:
description:
@@ -20330,6 +23153,7 @@ cms:
text: Date latest claim incl in stay accreted to bene mstr rec at the
CWF host
width: 8.0
+ reference: https://resdac.org/cms-data/variables/latest-claim-accretion-date
type: DATE
- EXHST_DT:
description:
@@ -20337,6 +23161,7 @@ cms:
original_type: DATE
text: Last date beneficiary had Medicare coverage
width: 8.0
+ reference: https://resdac.org/cms-data/variables/beneficiary-medicare-benefit-exhausted-date
type: DATE
- QLFYFROM:
description:
@@ -20344,6 +23169,7 @@ cms:
original_type: DATE
text: Beginning date of beneficiarys qualifying stay
width: 8.0
+ reference: https://resdac.org/cms-data/variables/beginning-date-beneficiarys-qualifying-snf-stay
type: DATE
- QLFYTHRU:
description:
@@ -20351,6 +23177,7 @@ cms:
original_type: DATE
text: Ending date of beneficiarys qualifying stay
width: 8.0
+ reference: https://resdac.org/cms-data/variables/ending-date-beneficiarys-qualifying-snf-stay
type: DATE
- SRC_ADMS:
description:
@@ -20359,6 +23186,7 @@ cms:
text: Admssn to an Inp facility or, for newborn admssn, type of delivery
code
width: 1.0
+ reference: https://resdac.org/cms-data/variables/source-admission-inpatient-facility-newborn-admit-type-delivery-code
type: VARCHAR(1)
- TYPE_ADM:
description:
@@ -20367,6 +23195,7 @@ cms:
text: Type and priority of benes admission to facility for Inp hosp stay
code
width: 1.0
+ reference: https://resdac.org/cms-data/variables/inpatient-admission-type-code
type: VARCHAR(1)
- ADMSNDAY:
description:
@@ -20374,6 +23203,7 @@ cms:
original_type: CHAR
text: Code indicating day of week beneficiary was admitted to facility.
width: 1.0
+ reference: https://resdac.org/cms-data/variables/code-indicating-day-week-beneficiary-was-admitted-facility
type: VARCHAR(1)
- ADMSNDT:
description:
@@ -20381,6 +23211,7 @@ cms:
original_type: DATE
text: Date beneficiary admitted for Inpatient care or date care started
width: 8.0
+ reference: https://resdac.org/cms-data/variables/date-beneficiary-admitted-inpatient-care-or-date-care-started
type: DATE
- DSCHRGDT:
description:
@@ -20388,6 +23219,7 @@ cms:
original_type: DATE
text: Date beneficiary was discharged or died
width: 8.0
+ reference: https://resdac.org/cms-data/variables/discharge-date
type: DATE
- DSTNTNCD:
description:
@@ -20395,6 +23227,7 @@ cms:
original_type: CHAR
text: Destination upon discharge from facility code
width: 2.0
+ reference: https://resdac.org/cms-data/variables/medpar-discharge-destination-code
type: VARCHAR(2)
- CVRLVLDT:
description:
@@ -20402,6 +23235,7 @@ cms:
original_type: DATE
text: Date covered level of care ended in a SNF
width: 8.0
+ reference: null
type: DATE
- DEATHDT:
description:
@@ -20409,6 +23243,7 @@ cms:
original_type: DATE
text: Date beneficiary died
width: 8.0
+ reference: https://resdac.org/cms-data/variables/date-death
type: DATE
- DEATHCD:
description:
@@ -20416,6 +23251,7 @@ cms:
original_type: CHAR
text: Death Date Verification Code
width: 1.0
+ reference: https://resdac.org/cms-data/variables/death-date-verification-code
type: VARCHAR(1)
- DEATHDAY:
description:
@@ -20423,6 +23259,7 @@ cms:
original_type: NUM
text: Days from date admitted to facility to date of death
width: 7.0
+ reference: https://resdac.org/cms-data/variables/days-date-admitted-facility-date-death
type: INT
- SSICD:
description:
@@ -20430,6 +23267,7 @@ cms:
original_type: CHAR
text: MEDPAR Internal Use SSI Indicator Code
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-internal-use-ssi-indicator-code
type: VARCHAR(1)
- SSIDAY:
description:
@@ -20437,6 +23275,7 @@ cms:
original_type: NUM
text: MEDPAR Internal Use SSI Day Count
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-internal-use-ssi-day-count
type: INT
- INTRNL_USE_SSI_DATA:
description:
@@ -20444,6 +23283,7 @@ cms:
original_type: CHAR
text: Internal Use SSI Data
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-internal-use-ssi-data
type: VARCHAR(1)
- IPSBCD:
description:
@@ -20451,6 +23291,7 @@ cms:
original_type: CHAR
text: For internal Use Only. IPSB Code
width: 3.0
+ reference: https://resdac.org/cms-data/variables/medpar-internal-use-ipsb-code
type: VARCHAR(3)
- FILDTCD:
description:
@@ -20458,6 +23299,7 @@ cms:
original_type: CHAR
text: For internal use only. Fiscal year/calendar year segments.
width: 1.0
+ reference: https://resdac.org/cms-data/variables/internal-use-only-fiscal-yearcalendar-year-segments
type: VARCHAR(1)
- SMPLSIZE:
description:
@@ -20465,6 +23307,7 @@ cms:
original_type: CHAR
text: For internal use. MEDPAR sample size.
width: 1.0
+ reference: https://resdac.org/cms-data/variables/internal-use-medpar-sample-size
type: VARCHAR(1)
- LOSCNT:
description:
@@ -20472,6 +23315,7 @@ cms:
original_type: NUM
text: Days of beneficiarys stay in a hospital/SNF
width: 7.0
+ reference: https://resdac.org/cms-data/variables/days-beneficiarys-stay-hospitalsnf
type: INT
- OUTLRDAY:
description:
@@ -20480,6 +23324,7 @@ cms:
text: Days paid as outliers (either day or cost) under PPS beyond DRG
threshld
width: 5.0
+ reference: https://resdac.org/cms-data/variables/days-paid-outliers-either-day-or-cost-under-pps-beyond-drg-threshold
type: INT
- UTIL_DAY:
description:
@@ -20487,6 +23332,7 @@ cms:
original_type: NUM
text: Covered days of care chargeable to Medicare utilization for stay
width: 7.0
+ reference: https://resdac.org/cms-data/variables/covered-days-care-chargeable-medicare-utilization-stay
type: INT
- COIN_DAY:
description:
@@ -20494,6 +23340,7 @@ cms:
original_type: NUM
text: MEDPAR Beneficiary Total Coinsurance Day Count
width: 5.0
+ reference: https://resdac.org/cms-data/variables/medpar-beneficiary-total-coinsurance-day-count
type: INT
- LRD_USE:
description:
@@ -20501,6 +23348,7 @@ cms:
original_type: NUM
text: Lifetime reserve days (LRD) used by beneficiary for stay
width: 5.0
+ reference: https://resdac.org/cms-data/variables/lifetime-reserve-days-lrd-used-beneficiary-stay
type: INT
- COIN_AMT:
description:
@@ -20508,6 +23356,7 @@ cms:
original_type: NUM
text: Beneficiarys liability for part A coinsurance for stay ($)
width: 10.0
+ reference: https://resdac.org/cms-data/variables/beneficiarys-liability-part-coinsurance-stay
type: INT
- DED_AMT:
description:
@@ -20515,6 +23364,7 @@ cms:
original_type: NUM
text: Beneficiarys liability for stay ($)
width: 10.0
+ reference: https://resdac.org/cms-data/variables/beneficiarys-liability-deductible-stay
type: INT
- BLDDEDAM:
description:
@@ -20522,6 +23372,7 @@ cms:
original_type: NUM
text: Beneficiarys liability for blood deductible for stay ($)
width: 10.0
+ reference: https://resdac.org/cms-data/variables/beneficiarys-liability-blood-deductible-stay
type: INT
- PRPAY_CD:
description:
@@ -20529,6 +23380,7 @@ cms:
original_type: CHAR
text: Primary payer responsibility code
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-beneficiary-primary-payer-code
type: VARCHAR(1)
- PRPAYAMT:
description:
@@ -20537,6 +23389,7 @@ cms:
text: Primry payer other than Medicare for covered Medicare chrgs for
stay ($)
width: 10.0
+ reference: https://resdac.org/cms-data/variables/primary-payer-paid-amount
type: INT
- DRG_CD:
description:
@@ -20544,6 +23397,7 @@ cms:
original_type: CHAR
text: DRG Code
width: 3.0
+ reference: https://resdac.org/cms-data/variables/diagnosis-related-group-drg-code
type: VARCHAR(3)
- OUTLR_CD:
description:
@@ -20551,6 +23405,7 @@ cms:
original_type: CHAR
text: Cost or Day Outlier code
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-drgoutlier-stay-code
type: VARCHAR(1)
- OUTLRAMT:
description:
@@ -20559,6 +23414,7 @@ cms:
text: Addtnl approved due to outlier situation over DRG allowance for
stay ($)
width: 10.0
+ reference: https://resdac.org/cms-data/variables/drg-outlier-approved-payment-amount
type: INT
- DRGPRICE:
description:
@@ -20567,6 +23423,7 @@ cms:
text: Wld hv bn pd if no dedctbls,coinsrnc,prmry payrs,otlrs were invlvd
($)
width: 10.0
+ reference: https://resdac.org/cms-data/variables/drg-price-amount
type: INT
- DISP_SHR:
description:
@@ -20575,6 +23432,7 @@ cms:
text: Over the DRG amount for disproportionate share hospital for stay
($)
width: 10.0
+ reference: https://resdac.org/cms-data/variables/inpatient-disproportionate-share-dsh-amount
type: INT
- IME_AMT:
description:
@@ -20582,6 +23440,7 @@ cms:
original_type: NUM
text: Additional payment made to teaching hospitals for IME for stay ($)
width: 10.0
+ reference: https://resdac.org/cms-data/variables/indirect-medical-education-ime-amount
type: INT
- PASSTHRU:
description:
@@ -20589,6 +23448,7 @@ cms:
original_type: NUM
text: Total of all claim pass thru for stay ($)
width: 10.0
+ reference: https://resdac.org/cms-data/variables/pass-thru-diem-amount-stay
type: INT
- PPS_CPTL:
description:
@@ -20596,6 +23456,7 @@ cms:
original_type: NUM
text: Total payable for capital PPS ($)
width: 10.0
+ reference: https://resdac.org/cms-data/variables/total-pps-capital-amount
type: INT
- IP_LOW_VOL_PYMT_AMT:
description:
@@ -20603,6 +23464,7 @@ cms:
original_type: NUM
text: Inpatient Low Volume Payment Amount.
width: 10.0
+ reference: https://resdac.org/cms-data/variables/inpatient-low-volume-payment-amount
type: INT
- TOTCHRG:
description:
@@ -20611,6 +23473,7 @@ cms:
text: Total all charges for all srvcs provided to beneficiary for stay
($)
width: 10.0
+ reference: https://resdac.org/cms-data/variables/total-charge-amount
type: INT
- CVRCHRG:
description:
@@ -20618,6 +23481,7 @@ cms:
original_type: NUM
text: Portion of total charges covered by Medicare for stay ($)
width: 10.0
+ reference: https://resdac.org/cms-data/variables/total-covered-charge-amount
type: INT
- PMT_AMT:
description:
@@ -20626,6 +23490,7 @@ cms:
text: Amt of payment from Medicare trust fund for srvcs covered by claim
($)
width: 10.0
+ reference: https://resdac.org/cms-data/variables/total-medicare-payment-amount
type: INT
- ACMDTNS:
description:
@@ -20634,6 +23499,7 @@ cms:
text: Total charge for all accommodations related to beneficiarys stay
($)
width: 10.0
+ reference: https://resdac.org/cms-data/variables/total-charge-all-accommodations
type: INT
- DPRTMNTL:
description:
@@ -20642,6 +23508,7 @@ cms:
text: Total charge for all ancillary depts related to beneficiarys stay
($)
width: 10.0
+ reference: https://resdac.org/cms-data/variables/total-charge-all-ancillary-departments-related-beneficiarys-stay
type: INT
- PRVTDAY:
description:
@@ -20649,6 +23516,7 @@ cms:
original_type: NUM
text: Private room days used by beneficiary for stay
width: 5.0
+ reference: https://resdac.org/cms-data/variables/private-room-day-count
type: INT
- SPRVTDAY:
description:
@@ -20656,6 +23524,7 @@ cms:
original_type: NUM
text: Semi-private room days used by beneficiary for stay
width: 5.0
+ reference: https://resdac.org/cms-data/variables/semi-private-room-day-count
type: INT
- WARDDAY:
description:
@@ -20663,6 +23532,7 @@ cms:
original_type: NUM
text: Ward days used by beneficiary for stay
width: 5.0
+ reference: https://resdac.org/cms-data/variables/ward-day-count
type: INT
- ICARECNT:
description:
@@ -20670,6 +23540,7 @@ cms:
original_type: NUM
text: Intensive care days used by beneficiary for stay
width: 5.0
+ reference: https://resdac.org/cms-data/variables/intensive-care-day-count
type: INT
- CRNRYDAY:
description:
@@ -20677,6 +23548,7 @@ cms:
original_type: NUM
text: Coronary care days used by beneficiary for stay
width: 5.0
+ reference: https://resdac.org/cms-data/variables/coronary-care-day-count
type: INT
- PRVTAMT:
description:
@@ -20684,6 +23556,7 @@ cms:
original_type: NUM
text: Private room accommodations related to beneficiarys stay ($)
width: 10.0
+ reference: https://resdac.org/cms-data/variables/private-room-charge-amount
type: INT
- SPRVTAMT:
description:
@@ -20691,6 +23564,7 @@ cms:
original_type: NUM
text: Semi-private room accommodations related to beneficiarys stay ($)
width: 10.0
+ reference: https://resdac.org/cms-data/variables/semi-private-room-charge-amount
type: INT
- WARDAMT:
description:
@@ -20698,6 +23572,7 @@ cms:
original_type: NUM
text: Ward accommodations related to beneficiarys stay ($)
width: 10.0
+ reference: https://resdac.org/cms-data/variables/ward-charge-amount
type: INT
- ICAREAMT:
description:
@@ -20705,6 +23580,7 @@ cms:
original_type: NUM
text: Intensive care accommodations related to beneficiarys stay ($)
width: 10.0
+ reference: https://resdac.org/cms-data/variables/intensive-care-charge-amount
type: INT
- CRNRYAMT:
description:
@@ -20712,6 +23588,7 @@ cms:
original_type: NUM
text: Coronary care accommodations related to beneficiarys stay ($)
width: 10.0
+ reference: https://resdac.org/cms-data/variables/coronary-care-charge-amount
type: INT
- OTHRAMT:
description:
@@ -20719,6 +23596,7 @@ cms:
original_type: NUM
text: Other services related to beneficiarys stay ($)
width: 10.0
+ reference: https://resdac.org/cms-data/variables/other-service-charge-amount
type: INT
- PHRMCAMT:
description:
@@ -20726,6 +23604,7 @@ cms:
original_type: NUM
text: Pharmaceutical costs related to beneficiarys stay ($)
width: 10.0
+ reference: https://resdac.org/cms-data/variables/pharmacy-charge-amount
type: INT
- SUPLYAMT:
description:
@@ -20733,6 +23612,7 @@ cms:
original_type: NUM
text: Medical/surgical supplies related to beneficiarys stay ($)
width: 10.0
+ reference: https://resdac.org/cms-data/variables/medicalsurgical-supplies-charge-amount
type: INT
- DME_AMT:
description:
@@ -20740,6 +23620,7 @@ cms:
original_type: NUM
text: DME related to beneficiarys stay ($)
width: 10.0
+ reference: https://resdac.org/cms-data/variables/durable-medical-equipment-dme-charge-amount
type: INT
- UDME_AMT:
description:
@@ -20747,6 +23628,7 @@ cms:
original_type: NUM
text: Used DME related to beneficiarys stay ($)
width: 10.0
+ reference: https://resdac.org/cms-data/variables/used-durable-medical-equipment-dme-charge-amount
type: INT
- PHYTHAMT:
description:
@@ -20754,6 +23636,7 @@ cms:
original_type: NUM
text: Physical therapy services provided during beneficiarys stay ($)
width: 10.0
+ reference: https://resdac.org/cms-data/variables/physical-therapy-charge-amount
type: INT
- OCPTLAMT:
description:
@@ -20762,6 +23645,7 @@ cms:
text: Occupational therapy services provided during beneficiarys stay
($)
width: 10.0
+ reference: https://resdac.org/cms-data/variables/occupational-therapy-charge-amount
type: INT
- SPCH_AMT:
description:
@@ -20769,6 +23653,7 @@ cms:
original_type: NUM
text: Speech pathology services provided during beneficiarys stay ($)
width: 10.0
+ reference: https://resdac.org/cms-data/variables/speech-pathology-charge-amount
type: INT
- INHLTAMT:
description:
@@ -20776,6 +23661,7 @@ cms:
original_type: NUM
text: Inhalation therapy services provided during beneficiarys stay ($)
width: 10.0
+ reference: https://resdac.org/cms-data/variables/inhalation-therapy-charge-amount
type: INT
- BLOODAMT:
description:
@@ -20783,6 +23669,7 @@ cms:
original_type: NUM
text: Blood provided during beneficiarys stay ($)
width: 10.0
+ reference: https://resdac.org/cms-data/variables/blood-charge-amount
type: INT
- BLDADMIN:
description:
@@ -20790,6 +23677,7 @@ cms:
original_type: NUM
text: Blood storage and processing related to beneficiarys stay ($)
width: 10.0
+ reference: https://resdac.org/cms-data/variables/blood-storage-and-processing-charge-amount
type: INT
- BLDFRNSH:
description:
@@ -20798,6 +23686,7 @@ cms:
text: Quantity of blood (whole pints) furnished to beneficiary during
stay
width: 5.0
+ reference: https://resdac.org/cms-data/variables/blood-pints-furnished-quantity
type: INT
- OROOMAMT:
description:
@@ -20806,6 +23695,7 @@ cms:
text: OR, recovery rm, and labor rm delivery used by bene during stay
($)
width: 10.0
+ reference: https://resdac.org/cms-data/variables/operating-room-charge-amount
type: INT
- LTHTRPSY:
description:
@@ -20813,6 +23703,7 @@ cms:
original_type: NUM
text: Lithotripsy services provided during beneficiarys stay ($)
width: 10.0
+ reference: https://resdac.org/cms-data/variables/lithotripsy-charge-amount
type: INT
- CRDLGY:
description:
@@ -20821,6 +23712,7 @@ cms:
text: Cardiology services and ECG(s) provided during beneficiarys stay
($)
width: 10.0
+ reference: https://resdac.org/cms-data/variables/cardiology-charge-amount
type: INT
- ANSTHSA:
description:
@@ -20828,6 +23720,7 @@ cms:
original_type: NUM
text: Anesthesia services provided during beneficiarys stay ($)
width: 10.0
+ reference: https://resdac.org/cms-data/variables/anesthesia-charge-amount
type: INT
- LAB_AMT:
description:
@@ -20835,6 +23728,7 @@ cms:
original_type: NUM
text: Laboratory costs related to beneficiarys stay ($)
width: 10.0
+ reference: https://resdac.org/cms-data/variables/laboratory-charge-amount
type: INT
- RDLGYAMT:
description:
@@ -20842,6 +23736,7 @@ cms:
original_type: NUM
text: Radiology costs (excluding MRI) related to a beneficiarys stay ($)
width: 10.0
+ reference: https://resdac.org/cms-data/variables/radiology-charge-amount-excluding-mri
type: INT
- MRI_AMT:
description:
@@ -20849,6 +23744,7 @@ cms:
original_type: NUM
text: MRI services provided during beneficiarys stay ($)
width: 10.0
+ reference: https://resdac.org/cms-data/variables/magnetic-resonance-imaging-mri-charge-amount
type: INT
- OPSRVC:
description:
@@ -20856,6 +23752,7 @@ cms:
original_type: NUM
text: Outpatient services provided during beneficiarys stay ($)
width: 10.0
+ reference: https://resdac.org/cms-data/variables/outpatient-service-charge-amount
type: INT
- ER_AMT:
description:
@@ -20863,6 +23760,7 @@ cms:
original_type: NUM
text: Emergency room services provided during beneficiarys stay ($)
width: 10.0
+ reference: https://resdac.org/cms-data/variables/emergency-room-er-charge-amount
type: INT
- AMBLNC:
description:
@@ -20870,6 +23768,7 @@ cms:
original_type: NUM
text: Ambulance services related to beneficiarys stay ($)
width: 10.0
+ reference: https://resdac.org/cms-data/variables/ambulance-charge-amount
type: INT
- PROFFEES:
description:
@@ -20877,6 +23776,7 @@ cms:
original_type: NUM
text: Professional fees related to beneficiarys stay ($)
width: 10.0
+ reference: https://resdac.org/cms-data/variables/professional-fees-charge-amount
type: INT
- ORGNAMT:
description:
@@ -20885,6 +23785,7 @@ cms:
text: Organ acquisition or oth donor bank srvcs related to benes stay
($)
width: 10.0
+ reference: https://resdac.org/cms-data/variables/organ-acquisition-or-other-donor-bank-charge-amount
type: INT
- ESRDSETG:
description:
@@ -20892,6 +23793,7 @@ cms:
original_type: NUM
text: ESRD services related to beneficiarys stay ($)
width: 10.0
+ reference: https://resdac.org/cms-data/variables/end-stage-renal-disease-esrd-charge-amount
type: INT
- CLNC_AMT:
description:
@@ -20899,6 +23801,7 @@ cms:
original_type: NUM
text: Clinic visits related to beneficiarys stay ($)
width: 10.0
+ reference: https://resdac.org/cms-data/variables/clinic-visit-charge-amount
type: INT
- ICUINDCD:
description:
@@ -20906,6 +23809,7 @@ cms:
original_type: CHAR
text: ICU type code
width: 1.0
+ reference: https://resdac.org/cms-data/variables/intensive-care-unit-icu-indicator-code
type: VARCHAR(1)
- CRNRY_CD:
description:
@@ -20913,6 +23817,7 @@ cms:
original_type: CHAR
text: Coronary care unit type code
width: 1.0
+ reference: https://resdac.org/cms-data/variables/coronary-care-unit-ccu-indicator-code
type: VARCHAR(1)
- PHRMCYCD:
description:
@@ -20920,6 +23825,7 @@ cms:
original_type: CHAR
text: Drugs type code
width: 1.0
+ reference: https://resdac.org/cms-data/variables/pharmacy-indicator-code
type: VARCHAR(1)
- TRNSPLNT:
description:
@@ -20927,6 +23833,7 @@ cms:
original_type: CHAR
text: Organ transplant code
width: 1.0
+ reference: https://resdac.org/cms-data/variables/organ-transplant-indicator-code
type: VARCHAR(1)
- ONCLGYSW:
description:
@@ -20934,6 +23841,7 @@ cms:
original_type: CHAR
text: Radiology oncology services indicator
width: 1.0
+ reference: https://resdac.org/cms-data/variables/oncology-indicator
type: VARCHAR(1)
- DGNSTCSW:
description:
@@ -20941,6 +23849,7 @@ cms:
original_type: CHAR
text: Radiology diagnostic services indicator
width: 1.0
+ reference: https://resdac.org/cms-data/variables/diagnostic-radiology-indicator
type: VARCHAR(1)
- THRPTCSW:
description:
@@ -20948,6 +23857,7 @@ cms:
original_type: CHAR
text: Radiology therapeutic services indicator
width: 1.0
+ reference: https://resdac.org/cms-data/variables/therapeutic-radiology-indicator
type: VARCHAR(1)
- NUCLR_SW:
description:
@@ -20955,6 +23865,7 @@ cms:
original_type: CHAR
text: Radiology nuclear medicine services indicator
width: 1.0
+ reference: https://resdac.org/cms-data/variables/radiology-nuclear-medicine-indicator
type: VARCHAR(1)
- CTSCANSW:
description:
@@ -20962,6 +23873,7 @@ cms:
original_type: CHAR
text: Radiology computed tomographic (CT) scan services indicator
width: 1.0
+ reference: https://resdac.org/cms-data/variables/radiology-computed-tomographic-ct-scan-indicator
type: VARCHAR(1)
- IMGNG_SW:
description:
@@ -20969,6 +23881,7 @@ cms:
original_type: CHAR
text: Radiology other imaging services indicator
width: 1.0
+ reference: https://resdac.org/cms-data/variables/radiology-other-imaging-indicator
type: VARCHAR(1)
- OPSRVCCD:
description:
@@ -20976,6 +23889,7 @@ cms:
original_type: CHAR
text: Outpatient services/ambulatory surgical care code
width: 1.0
+ reference: https://resdac.org/cms-data/variables/outpatient-servicesambulatory-surgical-care-indicator-code
type: VARCHAR(1)
- ORGNCD:
description:
@@ -20983,6 +23897,7 @@ cms:
original_type: CHAR
text: Organ acquisition type code
width: 2.0
+ reference: https://resdac.org/cms-data/variables/organ-acquisition-type-code
type: VARCHAR(2)
- ESRD_CD:
description:
@@ -20990,6 +23905,7 @@ cms:
original_type: CHAR
text: ESRD condition code
width: 2.0
+ reference: https://resdac.org/cms-data/variables/end-stage-renal-disease-esrd-condition-indicator-code
type: VARCHAR(2)
- ESRDSTG1:
description:
@@ -20997,6 +23913,7 @@ cms:
original_type: CHAR
text: Dialysis type code I
width: 2.0
+ reference: https://resdac.org/cms-data/variables/dialysis-service-type-code-1
type: VARCHAR(2)
- ESRDSTG2:
description:
@@ -21004,6 +23921,7 @@ cms:
original_type: CHAR
text: Dialysis type code II
width: 2.0
+ reference: https://resdac.org/cms-data/variables/dialysis-service-type-code-2
type: VARCHAR(2)
- ESRDSTG3:
description:
@@ -21011,6 +23929,7 @@ cms:
original_type: CHAR
text: Dialysis type code III
width: 2.0
+ reference: https://resdac.org/cms-data/variables/dialysis-service-type-code-3
type: VARCHAR(2)
- ESRDSTG4:
description:
@@ -21018,6 +23937,7 @@ cms:
original_type: CHAR
text: Dialysis type code IV
width: 2.0
+ reference: https://resdac.org/cms-data/variables/dialysis-service-type-code-4
type: VARCHAR(2)
- ESRDSTG5:
description:
@@ -21025,6 +23945,7 @@ cms:
original_type: CHAR
text: Dialysis type code V
width: 2.0
+ reference: https://resdac.org/cms-data/variables/dialysis-service-type-code-5
type: VARCHAR(2)
- AD_DGNS:
description:
@@ -21032,6 +23953,7 @@ cms:
original_type: CHAR
text: Initial diagnosis at time of admission
width: 7.0
+ reference: https://resdac.org/cms-data/variables/admitting-diagnosis-code
type: VARCHAR(7)
- ADMTG_DGNS_VRSN_CD:
description:
@@ -21039,6 +23961,7 @@ cms:
original_type: CHAR
text: MEDPAR Admitting Diagnosis Version Code
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-admitting-diagnosis-version-code-icd-9-or-icd-10
type: VARCHAR(1)
- DGNSCNT:
description:
@@ -21046,6 +23969,7 @@ cms:
original_type: NUM
text: Diagnosis codes included in stay
width: 3.0
+ reference: https://resdac.org/cms-data/variables/count-diagnosis-codes
type: INT
- DGNS_VRSN_CD:
description:
@@ -21054,6 +23978,7 @@ cms:
text: Version Code - Indicate if diagnosis code is ICD-9 or ICD-10 (Earlier
Version)
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-version-code-icd-9-or-icd-10
type: VARCHAR(1)
- DGNS_VRSN_CD_1:
description:
@@ -21061,6 +23986,7 @@ cms:
original_type: CHAR
text: Version Code 01 - Indicate if diagnosis code is ICD-9 or ICD-10.
width: 1.0
+ reference: https://resdac.org/cms-data/variables/diagnosis-version-code-1-icd-9-or-icd-10
type: VARCHAR(1)
- DGNS_VRSN_CD_2:
description:
@@ -21068,6 +23994,7 @@ cms:
original_type: CHAR
text: Version Code 02 - Indicate if diagnosis code is ICD-9 or ICD-10.
width: 1.0
+ reference: https://resdac.org/cms-data/variables/diagnosis-version-code-2-icd-9-or-icd-10
type: VARCHAR(1)
- DGNS_VRSN_CD_3:
description:
@@ -21075,6 +24002,7 @@ cms:
original_type: CHAR
text: Version Code 03 - Indicate if diagnosis code is ICD-9 or ICD-10.
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-version-code-3-icd-9-or-icd-10
type: VARCHAR(1)
- DGNS_VRSN_CD_4:
description:
@@ -21082,6 +24010,7 @@ cms:
original_type: CHAR
text: Version Code 04 - Indicate if diagnosis code is ICD-9 or ICD-10.
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-version-code-4-icd-9-or-icd-10
type: VARCHAR(1)
- DGNS_VRSN_CD_5:
description:
@@ -21089,6 +24018,7 @@ cms:
original_type: CHAR
text: Version Code 05 - Indicate if diagnosis code is ICD-9 or ICD-10.
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-version-code-5-icd-9-or-icd-10
type: VARCHAR(1)
- DGNS_VRSN_CD_6:
description:
@@ -21096,6 +24026,7 @@ cms:
original_type: CHAR
text: Version Code 06 - Indicate if diagnosis code is ICD-9 or ICD-10.
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-version-code-6-icd-9-or-icd-10
type: VARCHAR(1)
- DGNS_VRSN_CD_7:
description:
@@ -21103,6 +24034,7 @@ cms:
original_type: CHAR
text: Version Code 07 - Indicate if diagnosis code is ICD-9 or ICD-10.
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-version-code-7-icd-9-or-icd-10
type: VARCHAR(1)
- DGNS_VRSN_CD_8:
description:
@@ -21110,6 +24042,7 @@ cms:
original_type: CHAR
text: Version Code 08 - Indicate if diagnosis code is ICD-9 or ICD-10.
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-version-code-8-icd-9-or-icd-10
type: VARCHAR(1)
- DGNS_VRSN_CD_9:
description:
@@ -21117,6 +24050,7 @@ cms:
original_type: CHAR
text: Version Code 09 - Indicate if diagnosis code is ICD-9 or ICD-10.
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-version-code-9-icd-9-or-icd-10
type: VARCHAR(1)
- DGNS_VRSN_CD_10:
description:
@@ -21124,6 +24058,7 @@ cms:
original_type: CHAR
text: Version Code 10 - Indicate if diagnosis code is ICD-9 or ICD-10.
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-version-code-10-icd-9-or-icd-10
type: VARCHAR(1)
- DGNS_VRSN_CD_11:
description:
@@ -21131,6 +24066,7 @@ cms:
original_type: CHAR
text: Version Code 11 - Indicate if diagnosis code is ICD-9 or ICD-10.
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-version-code-11-icd-9-or-icd-10
type: VARCHAR(1)
- DGNS_VRSN_CD_12:
description:
@@ -21138,6 +24074,7 @@ cms:
original_type: CHAR
text: Version Code 12 - Indicate if diagnosis code is ICD-9 or ICD-10.
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-version-code-12-icd-9-or-icd-10
type: VARCHAR(1)
- DGNS_VRSN_CD_13:
description:
@@ -21145,6 +24082,7 @@ cms:
original_type: CHAR
text: Version Code 13 - Indicate if diagnosis code is ICD-9 or ICD-10.
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-version-code-13-icd-9-or-icd-10
type: VARCHAR(1)
- DGNS_VRSN_CD_14:
description:
@@ -21152,6 +24090,7 @@ cms:
original_type: CHAR
text: Version Code 14 - Indicate if diagnosis code is ICD-9 or ICD-10.
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-version-code-14-icd-9-or-icd-10
type: VARCHAR(1)
- DGNS_VRSN_CD_15:
description:
@@ -21159,6 +24098,7 @@ cms:
original_type: CHAR
text: Version Code 15 - Indicate if diagnosis code is ICD-9 or ICD-10.
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-version-code-15-icd-9-or-icd-10
type: VARCHAR(1)
- DGNS_VRSN_CD_16:
description:
@@ -21166,6 +24106,7 @@ cms:
original_type: CHAR
text: Version Code 16 - Indicate if diagnosis code is ICD-9 or ICD-10.
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-version-code-16-icd-9-or-icd-10
type: VARCHAR(1)
- DGNS_VRSN_CD_17:
description:
@@ -21173,6 +24114,7 @@ cms:
original_type: CHAR
text: Version Code 17 - Indicate if diagnosis code is ICD-9 or ICD-10.
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-version-code-17-icd-9-or-icd-10
type: VARCHAR(1)
- DGNS_VRSN_CD_18:
description:
@@ -21180,6 +24122,7 @@ cms:
original_type: CHAR
text: Version Code 18 - Indicate if diagnosis code is ICD-9 or ICD-10.
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-version-code-18-icd-9-or-icd-10
type: VARCHAR(1)
- DGNS_VRSN_CD_19:
description:
@@ -21187,6 +24130,7 @@ cms:
original_type: CHAR
text: Version Code 19 - Indicate if diagnosis code is ICD-9 or ICD-10.
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-version-code-19-icd-9-or-icd-10
type: VARCHAR(1)
- DGNS_VRSN_CD_20:
description:
@@ -21194,6 +24138,7 @@ cms:
original_type: CHAR
text: Version Code 20 - Indicate if diagnosis code is ICD-9 or ICD-10.
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-version-code-20-icd-9-or-icd-10
type: VARCHAR(1)
- DGNS_VRSN_CD_21:
description:
@@ -21201,6 +24146,7 @@ cms:
original_type: CHAR
text: Version Code 21 - Indicate if diagnosis code is ICD-9 or ICD-10.
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-version-code-21-icd-9-or-icd-10
type: VARCHAR(1)
- DGNS_VRSN_CD_22:
description:
@@ -21208,6 +24154,7 @@ cms:
original_type: CHAR
text: Version Code 22 - Indicate if diagnosis code is ICD-9 or ICD-10.
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-version-code-22-icd-9-or-icd-10
type: VARCHAR(1)
- DGNS_VRSN_CD_23:
description:
@@ -21215,6 +24162,7 @@ cms:
original_type: CHAR
text: Version Code 23 - Indicate if diagnosis code is ICD-9 or ICD-10.
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-version-code-23-icd-9-or-icd-10
type: VARCHAR(1)
- DGNS_VRSN_CD_24:
description:
@@ -21222,6 +24170,7 @@ cms:
original_type: CHAR
text: Version Code 24 - Indicate if diagnosis code is ICD-9 or ICD-10.
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-version-code-24-icd-9-or-icd-10
type: VARCHAR(1)
- DGNS_VRSN_CD_25:
description:
@@ -21229,6 +24178,7 @@ cms:
original_type: CHAR
text: Version Code 25 - Indicate if diagnosis code is ICD-9 or ICD-10.
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-version-code-25-icd-9-or-icd-10
type: VARCHAR(1)
- DGNSCD1:
description:
@@ -21236,6 +24186,7 @@ cms:
original_type: CHAR
text: Primary ICD-9-CM code
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-principal-diagnosis-code
type: VARCHAR(7)
- DGNSCD2:
description:
@@ -21243,6 +24194,7 @@ cms:
original_type: CHAR
text: ICD-9-CM Diagnosis code II
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-code-2
type: VARCHAR(7)
- DGNSCD3:
description:
@@ -21250,6 +24202,7 @@ cms:
original_type: CHAR
text: ICD-9-CM Diagnosis code III
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-code-3
type: VARCHAR(7)
- DGNSCD4:
description:
@@ -21257,6 +24210,7 @@ cms:
original_type: CHAR
text: ICD-9-CM Diagnosis code IV
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-code-4
type: VARCHAR(7)
- DGNSCD5:
description:
@@ -21264,6 +24218,7 @@ cms:
original_type: CHAR
text: ICD-9-CM Diagnosis code V
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-code-5
type: VARCHAR(7)
- DGNSCD6:
description:
@@ -21271,6 +24226,7 @@ cms:
original_type: CHAR
text: ICD-9-CM Diagnosis code VI
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-code-6
type: VARCHAR(7)
- DGNSCD7:
description:
@@ -21278,6 +24234,7 @@ cms:
original_type: CHAR
text: ICD-9-CM Diagnosis code VII
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-code-7
type: VARCHAR(7)
- DGNSCD8:
description:
@@ -21285,6 +24242,7 @@ cms:
original_type: CHAR
text: ICD-9-CM Diagnosis code VIII
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-code-8
type: VARCHAR(7)
- DGNSCD9:
description:
@@ -21292,6 +24250,7 @@ cms:
original_type: CHAR
text: ICD-9-CM Diagnosis code IX
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-code-9
type: VARCHAR(7)
- DGNSCD10:
description:
@@ -21299,6 +24258,7 @@ cms:
original_type: CHAR
text: ICD-9-CM Diagnosis code X
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-icd-9-cm-diagnosis-code-10
type: VARCHAR(7)
- DGNSCD11:
description:
@@ -21306,6 +24266,7 @@ cms:
original_type: CHAR
text: ICD-9-CM Diagnosis code XI
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-icd-9-cm-diagnosis-code-11
type: VARCHAR(7)
- DGNSCD12:
description:
@@ -21313,6 +24274,7 @@ cms:
original_type: CHAR
text: ICD-9-CM Diagnosis code XII
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-icd-9-cm-diagnosis-code-12
type: VARCHAR(7)
- DGNSCD13:
description:
@@ -21320,6 +24282,7 @@ cms:
original_type: CHAR
text: ICD-9-CM Diagnosis code XIII
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-icd-9-cm-diagnosis-code-13
type: VARCHAR(7)
- DGNSCD14:
description:
@@ -21327,6 +24290,7 @@ cms:
original_type: CHAR
text: ICD-9-CM Diagnosis code XIV
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-icd-9-cm-diagnosis-code-14
type: VARCHAR(7)
- DGNSCD15:
description:
@@ -21334,6 +24298,7 @@ cms:
original_type: CHAR
text: ICD-9-CM Diagnosis code XV
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-icd-9-cm-diagnosis-code-15
type: VARCHAR(7)
- DGNSCD16:
description:
@@ -21341,6 +24306,7 @@ cms:
original_type: CHAR
text: ICD-9-CM Diagnosis code XVI
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-icd-9-cm-diagnosis-code-16
type: VARCHAR(7)
- DGNSCD17:
description:
@@ -21348,6 +24314,7 @@ cms:
original_type: CHAR
text: ICD-9-CM Diagnosis code XVII
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-icd-9-cm-diagnosis-code-17
type: VARCHAR(7)
- DGNSCD18:
description:
@@ -21355,6 +24322,7 @@ cms:
original_type: CHAR
text: ICD-9-CM Diagnosis code XVIII
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-icd-9-cm-diagnosis-code-18
type: VARCHAR(7)
- DGNSCD19:
description:
@@ -21362,6 +24330,7 @@ cms:
original_type: CHAR
text: ICD-9-CM Diagnosis code XIX
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-icd-9-cm-diagnosis-code-19
type: VARCHAR(7)
- DGNSCD20:
description:
@@ -21369,6 +24338,7 @@ cms:
original_type: CHAR
text: ICD-9-CM Diagnosis code XX
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-icd-9-cm-diagnosis-code-20
type: VARCHAR(7)
- DGNSCD21:
description:
@@ -21376,6 +24346,7 @@ cms:
original_type: CHAR
text: ICD-9-CM Diagnosis code XXI
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-icd-9-cm-diagnosis-code-21
type: VARCHAR(7)
- DGNSCD22:
description:
@@ -21383,6 +24354,7 @@ cms:
original_type: CHAR
text: ICD-9-CM Diagnosis code XXII
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-icd-9-cm-diagnosis-code-22
type: VARCHAR(7)
- DGNSCD23:
description:
@@ -21390,6 +24362,7 @@ cms:
original_type: CHAR
text: ICD-9-CM Diagnosis code XXIII
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-icd-9-cm-diagnosis-code-23
type: VARCHAR(7)
- DGNSCD24:
description:
@@ -21397,6 +24370,7 @@ cms:
original_type: CHAR
text: ICD-9-CM Diagnosis code XXIV
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-icd-9-cm-diagnosis-code-24
type: VARCHAR(7)
- DGNSCD25:
description:
@@ -21404,6 +24378,7 @@ cms:
original_type: CHAR
text: ICD-9-CM Diagnosis code XXV
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-icd-9-cm-diagnosis-code-25
type: VARCHAR(7)
- DGNS_POA:
description:
@@ -21411,6 +24386,7 @@ cms:
original_type: CHAR
text: Diagnosis Code POA Array
width: 10.0
+ reference: https://resdac.org/cms-data/variables/diagnosis-code-poa-array
type: VARCHAR(10)
- POA_DGNS_CD_CNT:
description:
@@ -21418,6 +24394,7 @@ cms:
original_type: NUM
text: MEDPAR Claim Present on Admission Diagnosis Code Count
width: 3.0
+ reference: https://resdac.org/cms-data/variables/count-present-admission-poa-diagnosis-codes
type: INT
- POA_DGNS_1_IND_CD:
description:
@@ -21425,6 +24402,7 @@ cms:
original_type: CHAR
text: Diagnosis Present on Admission Indicator 1
width: 1.0
+ reference: https://resdac.org/cms-data/variables/diagnosis-1-present-admission-poa-indicator-code
type: VARCHAR(1)
- POA_DGNS_2_IND_CD:
description:
@@ -21432,6 +24410,7 @@ cms:
original_type: CHAR
text: Diagnosis Present on Admission Indicator 2
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-present-admission-indicator-2
type: VARCHAR(1)
- POA_DGNS_3_IND_CD:
description:
@@ -21439,6 +24418,7 @@ cms:
original_type: CHAR
text: Diagnosis Present on Admission Indicator 3
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-present-admission-indicator-3
type: VARCHAR(1)
- POA_DGNS_4_IND_CD:
description:
@@ -21446,6 +24426,7 @@ cms:
original_type: CHAR
text: Diagnosis Present on Admission Indicator 4
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-present-admission-indicator-4
type: VARCHAR(1)
- POA_DGNS_5_IND_CD:
description:
@@ -21453,6 +24434,7 @@ cms:
original_type: CHAR
text: Diagnosis Present on Admission Indicator 5
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-present-admission-indicator-5
type: VARCHAR(1)
- POA_DGNS_6_IND_CD:
description:
@@ -21460,6 +24442,7 @@ cms:
original_type: CHAR
text: Diagnosis Present on Admission Indicator 6
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-present-admission-indicator-6
type: VARCHAR(1)
- POA_DGNS_7_IND_CD:
description:
@@ -21467,6 +24450,7 @@ cms:
original_type: CHAR
text: Diagnosis Present on Admission Indicator 7
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-present-admission-indicator-7
type: VARCHAR(1)
- POA_DGNS_8_IND_CD:
description:
@@ -21474,6 +24458,7 @@ cms:
original_type: CHAR
text: Diagnosis Present on Admission Indicator 8
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-present-admission-indicator-8
type: VARCHAR(1)
- POA_DGNS_9_IND_CD:
description:
@@ -21481,6 +24466,7 @@ cms:
original_type: CHAR
text: Diagnosis Present on Admission Indicator 9
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-present-admission-indicator-9
type: VARCHAR(1)
- POA_DGNS_10_IND_CD:
description:
@@ -21488,6 +24474,7 @@ cms:
original_type: CHAR
text: Diagnosis Present on Admission Indicator 10
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-present-admission-indicator-10
type: VARCHAR(1)
- POA_DGNS_11_IND_CD:
description:
@@ -21495,6 +24482,7 @@ cms:
original_type: CHAR
text: Diagnosis Present on Admission Indicator 11
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-present-admission-indicator-11
type: VARCHAR(1)
- POA_DGNS_12_IND_CD:
description:
@@ -21502,6 +24490,7 @@ cms:
original_type: CHAR
text: Diagnosis Present on Admission Indicator 12
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-present-admission-indicator-12
type: VARCHAR(1)
- POA_DGNS_13_IND_CD:
description:
@@ -21509,6 +24498,7 @@ cms:
original_type: CHAR
text: Diagnosis Present on Admission Indicator 13
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-present-admission-indicator-13
type: VARCHAR(1)
- POA_DGNS_14_IND_CD:
description:
@@ -21516,6 +24506,7 @@ cms:
original_type: CHAR
text: Diagnosis Present on Admission Indicator 14
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-present-admission-indicator-14
type: VARCHAR(1)
- POA_DGNS_15_IND_CD:
description:
@@ -21523,6 +24514,7 @@ cms:
original_type: CHAR
text: Diagnosis Present on Admission Indicator 15
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-present-admission-indicator-15
type: VARCHAR(1)
- POA_DGNS_16_IND_CD:
description:
@@ -21530,6 +24522,7 @@ cms:
original_type: CHAR
text: Diagnosis Present on Admission Indicator 16
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-present-admission-indicator-16
type: VARCHAR(1)
- POA_DGNS_17_IND_CD:
description:
@@ -21537,6 +24530,7 @@ cms:
original_type: CHAR
text: Diagnosis Present on Admission Indicator 17
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-present-admission-indicator-17
type: VARCHAR(1)
- POA_DGNS_18_IND_CD:
description:
@@ -21544,6 +24538,7 @@ cms:
original_type: CHAR
text: Diagnosis Present on Admission Indicator 18
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-present-admission-indicator-18
type: VARCHAR(1)
- POA_DGNS_19_IND_CD:
description:
@@ -21551,6 +24546,7 @@ cms:
original_type: CHAR
text: Diagnosis Present on Admission Indicator 19
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-present-admission-indicator-19
type: VARCHAR(1)
- POA_DGNS_20_IND_CD:
description:
@@ -21558,6 +24554,7 @@ cms:
original_type: CHAR
text: Diagnosis Present on Admission Indicator 20
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-present-admission-indicator-20
type: VARCHAR(1)
- POA_DGNS_21_IND_CD:
description:
@@ -21565,6 +24562,7 @@ cms:
original_type: CHAR
text: Diagnosis Present on Admission Indicator 21
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-present-admission-indicator-21
type: VARCHAR(1)
- POA_DGNS_22_IND_CD:
description:
@@ -21572,6 +24570,7 @@ cms:
original_type: CHAR
text: Diagnosis Present on Admission Indicator 22
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-present-admission-indicator-22
type: VARCHAR(1)
- POA_DGNS_23_IND_CD:
description:
@@ -21579,6 +24578,7 @@ cms:
original_type: CHAR
text: Diagnosis Present on Admission Indicator 23
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-present-admission-indicator-23
type: VARCHAR(1)
- POA_DGNS_24_IND_CD:
description:
@@ -21586,6 +24586,7 @@ cms:
original_type: CHAR
text: Diagnosis Present on Admission Indicator 24
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-present-admission-indicator-24
type: VARCHAR(1)
- POA_DGNS_25_IND_CD:
description:
@@ -21593,6 +24594,7 @@ cms:
original_type: CHAR
text: Diagnosis Present on Admission Indicator 25
width: 1.0
+ reference: https://resdac.org/cms-data/variables/diagnosis-e-code-present-admission-indicator-8
type: VARCHAR(1)
- DGNS_E_CD_CNT:
description:
@@ -21600,6 +24602,7 @@ cms:
original_type: NUM
text: MEDPAR Diagnosis E Code Count
width: 3.0
+ reference: https://resdac.org/cms-data/variables/count-diagnosis-e-codes
type: INT
- DGNS_E_VRSN_CD:
description:
@@ -21607,6 +24610,7 @@ cms:
original_type: CHAR
text: MEDPAR Diagnosis E Version Code (Earlier Version)
width: 1.0
+ reference: https://resdac.org/cms-data/variables/diagnosis-e-version-code-earlier-version
type: VARCHAR(1)
- DGNS_E_VRSN_CD_1:
description:
@@ -21614,6 +24618,7 @@ cms:
original_type: CHAR
text: MEDPAR Diagnosis E Version Code 01
width: 1.0
+ reference: https://resdac.org/cms-data/variables/diagnosis-e-version-code-1
type: VARCHAR(1)
- DGNS_E_VRSN_CD_2:
description:
@@ -21621,6 +24626,7 @@ cms:
original_type: CHAR
text: MEDPAR Diagnosis E Version Code 02
width: 1.0
+ reference: https://resdac.org/cms-data/variables/diagnosis-e-version-code-2
type: VARCHAR(1)
- DGNS_E_VRSN_CD_3:
description:
@@ -21628,6 +24634,7 @@ cms:
original_type: CHAR
text: MEDPAR Diagnosis E Version Code 03
width: 1.0
+ reference: https://resdac.org/cms-data/variables/diagnosis-e-version-code-3
type: VARCHAR(1)
- DGNS_E_VRSN_CD_4:
description:
@@ -21635,6 +24642,7 @@ cms:
original_type: CHAR
text: MEDPAR Diagnosis E Version Code 04
width: 1.0
+ reference: https://resdac.org/cms-data/variables/diagnosis-e-version-code-4
type: VARCHAR(1)
- DGNS_E_VRSN_CD_5:
description:
@@ -21642,6 +24650,7 @@ cms:
original_type: CHAR
text: MEDPAR Diagnosis E Version Code 05
width: 1.0
+ reference: https://resdac.org/cms-data/variables/diagnosis-e-version-code-5
type: VARCHAR(1)
- DGNS_E_VRSN_CD_6:
description:
@@ -21649,6 +24658,7 @@ cms:
original_type: CHAR
text: MEDPAR Diagnosis E Version Code 06
width: 1.0
+ reference: https://resdac.org/cms-data/variables/diagnosis-e-version-code-6
type: VARCHAR(1)
- DGNS_E_VRSN_CD_7:
description:
@@ -21656,6 +24666,7 @@ cms:
original_type: CHAR
text: MEDPAR Diagnosis E Version Code 07
width: 1.0
+ reference: https://resdac.org/cms-data/variables/diagnosis-e-version-code-7
type: VARCHAR(1)
- DGNS_E_VRSN_CD_8:
description:
@@ -21663,6 +24674,7 @@ cms:
original_type: CHAR
text: MEDPAR Diagnosis E Version Code 08
width: 1.0
+ reference: https://resdac.org/cms-data/variables/diagnosis-e-version-code-8
type: VARCHAR(1)
- DGNS_E_VRSN_CD_9:
description:
@@ -21670,6 +24682,7 @@ cms:
original_type: CHAR
text: MEDPAR Diagnosis E Version Code 09
width: 1.0
+ reference: https://resdac.org/cms-data/variables/diagnosis-e-version-code-9
type: VARCHAR(1)
- DGNS_E_VRSN_CD_10:
description:
@@ -21677,6 +24690,7 @@ cms:
original_type: CHAR
text: MEDPAR Diagnosis E Version Code 10
width: 1.0
+ reference: https://resdac.org/cms-data/variables/diagnosis-e-version-code-10
type: VARCHAR(1)
- DGNS_E_VRSN_CD_11:
description:
@@ -21684,6 +24698,7 @@ cms:
original_type: CHAR
text: MEDPAR Diagnosis E Version Code 11
width: 1.0
+ reference: https://resdac.org/cms-data/variables/diagnosis-e-version-code-11
type: VARCHAR(1)
- DGNS_E_VRSN_CD_12:
description:
@@ -21691,6 +24706,7 @@ cms:
original_type: CHAR
text: MEDPAR Diagnosis E Version Code 12
width: 1.0
+ reference: https://resdac.org/cms-data/variables/diagnosis-e-version-code-12
type: VARCHAR(1)
- DGNS_E_1_CD:
description:
@@ -21699,6 +24715,7 @@ cms:
text: E Diagnosis Code 1 - Extrnl cause of injury, poisoning, or oth adverse
effect
width: 7.0
+ reference: https://resdac.org/cms-data/variables/diagnosis-e-version-code-1
type: VARCHAR(7)
- DGNS_E_2_CD:
description:
@@ -21707,6 +24724,7 @@ cms:
text: E Diagnosis Code 2 - Extrnl cause of injury, poisoning, or oth adverse
effect
width: 7.0
+ reference: https://resdac.org/cms-data/variables/diagnosis-e-code-2
type: VARCHAR(7)
- DGNS_E_3_CD:
description:
@@ -21715,6 +24733,7 @@ cms:
text: E Diagnosis Code 3 - Extrnl cause of injury, poisoning, or oth adverse
effect
width: 7.0
+ reference: https://resdac.org/cms-data/variables/diagnosis-e-code-3
type: VARCHAR(7)
- DGNS_E_4_CD:
description:
@@ -21723,6 +24742,7 @@ cms:
text: E Diagnosis Code 4 - Extrnl cause of injury, poisoning, or oth adverse
effect
width: 7.0
+ reference: https://resdac.org/cms-data/variables/diagnosis-e-code-4
type: VARCHAR(7)
- DGNS_E_5_CD:
description:
@@ -21731,6 +24751,7 @@ cms:
text: E Diagnosis Code 5 - Extrnl cause of injury, poisoning, or oth adverse
effect
width: 7.0
+ reference: https://resdac.org/cms-data/variables/diagnosis-e-code-5
type: VARCHAR(7)
- DGNS_E_6_CD:
description:
@@ -21739,6 +24760,7 @@ cms:
text: E Diagnosis Code 6 - Extrnl cause of injury, poisoning, or oth adverse
effect
width: 7.0
+ reference: https://resdac.org/cms-data/variables/diagnosis-e-code-6
type: VARCHAR(7)
- DGNS_E_7_CD:
description:
@@ -21747,6 +24769,7 @@ cms:
text: E Diagnosis Code 7 - Extrnl cause of injury, poisoning, or oth adverse
effect
width: 7.0
+ reference: https://resdac.org/cms-data/variables/diagnosis-e-code-7
type: VARCHAR(7)
- DGNS_E_8_CD:
description:
@@ -21755,6 +24778,7 @@ cms:
text: E Diagnosis Code 8 - Extrnl cause of injury, poisoning, or oth adverse
effect
width: 7.0
+ reference: https://resdac.org/cms-data/variables/diagnosis-e-code-8
type: VARCHAR(7)
- DGNS_E_9_CD:
description:
@@ -21763,6 +24787,7 @@ cms:
text: E Diagnosis Code 9 - Extrnl cause of injury, poisoning, or oth adverse
effect
width: 7.0
+ reference: https://resdac.org/cms-data/variables/diagnosis-e-code-9
type: VARCHAR(7)
- DGNS_E_10_CD:
description:
@@ -21771,6 +24796,7 @@ cms:
text: E Diagnosis Code 10 - Extrnl cause of injury, poisoning, or oth
adverse effect
width: 7.0
+ reference: https://resdac.org/cms-data/variables/diagnosis-e-code-10
type: VARCHAR(7)
- DGNS_E_11_CD:
description:
@@ -21779,6 +24805,7 @@ cms:
text: E Diagnosis Code 11 - Extrnl cause of injury, poisoning, or oth
adverse effect
width: 7.0
+ reference: https://resdac.org/cms-data/variables/diagnosis-e-code-11
type: VARCHAR(7)
- DGNS_E_12_CD:
description:
@@ -21787,6 +24814,7 @@ cms:
text: E Diagnosis Code 12 - Extrnl cause of injury, poisoning, or oth
adverse effect
width: 7.0
+ reference: https://resdac.org/cms-data/variables/diagnosis-e-version-code-1
type: VARCHAR(7)
- POA_DGNS_E_CD_CNT:
description:
@@ -21794,6 +24822,7 @@ cms:
original_type: NUM
text: MEDPAR Claim Present on Admission Diagnosis E Code Count
width: 3.0
+ reference: https://resdac.org/cms-data/variables/count-present-admission-poa-diagnosis-e-codes
type: INT
- POA_DGNS_E_1_IND_CD:
description:
@@ -21801,6 +24830,7 @@ cms:
original_type: CHAR
text: Diagnosis E Code Present on Admission Indicator 1
width: 1.0
+ reference: https://resdac.org/cms-data/variables/diagnosis-1-present-admission-poa-indicator-code
type: VARCHAR(1)
- POA_DGNS_E_2_IND_CD:
description:
@@ -21808,6 +24838,7 @@ cms:
original_type: CHAR
text: Diagnosis E Code Present on Admission Indicator 2
width: 1.0
+ reference: https://resdac.org/cms-data/variables/diagnosis-e-code-present-admission-indicator-2
type: VARCHAR(1)
- POA_DGNS_E_3_IND_CD:
description:
@@ -21815,6 +24846,7 @@ cms:
original_type: CHAR
text: Diagnosis E Code Present on Admission Indicator 3
width: 1.0
+ reference: https://resdac.org/cms-data/variables/diagnosis-e-code-present-admission-indicator-3
type: VARCHAR(1)
- POA_DGNS_E_4_IND_CD:
description:
@@ -21822,6 +24854,7 @@ cms:
original_type: CHAR
text: Diagnosis E Code Present on Admission Indicator 4
width: 1.0
+ reference: https://resdac.org/cms-data/variables/diagnosis-e-code-present-admission-indicator-4
type: VARCHAR(1)
- POA_DGNS_E_5_IND_CD:
description:
@@ -21829,6 +24862,7 @@ cms:
original_type: CHAR
text: Diagnosis E Code Present on Admission Indicator 5
width: 1.0
+ reference: https://resdac.org/cms-data/variables/diagnosis-e-code-present-admission-indicator-5
type: VARCHAR(1)
- POA_DGNS_E_6_IND_CD:
description:
@@ -21836,6 +24870,7 @@ cms:
original_type: CHAR
text: Diagnosis E Code Present on Admission Indicator 6
width: 1.0
+ reference: https://resdac.org/cms-data/variables/diagnosis-e-code-present-admission-indicator-6
type: VARCHAR(1)
- POA_DGNS_E_7_IND_CD:
description:
@@ -21843,6 +24878,7 @@ cms:
original_type: CHAR
text: Diagnosis E Code Present on Admission Indicator 7
width: 1.0
+ reference: https://resdac.org/cms-data/variables/diagnosis-e-code-present-admission-indicator-7
type: VARCHAR(1)
- POA_DGNS_E_8_IND_CD:
description:
@@ -21850,6 +24886,7 @@ cms:
original_type: CHAR
text: Diagnosis E Code Present on Admission Indicator 8
width: 1.0
+ reference: https://resdac.org/cms-data/variables/diagnosis-e-code-present-admission-indicator-8
type: VARCHAR(1)
- POA_DGNS_E_9_IND_CD:
description:
@@ -21857,6 +24894,7 @@ cms:
original_type: CHAR
text: Diagnosis E Code Present on Admission Indicator 9
width: 1.0
+ reference: https://resdac.org/cms-data/variables/diagnosis-e-code-present-admission-indicator-9
type: VARCHAR(1)
- POA_DGNS_E_10_IND_CD:
description:
@@ -21864,6 +24902,7 @@ cms:
original_type: CHAR
text: Diagnosis E Code Present on Admission Indicator 10
width: 1.0
+ reference: https://resdac.org/cms-data/variables/diagnosis-e-code-present-admission-indicator-10
type: VARCHAR(1)
- POA_DGNS_E_11_IND_CD:
description:
@@ -21871,6 +24910,7 @@ cms:
original_type: CHAR
text: Diagnosis E Code Present on Admission Indicator 11
width: 1.0
+ reference: https://resdac.org/cms-data/variables/diagnosis-e-code-present-admission-indicator-11
type: VARCHAR(1)
- POA_DGNS_E_12_IND_CD:
description:
@@ -21878,6 +24918,7 @@ cms:
original_type: CHAR
text: Diagnosis E Code Present on Admission Indicator 12
width: 1.0
+ reference: https://resdac.org/cms-data/variables/diagnosis-e-code-present-admission-indicator-12
type: VARCHAR(1)
- PRCDRSW:
description:
@@ -21885,6 +24926,7 @@ cms:
original_type: CHAR
text: Surgical procedures indicator
width: 1.0
+ reference: https://resdac.org/cms-data/variables/surgical-procedure-indicator
type: VARCHAR(1)
- PRCDRCNT:
description:
@@ -21892,6 +24934,7 @@ cms:
original_type: NUM
text: Surgical procedure codes included in stay
width: 3.0
+ reference: https://resdac.org/cms-data/variables/surgical-procedure-codes-included-stay
type: INT
- SRGCL_PRCDR_VRSN_CD:
description:
@@ -21899,6 +24942,7 @@ cms:
original_type: CHAR
text: MEDPAR Surgical Procedure Version Code (Earlier Version)
width: 1.0
+ reference: https://resdac.org/cms-data/variables/surgical-procedure-version-code-earlier-version
type: VARCHAR(1)
- SRGCL_PRCDR_VRSN_CD_1:
description:
@@ -21906,6 +24950,7 @@ cms:
original_type: CHAR
text: MEDPAR Surgical Procedure Version Code 01
width: 1.0
+ reference: https://resdac.org/cms-data/variables/principal-procedure-code
type: VARCHAR(1)
- SRGCL_PRCDR_VRSN_CD_2:
description:
@@ -21913,6 +24958,7 @@ cms:
original_type: CHAR
text: MEDPAR Surgical Procedure Version Code 02
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-surgical-procedure-version-code-2
type: VARCHAR(1)
- SRGCL_PRCDR_VRSN_CD_3:
description:
@@ -21920,6 +24966,7 @@ cms:
original_type: CHAR
text: MEDPAR Surgical Procedure Version Code 03
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-surgical-procedure-version-code-3
type: VARCHAR(1)
- SRGCL_PRCDR_VRSN_CD_4:
description:
@@ -21927,6 +24974,7 @@ cms:
original_type: CHAR
text: MEDPAR Surgical Procedure Version Code 04
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-surgical-procedure-version-code-4
type: VARCHAR(1)
- SRGCL_PRCDR_VRSN_CD_5:
description:
@@ -21934,6 +24982,7 @@ cms:
original_type: CHAR
text: MEDPAR Surgical Procedure Version Code 05
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-surgical-procedure-version-code-5
type: VARCHAR(1)
- SRGCL_PRCDR_VRSN_CD_6:
description:
@@ -21941,6 +24990,7 @@ cms:
original_type: CHAR
text: MEDPAR Surgical Procedure Version Code 06
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-surgical-procedure-version-code-6
type: VARCHAR(1)
- SRGCL_PRCDR_VRSN_CD_7:
description:
@@ -21948,6 +24998,7 @@ cms:
original_type: CHAR
text: MEDPAR Surgical Procedure Version Code 07
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-surgical-procedure-version-code-7
type: VARCHAR(1)
- SRGCL_PRCDR_VRSN_CD_8:
description:
@@ -21955,6 +25006,7 @@ cms:
original_type: CHAR
text: MEDPAR Surgical Procedure Version Code 08
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-surgical-procedure-version-code-8
type: VARCHAR(1)
- SRGCL_PRCDR_VRSN_CD_9:
description:
@@ -21962,6 +25014,7 @@ cms:
original_type: CHAR
text: MEDPAR Surgical Procedure Version Code 09
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-surgical-procedure-version-code-9
type: VARCHAR(1)
- SRGCL_PRCDR_VRSN_CD_10:
description:
@@ -21969,6 +25022,7 @@ cms:
original_type: CHAR
text: MEDPAR Surgical Procedure Version Code 10
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-surgical-procedure-version-code-10
type: VARCHAR(1)
- SRGCL_PRCDR_VRSN_CD_11:
description:
@@ -21976,6 +25030,7 @@ cms:
original_type: CHAR
text: MEDPAR Surgical Procedure Version Code 11
width: 1.0
+ reference: https://resdac.org/cms-data/variables/surgical-procedure-version-code-earlier-version
type: VARCHAR(1)
- SRGCL_PRCDR_VRSN_CD_12:
description:
@@ -21983,6 +25038,7 @@ cms:
original_type: CHAR
text: MEDPAR Surgical Procedure Version Code 12
width: 1.0
+ reference: https://resdac.org/cms-data/variables/surgical-procedure-version-code-earlier-version
type: VARCHAR(1)
- SRGCL_PRCDR_VRSN_CD_13:
description:
@@ -21990,6 +25046,7 @@ cms:
original_type: CHAR
text: MEDPAR Surgical Procedure Version Code 13
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-surgical-procedure-version-code-13
type: VARCHAR(1)
- SRGCL_PRCDR_VRSN_CD_14:
description:
@@ -21997,6 +25054,7 @@ cms:
original_type: CHAR
text: MEDPAR Surgical Procedure Version Code 14
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-surgical-procedure-version-code-14
type: VARCHAR(1)
- SRGCL_PRCDR_VRSN_CD_15:
description:
@@ -22004,6 +25062,7 @@ cms:
original_type: CHAR
text: MEDPAR Surgical Procedure Version Code 15
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-surgical-procedure-version-code-15
type: VARCHAR(1)
- SRGCL_PRCDR_VRSN_CD_16:
description:
@@ -22011,6 +25070,7 @@ cms:
original_type: CHAR
text: MEDPAR Surgical Procedure Version Code 16
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-surgical-procedure-version-code-16
type: VARCHAR(1)
- SRGCL_PRCDR_VRSN_CD_17:
description:
@@ -22018,6 +25078,7 @@ cms:
original_type: CHAR
text: MEDPAR Surgical Procedure Version Code 17
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-surgical-procedure-version-code-17
type: VARCHAR(1)
- SRGCL_PRCDR_VRSN_CD_18:
description:
@@ -22025,6 +25086,7 @@ cms:
original_type: CHAR
text: MEDPAR Surgical Procedure Version Code 18
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-surgical-procedure-version-code-18
type: VARCHAR(1)
- SRGCL_PRCDR_VRSN_CD_19:
description:
@@ -22032,6 +25094,7 @@ cms:
original_type: CHAR
text: MEDPAR Surgical Procedure Version Code 19
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-surgical-procedure-version-code-19
type: VARCHAR(1)
- SRGCL_PRCDR_VRSN_CD_20:
description:
@@ -22039,6 +25102,7 @@ cms:
original_type: CHAR
text: MEDPAR Surgical Procedure Version Code 20
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-surgical-procedure-version-code-20
type: VARCHAR(1)
- SRGCL_PRCDR_VRSN_CD_21:
description:
@@ -22046,6 +25110,7 @@ cms:
original_type: CHAR
text: MEDPAR Surgical Procedure Version Code 21
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-surgical-procedure-version-code-21
type: VARCHAR(1)
- SRGCL_PRCDR_VRSN_CD_22:
description:
@@ -22053,6 +25118,7 @@ cms:
original_type: CHAR
text: MEDPAR Surgical Procedure Version Code 22
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-surgical-procedure-version-code-22
type: VARCHAR(1)
- SRGCL_PRCDR_VRSN_CD_23:
description:
@@ -22060,6 +25126,7 @@ cms:
original_type: CHAR
text: MEDPAR Surgical Procedure Version Code 23
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-surgical-procedure-version-code-23
type: VARCHAR(1)
- SRGCL_PRCDR_VRSN_CD_24:
description:
@@ -22067,6 +25134,7 @@ cms:
original_type: CHAR
text: MEDPAR Surgical Procedure Version Code 24
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-surgical-procedure-version-code-24
type: VARCHAR(1)
- SRGCL_PRCDR_VRSN_CD_25:
description:
@@ -22074,6 +25142,7 @@ cms:
original_type: CHAR
text: MEDPAR Surgical Procedure Version Code 25
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-procedure-code-4
type: VARCHAR(1)
- PRCDRCD1:
description:
@@ -22081,6 +25150,7 @@ cms:
original_type: CHAR
text: Principal Procedure code
width: 7.0
+ reference: https://resdac.org/cms-data/variables/principal-procedure-code
type: VARCHAR(7)
- PRCDRCD2:
description:
@@ -22088,6 +25158,7 @@ cms:
original_type: CHAR
text: Procedure Code II
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-procedure-code-2
type: VARCHAR(7)
- PRCDRCD3:
description:
@@ -22095,6 +25166,7 @@ cms:
original_type: CHAR
text: Procedure Code III
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-procedure-code-3
type: VARCHAR(7)
- PRCDRCD4:
description:
@@ -22102,6 +25174,7 @@ cms:
original_type: CHAR
text: Procedure Code IV
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-procedure-code-4
type: VARCHAR(7)
- PRCDRCD5:
description:
@@ -22109,6 +25182,7 @@ cms:
original_type: CHAR
text: Procedure Code V
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-procedure-code-5
type: VARCHAR(7)
- PRCDRCD6:
description:
@@ -22116,6 +25190,7 @@ cms:
original_type: CHAR
text: Procedure Code VI
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-procedure-code-6
type: VARCHAR(7)
- PRCDRCD7:
description:
@@ -22123,6 +25198,7 @@ cms:
original_type: CHAR
text: Procedure Code VII
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-procedure-code-7
type: VARCHAR(7)
- PRCDRCD8:
description:
@@ -22130,6 +25206,7 @@ cms:
original_type: CHAR
text: Procedure Code VIII
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-procedure-code-8
type: VARCHAR(7)
- PRCDRCD9:
description:
@@ -22137,6 +25214,7 @@ cms:
original_type: CHAR
text: Procedure Code IX
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-procedure-code-9
type: VARCHAR(7)
- PRCDRCD10:
description:
@@ -22144,6 +25222,7 @@ cms:
original_type: CHAR
text: Procedure Code X
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-procedure-code-10
type: VARCHAR(7)
- PRCDRCD11:
description:
@@ -22151,6 +25230,7 @@ cms:
original_type: CHAR
text: Procedure Code XI
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-procedure-code-11
type: VARCHAR(7)
- PRCDRCD12:
description:
@@ -22158,6 +25238,7 @@ cms:
original_type: CHAR
text: Procedure Code XII
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-procedure-code-12
type: VARCHAR(7)
- PRCDRCD13:
description:
@@ -22165,6 +25246,7 @@ cms:
original_type: CHAR
text: Procedure Code XIII
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-procedure-code-13
type: VARCHAR(7)
- PRCDRCD14:
description:
@@ -22172,6 +25254,7 @@ cms:
original_type: CHAR
text: Procedure Code XIV
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-procedure-code-14
type: VARCHAR(7)
- PRCDRCD15:
description:
@@ -22179,6 +25262,7 @@ cms:
original_type: CHAR
text: Procedure Code XV
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-procedure-code-15
type: VARCHAR(7)
- PRCDRCD16:
description:
@@ -22186,6 +25270,7 @@ cms:
original_type: CHAR
text: Procedure Code XVI
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-procedure-code-16
type: VARCHAR(7)
- PRCDRCD17:
description:
@@ -22193,6 +25278,7 @@ cms:
original_type: CHAR
text: Procedure Code XVII
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-procedure-code-17
type: VARCHAR(7)
- PRCDRCD18:
description:
@@ -22200,6 +25286,7 @@ cms:
original_type: CHAR
text: Procedure Code XVIII
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-procedure-code-18
type: VARCHAR(7)
- PRCDRCD19:
description:
@@ -22207,6 +25294,7 @@ cms:
original_type: CHAR
text: Procedure Code XIX
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-procedure-code-19
type: VARCHAR(7)
- PRCDRCD20:
description:
@@ -22214,6 +25302,7 @@ cms:
original_type: CHAR
text: Procedure Code XX
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-procedure-code-20
type: VARCHAR(7)
- PRCDRCD21:
description:
@@ -22221,6 +25310,7 @@ cms:
original_type: CHAR
text: Procedure Code XXI
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-procedure-code-21
type: VARCHAR(7)
- PRCDRCD22:
description:
@@ -22228,6 +25318,7 @@ cms:
original_type: CHAR
text: Procedure Code XXII
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-procedure-code-22
type: VARCHAR(7)
- PRCDRCD23:
description:
@@ -22235,6 +25326,7 @@ cms:
original_type: CHAR
text: Procedure Code XXIII
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-procedure-code-23
type: VARCHAR(7)
- PRCDRCD24:
description:
@@ -22242,6 +25334,7 @@ cms:
original_type: CHAR
text: Procedure Code XXIV
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-procedure-code-24
type: VARCHAR(7)
- PRCDRCD25:
description:
@@ -22249,6 +25342,7 @@ cms:
original_type: CHAR
text: Procedure Code XXV
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-procedure-code-25
type: VARCHAR(7)
- PRCDTCNT:
description:
@@ -22256,6 +25350,7 @@ cms:
original_type: NUM
text: Dates associated with surgical procedures included in stay
width: 3.0
+ reference: https://resdac.org/cms-data/variables/dates-associated-surgical-procedures-included-stay
type: INT
- PRCDRDT1:
description:
@@ -22263,6 +25358,7 @@ cms:
original_type: DATE
text: Principal Procedure Date
width: 8.0
+ reference: https://resdac.org/cms-data/variables/principal-procedure-date
type: DATE
- PRCDRDT2:
description:
@@ -22270,6 +25366,7 @@ cms:
original_type: DATE
text: Procedure Date II
width: 8.0
+ reference: https://resdac.org/cms-data/variables/procedure-date-2
type: DATE
- PRCDRDT3:
description:
@@ -22277,6 +25374,7 @@ cms:
original_type: DATE
text: Procedure Date III
width: 8.0
+ reference: https://resdac.org/cms-data/variables/procedure-date-3
type: DATE
- PRCDRDT4:
description:
@@ -22284,6 +25382,7 @@ cms:
original_type: DATE
text: Procedure Date IV
width: 8.0
+ reference: https://resdac.org/cms-data/variables/procedure-date-4
type: DATE
- PRCDRDT5:
description:
@@ -22291,6 +25390,7 @@ cms:
original_type: DATE
text: Procedure Date V
width: 8.0
+ reference: null
type: DATE
- PRCDRDT6:
description:
@@ -22298,6 +25398,7 @@ cms:
original_type: DATE
text: Procedure Date VI
width: 8.0
+ reference: https://resdac.org/cms-data/variables/procedure-date-6
type: DATE
- PRCDRDT7:
description:
@@ -22305,6 +25406,7 @@ cms:
original_type: DATE
text: Procedure Date VII
width: 8.0
+ reference: https://resdac.org/cms-data/variables/procedure-date-7
type: DATE
- PRCDRDT8:
description:
@@ -22312,6 +25414,7 @@ cms:
original_type: DATE
text: Procedure Date VIII
width: 8.0
+ reference: https://resdac.org/cms-data/variables/procedure-date-8
type: DATE
- PRCDRDT9:
description:
@@ -22319,6 +25422,7 @@ cms:
original_type: DATE
text: Procedure Date IX
width: 8.0
+ reference: https://resdac.org/cms-data/variables/procedure-date-9
type: DATE
- PRCDRDT10:
description:
@@ -22326,6 +25430,7 @@ cms:
original_type: DATE
text: Procedure Date X
width: 8.0
+ reference: https://resdac.org/cms-data/variables/procedure-date-10
type: DATE
- PRCDRDT11:
description:
@@ -22333,6 +25438,7 @@ cms:
original_type: DATE
text: Procedure Date XI
width: 8.0
+ reference: https://resdac.org/cms-data/variables/procedure-date-11
type: DATE
- PRCDRDT12:
description:
@@ -22340,6 +25446,7 @@ cms:
original_type: DATE
text: Procedure Date XII
width: 8.0
+ reference: https://resdac.org/cms-data/variables/procedure-date-12
type: DATE
- PRCDRDT13:
description:
@@ -22347,6 +25454,7 @@ cms:
original_type: DATE
text: Procedure Date XIII
width: 8.0
+ reference: https://resdac.org/cms-data/variables/procedure-date-13
type: DATE
- PRCDRDT14:
description:
@@ -22354,6 +25462,7 @@ cms:
original_type: DATE
text: Procedure Date XIV
width: 8.0
+ reference: https://resdac.org/cms-data/variables/procedure-date-14
type: DATE
- PRCDRDT15:
description:
@@ -22361,6 +25470,7 @@ cms:
original_type: DATE
text: Procedure Date XV
width: 8.0
+ reference: https://resdac.org/cms-data/variables/procedure-date-15
type: DATE
- PRCDRDT16:
description:
@@ -22368,6 +25478,7 @@ cms:
original_type: DATE
text: Procedure Date XVI
width: 8.0
+ reference: https://resdac.org/cms-data/variables/procedure-date-16
type: DATE
- PRCDRDT17:
description:
@@ -22375,6 +25486,7 @@ cms:
original_type: DATE
text: Procedure Date XVII
width: 8.0
+ reference: https://resdac.org/cms-data/variables/procedure-date-17
type: DATE
- PRCDRDT18:
description:
@@ -22382,6 +25494,7 @@ cms:
original_type: DATE
text: Procedure Date XVIII
width: 8.0
+ reference: https://resdac.org/cms-data/variables/procedure-date-18
type: DATE
- PRCDRDT19:
description:
@@ -22389,6 +25502,7 @@ cms:
original_type: DATE
text: Procedure Date XIX
width: 8.0
+ reference: https://resdac.org/cms-data/variables/procedure-date-19
type: DATE
- PRCDRDT20:
description:
@@ -22396,6 +25510,7 @@ cms:
original_type: DATE
text: Procedure Date XX
width: 8.0
+ reference: https://resdac.org/cms-data/variables/procedure-date-20
type: DATE
- PRCDRDT21:
description:
@@ -22403,6 +25518,7 @@ cms:
original_type: DATE
text: Procedure Date XXI
width: 8.0
+ reference: https://resdac.org/cms-data/variables/procedure-date-21
type: DATE
- PRCDRDT22:
description:
@@ -22410,6 +25526,7 @@ cms:
original_type: DATE
text: Procedure Date XXII
width: 8.0
+ reference: https://resdac.org/cms-data/variables/procedure-date-22
type: DATE
- PRCDRDT23:
description:
@@ -22417,6 +25534,7 @@ cms:
original_type: DATE
text: Procedure Date XXIII
width: 8.0
+ reference: https://resdac.org/cms-data/variables/procedure-date-23
type: DATE
- PRCDRDT24:
description:
@@ -22424,6 +25542,7 @@ cms:
original_type: DATE
text: Procedure Date XXIV
width: 8.0
+ reference: https://resdac.org/cms-data/variables/procedure-date-24
type: DATE
- PRCDRDT25:
description:
@@ -22431,6 +25550,7 @@ cms:
original_type: DATE
text: Procedure Date XXV
width: 8.0
+ reference: https://resdac.org/cms-data/variables/procedure-date-25
type: DATE
- CLM_PTNT_RLTNSHP_CD:
description:
@@ -22438,6 +25558,7 @@ cms:
original_type: CHAR
text: Claim Patient Relationship Code
width: 2.0
+ reference: https://resdac.org/cms-data/variables/claim-patient-relationship-code
type: VARCHAR(2)
- CARE_IMPRVMT_MODEL_1_CD:
description:
@@ -22445,6 +25566,7 @@ cms:
original_type: CHAR
text: Care Improvement Model 1 Code
width: 2.0
+ reference: https://resdac.org/cms-data/variables/care-improvement-model-1-code
type: VARCHAR(2)
- CARE_IMPRVMT_MODEL_2_CD:
description:
@@ -22452,6 +25574,7 @@ cms:
original_type: CHAR
text: Care Improvement Model 2 Code
width: 2.0
+ reference: https://resdac.org/cms-data/variables/care-improvement-model-2-code
type: VARCHAR(2)
- CARE_IMPRVMT_MODEL_3_CD:
description:
@@ -22459,6 +25582,7 @@ cms:
original_type: CHAR
text: Care Improvement Model 3 Code
width: 2.0
+ reference: https://resdac.org/cms-data/variables/care-improvement-model-3-code
type: VARCHAR(2)
- CARE_IMPRVMT_MODEL_4_CD:
description:
@@ -22466,6 +25590,7 @@ cms:
original_type: CHAR
text: Care Improvement Model 4 Code
width: 2.0
+ reference: https://resdac.org/cms-data/variables/care-improvement-model-4-code
type: VARCHAR(2)
- VBP_PRTCPNT_IND_CD:
description:
@@ -22473,6 +25598,7 @@ cms:
original_type: CHAR
text: VBP Participant Indicator Code
width: 1.0
+ reference: https://resdac.org/cms-data/variables/value-based-purchasing-vbp-participant-indicator-code
type: VARCHAR(1)
- HRR_PRTCPNT_IND_CD:
description:
@@ -22480,6 +25606,7 @@ cms:
original_type: CHAR
text: HRR Participant Indicator Code
width: 1.0
+ reference: https://resdac.org/cms-data/variables/hospital-readmission-reduction-hrr-participant-indicator-code
type: VARCHAR(1)
- BNDLD_MODEL_DSCNT_PCT:
description:
@@ -22487,6 +25614,7 @@ cms:
original_type: NUM
text: Bundled Model Discount Percent
width: 7.4
+ reference: https://resdac.org/cms-data/variables/bundled-payment-model-discount-percent
type: NUMERIC(7,4)
- VBP_ADJSTMT_PCT:
description:
@@ -22494,6 +25622,7 @@ cms:
original_type: NUM
text: VBP Adjustment Percent
width: 15.12
+ reference: https://resdac.org/cms-data/variables/value-based-purchasing-vbp-adjustment-percent
type: NUMERIC(15,12)
- HRR_ADJSTMT_PCT:
description:
@@ -22501,6 +25630,7 @@ cms:
original_type: NUM
text: HRR Adjustment Percent
width: 8.5
+ reference: https://resdac.org/cms-data/variables/hospital-readmission-reduction-hrr-adjustment-percent
type: NUMERIC(8,5)
- INFRMTL_ENCTR_IND_SW:
description:
@@ -22508,6 +25638,7 @@ cms:
original_type: CHAR
text: Informational Encounter Indicator Switch
width: 1.0
+ reference: https://resdac.org/cms-data/variables/informational-encounter-indicator
type: VARCHAR(1)
- MA_TCHNG_IND_SW:
description:
@@ -22515,6 +25646,7 @@ cms:
original_type: CHAR
text: MA Teaching Indicator Switch
width: 1.0
+ reference: https://resdac.org/cms-data/variables/ma-teaching-indicator
type: VARCHAR(1)
- PROD_RPLCMT_LIFECYC_SW:
description:
@@ -22522,6 +25654,7 @@ cms:
original_type: CHAR
text: Prod Replacement Lifecycle Switch
width: 1.0
+ reference: https://resdac.org/cms-data/variables/product-replacement-within-product-lifecycle-early
type: VARCHAR(1)
- PROD_RPLCMT_RCLL_SW:
description:
@@ -22529,6 +25662,7 @@ cms:
original_type: CHAR
text: Prod Replacement Recall Switch
width: 1.0
+ reference: https://resdac.org/cms-data/variables/product-replacement-recall-product
type: VARCHAR(1)
- CRED_RCVD_RPLCD_DVC_SW:
description:
@@ -22536,6 +25670,7 @@ cms:
original_type: CHAR
text: Credit Received Replaced Device Switch
width: 1.0
+ reference: https://resdac.org/cms-data/variables/credit-received-replaced-device
type: VARCHAR(1)
- OBSRVTN_SW:
description:
@@ -22543,6 +25678,7 @@ cms:
original_type: CHAR
text: Observation Switch
width: 1.0
+ reference: https://resdac.org/cms-data/variables/observation-unit-indicator
type: VARCHAR(1)
- NEW_TCHNLGY_ADD_ON_AMT:
description:
@@ -22550,6 +25686,7 @@ cms:
original_type: NUM
text: New Technology Add-On Amount
width: 10.0
+ reference: https://resdac.org/cms-data/variables/new-technology-add-amount
type: INT
- BASE_OPRTG_DRG_AMT:
description:
@@ -22557,6 +25694,7 @@ cms:
original_type: NUM
text: Base Operating DRG Amount
width: 10.0
+ reference: https://resdac.org/cms-data/variables/base-operating-drg-amount
type: INT
- OPRTG_HSP_AMT:
description:
@@ -22564,6 +25702,7 @@ cms:
original_type: NUM
text: Operating Hospital Amount
width: 10.0
+ reference: https://resdac.org/cms-data/variables/operating-hospital-amount
type: INT
- MDCL_SRGCL_GNRL_AMT:
description:
@@ -22571,6 +25710,7 @@ cms:
original_type: NUM
text: Medical/Surgical General Amount
width: 10.0
+ reference: https://resdac.org/cms-data/variables/medicalsurgical-supplies-prosthetic-orthotic-amount
type: INT
- MDCL_SRGCL_NSTRL_AMT:
description:
@@ -22578,6 +25718,7 @@ cms:
original_type: NUM
text: Medical/Surgical Non-Sterile Amount
width: 10.0
+ reference: https://resdac.org/cms-data/variables/medicalsurgical-non-sterile-supplies-amount
type: INT
- MDCL_SRGCL_STRL_AMT:
description:
@@ -22585,6 +25726,7 @@ cms:
original_type: NUM
text: Medical/Surgical Sterile Amount
width: 10.0
+ reference: https://resdac.org/cms-data/variables/medicalsurgical-sterile-supplies-amount
type: INT
- TAKE_HOME_AMT:
description:
@@ -22592,6 +25734,7 @@ cms:
original_type: NUM
text: Take Home Amount
width: 10.0
+ reference: https://resdac.org/cms-data/variables/medicalsurgical-supplies-take-home-amount
type: INT
- PRSTHTC_ORTHTC_AMT:
description:
@@ -22599,6 +25742,7 @@ cms:
original_type: NUM
text: Prosthetic Orthotic Amount
width: 10.0
+ reference: https://resdac.org/cms-data/variables/medicalsurgical-supplies-prosthetic-orthotic-amount
type: INT
- MDCL_SRGCL_PCMKR_AMT:
description:
@@ -22606,6 +25750,7 @@ cms:
original_type: NUM
text: Medical/Surgical Pacemaker Amount
width: 10.0
+ reference: https://resdac.org/cms-data/variables/medicalsurgical-pacemaker-amount
type: INT
- INTRAOCULAR_LENS_AMT:
description:
@@ -22613,6 +25758,7 @@ cms:
original_type: NUM
text: Intraocular Lens Amount
width: 10.0
+ reference: https://resdac.org/cms-data/variables/medicalsurgical-supplies-intraocular-lens-amount
type: INT
- OXYGN_TAKE_HOME_AMT:
description:
@@ -22620,6 +25766,7 @@ cms:
original_type: NUM
text: Oxygen Take Home Amount
width: 10.0
+ reference: https://resdac.org/cms-data/variables/medicalsurgical-supplies-oxygen-take-home-amount
type: INT
- OTHR_IMPLANTS_AMT:
description:
@@ -22627,6 +25774,7 @@ cms:
original_type: NUM
text: Other Implants Amount
width: 10.0
+ reference: https://resdac.org/cms-data/variables/medicalsurgical-supplies-other-implants-amount
type: INT
- OTHR_SUPLIES_DVC_AMT:
description:
@@ -22634,6 +25782,7 @@ cms:
original_type: NUM
text: Other Supplies Device Amount
width: 10.0
+ reference: https://resdac.org/cms-data/variables/medicalsurgical-supplies-other-device-amount
type: INT
- INCDNT_RDLGY_AMT:
description:
@@ -22641,6 +25790,7 @@ cms:
original_type: NUM
text: Incident Radiology Amount
width: 10.0
+ reference: https://resdac.org/cms-data/variables/medicalsurgical-supplies-incident-radiology-amount
type: INT
- INCDNT_DGNSTC_SRVCS_AMT:
description:
@@ -22648,6 +25798,7 @@ cms:
original_type: NUM
text: Incident Diagnostic Services Amount
width: 10.0
+ reference: https://resdac.org/cms-data/variables/medicalsurgical-supplies-incident-diagnostic-services-amount
type: INT
- MDCL_SRGCL_DRSNG_AMT:
description:
@@ -22655,6 +25806,7 @@ cms:
original_type: NUM
text: Medical/Surgical Dressing Amount
width: 10.0
+ reference: https://resdac.org/cms-data/variables/medicalsurgical-dressing-amount
type: INT
- INVSTGTNL_DVC_AMT:
description:
@@ -22662,6 +25814,7 @@ cms:
original_type: NUM
text: Investigational Device Amount
width: 10.0
+ reference: https://resdac.org/cms-data/variables/medicalsurgical-supplies-investigational-device-amount
type: INT
- MDCL_SRGCL_MISC_AMT:
description:
@@ -22669,6 +25822,7 @@ cms:
original_type: NUM
text: Medical/Surgical Miscellaneous Amount
width: 10.0
+ reference: https://resdac.org/cms-data/variables/medical-surgical-miscellaneous-amount
type: INT
- RDLGY_ONCOLOGY_AMT:
description:
@@ -22676,6 +25830,7 @@ cms:
original_type: NUM
text: Radiology/Oncology Amount
width: 10.0
+ reference: https://resdac.org/cms-data/variables/oncology-amount
type: INT
- RDLGY_DGNSTC_AMT:
description:
@@ -22683,6 +25838,7 @@ cms:
original_type: NUM
text: Radiology Diagnostic Amount
width: 10.0
+ reference: https://resdac.org/cms-data/variables/radiology-diagnostic-amount
type: INT
- RDLGY_THRPTC_AMT:
description:
@@ -22690,6 +25846,7 @@ cms:
original_type: NUM
text: Radiology Therapeutic Amount
width: 10.0
+ reference: https://resdac.org/cms-data/variables/radiology-therapeutic-amount
type: INT
- RDLGY_NUCLR_MDCN_AMT:
description:
@@ -22697,6 +25854,7 @@ cms:
original_type: NUM
text: Radiology Nuclear Medicine Amount
width: 10.0
+ reference: https://resdac.org/cms-data/variables/radiology-nuclear-medicine-amount
type: INT
- RDLGY_CT_SCAN_AMT:
description:
@@ -22704,6 +25862,7 @@ cms:
original_type: NUM
text: Radiology CT Scan Amount
width: 10.0
+ reference: https://resdac.org/cms-data/variables/radiology-ct-scan-amount
type: INT
- RDLGY_OTHR_IMGNG_AMT:
description:
@@ -22711,6 +25870,7 @@ cms:
original_type: NUM
text: Radiology Other Imaging Amount
width: 10.0
+ reference: https://resdac.org/cms-data/variables/radiology-other-imaging-amount
type: INT
- OPRTG_ROOM_AMT:
description:
@@ -22718,6 +25878,7 @@ cms:
original_type: NUM
text: Operating Room Amount
width: 10.0
+ reference: https://resdac.org/cms-data/variables/operating-and-recovery-room-amount
type: INT
- OR_LABOR_DLVRY_AMT:
description:
@@ -22725,6 +25886,7 @@ cms:
original_type: NUM
text: O/R Labor Delivery Amount
width: 10.0
+ reference: https://resdac.org/cms-data/variables/labor-room-and-delivery-amount
type: INT
- CRDC_CATHRZTN_AMT:
description:
@@ -22732,6 +25894,7 @@ cms:
original_type: NUM
text: Cardiac Catheterization Amount
width: 10.0
+ reference: https://resdac.org/cms-data/variables/cardiac-catheterization-lab-amount
type: INT
- SQSTRTN_RDCTN_AMT:
description:
@@ -22739,6 +25902,7 @@ cms:
original_type: NUM
text: Sequestration Reduction Amount
width: 10.0
+ reference: https://resdac.org/cms-data/variables/sequestration-reduction-amount
type: INT
- UNCOMPD_CARE_PYMT_AMT:
description:
@@ -22746,6 +25910,7 @@ cms:
original_type: NUM
text: Uncompensated Care Payment Amount
width: 10.0
+ reference: https://resdac.org/cms-data/variables/uncompensated-care-payment-amount
type: INT
- BNDLD_ADJSTMT_AMT:
description:
@@ -22753,6 +25918,7 @@ cms:
original_type: NUM
text: Bundled Adjustment Amount
width: 10.0
+ reference: https://resdac.org/cms-data/variables/bundled-payment-adjustment-amount
type: INT
- VBP_ADJSTMT_AMT:
description:
@@ -22760,6 +25926,7 @@ cms:
original_type: NUM
text: Hospital Value Based Purchasing (VBP) Amount
width: 10.0
+ reference: https://resdac.org/cms-data/variables/hospital-value-based-purchasing-vbp-amount
type: INT
- HRR_ADJSTMT_AMT:
description:
@@ -22767,6 +25934,7 @@ cms:
original_type: NUM
text: Hospital Readmission Reduction (HRR) Adjustment Amount
width: 10.0
+ reference: https://resdac.org/cms-data/variables/hospital-readmission-reduction-hrr-adjustment-amount
type: INT
- EHR_PYMT_ADJSTMT_AMT:
description:
@@ -22774,6 +25942,7 @@ cms:
original_type: NUM
text: Electronic Health Record (EHR) Payment Adjustment Amount
width: 10.0
+ reference: https://resdac.org/cms-data/variables/electronic-health-record-ehr-payment-adjustment-amount
type: INT
- PPS_STD_VAL_PYMT_AMT:
description:
@@ -22781,6 +25950,7 @@ cms:
original_type: NUM
text: Claim PPS Standard Value Payment Amount
width: 10.0
+ reference: https://resdac.org/cms-data/variables/standard-payment-amount
type: INT
- FINL_STD_AMT:
description:
@@ -22788,6 +25958,7 @@ cms:
original_type: NUM
text: Claim Final Standard Amount
width: 10.0
+ reference: https://resdac.org/cms-data/variables/claim-final-standard-payment-amount
type: INT
- HAC_RDCTN_PMT_AMT:
description:
@@ -22795,6 +25966,7 @@ cms:
original_type: NUM
text: Hospital Acquired Conditions Reduction Payment Amount (IPPS_FLEX_PYMT_6_AMT)
width: 10.0
+ reference: https://resdac.org/cms-data/variables/hospital-acquired-conditions-hac-reduction-payment-amount
type: INT
- IPPS_FLEX_PYMT_7_AMT:
description:
@@ -22802,6 +25974,7 @@ cms:
original_type: NUM
text: IPPS Flexible Payment Amount II
width: 10.0
+ reference: https://resdac.org/cms-data/variables/flexible-payment-amount-7th-placeholder
type: INT
- PTNT_ADD_ON_PYMT_AMT:
description:
@@ -22809,6 +25982,7 @@ cms:
original_type: NUM
text: Revenue Center Patient/Initial Visit Add-On Amount
width: 10.0
+ reference: https://resdac.org/cms-data/variables/patient-add-payment-amount-new-patient
type: INT
- HAC_PGM_RDCTN_IND_SW:
description:
@@ -22816,6 +25990,7 @@ cms:
original_type: CHAR
text: Hospital Acquired Conditions (HAC) Program Reduction Indicator Switch
width: 1.0
+ reference: https://resdac.org/cms-data/variables/claim-hospital-acquired-condition-hac-program-reduction-indicator-switch
type: VARCHAR(1)
- PGM_RDCTN_IND_SW:
description:
@@ -22823,6 +25998,7 @@ cms:
original_type: CHAR
text: Electronic Health Records (EHR) Program Reduction Indicator Switch
width: 1.0
+ reference: https://resdac.org/cms-data/variables/electronic-health-records-ehr-program-reduction-indicator
type: VARCHAR(1)
- PA_IND_CD:
description:
@@ -22830,6 +26006,7 @@ cms:
original_type: CHAR
text: Claim Prior Authorization Indicator Code
width: 4.0
+ reference: https://resdac.org/cms-data/variables/prior-authorization-indicator-code
type: VARCHAR(4)
- UNIQ_TRKNG_NUM:
description:
@@ -22837,6 +26014,7 @@ cms:
original_type: CHAR
text: Claim Unique Tracking Number
width: 14.0
+ reference: https://resdac.org/cms-data/variables/unique-tracking-number
type: VARCHAR(14)
- STAY_2_IND_SW:
description:
@@ -22844,6 +26022,7 @@ cms:
original_type: CHAR
text: Stay 2 Indicator Switch
width: 1.0
+ reference: https://resdac.org/cms-data/variables/two-midnight-stay-indicator
type: VARCHAR(1)
- CLM_SITE_NTRL_PYMT_CST_AMT:
description:
@@ -22851,6 +26030,7 @@ cms:
original_type: NUM
text: Claim Site Neutral Payment Based on Cost Amount
width: 10.0
+ reference: https://resdac.org/cms-data/variables/claim-site-neutral-payment-based-cost-amount
type: INT
- CLM_SITE_NTRL_PYMT_IPPS_AMT:
description:
@@ -22858,6 +26038,7 @@ cms:
original_type: NUM
text: Claim Site Neutral Payment Based on IPPS Amount
width: 10.0
+ reference: https://resdac.org/cms-data/variables/claim-site-neutral-payment-based-ipps-amount
type: INT
- CLM_FULL_STD_PYMT_AMT:
description:
@@ -22865,6 +26046,7 @@ cms:
original_type: NUM
text: Claim Full Standard Payment Amount
width: 10.0
+ reference: https://resdac.org/cms-data/variables/claim-full-standard-payment-amount
type: INT
- CLM_SS_OUTLIER_STD_PYMT_AMT:
description:
@@ -22872,6 +26054,7 @@ cms:
original_type: NUM
text: Claim Short Stay Outlier (SSO) Standard Payment Amount
width: 10.0
+ reference: https://resdac.org/cms-data/variables/claim-short-stay-outlier-sso-standard-payment-amount
type: INT
- CLM_NGACO_IND_1_CD:
description:
@@ -22880,6 +26063,7 @@ cms:
text: Claim Next Generation (NG) Accountable Care Organization (ACO) Indicator
Code 1
width: 1.0
+ reference: https://resdac.org/cms-data/variables/claim-next-generation-ng-accountable-care-organization-aco-indicator-code-1
type: VARCHAR(1)
- CLM_NGACO_IND_2_CD:
description:
@@ -22888,6 +26072,7 @@ cms:
text: Claim Next Generation (NG) Accountable Care Organization (ACO) Indicator
Code 2
width: 1.0
+ reference: https://resdac.org/cms-data/variables/claim-next-generation-ng-accountable-care-organization-aco-indicator-code-2
type: VARCHAR(1)
- CLM_NGACO_IND_3_CD:
description:
@@ -22896,6 +26081,7 @@ cms:
text: Claim Next Generation (NG) Accountable Care Organization (ACO) Indicator
Code 3
width: 1.0
+ reference: https://resdac.org/cms-data/variables/claim-next-generation-ng-accountable-care-organization-aco-indicator-code-3
type: VARCHAR(1)
- CLM_NGACO_IND_4_CD:
description:
@@ -22904,6 +26090,7 @@ cms:
text: Claim Next Generation (NG) Accountable Care Organization (ACO) Indicator
Code 4
width: 1.0
+ reference: https://resdac.org/cms-data/variables/claim-next-generation-ng-accountable-care-organization-aco-indicator-code-4
type: VARCHAR(1)
- CLM_NGACO_IND_5_CD:
description:
@@ -22912,6 +26099,7 @@ cms:
text: Claim Next Generation (NG) Accountable Care Organization (ACO) Indicator
Code 5
width: 1.0
+ reference: https://resdac.org/cms-data/variables/claim-next-generation-ng-accountable-care-organization-aco-indicator-code-5
type: VARCHAR(1)
- CLM_RSDL_PYMT_IND_CD:
description:
@@ -22919,6 +26107,7 @@ cms:
original_type: CHAR
text: Claim Residual Payment Indicator Code
width: 1.0
+ reference: https://resdac.org/cms-data/variables/claim-residual-payment-indicator-code
type: VARCHAR(1)
- CLM_RP_IND_CD:
description:
@@ -22926,6 +26115,7 @@ cms:
original_type: CHAR
text: Claim Representative Payee (RP) Indicator Code
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-claim-representative-payee-rp-indicator-code
type: VARCHAR(1)
- RC_RP_IND_CD:
description:
@@ -22933,6 +26123,7 @@ cms:
original_type: CHAR
text: Revenue Center Representative Payee (RP) Indicator Code
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-claim-representative-payee-rp-indicator-code
type: VARCHAR(1)
- FILE:
description:
@@ -22941,6 +26132,7 @@ cms:
width: 128
index:
required_before_loading_data: true
+ reference: null
source:
type: file
type: VARCHAR(128)
@@ -22949,6 +26141,7 @@ cms:
original_type: BIGSERIAL
text: Record number in the file
width: null
+ reference: https://resdac.org/cms-data/variables/nch-near-line-record-identification-code-ric
type: BIGSERIAL
- STATE:
description:
@@ -22956,6 +26149,7 @@ cms:
text: SSA standard state code of a beneficiarys residence.
width: 2.0
index: true
+ reference: https://resdac.org/cms-data/variables/state-code-beneficiary-ssa-code
source:
code: GENERATED ALWAYS AS (STATE_CD) STORED
type: generated
@@ -22966,6 +26160,7 @@ cms:
text: Year of MedPAR Record
width: 4.0
index: true
+ reference: https://resdac.org/cms-data/variables/mbsf-cc-30/alzheimers-disease-end-year-indicator
source:
code: GENERATED ALWAYS AS (MEDPAR_YR_NUM) STORED
type: generated
@@ -22976,6 +26171,7 @@ cms:
text: Zip code of the mailing address where the beneficiary may be contacted.
width: 5.0
index: true
+ reference: https://resdac.org/cms-data/variables/zip-code-beneficiary
source:
code: GENERATED ALWAYS AS (BENE_ZIP) STORED
type: generated
@@ -22997,6 +26193,7 @@ cms:
text: Encrypted 723 Beneficiary ID
width: 15.0
index: true
+ reference: https://resdac.org/cms-data/variables/ccw-beneficiary-id
type: VARCHAR(15)
- MEDPARID:
description:
@@ -23004,6 +26201,7 @@ cms:
original_type: CHAR
text: Unique Key for CCW MedPAR Table
width: 15.0
+ reference: https://resdac.org/cms-data/variables/medpar-id-number
type: VARCHAR(15)
- MEDPAR_YR_NUM:
description:
@@ -23011,6 +26209,7 @@ cms:
original_type: CHAR
text: Year of MedPAR Record
width: 4.0
+ reference: https://resdac.org/cms-data/variables/year-medpar-record
type: VARCHAR(4)
- CLM_TYPE:
description:
@@ -23018,6 +26217,7 @@ cms:
original_type: CHAR
text: NCH Claim Type Code
width: 2.0
+ reference: https://resdac.org/cms-data/variables/nch-claim-type-code
type: VARCHAR(2)
- BIC:
description:
@@ -23025,6 +26225,7 @@ cms:
original_type: CHAR
text: BIC reported on first claim included in stay
width: 2.0
+ reference: https://resdac.org/cms-data/variables/bic-reported-first-claim-included-stay
type: VARCHAR(2)
- EQ_BIC:
description:
@@ -23032,6 +26233,7 @@ cms:
original_type: CHAR
text: Equated BIC
width: 2.0
+ reference: https://resdac.org/cms-data/variables/equated-bic
type: VARCHAR(2)
- AGE_CNT:
description:
@@ -23039,6 +26241,7 @@ cms:
original_type: NUM
text: Age as of Date of Admission.
width: 4.0
+ reference: https://resdac.org/cms-data/variables/age-date-admission
type: INT
- SEX:
description:
@@ -23046,6 +26249,7 @@ cms:
original_type: CHAR
text: Sex of Beneficiary
width: 1.0
+ reference: https://resdac.org/sites/datadocumentation.resdac.org/files/Introduction%20to%20DE-SynPUF%20%28Slides%29.pdf
type: VARCHAR(1)
- RACE:
description:
@@ -23053,6 +26257,7 @@ cms:
original_type: CHAR
text: Race of Beneficiary
width: 1.0
+ reference: https://resdac.org/cms-data/variables/beneficiary-race-code-base
type: VARCHAR(1)
- MS_CD:
description:
@@ -23060,6 +26265,7 @@ cms:
original_type: CHAR
text: Reason for entitlement to Medicare benefits as of CLM_THRU_DT
width: 2.0
+ reference: https://resdac.org/cms-data/variables/reason-entitlement-medicare-benefits-clmthrudt
type: VARCHAR(2)
- STATE_CD:
description:
@@ -23067,6 +26273,7 @@ cms:
original_type: CHAR
text: SSA standard state code of a beneficiarys residence.
width: 2.0
+ reference: https://resdac.org/cms-data/variables/state-code-beneficiary-ssa-code
type: VARCHAR(2)
- CNTY_CD:
description:
@@ -23074,6 +26281,7 @@ cms:
original_type: CHAR
text: SSA standard county code of a beneficiarys residence.
width: 3.0
+ reference: https://resdac.org/sites/datadocumentation.resdac.org/files/Introduction%20to%20DE-SynPUF%20%28Slides%29.pdf
type: VARCHAR(3)
- BENE_ZIP:
description:
@@ -23081,6 +26289,7 @@ cms:
original_type: CHAR
text: Zip code of the mailing address where the beneficiary may be contacted.
width: 5.0
+ reference: https://resdac.org/cms-data/variables/zip-code-beneficiary-home-or-mailing-address-latest-year
type: VARCHAR(5)
- DSCHRGCD:
description:
@@ -23088,6 +26297,7 @@ cms:
original_type: CHAR
text: Code identifying status of patient as of CLM_THRU_DT
width: 1.0
+ reference: https://resdac.org/cms-data/variables/code-identifying-status-patient-clmthrudt
type: VARCHAR(1)
- FICARR:
description:
@@ -23095,6 +26305,7 @@ cms:
original_type: CHAR
text: Intermediary processor identification
width: 5.0
+ reference: https://resdac.org/cms-data/variables/fiscal-intermediary-fi-id-number
type: VARCHAR(5)
- WRNGCD:
description:
@@ -23103,6 +26314,7 @@ cms:
text: Warn ind spcfyng dtld billing info obtnd frm clms analyzd for stay
prcss
width: 18.0
+ reference: https://resdac.org/cms-data/variables/warning-indicators-code-specifying-detailed-billing-info
type: VARCHAR(18)
- GHOPDCD:
description:
@@ -23110,6 +26322,7 @@ cms:
original_type: CHAR
text: Code indicating whether or not GHO has paid provider for claim(s)
width: 1.0
+ reference: https://resdac.org/cms-data/variables/code-indicating-whether-group-health-organization-gho-has-paid-provider-claims
type: VARCHAR(1)
- PPS_IND:
description:
@@ -23117,6 +26330,7 @@ cms:
original_type: CHAR
text: Code indicating whether or not facility is being paid under PPS
width: 1.0
+ reference: https://resdac.org/cms-data/variables/prospective-payment-system-pps-indicator-code
type: VARCHAR(1)
- ORGNPINM:
description:
@@ -23124,6 +26338,7 @@ cms:
original_type: CHAR
text: Organization NPI Number
width: 10.0
+ reference: https://resdac.org/cms-data/variables/organization-npi-number-ffs
type: VARCHAR(10)
- PRVDRNUM:
description:
@@ -23131,6 +26346,7 @@ cms:
original_type: CHAR
text: MEDPAR Provider Number
width: 10.0
+ reference: https://resdac.org/cms-data/variables/provider-number
type: VARCHAR(10)
- SPCLUNIT:
description:
@@ -23139,6 +26355,7 @@ cms:
text: Special num system code for hosp units that are PPS/SNF SB dsgntn
excl.
width: 1.0
+ reference: https://resdac.org/cms-data/variables/provider-number-special-unit-code
type: VARCHAR(1)
- SSLSSNF:
description:
@@ -23146,6 +26363,7 @@ cms:
original_type: CHAR
text: Code indicating whether stay is short stay, long stay, or SNF
width: 1.0
+ reference: https://resdac.org/cms-data/variables/short-staylong-staysnf-provider-indicator-code
type: VARCHAR(1)
- ACTV_XREF_IND:
description:
@@ -23153,6 +26371,7 @@ cms:
original_type: CHAR
text: Active Cross-Refference Indicator
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-active-cross-reference-indicator
type: VARCHAR(1)
- SLCT_RSN_CD:
description:
@@ -23160,6 +26379,7 @@ cms:
original_type: CHAR
text: Specifies whether this record is a case or control record.
width: 1.0
+ reference: https://resdac.org/cms-data/variables/specifies-whether-record-case-or-control-record
type: VARCHAR(1)
- FACLMCNT:
description:
@@ -23167,6 +26387,7 @@ cms:
original_type: NUM
text: Claims (final action) included in stay
width: 5.0
+ reference: https://resdac.org/cms-data/variables/number-claims-final-action-included-stay
type: INT
- ACRTNDT:
description:
@@ -23175,6 +26396,7 @@ cms:
text: Date latest claim incl in stay accreted to bene mstr rec at the
CWF host
width: 8.0
+ reference: https://resdac.org/cms-data/variables/latest-claim-accretion-date
type: DATE
- EXHST_DT:
description:
@@ -23182,6 +26404,7 @@ cms:
original_type: DATE
text: Last date beneficiary had Medicare coverage
width: 8.0
+ reference: https://resdac.org/cms-data/variables/beneficiary-medicare-benefit-exhausted-date
type: DATE
- QLFYFROM:
description:
@@ -23189,6 +26412,7 @@ cms:
original_type: DATE
text: Beginning date of beneficiarys qualifying stay
width: 8.0
+ reference: https://resdac.org/cms-data/variables/beginning-date-beneficiarys-qualifying-snf-stay
type: DATE
- QLFYTHRU:
description:
@@ -23196,6 +26420,7 @@ cms:
original_type: DATE
text: Ending date of beneficiarys qualifying stay
width: 8.0
+ reference: https://resdac.org/cms-data/variables/ending-date-beneficiarys-qualifying-snf-stay
type: DATE
- SRC_ADMS:
description:
@@ -23204,6 +26429,7 @@ cms:
text: Admssn to an Inp facility or, for newborn admssn, type of delivery
code
width: 1.0
+ reference: https://resdac.org/cms-data/variables/source-admission-inpatient-facility-newborn-admit-type-delivery-code
type: VARCHAR(1)
- TYPE_ADM:
description:
@@ -23212,6 +26438,7 @@ cms:
text: Type and priority of benes admission to facility for Inp hosp stay
code
width: 1.0
+ reference: https://resdac.org/cms-data/variables/inpatient-admission-type-code
type: VARCHAR(1)
- ADMSNDAY:
description:
@@ -23219,6 +26446,7 @@ cms:
original_type: CHAR
text: Code indicating day of week beneficiary was admitted to facility.
width: 1.0
+ reference: https://resdac.org/cms-data/variables/code-indicating-day-week-beneficiary-was-admitted-facility
type: VARCHAR(1)
- ADMSNDT:
description:
@@ -23226,6 +26454,7 @@ cms:
original_type: DATE
text: Date beneficiary admitted for Inpatient care or date care started
width: 8.0
+ reference: https://resdac.org/cms-data/variables/date-beneficiary-admitted-inpatient-care-or-date-care-started
type: DATE
- DSCHRGDT:
description:
@@ -23233,6 +26462,7 @@ cms:
original_type: DATE
text: Date beneficiary was discharged or died
width: 8.0
+ reference: https://resdac.org/cms-data/variables/discharge-date
type: DATE
- DSTNTNCD:
description:
@@ -23240,6 +26470,7 @@ cms:
original_type: CHAR
text: Destination upon discharge from facility code
width: 2.0
+ reference: https://resdac.org/cms-data/variables/medpar-discharge-destination-code
type: VARCHAR(2)
- CVRLVLDT:
description:
@@ -23247,6 +26478,7 @@ cms:
original_type: DATE
text: Date covered level of care ended in a SNF
width: 8.0
+ reference: null
type: DATE
- DEATHDT:
description:
@@ -23254,6 +26486,7 @@ cms:
original_type: DATE
text: Date beneficiary died
width: 8.0
+ reference: https://resdac.org/cms-data/variables/date-death
type: DATE
- DEATHCD:
description:
@@ -23261,6 +26494,7 @@ cms:
original_type: CHAR
text: Death Date Verification Code
width: 1.0
+ reference: https://resdac.org/cms-data/variables/death-date-verification-code
type: VARCHAR(1)
- DEATHDAY:
description:
@@ -23268,6 +26502,7 @@ cms:
original_type: NUM
text: Days from date admitted to facility to date of death
width: 7.0
+ reference: https://resdac.org/cms-data/variables/days-date-admitted-facility-date-death
type: INT
- SSICD:
description:
@@ -23275,6 +26510,7 @@ cms:
original_type: CHAR
text: MEDPAR Internal Use SSI Indicator Code
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-internal-use-ssi-indicator-code
type: VARCHAR(1)
- SSIDAY:
description:
@@ -23282,6 +26518,7 @@ cms:
original_type: NUM
text: MEDPAR Internal Use SSI Day Count
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-internal-use-ssi-day-count
type: INT
- INTRNL_USE_SSI_DATA:
description:
@@ -23289,6 +26526,7 @@ cms:
original_type: CHAR
text: Internal Use SSI Data
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-internal-use-ssi-data
type: VARCHAR(1)
- IPSBCD:
description:
@@ -23296,6 +26534,7 @@ cms:
original_type: CHAR
text: For internal Use Only. IPSB Code
width: 3.0
+ reference: https://resdac.org/cms-data/variables/medpar-internal-use-ipsb-code
type: VARCHAR(3)
- FILDTCD:
description:
@@ -23303,6 +26542,7 @@ cms:
original_type: CHAR
text: For internal use only. Fiscal year/calendar year segments.
width: 1.0
+ reference: https://resdac.org/cms-data/variables/internal-use-only-fiscal-yearcalendar-year-segments
type: VARCHAR(1)
- SMPLSIZE:
description:
@@ -23310,6 +26550,7 @@ cms:
original_type: CHAR
text: For internal use. MEDPAR sample size.
width: 1.0
+ reference: https://resdac.org/cms-data/variables/internal-use-medpar-sample-size
type: VARCHAR(1)
- LOSCNT:
description:
@@ -23317,6 +26558,7 @@ cms:
original_type: NUM
text: Days of beneficiarys stay in a hospital/SNF
width: 7.0
+ reference: https://resdac.org/cms-data/variables/days-beneficiarys-stay-hospitalsnf
type: INT
- OUTLRDAY:
description:
@@ -23325,6 +26567,7 @@ cms:
text: Days paid as outliers (either day or cost) under PPS beyond DRG
threshld
width: 5.0
+ reference: https://resdac.org/cms-data/variables/days-paid-outliers-either-day-or-cost-under-pps-beyond-drg-threshold
type: INT
- UTIL_DAY:
description:
@@ -23332,6 +26575,7 @@ cms:
original_type: NUM
text: Covered days of care chargeable to Medicare utilization for stay
width: 7.0
+ reference: https://resdac.org/cms-data/variables/covered-days-care-chargeable-medicare-utilization-stay
type: INT
- COIN_DAY:
description:
@@ -23339,6 +26583,7 @@ cms:
original_type: NUM
text: MEDPAR Beneficiary Total Coinsurance Day Count
width: 5.0
+ reference: https://resdac.org/cms-data/variables/medpar-beneficiary-total-coinsurance-day-count
type: INT
- LRD_USE:
description:
@@ -23346,6 +26591,7 @@ cms:
original_type: NUM
text: Lifetime reserve days (LRD) used by beneficiary for stay
width: 5.0
+ reference: https://resdac.org/cms-data/variables/lifetime-reserve-days-lrd-used-beneficiary-stay
type: INT
- COIN_AMT:
description:
@@ -23353,6 +26599,7 @@ cms:
original_type: NUM
text: Beneficiarys liability for part A coinsurance for stay ($)
width: 10.0
+ reference: https://resdac.org/cms-data/variables/beneficiarys-liability-part-coinsurance-stay
type: INT
- DED_AMT:
description:
@@ -23360,6 +26607,7 @@ cms:
original_type: NUM
text: Beneficiarys liability for stay ($)
width: 10.0
+ reference: https://resdac.org/cms-data/variables/beneficiarys-liability-deductible-stay
type: INT
- BLDDEDAM:
description:
@@ -23367,6 +26615,7 @@ cms:
original_type: NUM
text: Beneficiarys liability for blood deductible for stay ($)
width: 10.0
+ reference: https://resdac.org/cms-data/variables/beneficiarys-liability-blood-deductible-stay
type: INT
- PRPAY_CD:
description:
@@ -23374,6 +26623,7 @@ cms:
original_type: CHAR
text: Primary payer responsibility code
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-beneficiary-primary-payer-code
type: VARCHAR(1)
- PRPAYAMT:
description:
@@ -23382,6 +26632,7 @@ cms:
text: Primry payer other than Medicare for covered Medicare chrgs for
stay ($)
width: 10.0
+ reference: https://resdac.org/cms-data/variables/primary-payer-paid-amount
type: INT
- DRG_CD:
description:
@@ -23389,6 +26640,7 @@ cms:
original_type: CHAR
text: DRG Code
width: 3.0
+ reference: https://resdac.org/cms-data/variables/diagnosis-related-group-drg-code
type: VARCHAR(3)
- OUTLR_CD:
description:
@@ -23396,6 +26648,7 @@ cms:
original_type: CHAR
text: Cost or Day Outlier code
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-drgoutlier-stay-code
type: VARCHAR(1)
- OUTLRAMT:
description:
@@ -23404,6 +26657,7 @@ cms:
text: Addtnl approved due to outlier situation over DRG allowance for
stay ($)
width: 10.0
+ reference: https://resdac.org/cms-data/variables/drg-outlier-approved-payment-amount
type: INT
- DRGPRICE:
description:
@@ -23412,6 +26666,7 @@ cms:
text: Wld hv bn pd if no dedctbls,coinsrnc,prmry payrs,otlrs were invlvd
($)
width: 10.0
+ reference: https://resdac.org/cms-data/variables/drg-price-amount
type: INT
- DISP_SHR:
description:
@@ -23420,6 +26675,7 @@ cms:
text: Over the DRG amount for disproportionate share hospital for stay
($)
width: 10.0
+ reference: https://resdac.org/cms-data/variables/inpatient-disproportionate-share-dsh-amount
type: INT
- IME_AMT:
description:
@@ -23427,6 +26683,7 @@ cms:
original_type: NUM
text: Additional payment made to teaching hospitals for IME for stay ($)
width: 10.0
+ reference: https://resdac.org/cms-data/variables/indirect-medical-education-ime-amount
type: INT
- PASSTHRU:
description:
@@ -23434,6 +26691,7 @@ cms:
original_type: NUM
text: Total of all claim pass thru for stay ($)
width: 10.0
+ reference: https://resdac.org/cms-data/variables/pass-thru-diem-amount-stay
type: INT
- PPS_CPTL:
description:
@@ -23441,6 +26699,7 @@ cms:
original_type: NUM
text: Total payable for capital PPS ($)
width: 10.0
+ reference: https://resdac.org/cms-data/variables/total-pps-capital-amount
type: INT
- IP_LOW_VOL_PYMT_AMT:
description:
@@ -23448,6 +26707,7 @@ cms:
original_type: NUM
text: Inpatient Low Volume Payment Amount.
width: 10.0
+ reference: https://resdac.org/cms-data/variables/inpatient-low-volume-payment-amount
type: INT
- TOTCHRG:
description:
@@ -23456,6 +26716,7 @@ cms:
text: Total all charges for all srvcs provided to beneficiary for stay
($)
width: 10.0
+ reference: https://resdac.org/cms-data/variables/total-charge-amount
type: INT
- CVRCHRG:
description:
@@ -23463,6 +26724,7 @@ cms:
original_type: NUM
text: Portion of total charges covered by Medicare for stay ($)
width: 10.0
+ reference: https://resdac.org/cms-data/variables/total-covered-charge-amount
type: INT
- PMT_AMT:
description:
@@ -23471,6 +26733,7 @@ cms:
text: Amt of payment from Medicare trust fund for srvcs covered by claim
($)
width: 10.0
+ reference: https://resdac.org/cms-data/variables/total-medicare-payment-amount
type: INT
- ACMDTNS:
description:
@@ -23479,6 +26742,7 @@ cms:
text: Total charge for all accommodations related to beneficiarys stay
($)
width: 10.0
+ reference: https://resdac.org/cms-data/variables/total-charge-all-accommodations
type: INT
- DPRTMNTL:
description:
@@ -23487,6 +26751,7 @@ cms:
text: Total charge for all ancillary depts related to beneficiarys stay
($)
width: 10.0
+ reference: https://resdac.org/cms-data/variables/total-charge-all-ancillary-departments-related-beneficiarys-stay
type: INT
- PRVTDAY:
description:
@@ -23494,6 +26759,7 @@ cms:
original_type: NUM
text: Private room days used by beneficiary for stay
width: 5.0
+ reference: https://resdac.org/cms-data/variables/private-room-day-count
type: INT
- SPRVTDAY:
description:
@@ -23501,6 +26767,7 @@ cms:
original_type: NUM
text: Semi-private room days used by beneficiary for stay
width: 5.0
+ reference: https://resdac.org/cms-data/variables/semi-private-room-day-count
type: INT
- WARDDAY:
description:
@@ -23508,6 +26775,7 @@ cms:
original_type: NUM
text: Ward days used by beneficiary for stay
width: 5.0
+ reference: https://resdac.org/cms-data/variables/ward-day-count
type: INT
- ICARECNT:
description:
@@ -23515,6 +26783,7 @@ cms:
original_type: NUM
text: Intensive care days used by beneficiary for stay
width: 5.0
+ reference: https://resdac.org/cms-data/variables/intensive-care-day-count
type: INT
- CRNRYDAY:
description:
@@ -23522,6 +26791,7 @@ cms:
original_type: NUM
text: Coronary care days used by beneficiary for stay
width: 5.0
+ reference: https://resdac.org/cms-data/variables/coronary-care-day-count
type: INT
- PRVTAMT:
description:
@@ -23529,6 +26799,7 @@ cms:
original_type: NUM
text: Private room accommodations related to beneficiarys stay ($)
width: 10.0
+ reference: https://resdac.org/cms-data/variables/private-room-charge-amount
type: INT
- SPRVTAMT:
description:
@@ -23536,6 +26807,7 @@ cms:
original_type: NUM
text: Semi-private room accommodations related to beneficiarys stay ($)
width: 10.0
+ reference: https://resdac.org/cms-data/variables/semi-private-room-charge-amount
type: INT
- WARDAMT:
description:
@@ -23543,6 +26815,7 @@ cms:
original_type: NUM
text: Ward accommodations related to beneficiarys stay ($)
width: 10.0
+ reference: https://resdac.org/cms-data/variables/ward-charge-amount
type: INT
- ICAREAMT:
description:
@@ -23550,6 +26823,7 @@ cms:
original_type: NUM
text: Intensive care accommodations related to beneficiarys stay ($)
width: 10.0
+ reference: https://resdac.org/cms-data/variables/intensive-care-charge-amount
type: INT
- CRNRYAMT:
description:
@@ -23557,6 +26831,7 @@ cms:
original_type: NUM
text: Coronary care accommodations related to beneficiarys stay ($)
width: 10.0
+ reference: https://resdac.org/cms-data/variables/coronary-care-charge-amount
type: INT
- OTHRAMT:
description:
@@ -23564,6 +26839,7 @@ cms:
original_type: NUM
text: Other services related to beneficiarys stay ($)
width: 10.0
+ reference: https://resdac.org/cms-data/variables/other-service-charge-amount
type: INT
- PHRMCAMT:
description:
@@ -23571,6 +26847,7 @@ cms:
original_type: NUM
text: Pharmaceutical costs related to beneficiarys stay ($)
width: 10.0
+ reference: https://resdac.org/cms-data/variables/pharmacy-charge-amount
type: INT
- SUPLYAMT:
description:
@@ -23578,6 +26855,7 @@ cms:
original_type: NUM
text: Medical/surgical supplies related to beneficiarys stay ($)
width: 10.0
+ reference: https://resdac.org/cms-data/variables/medicalsurgical-supplies-charge-amount
type: INT
- DME_AMT:
description:
@@ -23585,6 +26863,7 @@ cms:
original_type: NUM
text: DME related to beneficiarys stay ($)
width: 10.0
+ reference: https://resdac.org/cms-data/variables/durable-medical-equipment-dme-charge-amount
type: INT
- UDME_AMT:
description:
@@ -23592,6 +26871,7 @@ cms:
original_type: NUM
text: Used DME related to beneficiarys stay ($)
width: 10.0
+ reference: https://resdac.org/cms-data/variables/used-durable-medical-equipment-dme-charge-amount
type: INT
- PHYTHAMT:
description:
@@ -23599,6 +26879,7 @@ cms:
original_type: NUM
text: Physical therapy services provided during beneficiarys stay ($)
width: 10.0
+ reference: https://resdac.org/cms-data/variables/physical-therapy-charge-amount
type: INT
- OCPTLAMT:
description:
@@ -23607,6 +26888,7 @@ cms:
text: Occupational therapy services provided during beneficiarys stay
($)
width: 10.0
+ reference: https://resdac.org/cms-data/variables/occupational-therapy-charge-amount
type: INT
- SPCH_AMT:
description:
@@ -23614,6 +26896,7 @@ cms:
original_type: NUM
text: Speech pathology services provided during beneficiarys stay ($)
width: 10.0
+ reference: https://resdac.org/cms-data/variables/speech-pathology-charge-amount
type: INT
- INHLTAMT:
description:
@@ -23621,6 +26904,7 @@ cms:
original_type: NUM
text: Inhalation therapy services provided during beneficiarys stay ($)
width: 10.0
+ reference: https://resdac.org/cms-data/variables/inhalation-therapy-charge-amount
type: INT
- BLOODAMT:
description:
@@ -23628,6 +26912,7 @@ cms:
original_type: NUM
text: Blood provided during beneficiarys stay ($)
width: 10.0
+ reference: https://resdac.org/cms-data/variables/blood-charge-amount
type: INT
- BLDADMIN:
description:
@@ -23635,6 +26920,7 @@ cms:
original_type: NUM
text: Blood storage and processing related to beneficiarys stay ($)
width: 10.0
+ reference: https://resdac.org/cms-data/variables/blood-storage-and-processing-charge-amount
type: INT
- BLDFRNSH:
description:
@@ -23643,6 +26929,7 @@ cms:
text: Quantity of blood (whole pints) furnished to beneficiary during
stay
width: 5.0
+ reference: https://resdac.org/cms-data/variables/blood-pints-furnished-quantity
type: INT
- OROOMAMT:
description:
@@ -23651,6 +26938,7 @@ cms:
text: OR, recovery rm, and labor rm delivery used by bene during stay
($)
width: 10.0
+ reference: https://resdac.org/cms-data/variables/operating-room-charge-amount
type: INT
- LTHTRPSY:
description:
@@ -23658,6 +26946,7 @@ cms:
original_type: NUM
text: Lithotripsy services provided during beneficiarys stay ($)
width: 10.0
+ reference: https://resdac.org/cms-data/variables/lithotripsy-charge-amount
type: INT
- CRDLGY:
description:
@@ -23666,6 +26955,7 @@ cms:
text: Cardiology services and ECG(s) provided during beneficiarys stay
($)
width: 10.0
+ reference: https://resdac.org/cms-data/variables/cardiology-charge-amount
type: INT
- ANSTHSA:
description:
@@ -23673,6 +26963,7 @@ cms:
original_type: NUM
text: Anesthesia services provided during beneficiarys stay ($)
width: 10.0
+ reference: https://resdac.org/cms-data/variables/anesthesia-charge-amount
type: INT
- LAB_AMT:
description:
@@ -23680,6 +26971,7 @@ cms:
original_type: NUM
text: Laboratory costs related to beneficiarys stay ($)
width: 10.0
+ reference: https://resdac.org/cms-data/variables/laboratory-charge-amount
type: INT
- RDLGYAMT:
description:
@@ -23687,6 +26979,7 @@ cms:
original_type: NUM
text: Radiology costs (excluding MRI) related to a beneficiarys stay ($)
width: 10.0
+ reference: https://resdac.org/cms-data/variables/radiology-charge-amount-excluding-mri
type: INT
- MRI_AMT:
description:
@@ -23694,6 +26987,7 @@ cms:
original_type: NUM
text: MRI services provided during beneficiarys stay ($)
width: 10.0
+ reference: https://resdac.org/cms-data/variables/magnetic-resonance-imaging-mri-charge-amount
type: INT
- OPSRVC:
description:
@@ -23701,6 +26995,7 @@ cms:
original_type: NUM
text: Outpatient services provided during beneficiarys stay ($)
width: 10.0
+ reference: https://resdac.org/cms-data/variables/outpatient-service-charge-amount
type: INT
- ER_AMT:
description:
@@ -23708,6 +27003,7 @@ cms:
original_type: NUM
text: Emergency room services provided during beneficiarys stay ($)
width: 10.0
+ reference: https://resdac.org/cms-data/variables/emergency-room-er-charge-amount
type: INT
- AMBLNC:
description:
@@ -23715,6 +27011,7 @@ cms:
original_type: NUM
text: Ambulance services related to beneficiarys stay ($)
width: 10.0
+ reference: https://resdac.org/cms-data/variables/ambulance-charge-amount
type: INT
- PROFFEES:
description:
@@ -23722,6 +27019,7 @@ cms:
original_type: NUM
text: Professional fees related to beneficiarys stay ($)
width: 10.0
+ reference: https://resdac.org/cms-data/variables/professional-fees-charge-amount
type: INT
- ORGNAMT:
description:
@@ -23730,6 +27028,7 @@ cms:
text: Organ acquisition or oth donor bank srvcs related to benes stay
($)
width: 10.0
+ reference: https://resdac.org/cms-data/variables/organ-acquisition-or-other-donor-bank-charge-amount
type: INT
- ESRDSETG:
description:
@@ -23737,6 +27036,7 @@ cms:
original_type: NUM
text: ESRD services related to beneficiarys stay ($)
width: 10.0
+ reference: https://resdac.org/cms-data/variables/end-stage-renal-disease-esrd-charge-amount
type: INT
- CLNC_AMT:
description:
@@ -23744,6 +27044,7 @@ cms:
original_type: NUM
text: Clinic visits related to beneficiarys stay ($)
width: 10.0
+ reference: https://resdac.org/cms-data/variables/clinic-visit-charge-amount
type: INT
- ICUINDCD:
description:
@@ -23751,6 +27052,7 @@ cms:
original_type: CHAR
text: ICU type code
width: 1.0
+ reference: https://resdac.org/cms-data/variables/intensive-care-unit-icu-indicator-code
type: VARCHAR(1)
- CRNRY_CD:
description:
@@ -23758,6 +27060,7 @@ cms:
original_type: CHAR
text: Coronary care unit type code
width: 1.0
+ reference: https://resdac.org/cms-data/variables/coronary-care-unit-ccu-indicator-code
type: VARCHAR(1)
- PHRMCYCD:
description:
@@ -23765,6 +27068,7 @@ cms:
original_type: CHAR
text: Drugs type code
width: 1.0
+ reference: https://resdac.org/cms-data/variables/pharmacy-indicator-code
type: VARCHAR(1)
- TRNSPLNT:
description:
@@ -23772,6 +27076,7 @@ cms:
original_type: CHAR
text: Organ transplant code
width: 1.0
+ reference: https://resdac.org/cms-data/variables/organ-transplant-indicator-code
type: VARCHAR(1)
- ONCLGYSW:
description:
@@ -23779,6 +27084,7 @@ cms:
original_type: CHAR
text: Radiology oncology services indicator
width: 1.0
+ reference: https://resdac.org/cms-data/variables/oncology-indicator
type: VARCHAR(1)
- DGNSTCSW:
description:
@@ -23786,6 +27092,7 @@ cms:
original_type: CHAR
text: Radiology diagnostic services indicator
width: 1.0
+ reference: https://resdac.org/cms-data/variables/diagnostic-radiology-indicator
type: VARCHAR(1)
- THRPTCSW:
description:
@@ -23793,6 +27100,7 @@ cms:
original_type: CHAR
text: Radiology therapeutic services indicator
width: 1.0
+ reference: https://resdac.org/cms-data/variables/therapeutic-radiology-indicator
type: VARCHAR(1)
- NUCLR_SW:
description:
@@ -23800,6 +27108,7 @@ cms:
original_type: CHAR
text: Radiology nuclear medicine services indicator
width: 1.0
+ reference: https://resdac.org/cms-data/variables/radiology-nuclear-medicine-indicator
type: VARCHAR(1)
- CTSCANSW:
description:
@@ -23807,6 +27116,7 @@ cms:
original_type: CHAR
text: Radiology computed tomographic (CT) scan services indicator
width: 1.0
+ reference: https://resdac.org/cms-data/variables/radiology-computed-tomographic-ct-scan-indicator
type: VARCHAR(1)
- IMGNG_SW:
description:
@@ -23814,6 +27124,7 @@ cms:
original_type: CHAR
text: Radiology other imaging services indicator
width: 1.0
+ reference: https://resdac.org/cms-data/variables/radiology-other-imaging-indicator
type: VARCHAR(1)
- OPSRVCCD:
description:
@@ -23821,6 +27132,7 @@ cms:
original_type: CHAR
text: Outpatient services/ambulatory surgical care code
width: 1.0
+ reference: https://resdac.org/cms-data/variables/outpatient-servicesambulatory-surgical-care-indicator-code
type: VARCHAR(1)
- ORGNCD:
description:
@@ -23828,6 +27140,7 @@ cms:
original_type: CHAR
text: Organ acquisition type code
width: 2.0
+ reference: https://resdac.org/cms-data/variables/organ-acquisition-type-code
type: VARCHAR(2)
- ESRD_CD:
description:
@@ -23835,6 +27148,7 @@ cms:
original_type: CHAR
text: ESRD condition code
width: 2.0
+ reference: https://resdac.org/cms-data/variables/end-stage-renal-disease-esrd-condition-indicator-code
type: VARCHAR(2)
- ESRDSTG1:
description:
@@ -23842,6 +27156,7 @@ cms:
original_type: CHAR
text: Dialysis type code I
width: 2.0
+ reference: https://resdac.org/cms-data/variables/dialysis-service-type-code-1
type: VARCHAR(2)
- ESRDSTG2:
description:
@@ -23849,6 +27164,7 @@ cms:
original_type: CHAR
text: Dialysis type code II
width: 2.0
+ reference: https://resdac.org/cms-data/variables/dialysis-service-type-code-2
type: VARCHAR(2)
- ESRDSTG3:
description:
@@ -23856,6 +27172,7 @@ cms:
original_type: CHAR
text: Dialysis type code III
width: 2.0
+ reference: https://resdac.org/cms-data/variables/dialysis-service-type-code-3
type: VARCHAR(2)
- ESRDSTG4:
description:
@@ -23863,6 +27180,7 @@ cms:
original_type: CHAR
text: Dialysis type code IV
width: 2.0
+ reference: https://resdac.org/cms-data/variables/dialysis-service-type-code-4
type: VARCHAR(2)
- ESRDSTG5:
description:
@@ -23870,6 +27188,7 @@ cms:
original_type: CHAR
text: Dialysis type code V
width: 2.0
+ reference: https://resdac.org/cms-data/variables/dialysis-service-type-code-5
type: VARCHAR(2)
- AD_DGNS:
description:
@@ -23877,6 +27196,7 @@ cms:
original_type: CHAR
text: Initial diagnosis at time of admission
width: 7.0
+ reference: https://resdac.org/cms-data/variables/admitting-diagnosis-code
type: VARCHAR(7)
- ADMTG_DGNS_VRSN_CD:
description:
@@ -23884,6 +27204,7 @@ cms:
original_type: CHAR
text: MEDPAR Admitting Diagnosis Version Code
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-admitting-diagnosis-version-code-icd-9-or-icd-10
type: VARCHAR(1)
- DGNSCNT:
description:
@@ -23891,6 +27212,7 @@ cms:
original_type: NUM
text: Diagnosis codes included in stay
width: 3.0
+ reference: https://resdac.org/cms-data/variables/count-diagnosis-codes
type: INT
- DGNS_VRSN_CD:
description:
@@ -23899,6 +27221,7 @@ cms:
text: Version Code - Indicate if diagnosis code is ICD-9 or ICD-10 (Earlier
Version)
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-version-code-icd-9-or-icd-10
type: VARCHAR(1)
- DGNS_VRSN_CD_1:
description:
@@ -23906,6 +27229,7 @@ cms:
original_type: CHAR
text: Version Code 01 - Indicate if diagnosis code is ICD-9 or ICD-10.
width: 1.0
+ reference: https://resdac.org/cms-data/variables/diagnosis-version-code-1-icd-9-or-icd-10
type: VARCHAR(1)
- DGNS_VRSN_CD_2:
description:
@@ -23913,6 +27237,7 @@ cms:
original_type: CHAR
text: Version Code 02 - Indicate if diagnosis code is ICD-9 or ICD-10.
width: 1.0
+ reference: https://resdac.org/cms-data/variables/diagnosis-version-code-2-icd-9-or-icd-10
type: VARCHAR(1)
- DGNS_VRSN_CD_3:
description:
@@ -23920,6 +27245,7 @@ cms:
original_type: CHAR
text: Version Code 03 - Indicate if diagnosis code is ICD-9 or ICD-10.
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-version-code-3-icd-9-or-icd-10
type: VARCHAR(1)
- DGNS_VRSN_CD_4:
description:
@@ -23927,6 +27253,7 @@ cms:
original_type: CHAR
text: Version Code 04 - Indicate if diagnosis code is ICD-9 or ICD-10.
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-version-code-4-icd-9-or-icd-10
type: VARCHAR(1)
- DGNS_VRSN_CD_5:
description:
@@ -23934,6 +27261,7 @@ cms:
original_type: CHAR
text: Version Code 05 - Indicate if diagnosis code is ICD-9 or ICD-10.
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-version-code-5-icd-9-or-icd-10
type: VARCHAR(1)
- DGNS_VRSN_CD_6:
description:
@@ -23941,6 +27269,7 @@ cms:
original_type: CHAR
text: Version Code 06 - Indicate if diagnosis code is ICD-9 or ICD-10.
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-version-code-6-icd-9-or-icd-10
type: VARCHAR(1)
- DGNS_VRSN_CD_7:
description:
@@ -23948,6 +27277,7 @@ cms:
original_type: CHAR
text: Version Code 07 - Indicate if diagnosis code is ICD-9 or ICD-10.
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-version-code-7-icd-9-or-icd-10
type: VARCHAR(1)
- DGNS_VRSN_CD_8:
description:
@@ -23955,6 +27285,7 @@ cms:
original_type: CHAR
text: Version Code 08 - Indicate if diagnosis code is ICD-9 or ICD-10.
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-version-code-8-icd-9-or-icd-10
type: VARCHAR(1)
- DGNS_VRSN_CD_9:
description:
@@ -23962,6 +27293,7 @@ cms:
original_type: CHAR
text: Version Code 09 - Indicate if diagnosis code is ICD-9 or ICD-10.
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-version-code-9-icd-9-or-icd-10
type: VARCHAR(1)
- DGNS_VRSN_CD_10:
description:
@@ -23969,6 +27301,7 @@ cms:
original_type: CHAR
text: Version Code 10 - Indicate if diagnosis code is ICD-9 or ICD-10.
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-version-code-10-icd-9-or-icd-10
type: VARCHAR(1)
- DGNS_VRSN_CD_11:
description:
@@ -23976,6 +27309,7 @@ cms:
original_type: CHAR
text: Version Code 11 - Indicate if diagnosis code is ICD-9 or ICD-10.
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-version-code-11-icd-9-or-icd-10
type: VARCHAR(1)
- DGNS_VRSN_CD_12:
description:
@@ -23983,6 +27317,7 @@ cms:
original_type: CHAR
text: Version Code 12 - Indicate if diagnosis code is ICD-9 or ICD-10.
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-version-code-12-icd-9-or-icd-10
type: VARCHAR(1)
- DGNS_VRSN_CD_13:
description:
@@ -23990,6 +27325,7 @@ cms:
original_type: CHAR
text: Version Code 13 - Indicate if diagnosis code is ICD-9 or ICD-10.
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-version-code-13-icd-9-or-icd-10
type: VARCHAR(1)
- DGNS_VRSN_CD_14:
description:
@@ -23997,6 +27333,7 @@ cms:
original_type: CHAR
text: Version Code 14 - Indicate if diagnosis code is ICD-9 or ICD-10.
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-version-code-14-icd-9-or-icd-10
type: VARCHAR(1)
- DGNS_VRSN_CD_15:
description:
@@ -24004,6 +27341,7 @@ cms:
original_type: CHAR
text: Version Code 15 - Indicate if diagnosis code is ICD-9 or ICD-10.
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-version-code-15-icd-9-or-icd-10
type: VARCHAR(1)
- DGNS_VRSN_CD_16:
description:
@@ -24011,6 +27349,7 @@ cms:
original_type: CHAR
text: Version Code 16 - Indicate if diagnosis code is ICD-9 or ICD-10.
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-version-code-16-icd-9-or-icd-10
type: VARCHAR(1)
- DGNS_VRSN_CD_17:
description:
@@ -24018,6 +27357,7 @@ cms:
original_type: CHAR
text: Version Code 17 - Indicate if diagnosis code is ICD-9 or ICD-10.
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-version-code-17-icd-9-or-icd-10
type: VARCHAR(1)
- DGNS_VRSN_CD_18:
description:
@@ -24025,6 +27365,7 @@ cms:
original_type: CHAR
text: Version Code 18 - Indicate if diagnosis code is ICD-9 or ICD-10.
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-version-code-18-icd-9-or-icd-10
type: VARCHAR(1)
- DGNS_VRSN_CD_19:
description:
@@ -24032,6 +27373,7 @@ cms:
original_type: CHAR
text: Version Code 19 - Indicate if diagnosis code is ICD-9 or ICD-10.
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-version-code-19-icd-9-or-icd-10
type: VARCHAR(1)
- DGNS_VRSN_CD_20:
description:
@@ -24039,6 +27381,7 @@ cms:
original_type: CHAR
text: Version Code 20 - Indicate if diagnosis code is ICD-9 or ICD-10.
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-version-code-20-icd-9-or-icd-10
type: VARCHAR(1)
- DGNS_VRSN_CD_21:
description:
@@ -24046,6 +27389,7 @@ cms:
original_type: CHAR
text: Version Code 21 - Indicate if diagnosis code is ICD-9 or ICD-10.
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-version-code-21-icd-9-or-icd-10
type: VARCHAR(1)
- DGNS_VRSN_CD_22:
description:
@@ -24053,6 +27397,7 @@ cms:
original_type: CHAR
text: Version Code 22 - Indicate if diagnosis code is ICD-9 or ICD-10.
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-version-code-22-icd-9-or-icd-10
type: VARCHAR(1)
- DGNS_VRSN_CD_23:
description:
@@ -24060,6 +27405,7 @@ cms:
original_type: CHAR
text: Version Code 23 - Indicate if diagnosis code is ICD-9 or ICD-10.
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-version-code-23-icd-9-or-icd-10
type: VARCHAR(1)
- DGNS_VRSN_CD_24:
description:
@@ -24067,6 +27413,7 @@ cms:
original_type: CHAR
text: Version Code 24 - Indicate if diagnosis code is ICD-9 or ICD-10.
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-version-code-24-icd-9-or-icd-10
type: VARCHAR(1)
- DGNS_VRSN_CD_25:
description:
@@ -24074,6 +27421,7 @@ cms:
original_type: CHAR
text: Version Code 25 - Indicate if diagnosis code is ICD-9 or ICD-10.
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-version-code-25-icd-9-or-icd-10
type: VARCHAR(1)
- DGNSCD1:
description:
@@ -24081,6 +27429,7 @@ cms:
original_type: CHAR
text: Primary ICD-9-CM code
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-principal-diagnosis-code
type: VARCHAR(7)
- DGNSCD2:
description:
@@ -24088,6 +27437,7 @@ cms:
original_type: CHAR
text: ICD-9-CM Diagnosis code II
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-code-2
type: VARCHAR(7)
- DGNSCD3:
description:
@@ -24095,6 +27445,7 @@ cms:
original_type: CHAR
text: ICD-9-CM Diagnosis code III
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-code-3
type: VARCHAR(7)
- DGNSCD4:
description:
@@ -24102,6 +27453,7 @@ cms:
original_type: CHAR
text: ICD-9-CM Diagnosis code IV
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-code-4
type: VARCHAR(7)
- DGNSCD5:
description:
@@ -24109,6 +27461,7 @@ cms:
original_type: CHAR
text: ICD-9-CM Diagnosis code V
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-code-5
type: VARCHAR(7)
- DGNSCD6:
description:
@@ -24116,6 +27469,7 @@ cms:
original_type: CHAR
text: ICD-9-CM Diagnosis code VI
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-code-6
type: VARCHAR(7)
- DGNSCD7:
description:
@@ -24123,6 +27477,7 @@ cms:
original_type: CHAR
text: ICD-9-CM Diagnosis code VII
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-code-7
type: VARCHAR(7)
- DGNSCD8:
description:
@@ -24130,6 +27485,7 @@ cms:
original_type: CHAR
text: ICD-9-CM Diagnosis code VIII
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-code-8
type: VARCHAR(7)
- DGNSCD9:
description:
@@ -24137,6 +27493,7 @@ cms:
original_type: CHAR
text: ICD-9-CM Diagnosis code IX
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-code-9
type: VARCHAR(7)
- DGNSCD10:
description:
@@ -24144,6 +27501,7 @@ cms:
original_type: CHAR
text: ICD-9-CM Diagnosis code X
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-icd-9-cm-diagnosis-code-10
type: VARCHAR(7)
- DGNSCD11:
description:
@@ -24151,6 +27509,7 @@ cms:
original_type: CHAR
text: ICD-9-CM Diagnosis code XI
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-icd-9-cm-diagnosis-code-11
type: VARCHAR(7)
- DGNSCD12:
description:
@@ -24158,6 +27517,7 @@ cms:
original_type: CHAR
text: ICD-9-CM Diagnosis code XII
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-icd-9-cm-diagnosis-code-12
type: VARCHAR(7)
- DGNSCD13:
description:
@@ -24165,6 +27525,7 @@ cms:
original_type: CHAR
text: ICD-9-CM Diagnosis code XIII
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-icd-9-cm-diagnosis-code-13
type: VARCHAR(7)
- DGNSCD14:
description:
@@ -24172,6 +27533,7 @@ cms:
original_type: CHAR
text: ICD-9-CM Diagnosis code XIV
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-icd-9-cm-diagnosis-code-14
type: VARCHAR(7)
- DGNSCD15:
description:
@@ -24179,6 +27541,7 @@ cms:
original_type: CHAR
text: ICD-9-CM Diagnosis code XV
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-icd-9-cm-diagnosis-code-15
type: VARCHAR(7)
- DGNSCD16:
description:
@@ -24186,6 +27549,7 @@ cms:
original_type: CHAR
text: ICD-9-CM Diagnosis code XVI
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-icd-9-cm-diagnosis-code-16
type: VARCHAR(7)
- DGNSCD17:
description:
@@ -24193,6 +27557,7 @@ cms:
original_type: CHAR
text: ICD-9-CM Diagnosis code XVII
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-icd-9-cm-diagnosis-code-17
type: VARCHAR(7)
- DGNSCD18:
description:
@@ -24200,6 +27565,7 @@ cms:
original_type: CHAR
text: ICD-9-CM Diagnosis code XVIII
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-icd-9-cm-diagnosis-code-18
type: VARCHAR(7)
- DGNSCD19:
description:
@@ -24207,6 +27573,7 @@ cms:
original_type: CHAR
text: ICD-9-CM Diagnosis code XIX
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-icd-9-cm-diagnosis-code-19
type: VARCHAR(7)
- DGNSCD20:
description:
@@ -24214,6 +27581,7 @@ cms:
original_type: CHAR
text: ICD-9-CM Diagnosis code XX
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-icd-9-cm-diagnosis-code-20
type: VARCHAR(7)
- DGNSCD21:
description:
@@ -24221,6 +27589,7 @@ cms:
original_type: CHAR
text: ICD-9-CM Diagnosis code XXI
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-icd-9-cm-diagnosis-code-21
type: VARCHAR(7)
- DGNSCD22:
description:
@@ -24228,6 +27597,7 @@ cms:
original_type: CHAR
text: ICD-9-CM Diagnosis code XXII
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-icd-9-cm-diagnosis-code-22
type: VARCHAR(7)
- DGNSCD23:
description:
@@ -24235,6 +27605,7 @@ cms:
original_type: CHAR
text: ICD-9-CM Diagnosis code XXIII
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-icd-9-cm-diagnosis-code-23
type: VARCHAR(7)
- DGNSCD24:
description:
@@ -24242,6 +27613,7 @@ cms:
original_type: CHAR
text: ICD-9-CM Diagnosis code XXIV
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-icd-9-cm-diagnosis-code-24
type: VARCHAR(7)
- DGNSCD25:
description:
@@ -24249,6 +27621,7 @@ cms:
original_type: CHAR
text: ICD-9-CM Diagnosis code XXV
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-icd-9-cm-diagnosis-code-25
type: VARCHAR(7)
- DGNS_POA:
description:
@@ -24256,6 +27629,7 @@ cms:
original_type: CHAR
text: Diagnosis Code POA Array
width: 10.0
+ reference: https://resdac.org/cms-data/variables/diagnosis-code-poa-array
type: VARCHAR(10)
- POA_DGNS_CD_CNT:
description:
@@ -24263,6 +27637,7 @@ cms:
original_type: NUM
text: MEDPAR Claim Present on Admission Diagnosis Code Count
width: 3.0
+ reference: https://resdac.org/cms-data/variables/count-present-admission-poa-diagnosis-codes
type: INT
- POA_DGNS_1_IND_CD:
description:
@@ -24270,6 +27645,7 @@ cms:
original_type: CHAR
text: Diagnosis Present on Admission Indicator 1
width: 1.0
+ reference: https://resdac.org/cms-data/variables/diagnosis-1-present-admission-poa-indicator-code
type: VARCHAR(1)
- POA_DGNS_2_IND_CD:
description:
@@ -24277,6 +27653,7 @@ cms:
original_type: CHAR
text: Diagnosis Present on Admission Indicator 2
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-present-admission-indicator-2
type: VARCHAR(1)
- POA_DGNS_3_IND_CD:
description:
@@ -24284,6 +27661,7 @@ cms:
original_type: CHAR
text: Diagnosis Present on Admission Indicator 3
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-present-admission-indicator-3
type: VARCHAR(1)
- POA_DGNS_4_IND_CD:
description:
@@ -24291,6 +27669,7 @@ cms:
original_type: CHAR
text: Diagnosis Present on Admission Indicator 4
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-present-admission-indicator-4
type: VARCHAR(1)
- POA_DGNS_5_IND_CD:
description:
@@ -24298,6 +27677,7 @@ cms:
original_type: CHAR
text: Diagnosis Present on Admission Indicator 5
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-present-admission-indicator-5
type: VARCHAR(1)
- POA_DGNS_6_IND_CD:
description:
@@ -24305,6 +27685,7 @@ cms:
original_type: CHAR
text: Diagnosis Present on Admission Indicator 6
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-present-admission-indicator-6
type: VARCHAR(1)
- POA_DGNS_7_IND_CD:
description:
@@ -24312,6 +27693,7 @@ cms:
original_type: CHAR
text: Diagnosis Present on Admission Indicator 7
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-present-admission-indicator-7
type: VARCHAR(1)
- POA_DGNS_8_IND_CD:
description:
@@ -24319,6 +27701,7 @@ cms:
original_type: CHAR
text: Diagnosis Present on Admission Indicator 8
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-present-admission-indicator-8
type: VARCHAR(1)
- POA_DGNS_9_IND_CD:
description:
@@ -24326,6 +27709,7 @@ cms:
original_type: CHAR
text: Diagnosis Present on Admission Indicator 9
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-present-admission-indicator-9
type: VARCHAR(1)
- POA_DGNS_10_IND_CD:
description:
@@ -24333,6 +27717,7 @@ cms:
original_type: CHAR
text: Diagnosis Present on Admission Indicator 10
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-present-admission-indicator-10
type: VARCHAR(1)
- POA_DGNS_11_IND_CD:
description:
@@ -24340,6 +27725,7 @@ cms:
original_type: CHAR
text: Diagnosis Present on Admission Indicator 11
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-present-admission-indicator-11
type: VARCHAR(1)
- POA_DGNS_12_IND_CD:
description:
@@ -24347,6 +27733,7 @@ cms:
original_type: CHAR
text: Diagnosis Present on Admission Indicator 12
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-present-admission-indicator-12
type: VARCHAR(1)
- POA_DGNS_13_IND_CD:
description:
@@ -24354,6 +27741,7 @@ cms:
original_type: CHAR
text: Diagnosis Present on Admission Indicator 13
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-present-admission-indicator-13
type: VARCHAR(1)
- POA_DGNS_14_IND_CD:
description:
@@ -24361,6 +27749,7 @@ cms:
original_type: CHAR
text: Diagnosis Present on Admission Indicator 14
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-present-admission-indicator-14
type: VARCHAR(1)
- POA_DGNS_15_IND_CD:
description:
@@ -24368,6 +27757,7 @@ cms:
original_type: CHAR
text: Diagnosis Present on Admission Indicator 15
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-present-admission-indicator-15
type: VARCHAR(1)
- POA_DGNS_16_IND_CD:
description:
@@ -24375,6 +27765,7 @@ cms:
original_type: CHAR
text: Diagnosis Present on Admission Indicator 16
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-present-admission-indicator-16
type: VARCHAR(1)
- POA_DGNS_17_IND_CD:
description:
@@ -24382,6 +27773,7 @@ cms:
original_type: CHAR
text: Diagnosis Present on Admission Indicator 17
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-present-admission-indicator-17
type: VARCHAR(1)
- POA_DGNS_18_IND_CD:
description:
@@ -24389,6 +27781,7 @@ cms:
original_type: CHAR
text: Diagnosis Present on Admission Indicator 18
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-present-admission-indicator-18
type: VARCHAR(1)
- POA_DGNS_19_IND_CD:
description:
@@ -24396,6 +27789,7 @@ cms:
original_type: CHAR
text: Diagnosis Present on Admission Indicator 19
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-present-admission-indicator-19
type: VARCHAR(1)
- POA_DGNS_20_IND_CD:
description:
@@ -24403,6 +27797,7 @@ cms:
original_type: CHAR
text: Diagnosis Present on Admission Indicator 20
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-present-admission-indicator-20
type: VARCHAR(1)
- POA_DGNS_21_IND_CD:
description:
@@ -24410,6 +27805,7 @@ cms:
original_type: CHAR
text: Diagnosis Present on Admission Indicator 21
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-present-admission-indicator-21
type: VARCHAR(1)
- POA_DGNS_22_IND_CD:
description:
@@ -24417,6 +27813,7 @@ cms:
original_type: CHAR
text: Diagnosis Present on Admission Indicator 22
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-present-admission-indicator-22
type: VARCHAR(1)
- POA_DGNS_23_IND_CD:
description:
@@ -24424,6 +27821,7 @@ cms:
original_type: CHAR
text: Diagnosis Present on Admission Indicator 23
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-present-admission-indicator-23
type: VARCHAR(1)
- POA_DGNS_24_IND_CD:
description:
@@ -24431,6 +27829,7 @@ cms:
original_type: CHAR
text: Diagnosis Present on Admission Indicator 24
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-present-admission-indicator-24
type: VARCHAR(1)
- POA_DGNS_25_IND_CD:
description:
@@ -24438,6 +27837,7 @@ cms:
original_type: CHAR
text: Diagnosis Present on Admission Indicator 25
width: 1.0
+ reference: https://resdac.org/cms-data/variables/diagnosis-e-code-present-admission-indicator-8
type: VARCHAR(1)
- DGNS_E_CD_CNT:
description:
@@ -24445,6 +27845,7 @@ cms:
original_type: NUM
text: MEDPAR Diagnosis E Code Count
width: 3.0
+ reference: https://resdac.org/cms-data/variables/count-diagnosis-e-codes
type: INT
- DGNS_E_VRSN_CD:
description:
@@ -24452,6 +27853,7 @@ cms:
original_type: CHAR
text: MEDPAR Diagnosis E Version Code (Earlier Version)
width: 1.0
+ reference: https://resdac.org/cms-data/variables/diagnosis-e-version-code-earlier-version
type: VARCHAR(1)
- DGNS_E_VRSN_CD_1:
description:
@@ -24459,6 +27861,7 @@ cms:
original_type: CHAR
text: MEDPAR Diagnosis E Version Code 01
width: 1.0
+ reference: https://resdac.org/cms-data/variables/diagnosis-e-version-code-1
type: VARCHAR(1)
- DGNS_E_VRSN_CD_2:
description:
@@ -24466,6 +27869,7 @@ cms:
original_type: CHAR
text: MEDPAR Diagnosis E Version Code 02
width: 1.0
+ reference: https://resdac.org/cms-data/variables/diagnosis-e-version-code-2
type: VARCHAR(1)
- DGNS_E_VRSN_CD_3:
description:
@@ -24473,6 +27877,7 @@ cms:
original_type: CHAR
text: MEDPAR Diagnosis E Version Code 03
width: 1.0
+ reference: https://resdac.org/cms-data/variables/diagnosis-e-version-code-3
type: VARCHAR(1)
- DGNS_E_VRSN_CD_4:
description:
@@ -24480,6 +27885,7 @@ cms:
original_type: CHAR
text: MEDPAR Diagnosis E Version Code 04
width: 1.0
+ reference: https://resdac.org/cms-data/variables/diagnosis-e-version-code-4
type: VARCHAR(1)
- DGNS_E_VRSN_CD_5:
description:
@@ -24487,6 +27893,7 @@ cms:
original_type: CHAR
text: MEDPAR Diagnosis E Version Code 05
width: 1.0
+ reference: https://resdac.org/cms-data/variables/diagnosis-e-version-code-5
type: VARCHAR(1)
- DGNS_E_VRSN_CD_6:
description:
@@ -24494,6 +27901,7 @@ cms:
original_type: CHAR
text: MEDPAR Diagnosis E Version Code 06
width: 1.0
+ reference: https://resdac.org/cms-data/variables/diagnosis-e-version-code-6
type: VARCHAR(1)
- DGNS_E_VRSN_CD_7:
description:
@@ -24501,6 +27909,7 @@ cms:
original_type: CHAR
text: MEDPAR Diagnosis E Version Code 07
width: 1.0
+ reference: https://resdac.org/cms-data/variables/diagnosis-e-version-code-7
type: VARCHAR(1)
- DGNS_E_VRSN_CD_8:
description:
@@ -24508,6 +27917,7 @@ cms:
original_type: CHAR
text: MEDPAR Diagnosis E Version Code 08
width: 1.0
+ reference: https://resdac.org/cms-data/variables/diagnosis-e-version-code-8
type: VARCHAR(1)
- DGNS_E_VRSN_CD_9:
description:
@@ -24515,6 +27925,7 @@ cms:
original_type: CHAR
text: MEDPAR Diagnosis E Version Code 09
width: 1.0
+ reference: https://resdac.org/cms-data/variables/diagnosis-e-version-code-9
type: VARCHAR(1)
- DGNS_E_VRSN_CD_10:
description:
@@ -24522,6 +27933,7 @@ cms:
original_type: CHAR
text: MEDPAR Diagnosis E Version Code 10
width: 1.0
+ reference: https://resdac.org/cms-data/variables/diagnosis-e-version-code-10
type: VARCHAR(1)
- DGNS_E_VRSN_CD_11:
description:
@@ -24529,6 +27941,7 @@ cms:
original_type: CHAR
text: MEDPAR Diagnosis E Version Code 11
width: 1.0
+ reference: https://resdac.org/cms-data/variables/diagnosis-e-version-code-11
type: VARCHAR(1)
- DGNS_E_VRSN_CD_12:
description:
@@ -24536,6 +27949,7 @@ cms:
original_type: CHAR
text: MEDPAR Diagnosis E Version Code 12
width: 1.0
+ reference: https://resdac.org/cms-data/variables/diagnosis-e-version-code-12
type: VARCHAR(1)
- DGNS_E_1_CD:
description:
@@ -24544,6 +27958,7 @@ cms:
text: E Diagnosis Code 1 - Extrnl cause of injury, poisoning, or oth adverse
effect
width: 7.0
+ reference: https://resdac.org/cms-data/variables/diagnosis-e-version-code-1
type: VARCHAR(7)
- DGNS_E_2_CD:
description:
@@ -24552,6 +27967,7 @@ cms:
text: E Diagnosis Code 2 - Extrnl cause of injury, poisoning, or oth adverse
effect
width: 7.0
+ reference: https://resdac.org/cms-data/variables/diagnosis-e-code-2
type: VARCHAR(7)
- DGNS_E_3_CD:
description:
@@ -24560,6 +27976,7 @@ cms:
text: E Diagnosis Code 3 - Extrnl cause of injury, poisoning, or oth adverse
effect
width: 7.0
+ reference: https://resdac.org/cms-data/variables/diagnosis-e-code-3
type: VARCHAR(7)
- DGNS_E_4_CD:
description:
@@ -24568,6 +27985,7 @@ cms:
text: E Diagnosis Code 4 - Extrnl cause of injury, poisoning, or oth adverse
effect
width: 7.0
+ reference: https://resdac.org/cms-data/variables/diagnosis-e-code-4
type: VARCHAR(7)
- DGNS_E_5_CD:
description:
@@ -24576,6 +27994,7 @@ cms:
text: E Diagnosis Code 5 - Extrnl cause of injury, poisoning, or oth adverse
effect
width: 7.0
+ reference: https://resdac.org/cms-data/variables/diagnosis-e-code-5
type: VARCHAR(7)
- DGNS_E_6_CD:
description:
@@ -24584,6 +28003,7 @@ cms:
text: E Diagnosis Code 6 - Extrnl cause of injury, poisoning, or oth adverse
effect
width: 7.0
+ reference: https://resdac.org/cms-data/variables/diagnosis-e-code-6
type: VARCHAR(7)
- DGNS_E_7_CD:
description:
@@ -24592,6 +28012,7 @@ cms:
text: E Diagnosis Code 7 - Extrnl cause of injury, poisoning, or oth adverse
effect
width: 7.0
+ reference: https://resdac.org/cms-data/variables/diagnosis-e-code-7
type: VARCHAR(7)
- DGNS_E_8_CD:
description:
@@ -24600,6 +28021,7 @@ cms:
text: E Diagnosis Code 8 - Extrnl cause of injury, poisoning, or oth adverse
effect
width: 7.0
+ reference: https://resdac.org/cms-data/variables/diagnosis-e-code-8
type: VARCHAR(7)
- DGNS_E_9_CD:
description:
@@ -24608,6 +28030,7 @@ cms:
text: E Diagnosis Code 9 - Extrnl cause of injury, poisoning, or oth adverse
effect
width: 7.0
+ reference: https://resdac.org/cms-data/variables/diagnosis-e-code-9
type: VARCHAR(7)
- DGNS_E_10_CD:
description:
@@ -24616,6 +28039,7 @@ cms:
text: E Diagnosis Code 10 - Extrnl cause of injury, poisoning, or oth
adverse effect
width: 7.0
+ reference: https://resdac.org/cms-data/variables/diagnosis-e-code-10
type: VARCHAR(7)
- DGNS_E_11_CD:
description:
@@ -24624,6 +28048,7 @@ cms:
text: E Diagnosis Code 11 - Extrnl cause of injury, poisoning, or oth
adverse effect
width: 7.0
+ reference: https://resdac.org/cms-data/variables/diagnosis-e-code-11
type: VARCHAR(7)
- DGNS_E_12_CD:
description:
@@ -24632,6 +28057,7 @@ cms:
text: E Diagnosis Code 12 - Extrnl cause of injury, poisoning, or oth
adverse effect
width: 7.0
+ reference: https://resdac.org/cms-data/variables/diagnosis-e-version-code-1
type: VARCHAR(7)
- POA_DGNS_E_CD_CNT:
description:
@@ -24639,6 +28065,7 @@ cms:
original_type: NUM
text: MEDPAR Claim Present on Admission Diagnosis E Code Count
width: 3.0
+ reference: https://resdac.org/cms-data/variables/count-present-admission-poa-diagnosis-e-codes
type: INT
- POA_DGNS_E_1_IND_CD:
description:
@@ -24646,6 +28073,7 @@ cms:
original_type: CHAR
text: Diagnosis E Code Present on Admission Indicator 1
width: 1.0
+ reference: https://resdac.org/cms-data/variables/diagnosis-1-present-admission-poa-indicator-code
type: VARCHAR(1)
- POA_DGNS_E_2_IND_CD:
description:
@@ -24653,6 +28081,7 @@ cms:
original_type: CHAR
text: Diagnosis E Code Present on Admission Indicator 2
width: 1.0
+ reference: https://resdac.org/cms-data/variables/diagnosis-e-code-present-admission-indicator-2
type: VARCHAR(1)
- POA_DGNS_E_3_IND_CD:
description:
@@ -24660,6 +28089,7 @@ cms:
original_type: CHAR
text: Diagnosis E Code Present on Admission Indicator 3
width: 1.0
+ reference: https://resdac.org/cms-data/variables/diagnosis-e-code-present-admission-indicator-3
type: VARCHAR(1)
- POA_DGNS_E_4_IND_CD:
description:
@@ -24667,6 +28097,7 @@ cms:
original_type: CHAR
text: Diagnosis E Code Present on Admission Indicator 4
width: 1.0
+ reference: https://resdac.org/cms-data/variables/diagnosis-e-code-present-admission-indicator-4
type: VARCHAR(1)
- POA_DGNS_E_5_IND_CD:
description:
@@ -24674,6 +28105,7 @@ cms:
original_type: CHAR
text: Diagnosis E Code Present on Admission Indicator 5
width: 1.0
+ reference: https://resdac.org/cms-data/variables/diagnosis-e-code-present-admission-indicator-5
type: VARCHAR(1)
- POA_DGNS_E_6_IND_CD:
description:
@@ -24681,6 +28113,7 @@ cms:
original_type: CHAR
text: Diagnosis E Code Present on Admission Indicator 6
width: 1.0
+ reference: https://resdac.org/cms-data/variables/diagnosis-e-code-present-admission-indicator-6
type: VARCHAR(1)
- POA_DGNS_E_7_IND_CD:
description:
@@ -24688,6 +28121,7 @@ cms:
original_type: CHAR
text: Diagnosis E Code Present on Admission Indicator 7
width: 1.0
+ reference: https://resdac.org/cms-data/variables/diagnosis-e-code-present-admission-indicator-7
type: VARCHAR(1)
- POA_DGNS_E_8_IND_CD:
description:
@@ -24695,6 +28129,7 @@ cms:
original_type: CHAR
text: Diagnosis E Code Present on Admission Indicator 8
width: 1.0
+ reference: https://resdac.org/cms-data/variables/diagnosis-e-code-present-admission-indicator-8
type: VARCHAR(1)
- POA_DGNS_E_9_IND_CD:
description:
@@ -24702,6 +28137,7 @@ cms:
original_type: CHAR
text: Diagnosis E Code Present on Admission Indicator 9
width: 1.0
+ reference: https://resdac.org/cms-data/variables/diagnosis-e-code-present-admission-indicator-9
type: VARCHAR(1)
- POA_DGNS_E_10_IND_CD:
description:
@@ -24709,6 +28145,7 @@ cms:
original_type: CHAR
text: Diagnosis E Code Present on Admission Indicator 10
width: 1.0
+ reference: https://resdac.org/cms-data/variables/diagnosis-e-code-present-admission-indicator-10
type: VARCHAR(1)
- POA_DGNS_E_11_IND_CD:
description:
@@ -24716,6 +28153,7 @@ cms:
original_type: CHAR
text: Diagnosis E Code Present on Admission Indicator 11
width: 1.0
+ reference: https://resdac.org/cms-data/variables/diagnosis-e-code-present-admission-indicator-11
type: VARCHAR(1)
- POA_DGNS_E_12_IND_CD:
description:
@@ -24723,6 +28161,7 @@ cms:
original_type: CHAR
text: Diagnosis E Code Present on Admission Indicator 12
width: 1.0
+ reference: https://resdac.org/cms-data/variables/diagnosis-e-code-present-admission-indicator-12
type: VARCHAR(1)
- PRCDRSW:
description:
@@ -24730,6 +28169,7 @@ cms:
original_type: CHAR
text: Surgical procedures indicator
width: 1.0
+ reference: https://resdac.org/cms-data/variables/surgical-procedure-indicator
type: VARCHAR(1)
- PRCDRCNT:
description:
@@ -24737,6 +28177,7 @@ cms:
original_type: NUM
text: Surgical procedure codes included in stay
width: 3.0
+ reference: https://resdac.org/cms-data/variables/surgical-procedure-codes-included-stay
type: INT
- SRGCL_PRCDR_VRSN_CD:
description:
@@ -24744,6 +28185,7 @@ cms:
original_type: CHAR
text: MEDPAR Surgical Procedure Version Code (Earlier Version)
width: 1.0
+ reference: https://resdac.org/cms-data/variables/surgical-procedure-version-code-earlier-version
type: VARCHAR(1)
- SRGCL_PRCDR_VRSN_CD_1:
description:
@@ -24751,6 +28193,7 @@ cms:
original_type: CHAR
text: MEDPAR Surgical Procedure Version Code 01
width: 1.0
+ reference: https://resdac.org/cms-data/variables/principal-procedure-code
type: VARCHAR(1)
- SRGCL_PRCDR_VRSN_CD_2:
description:
@@ -24758,6 +28201,7 @@ cms:
original_type: CHAR
text: MEDPAR Surgical Procedure Version Code 02
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-surgical-procedure-version-code-2
type: VARCHAR(1)
- SRGCL_PRCDR_VRSN_CD_3:
description:
@@ -24765,6 +28209,7 @@ cms:
original_type: CHAR
text: MEDPAR Surgical Procedure Version Code 03
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-surgical-procedure-version-code-3
type: VARCHAR(1)
- SRGCL_PRCDR_VRSN_CD_4:
description:
@@ -24772,6 +28217,7 @@ cms:
original_type: CHAR
text: MEDPAR Surgical Procedure Version Code 04
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-surgical-procedure-version-code-4
type: VARCHAR(1)
- SRGCL_PRCDR_VRSN_CD_5:
description:
@@ -24779,6 +28225,7 @@ cms:
original_type: CHAR
text: MEDPAR Surgical Procedure Version Code 05
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-surgical-procedure-version-code-5
type: VARCHAR(1)
- SRGCL_PRCDR_VRSN_CD_6:
description:
@@ -24786,6 +28233,7 @@ cms:
original_type: CHAR
text: MEDPAR Surgical Procedure Version Code 06
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-surgical-procedure-version-code-6
type: VARCHAR(1)
- SRGCL_PRCDR_VRSN_CD_7:
description:
@@ -24793,6 +28241,7 @@ cms:
original_type: CHAR
text: MEDPAR Surgical Procedure Version Code 07
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-surgical-procedure-version-code-7
type: VARCHAR(1)
- SRGCL_PRCDR_VRSN_CD_8:
description:
@@ -24800,6 +28249,7 @@ cms:
original_type: CHAR
text: MEDPAR Surgical Procedure Version Code 08
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-surgical-procedure-version-code-8
type: VARCHAR(1)
- SRGCL_PRCDR_VRSN_CD_9:
description:
@@ -24807,6 +28257,7 @@ cms:
original_type: CHAR
text: MEDPAR Surgical Procedure Version Code 09
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-surgical-procedure-version-code-9
type: VARCHAR(1)
- SRGCL_PRCDR_VRSN_CD_10:
description:
@@ -24814,6 +28265,7 @@ cms:
original_type: CHAR
text: MEDPAR Surgical Procedure Version Code 10
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-surgical-procedure-version-code-10
type: VARCHAR(1)
- SRGCL_PRCDR_VRSN_CD_11:
description:
@@ -24821,6 +28273,7 @@ cms:
original_type: CHAR
text: MEDPAR Surgical Procedure Version Code 11
width: 1.0
+ reference: https://resdac.org/cms-data/variables/surgical-procedure-version-code-earlier-version
type: VARCHAR(1)
- SRGCL_PRCDR_VRSN_CD_12:
description:
@@ -24828,6 +28281,7 @@ cms:
original_type: CHAR
text: MEDPAR Surgical Procedure Version Code 12
width: 1.0
+ reference: https://resdac.org/cms-data/variables/surgical-procedure-version-code-earlier-version
type: VARCHAR(1)
- SRGCL_PRCDR_VRSN_CD_13:
description:
@@ -24835,6 +28289,7 @@ cms:
original_type: CHAR
text: MEDPAR Surgical Procedure Version Code 13
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-surgical-procedure-version-code-13
type: VARCHAR(1)
- SRGCL_PRCDR_VRSN_CD_14:
description:
@@ -24842,6 +28297,7 @@ cms:
original_type: CHAR
text: MEDPAR Surgical Procedure Version Code 14
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-surgical-procedure-version-code-14
type: VARCHAR(1)
- SRGCL_PRCDR_VRSN_CD_15:
description:
@@ -24849,6 +28305,7 @@ cms:
original_type: CHAR
text: MEDPAR Surgical Procedure Version Code 15
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-surgical-procedure-version-code-15
type: VARCHAR(1)
- SRGCL_PRCDR_VRSN_CD_16:
description:
@@ -24856,6 +28313,7 @@ cms:
original_type: CHAR
text: MEDPAR Surgical Procedure Version Code 16
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-surgical-procedure-version-code-16
type: VARCHAR(1)
- SRGCL_PRCDR_VRSN_CD_17:
description:
@@ -24863,6 +28321,7 @@ cms:
original_type: CHAR
text: MEDPAR Surgical Procedure Version Code 17
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-surgical-procedure-version-code-17
type: VARCHAR(1)
- SRGCL_PRCDR_VRSN_CD_18:
description:
@@ -24870,6 +28329,7 @@ cms:
original_type: CHAR
text: MEDPAR Surgical Procedure Version Code 18
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-surgical-procedure-version-code-18
type: VARCHAR(1)
- SRGCL_PRCDR_VRSN_CD_19:
description:
@@ -24877,6 +28337,7 @@ cms:
original_type: CHAR
text: MEDPAR Surgical Procedure Version Code 19
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-surgical-procedure-version-code-19
type: VARCHAR(1)
- SRGCL_PRCDR_VRSN_CD_20:
description:
@@ -24884,6 +28345,7 @@ cms:
original_type: CHAR
text: MEDPAR Surgical Procedure Version Code 20
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-surgical-procedure-version-code-20
type: VARCHAR(1)
- SRGCL_PRCDR_VRSN_CD_21:
description:
@@ -24891,6 +28353,7 @@ cms:
original_type: CHAR
text: MEDPAR Surgical Procedure Version Code 21
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-surgical-procedure-version-code-21
type: VARCHAR(1)
- SRGCL_PRCDR_VRSN_CD_22:
description:
@@ -24898,6 +28361,7 @@ cms:
original_type: CHAR
text: MEDPAR Surgical Procedure Version Code 22
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-surgical-procedure-version-code-22
type: VARCHAR(1)
- SRGCL_PRCDR_VRSN_CD_23:
description:
@@ -24905,6 +28369,7 @@ cms:
original_type: CHAR
text: MEDPAR Surgical Procedure Version Code 23
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-surgical-procedure-version-code-23
type: VARCHAR(1)
- SRGCL_PRCDR_VRSN_CD_24:
description:
@@ -24912,6 +28377,7 @@ cms:
original_type: CHAR
text: MEDPAR Surgical Procedure Version Code 24
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-surgical-procedure-version-code-24
type: VARCHAR(1)
- SRGCL_PRCDR_VRSN_CD_25:
description:
@@ -24919,6 +28385,7 @@ cms:
original_type: CHAR
text: MEDPAR Surgical Procedure Version Code 25
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-procedure-code-4
type: VARCHAR(1)
- PRCDRCD1:
description:
@@ -24926,6 +28393,7 @@ cms:
original_type: CHAR
text: Principal Procedure code
width: 7.0
+ reference: https://resdac.org/cms-data/variables/principal-procedure-code
type: VARCHAR(7)
- PRCDRCD2:
description:
@@ -24933,6 +28401,7 @@ cms:
original_type: CHAR
text: Procedure Code II
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-procedure-code-2
type: VARCHAR(7)
- PRCDRCD3:
description:
@@ -24940,6 +28409,7 @@ cms:
original_type: CHAR
text: Procedure Code III
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-procedure-code-3
type: VARCHAR(7)
- PRCDRCD4:
description:
@@ -24947,6 +28417,7 @@ cms:
original_type: CHAR
text: Procedure Code IV
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-procedure-code-4
type: VARCHAR(7)
- PRCDRCD5:
description:
@@ -24954,6 +28425,7 @@ cms:
original_type: CHAR
text: Procedure Code V
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-procedure-code-5
type: VARCHAR(7)
- PRCDRCD6:
description:
@@ -24961,6 +28433,7 @@ cms:
original_type: CHAR
text: Procedure Code VI
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-procedure-code-6
type: VARCHAR(7)
- PRCDRCD7:
description:
@@ -24968,6 +28441,7 @@ cms:
original_type: CHAR
text: Procedure Code VII
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-procedure-code-7
type: VARCHAR(7)
- PRCDRCD8:
description:
@@ -24975,6 +28449,7 @@ cms:
original_type: CHAR
text: Procedure Code VIII
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-procedure-code-8
type: VARCHAR(7)
- PRCDRCD9:
description:
@@ -24982,6 +28457,7 @@ cms:
original_type: CHAR
text: Procedure Code IX
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-procedure-code-9
type: VARCHAR(7)
- PRCDRCD10:
description:
@@ -24989,6 +28465,7 @@ cms:
original_type: CHAR
text: Procedure Code X
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-procedure-code-10
type: VARCHAR(7)
- PRCDRCD11:
description:
@@ -24996,6 +28473,7 @@ cms:
original_type: CHAR
text: Procedure Code XI
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-procedure-code-11
type: VARCHAR(7)
- PRCDRCD12:
description:
@@ -25003,6 +28481,7 @@ cms:
original_type: CHAR
text: Procedure Code XII
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-procedure-code-12
type: VARCHAR(7)
- PRCDRCD13:
description:
@@ -25010,6 +28489,7 @@ cms:
original_type: CHAR
text: Procedure Code XIII
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-procedure-code-13
type: VARCHAR(7)
- PRCDRCD14:
description:
@@ -25017,6 +28497,7 @@ cms:
original_type: CHAR
text: Procedure Code XIV
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-procedure-code-14
type: VARCHAR(7)
- PRCDRCD15:
description:
@@ -25024,6 +28505,7 @@ cms:
original_type: CHAR
text: Procedure Code XV
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-procedure-code-15
type: VARCHAR(7)
- PRCDRCD16:
description:
@@ -25031,6 +28513,7 @@ cms:
original_type: CHAR
text: Procedure Code XVI
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-procedure-code-16
type: VARCHAR(7)
- PRCDRCD17:
description:
@@ -25038,6 +28521,7 @@ cms:
original_type: CHAR
text: Procedure Code XVII
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-procedure-code-17
type: VARCHAR(7)
- PRCDRCD18:
description:
@@ -25045,6 +28529,7 @@ cms:
original_type: CHAR
text: Procedure Code XVIII
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-procedure-code-18
type: VARCHAR(7)
- PRCDRCD19:
description:
@@ -25052,6 +28537,7 @@ cms:
original_type: CHAR
text: Procedure Code XIX
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-procedure-code-19
type: VARCHAR(7)
- PRCDRCD20:
description:
@@ -25059,6 +28545,7 @@ cms:
original_type: CHAR
text: Procedure Code XX
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-procedure-code-20
type: VARCHAR(7)
- PRCDRCD21:
description:
@@ -25066,6 +28553,7 @@ cms:
original_type: CHAR
text: Procedure Code XXI
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-procedure-code-21
type: VARCHAR(7)
- PRCDRCD22:
description:
@@ -25073,6 +28561,7 @@ cms:
original_type: CHAR
text: Procedure Code XXII
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-procedure-code-22
type: VARCHAR(7)
- PRCDRCD23:
description:
@@ -25080,6 +28569,7 @@ cms:
original_type: CHAR
text: Procedure Code XXIII
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-procedure-code-23
type: VARCHAR(7)
- PRCDRCD24:
description:
@@ -25087,6 +28577,7 @@ cms:
original_type: CHAR
text: Procedure Code XXIV
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-procedure-code-24
type: VARCHAR(7)
- PRCDRCD25:
description:
@@ -25094,6 +28585,7 @@ cms:
original_type: CHAR
text: Procedure Code XXV
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-procedure-code-25
type: VARCHAR(7)
- PRCDTCNT:
description:
@@ -25101,6 +28593,7 @@ cms:
original_type: NUM
text: Dates associated with surgical procedures included in stay
width: 3.0
+ reference: https://resdac.org/cms-data/variables/dates-associated-surgical-procedures-included-stay
type: INT
- PRCDRDT1:
description:
@@ -25108,6 +28601,7 @@ cms:
original_type: DATE
text: Principal Procedure Date
width: 8.0
+ reference: https://resdac.org/cms-data/variables/principal-procedure-date
type: DATE
- PRCDRDT2:
description:
@@ -25115,6 +28609,7 @@ cms:
original_type: DATE
text: Procedure Date II
width: 8.0
+ reference: https://resdac.org/cms-data/variables/procedure-date-2
type: DATE
- PRCDRDT3:
description:
@@ -25122,6 +28617,7 @@ cms:
original_type: DATE
text: Procedure Date III
width: 8.0
+ reference: https://resdac.org/cms-data/variables/procedure-date-3
type: DATE
- PRCDRDT4:
description:
@@ -25129,6 +28625,7 @@ cms:
original_type: DATE
text: Procedure Date IV
width: 8.0
+ reference: https://resdac.org/cms-data/variables/procedure-date-4
type: DATE
- PRCDRDT5:
description:
@@ -25136,6 +28633,7 @@ cms:
original_type: DATE
text: Procedure Date V
width: 8.0
+ reference: null
type: DATE
- PRCDRDT6:
description:
@@ -25143,6 +28641,7 @@ cms:
original_type: DATE
text: Procedure Date VI
width: 8.0
+ reference: https://resdac.org/cms-data/variables/procedure-date-6
type: DATE
- PRCDRDT7:
description:
@@ -25150,6 +28649,7 @@ cms:
original_type: DATE
text: Procedure Date VII
width: 8.0
+ reference: https://resdac.org/cms-data/variables/procedure-date-7
type: DATE
- PRCDRDT8:
description:
@@ -25157,6 +28657,7 @@ cms:
original_type: DATE
text: Procedure Date VIII
width: 8.0
+ reference: https://resdac.org/cms-data/variables/procedure-date-8
type: DATE
- PRCDRDT9:
description:
@@ -25164,6 +28665,7 @@ cms:
original_type: DATE
text: Procedure Date IX
width: 8.0
+ reference: https://resdac.org/cms-data/variables/procedure-date-9
type: DATE
- PRCDRDT10:
description:
@@ -25171,6 +28673,7 @@ cms:
original_type: DATE
text: Procedure Date X
width: 8.0
+ reference: https://resdac.org/cms-data/variables/procedure-date-10
type: DATE
- PRCDRDT11:
description:
@@ -25178,6 +28681,7 @@ cms:
original_type: DATE
text: Procedure Date XI
width: 8.0
+ reference: https://resdac.org/cms-data/variables/procedure-date-11
type: DATE
- PRCDRDT12:
description:
@@ -25185,6 +28689,7 @@ cms:
original_type: DATE
text: Procedure Date XII
width: 8.0
+ reference: https://resdac.org/cms-data/variables/procedure-date-12
type: DATE
- PRCDRDT13:
description:
@@ -25192,6 +28697,7 @@ cms:
original_type: DATE
text: Procedure Date XIII
width: 8.0
+ reference: https://resdac.org/cms-data/variables/procedure-date-13
type: DATE
- PRCDRDT14:
description:
@@ -25199,6 +28705,7 @@ cms:
original_type: DATE
text: Procedure Date XIV
width: 8.0
+ reference: https://resdac.org/cms-data/variables/procedure-date-14
type: DATE
- PRCDRDT15:
description:
@@ -25206,6 +28713,7 @@ cms:
original_type: DATE
text: Procedure Date XV
width: 8.0
+ reference: https://resdac.org/cms-data/variables/procedure-date-15
type: DATE
- PRCDRDT16:
description:
@@ -25213,6 +28721,7 @@ cms:
original_type: DATE
text: Procedure Date XVI
width: 8.0
+ reference: https://resdac.org/cms-data/variables/procedure-date-16
type: DATE
- PRCDRDT17:
description:
@@ -25220,6 +28729,7 @@ cms:
original_type: DATE
text: Procedure Date XVII
width: 8.0
+ reference: https://resdac.org/cms-data/variables/procedure-date-17
type: DATE
- PRCDRDT18:
description:
@@ -25227,6 +28737,7 @@ cms:
original_type: DATE
text: Procedure Date XVIII
width: 8.0
+ reference: https://resdac.org/cms-data/variables/procedure-date-18
type: DATE
- PRCDRDT19:
description:
@@ -25234,6 +28745,7 @@ cms:
original_type: DATE
text: Procedure Date XIX
width: 8.0
+ reference: https://resdac.org/cms-data/variables/procedure-date-19
type: DATE
- PRCDRDT20:
description:
@@ -25241,6 +28753,7 @@ cms:
original_type: DATE
text: Procedure Date XX
width: 8.0
+ reference: https://resdac.org/cms-data/variables/procedure-date-20
type: DATE
- PRCDRDT21:
description:
@@ -25248,6 +28761,7 @@ cms:
original_type: DATE
text: Procedure Date XXI
width: 8.0
+ reference: https://resdac.org/cms-data/variables/procedure-date-21
type: DATE
- PRCDRDT22:
description:
@@ -25255,6 +28769,7 @@ cms:
original_type: DATE
text: Procedure Date XXII
width: 8.0
+ reference: https://resdac.org/cms-data/variables/procedure-date-22
type: DATE
- PRCDRDT23:
description:
@@ -25262,6 +28777,7 @@ cms:
original_type: DATE
text: Procedure Date XXIII
width: 8.0
+ reference: https://resdac.org/cms-data/variables/procedure-date-23
type: DATE
- PRCDRDT24:
description:
@@ -25269,6 +28785,7 @@ cms:
original_type: DATE
text: Procedure Date XXIV
width: 8.0
+ reference: https://resdac.org/cms-data/variables/procedure-date-24
type: DATE
- PRCDRDT25:
description:
@@ -25276,6 +28793,7 @@ cms:
original_type: DATE
text: Procedure Date XXV
width: 8.0
+ reference: https://resdac.org/cms-data/variables/procedure-date-25
type: DATE
- CLM_PTNT_RLTNSHP_CD:
description:
@@ -25283,6 +28801,7 @@ cms:
original_type: CHAR
text: Claim Patient Relationship Code
width: 2.0
+ reference: https://resdac.org/cms-data/variables/claim-patient-relationship-code
type: VARCHAR(2)
- CARE_IMPRVMT_MODEL_1_CD:
description:
@@ -25290,6 +28809,7 @@ cms:
original_type: CHAR
text: Care Improvement Model 1 Code
width: 2.0
+ reference: https://resdac.org/cms-data/variables/care-improvement-model-1-code
type: VARCHAR(2)
- CARE_IMPRVMT_MODEL_2_CD:
description:
@@ -25297,6 +28817,7 @@ cms:
original_type: CHAR
text: Care Improvement Model 2 Code
width: 2.0
+ reference: https://resdac.org/cms-data/variables/care-improvement-model-2-code
type: VARCHAR(2)
- CARE_IMPRVMT_MODEL_3_CD:
description:
@@ -25304,6 +28825,7 @@ cms:
original_type: CHAR
text: Care Improvement Model 3 Code
width: 2.0
+ reference: https://resdac.org/cms-data/variables/care-improvement-model-3-code
type: VARCHAR(2)
- CARE_IMPRVMT_MODEL_4_CD:
description:
@@ -25311,6 +28833,7 @@ cms:
original_type: CHAR
text: Care Improvement Model 4 Code
width: 2.0
+ reference: https://resdac.org/cms-data/variables/care-improvement-model-4-code
type: VARCHAR(2)
- VBP_PRTCPNT_IND_CD:
description:
@@ -25318,6 +28841,7 @@ cms:
original_type: CHAR
text: VBP Participant Indicator Code
width: 1.0
+ reference: https://resdac.org/cms-data/variables/value-based-purchasing-vbp-participant-indicator-code
type: VARCHAR(1)
- HRR_PRTCPNT_IND_CD:
description:
@@ -25325,6 +28849,7 @@ cms:
original_type: CHAR
text: HRR Participant Indicator Code
width: 1.0
+ reference: https://resdac.org/cms-data/variables/hospital-readmission-reduction-hrr-participant-indicator-code
type: VARCHAR(1)
- BNDLD_MODEL_DSCNT_PCT:
description:
@@ -25332,6 +28857,7 @@ cms:
original_type: NUM
text: Bundled Model Discount Percent
width: 7.4
+ reference: https://resdac.org/cms-data/variables/bundled-payment-model-discount-percent
type: NUMERIC(7,4)
- VBP_ADJSTMT_PCT:
description:
@@ -25339,6 +28865,7 @@ cms:
original_type: NUM
text: VBP Adjustment Percent
width: 15.12
+ reference: https://resdac.org/cms-data/variables/value-based-purchasing-vbp-adjustment-percent
type: NUMERIC(15,12)
- HRR_ADJSTMT_PCT:
description:
@@ -25346,6 +28873,7 @@ cms:
original_type: NUM
text: HRR Adjustment Percent
width: 8.5
+ reference: https://resdac.org/cms-data/variables/hospital-readmission-reduction-hrr-adjustment-percent
type: NUMERIC(8,5)
- INFRMTL_ENCTR_IND_SW:
description:
@@ -25353,6 +28881,7 @@ cms:
original_type: CHAR
text: Informational Encounter Indicator Switch
width: 1.0
+ reference: https://resdac.org/cms-data/variables/informational-encounter-indicator
type: VARCHAR(1)
- MA_TCHNG_IND_SW:
description:
@@ -25360,6 +28889,7 @@ cms:
original_type: CHAR
text: MA Teaching Indicator Switch
width: 1.0
+ reference: https://resdac.org/cms-data/variables/ma-teaching-indicator
type: VARCHAR(1)
- PROD_RPLCMT_LIFECYC_SW:
description:
@@ -25367,6 +28897,7 @@ cms:
original_type: CHAR
text: Prod Replacement Lifecycle Switch
width: 1.0
+ reference: https://resdac.org/cms-data/variables/product-replacement-within-product-lifecycle-early
type: VARCHAR(1)
- PROD_RPLCMT_RCLL_SW:
description:
@@ -25374,6 +28905,7 @@ cms:
original_type: CHAR
text: Prod Replacement Recall Switch
width: 1.0
+ reference: https://resdac.org/cms-data/variables/product-replacement-recall-product
type: VARCHAR(1)
- CRED_RCVD_RPLCD_DVC_SW:
description:
@@ -25381,6 +28913,7 @@ cms:
original_type: CHAR
text: Credit Received Replaced Device Switch
width: 1.0
+ reference: https://resdac.org/cms-data/variables/credit-received-replaced-device
type: VARCHAR(1)
- OBSRVTN_SW:
description:
@@ -25388,6 +28921,7 @@ cms:
original_type: CHAR
text: Observation Switch
width: 1.0
+ reference: https://resdac.org/cms-data/variables/observation-unit-indicator
type: VARCHAR(1)
- NEW_TCHNLGY_ADD_ON_AMT:
description:
@@ -25395,6 +28929,7 @@ cms:
original_type: NUM
text: New Technology Add-On Amount
width: 10.0
+ reference: https://resdac.org/cms-data/variables/new-technology-add-amount
type: INT
- BASE_OPRTG_DRG_AMT:
description:
@@ -25402,6 +28937,7 @@ cms:
original_type: NUM
text: Base Operating DRG Amount
width: 10.0
+ reference: https://resdac.org/cms-data/variables/base-operating-drg-amount
type: INT
- OPRTG_HSP_AMT:
description:
@@ -25409,6 +28945,7 @@ cms:
original_type: NUM
text: Operating Hospital Amount
width: 10.0
+ reference: https://resdac.org/cms-data/variables/operating-hospital-amount
type: INT
- MDCL_SRGCL_GNRL_AMT:
description:
@@ -25416,6 +28953,7 @@ cms:
original_type: NUM
text: Medical/Surgical General Amount
width: 10.0
+ reference: https://resdac.org/cms-data/variables/medicalsurgical-supplies-prosthetic-orthotic-amount
type: INT
- MDCL_SRGCL_NSTRL_AMT:
description:
@@ -25423,6 +28961,7 @@ cms:
original_type: NUM
text: Medical/Surgical Non-Sterile Amount
width: 10.0
+ reference: https://resdac.org/cms-data/variables/medicalsurgical-non-sterile-supplies-amount
type: INT
- MDCL_SRGCL_STRL_AMT:
description:
@@ -25430,6 +28969,7 @@ cms:
original_type: NUM
text: Medical/Surgical Sterile Amount
width: 10.0
+ reference: https://resdac.org/cms-data/variables/medicalsurgical-sterile-supplies-amount
type: INT
- TAKE_HOME_AMT:
description:
@@ -25437,6 +28977,7 @@ cms:
original_type: NUM
text: Take Home Amount
width: 10.0
+ reference: https://resdac.org/cms-data/variables/medicalsurgical-supplies-take-home-amount
type: INT
- PRSTHTC_ORTHTC_AMT:
description:
@@ -25444,6 +28985,7 @@ cms:
original_type: NUM
text: Prosthetic Orthotic Amount
width: 10.0
+ reference: https://resdac.org/cms-data/variables/medicalsurgical-supplies-prosthetic-orthotic-amount
type: INT
- MDCL_SRGCL_PCMKR_AMT:
description:
@@ -25451,6 +28993,7 @@ cms:
original_type: NUM
text: Medical/Surgical Pacemaker Amount
width: 10.0
+ reference: https://resdac.org/cms-data/variables/medicalsurgical-pacemaker-amount
type: INT
- INTRAOCULAR_LENS_AMT:
description:
@@ -25458,6 +29001,7 @@ cms:
original_type: NUM
text: Intraocular Lens Amount
width: 10.0
+ reference: https://resdac.org/cms-data/variables/medicalsurgical-supplies-intraocular-lens-amount
type: INT
- OXYGN_TAKE_HOME_AMT:
description:
@@ -25465,6 +29009,7 @@ cms:
original_type: NUM
text: Oxygen Take Home Amount
width: 10.0
+ reference: https://resdac.org/cms-data/variables/medicalsurgical-supplies-oxygen-take-home-amount
type: INT
- OTHR_IMPLANTS_AMT:
description:
@@ -25472,6 +29017,7 @@ cms:
original_type: NUM
text: Other Implants Amount
width: 10.0
+ reference: https://resdac.org/cms-data/variables/medicalsurgical-supplies-other-implants-amount
type: INT
- OTHR_SUPLIES_DVC_AMT:
description:
@@ -25479,6 +29025,7 @@ cms:
original_type: NUM
text: Other Supplies Device Amount
width: 10.0
+ reference: https://resdac.org/cms-data/variables/medicalsurgical-supplies-other-device-amount
type: INT
- INCDNT_RDLGY_AMT:
description:
@@ -25486,6 +29033,7 @@ cms:
original_type: NUM
text: Incident Radiology Amount
width: 10.0
+ reference: https://resdac.org/cms-data/variables/medicalsurgical-supplies-incident-radiology-amount
type: INT
- INCDNT_DGNSTC_SRVCS_AMT:
description:
@@ -25493,6 +29041,7 @@ cms:
original_type: NUM
text: Incident Diagnostic Services Amount
width: 10.0
+ reference: https://resdac.org/cms-data/variables/medicalsurgical-supplies-incident-diagnostic-services-amount
type: INT
- MDCL_SRGCL_DRSNG_AMT:
description:
@@ -25500,6 +29049,7 @@ cms:
original_type: NUM
text: Medical/Surgical Dressing Amount
width: 10.0
+ reference: https://resdac.org/cms-data/variables/medicalsurgical-dressing-amount
type: INT
- INVSTGTNL_DVC_AMT:
description:
@@ -25507,6 +29057,7 @@ cms:
original_type: NUM
text: Investigational Device Amount
width: 10.0
+ reference: https://resdac.org/cms-data/variables/medicalsurgical-supplies-investigational-device-amount
type: INT
- MDCL_SRGCL_MISC_AMT:
description:
@@ -25514,6 +29065,7 @@ cms:
original_type: NUM
text: Medical/Surgical Miscellaneous Amount
width: 10.0
+ reference: https://resdac.org/cms-data/variables/medical-surgical-miscellaneous-amount
type: INT
- RDLGY_ONCOLOGY_AMT:
description:
@@ -25521,6 +29073,7 @@ cms:
original_type: NUM
text: Radiology/Oncology Amount
width: 10.0
+ reference: https://resdac.org/cms-data/variables/oncology-amount
type: INT
- RDLGY_DGNSTC_AMT:
description:
@@ -25528,6 +29081,7 @@ cms:
original_type: NUM
text: Radiology Diagnostic Amount
width: 10.0
+ reference: https://resdac.org/cms-data/variables/radiology-diagnostic-amount
type: INT
- RDLGY_THRPTC_AMT:
description:
@@ -25535,6 +29089,7 @@ cms:
original_type: NUM
text: Radiology Therapeutic Amount
width: 10.0
+ reference: https://resdac.org/cms-data/variables/radiology-therapeutic-amount
type: INT
- RDLGY_NUCLR_MDCN_AMT:
description:
@@ -25542,6 +29097,7 @@ cms:
original_type: NUM
text: Radiology Nuclear Medicine Amount
width: 10.0
+ reference: https://resdac.org/cms-data/variables/radiology-nuclear-medicine-amount
type: INT
- RDLGY_CT_SCAN_AMT:
description:
@@ -25549,6 +29105,7 @@ cms:
original_type: NUM
text: Radiology CT Scan Amount
width: 10.0
+ reference: https://resdac.org/cms-data/variables/radiology-ct-scan-amount
type: INT
- RDLGY_OTHR_IMGNG_AMT:
description:
@@ -25556,6 +29113,7 @@ cms:
original_type: NUM
text: Radiology Other Imaging Amount
width: 10.0
+ reference: https://resdac.org/cms-data/variables/radiology-other-imaging-amount
type: INT
- OPRTG_ROOM_AMT:
description:
@@ -25563,6 +29121,7 @@ cms:
original_type: NUM
text: Operating Room Amount
width: 10.0
+ reference: https://resdac.org/cms-data/variables/operating-and-recovery-room-amount
type: INT
- OR_LABOR_DLVRY_AMT:
description:
@@ -25570,6 +29129,7 @@ cms:
original_type: NUM
text: O/R Labor Delivery Amount
width: 10.0
+ reference: https://resdac.org/cms-data/variables/labor-room-and-delivery-amount
type: INT
- CRDC_CATHRZTN_AMT:
description:
@@ -25577,6 +29137,7 @@ cms:
original_type: NUM
text: Cardiac Catheterization Amount
width: 10.0
+ reference: https://resdac.org/cms-data/variables/cardiac-catheterization-lab-amount
type: INT
- SQSTRTN_RDCTN_AMT:
description:
@@ -25584,6 +29145,7 @@ cms:
original_type: NUM
text: Sequestration Reduction Amount
width: 10.0
+ reference: https://resdac.org/cms-data/variables/sequestration-reduction-amount
type: INT
- UNCOMPD_CARE_PYMT_AMT:
description:
@@ -25591,6 +29153,7 @@ cms:
original_type: NUM
text: Uncompensated Care Payment Amount
width: 10.0
+ reference: https://resdac.org/cms-data/variables/uncompensated-care-payment-amount
type: INT
- BNDLD_ADJSTMT_AMT:
description:
@@ -25598,6 +29161,7 @@ cms:
original_type: NUM
text: Bundled Adjustment Amount
width: 10.0
+ reference: https://resdac.org/cms-data/variables/bundled-payment-adjustment-amount
type: INT
- VBP_ADJSTMT_AMT:
description:
@@ -25605,6 +29169,7 @@ cms:
original_type: NUM
text: Hospital Value Based Purchasing (VBP) Amount
width: 10.0
+ reference: https://resdac.org/cms-data/variables/hospital-value-based-purchasing-vbp-amount
type: INT
- HRR_ADJSTMT_AMT:
description:
@@ -25612,6 +29177,7 @@ cms:
original_type: NUM
text: Hospital Readmission Reduction (HRR) Adjustment Amount
width: 10.0
+ reference: https://resdac.org/cms-data/variables/hospital-readmission-reduction-hrr-adjustment-amount
type: INT
- EHR_PYMT_ADJSTMT_AMT:
description:
@@ -25619,6 +29185,7 @@ cms:
original_type: NUM
text: Electronic Health Record (EHR) Payment Adjustment Amount
width: 10.0
+ reference: https://resdac.org/cms-data/variables/electronic-health-record-ehr-payment-adjustment-amount
type: INT
- PPS_STD_VAL_PYMT_AMT:
description:
@@ -25626,6 +29193,7 @@ cms:
original_type: NUM
text: Claim PPS Standard Value Payment Amount
width: 10.0
+ reference: https://resdac.org/cms-data/variables/standard-payment-amount
type: INT
- FINL_STD_AMT:
description:
@@ -25633,6 +29201,7 @@ cms:
original_type: NUM
text: Claim Final Standard Amount
width: 10.0
+ reference: https://resdac.org/cms-data/variables/claim-final-standard-payment-amount
type: INT
- HAC_RDCTN_PMT_AMT:
description:
@@ -25640,6 +29209,7 @@ cms:
original_type: NUM
text: Hospital Acquired Conditions Reduction Payment Amount (IPPS_FLEX_PYMT_6_AMT)
width: 10.0
+ reference: https://resdac.org/cms-data/variables/hospital-acquired-conditions-hac-reduction-payment-amount
type: INT
- IPPS_FLEX_PYMT_7_AMT:
description:
@@ -25647,6 +29217,7 @@ cms:
original_type: NUM
text: IPPS Flexible Payment Amount II
width: 10.0
+ reference: https://resdac.org/cms-data/variables/flexible-payment-amount-7th-placeholder
type: INT
- PTNT_ADD_ON_PYMT_AMT:
description:
@@ -25654,6 +29225,7 @@ cms:
original_type: NUM
text: Revenue Center Patient/Initial Visit Add-On Amount
width: 10.0
+ reference: https://resdac.org/cms-data/variables/patient-add-payment-amount-new-patient
type: INT
- HAC_PGM_RDCTN_IND_SW:
description:
@@ -25661,6 +29233,7 @@ cms:
original_type: CHAR
text: Hospital Acquired Conditions (HAC) Program Reduction Indicator Switch
width: 1.0
+ reference: https://resdac.org/cms-data/variables/claim-hospital-acquired-condition-hac-program-reduction-indicator-switch
type: VARCHAR(1)
- PGM_RDCTN_IND_SW:
description:
@@ -25668,6 +29241,7 @@ cms:
original_type: CHAR
text: Electronic Health Records (EHR) Program Reduction Indicator Switch
width: 1.0
+ reference: https://resdac.org/cms-data/variables/electronic-health-records-ehr-program-reduction-indicator
type: VARCHAR(1)
- PA_IND_CD:
description:
@@ -25675,6 +29249,7 @@ cms:
original_type: CHAR
text: Claim Prior Authorization Indicator Code
width: 4.0
+ reference: https://resdac.org/cms-data/variables/prior-authorization-indicator-code
type: VARCHAR(4)
- UNIQ_TRKNG_NUM:
description:
@@ -25682,6 +29257,7 @@ cms:
original_type: CHAR
text: Claim Unique Tracking Number
width: 14.0
+ reference: https://resdac.org/cms-data/variables/unique-tracking-number
type: VARCHAR(14)
- STAY_2_IND_SW:
description:
@@ -25689,6 +29265,7 @@ cms:
original_type: CHAR
text: Stay 2 Indicator Switch
width: 1.0
+ reference: https://resdac.org/cms-data/variables/two-midnight-stay-indicator
type: VARCHAR(1)
- CLM_SITE_NTRL_PYMT_CST_AMT:
description:
@@ -25696,6 +29273,7 @@ cms:
original_type: NUM
text: Claim Site Neutral Payment Based on Cost Amount
width: 10.0
+ reference: https://resdac.org/cms-data/variables/claim-site-neutral-payment-based-cost-amount
type: INT
- CLM_SITE_NTRL_PYMT_IPPS_AMT:
description:
@@ -25703,6 +29281,7 @@ cms:
original_type: NUM
text: Claim Site Neutral Payment Based on IPPS Amount
width: 10.0
+ reference: https://resdac.org/cms-data/variables/claim-site-neutral-payment-based-ipps-amount
type: INT
- CLM_FULL_STD_PYMT_AMT:
description:
@@ -25710,6 +29289,7 @@ cms:
original_type: NUM
text: Claim Full Standard Payment Amount
width: 10.0
+ reference: https://resdac.org/cms-data/variables/claim-full-standard-payment-amount
type: INT
- CLM_SS_OUTLIER_STD_PYMT_AMT:
description:
@@ -25717,6 +29297,7 @@ cms:
original_type: NUM
text: Claim Short Stay Outlier (SSO) Standard Payment Amount
width: 10.0
+ reference: https://resdac.org/cms-data/variables/claim-short-stay-outlier-sso-standard-payment-amount
type: INT
- CLM_NGACO_IND_1_CD:
description:
@@ -25725,6 +29306,7 @@ cms:
text: Claim Next Generation (NG) Accountable Care Organization (ACO) Indicator
Code 1
width: 1.0
+ reference: https://resdac.org/cms-data/variables/claim-next-generation-ng-accountable-care-organization-aco-indicator-code-1
type: VARCHAR(1)
- CLM_NGACO_IND_2_CD:
description:
@@ -25733,6 +29315,7 @@ cms:
text: Claim Next Generation (NG) Accountable Care Organization (ACO) Indicator
Code 2
width: 1.0
+ reference: https://resdac.org/cms-data/variables/claim-next-generation-ng-accountable-care-organization-aco-indicator-code-2
type: VARCHAR(1)
- CLM_NGACO_IND_3_CD:
description:
@@ -25741,6 +29324,7 @@ cms:
text: Claim Next Generation (NG) Accountable Care Organization (ACO) Indicator
Code 3
width: 1.0
+ reference: https://resdac.org/cms-data/variables/claim-next-generation-ng-accountable-care-organization-aco-indicator-code-3
type: VARCHAR(1)
- CLM_NGACO_IND_4_CD:
description:
@@ -25749,6 +29333,7 @@ cms:
text: Claim Next Generation (NG) Accountable Care Organization (ACO) Indicator
Code 4
width: 1.0
+ reference: https://resdac.org/cms-data/variables/claim-next-generation-ng-accountable-care-organization-aco-indicator-code-4
type: VARCHAR(1)
- CLM_NGACO_IND_5_CD:
description:
@@ -25757,6 +29342,7 @@ cms:
text: Claim Next Generation (NG) Accountable Care Organization (ACO) Indicator
Code 5
width: 1.0
+ reference: https://resdac.org/cms-data/variables/claim-next-generation-ng-accountable-care-organization-aco-indicator-code-5
type: VARCHAR(1)
- CLM_RSDL_PYMT_IND_CD:
description:
@@ -25764,6 +29350,7 @@ cms:
original_type: CHAR
text: Claim Residual Payment Indicator Code
width: 1.0
+ reference: https://resdac.org/cms-data/variables/claim-residual-payment-indicator-code
type: VARCHAR(1)
- CLM_RP_IND_CD:
description:
@@ -25771,6 +29358,7 @@ cms:
original_type: CHAR
text: Claim Representative Payee (RP) Indicator Code
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-claim-representative-payee-rp-indicator-code
type: VARCHAR(1)
- RC_RP_IND_CD:
description:
@@ -25778,6 +29366,7 @@ cms:
original_type: CHAR
text: Revenue Center Representative Payee (RP) Indicator Code
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-claim-representative-payee-rp-indicator-code
type: VARCHAR(1)
- ACO_ID_NUM:
description:
@@ -25785,6 +29374,7 @@ cms:
original_type: CHAR
text: Accountable Care Organization (ACO) Identification Number
width: 10.0
+ reference: https://resdac.org/cms-data/variables/claim-accountable-care-organization-aco-identification-number
type: VARCHAR(10)
- RC_ALLOGENEIC_STEM_CELL_AMT:
description:
@@ -25792,6 +29382,7 @@ cms:
original_type: NUM
text: Revenue Center Allogeneic Stem Cell Acquisition/Donor Services Amount
width: 10.0
+ reference: https://resdac.org/cms-data/variables/revenue-center-allogeneic-stem-cell-acquisitiondonor-services-amount
type: INT
- ISLET_ADD_ON_PYMT_AMT:
description:
@@ -25799,6 +29390,7 @@ cms:
original_type: NUM
text: Islet Add-On Payment Amount
width: 10.0
+ reference: https://resdac.org/cms-data/variables/islet-add-payment-amount
type: INT
- FILE:
description:
@@ -25807,6 +29399,7 @@ cms:
width: 128
index:
required_before_loading_data: true
+ reference: null
source:
type: file
type: VARCHAR(128)
@@ -25815,6 +29408,7 @@ cms:
original_type: BIGSERIAL
text: Record number in the file
width: null
+ reference: https://resdac.org/cms-data/variables/nch-near-line-record-identification-code-ric
type: BIGSERIAL
- STATE:
description:
@@ -25822,6 +29416,7 @@ cms:
text: SSA standard state code of a beneficiarys residence.
width: 2.0
index: true
+ reference: https://resdac.org/cms-data/variables/state-code-beneficiary-ssa-code
source:
code: GENERATED ALWAYS AS (STATE_CD) STORED
type: generated
@@ -25832,6 +29427,7 @@ cms:
text: Year of MedPAR Record
width: 4.0
index: true
+ reference: https://resdac.org/cms-data/variables/mbsf-cc-30/alzheimers-disease-end-year-indicator
source:
code: GENERATED ALWAYS AS (MEDPAR_YR_NUM) STORED
type: generated
@@ -25842,6 +29438,7 @@ cms:
text: Zip code of the mailing address where the beneficiary may be contacted.
width: 5.0
index: true
+ reference: https://resdac.org/cms-data/variables/zip-code-beneficiary
source:
code: GENERATED ALWAYS AS (BENE_ZIP) STORED
type: generated
@@ -25863,6 +29460,7 @@ cms:
text: Encrypted 723 Beneficiary ID
width: 15.0
index: true
+ reference: https://resdac.org/cms-data/variables/ccw-beneficiary-id
type: VARCHAR(15)
- MEDPARID:
description:
@@ -25870,6 +29468,7 @@ cms:
original_type: CHAR
text: Unique Key for CCW MedPAR Table
width: 15.0
+ reference: https://resdac.org/cms-data/variables/medpar-id-number
type: VARCHAR(15)
- MEDPAR_YR_NUM:
description:
@@ -25877,6 +29476,7 @@ cms:
original_type: CHAR
text: Year of MedPAR Record
width: 4.0
+ reference: https://resdac.org/cms-data/variables/year-medpar-record
type: VARCHAR(4)
- CLM_TYPE:
description:
@@ -25884,6 +29484,7 @@ cms:
original_type: CHAR
text: NCH Claim Type Code
width: 2.0
+ reference: https://resdac.org/cms-data/variables/nch-claim-type-code
type: VARCHAR(2)
- BIC:
description:
@@ -25891,6 +29492,7 @@ cms:
original_type: CHAR
text: BIC reported on first claim included in stay
width: 2.0
+ reference: https://resdac.org/cms-data/variables/bic-reported-first-claim-included-stay
type: VARCHAR(2)
- EQ_BIC:
description:
@@ -25898,6 +29500,7 @@ cms:
original_type: CHAR
text: Equated BIC
width: 2.0
+ reference: https://resdac.org/cms-data/variables/equated-bic
type: VARCHAR(2)
- AGE_CNT:
description:
@@ -25905,6 +29508,7 @@ cms:
original_type: NUM
text: Age as of Date of Admission.
width: 4.0
+ reference: https://resdac.org/cms-data/variables/age-date-admission
type: INT
- SEX:
description:
@@ -25912,6 +29516,7 @@ cms:
original_type: CHAR
text: Sex of Beneficiary
width: 1.0
+ reference: https://resdac.org/sites/datadocumentation.resdac.org/files/Introduction%20to%20DE-SynPUF%20%28Slides%29.pdf
type: VARCHAR(1)
- RACE:
description:
@@ -25919,6 +29524,7 @@ cms:
original_type: CHAR
text: Race of Beneficiary
width: 1.0
+ reference: https://resdac.org/cms-data/variables/beneficiary-race-code-base
type: VARCHAR(1)
- MS_CD:
description:
@@ -25926,6 +29532,7 @@ cms:
original_type: CHAR
text: Reason for entitlement to Medicare benefits as of CLM_THRU_DT
width: 2.0
+ reference: https://resdac.org/cms-data/variables/reason-entitlement-medicare-benefits-clmthrudt
type: VARCHAR(2)
- STATE_CD:
description:
@@ -25933,6 +29540,7 @@ cms:
original_type: CHAR
text: SSA standard state code of a beneficiarys residence.
width: 2.0
+ reference: https://resdac.org/cms-data/variables/state-code-beneficiary-ssa-code
type: VARCHAR(2)
- CNTY_CD:
description:
@@ -25940,6 +29548,7 @@ cms:
original_type: CHAR
text: SSA standard county code of a beneficiarys residence.
width: 3.0
+ reference: https://resdac.org/sites/datadocumentation.resdac.org/files/Introduction%20to%20DE-SynPUF%20%28Slides%29.pdf
type: VARCHAR(3)
- BENE_ZIP:
description:
@@ -25947,6 +29556,7 @@ cms:
original_type: CHAR
text: Zip code of the mailing address where the beneficiary may be contacted.
width: 5.0
+ reference: https://resdac.org/cms-data/variables/zip-code-beneficiary-home-or-mailing-address-latest-year
type: VARCHAR(5)
- DSCHRGCD:
description:
@@ -25954,6 +29564,7 @@ cms:
original_type: CHAR
text: Code identifying status of patient as of CLM_THRU_DT
width: 1.0
+ reference: https://resdac.org/cms-data/variables/code-identifying-status-patient-clmthrudt
type: VARCHAR(1)
- FICARR:
description:
@@ -25961,6 +29572,7 @@ cms:
original_type: CHAR
text: Intermediary processor identification
width: 5.0
+ reference: https://resdac.org/cms-data/variables/fiscal-intermediary-fi-id-number
type: VARCHAR(5)
- WRNGCD:
description:
@@ -25969,6 +29581,7 @@ cms:
text: Warn ind spcfyng dtld billing info obtnd frm clms analyzd for stay
prcss
width: 18.0
+ reference: https://resdac.org/cms-data/variables/warning-indicators-code-specifying-detailed-billing-info
type: VARCHAR(18)
- GHOPDCD:
description:
@@ -25976,6 +29589,7 @@ cms:
original_type: CHAR
text: Code indicating whether or not GHO has paid provider for claim(s)
width: 1.0
+ reference: https://resdac.org/cms-data/variables/code-indicating-whether-group-health-organization-gho-has-paid-provider-claims
type: VARCHAR(1)
- PPS_IND:
description:
@@ -25983,6 +29597,7 @@ cms:
original_type: CHAR
text: Code indicating whether or not facility is being paid under PPS
width: 1.0
+ reference: https://resdac.org/cms-data/variables/prospective-payment-system-pps-indicator-code
type: VARCHAR(1)
- ORGNPINM:
description:
@@ -25990,6 +29605,7 @@ cms:
original_type: CHAR
text: Organization NPI Number
width: 10.0
+ reference: https://resdac.org/cms-data/variables/organization-npi-number-ffs
type: VARCHAR(10)
- PRVDRNUM:
description:
@@ -25997,6 +29613,7 @@ cms:
original_type: CHAR
text: MEDPAR Provider Number
width: 10.0
+ reference: https://resdac.org/cms-data/variables/provider-number
type: VARCHAR(10)
- SPCLUNIT:
description:
@@ -26005,6 +29622,7 @@ cms:
text: Special num system code for hosp units that are PPS/SNF SB dsgntn
excl.
width: 1.0
+ reference: https://resdac.org/cms-data/variables/provider-number-special-unit-code
type: VARCHAR(1)
- SSLSSNF:
description:
@@ -26012,6 +29630,7 @@ cms:
original_type: CHAR
text: Code indicating whether stay is short stay, long stay, or SNF
width: 1.0
+ reference: https://resdac.org/cms-data/variables/short-staylong-staysnf-provider-indicator-code
type: VARCHAR(1)
- ACTV_XREF_IND:
description:
@@ -26019,6 +29638,7 @@ cms:
original_type: CHAR
text: Active Cross-Refference Indicator
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-active-cross-reference-indicator
type: VARCHAR(1)
- SLCT_RSN_CD:
description:
@@ -26026,6 +29646,7 @@ cms:
original_type: CHAR
text: Specifies whether this record is a case or control record.
width: 1.0
+ reference: https://resdac.org/cms-data/variables/specifies-whether-record-case-or-control-record
type: VARCHAR(1)
- FACLMCNT:
description:
@@ -26033,6 +29654,7 @@ cms:
original_type: NUM
text: Claims (final action) included in stay
width: 5.0
+ reference: https://resdac.org/cms-data/variables/number-claims-final-action-included-stay
type: INT
- ACRTNDT:
description:
@@ -26041,6 +29663,7 @@ cms:
text: Date latest claim incl in stay accreted to bene mstr rec at the
CWF host
width: 8.0
+ reference: https://resdac.org/cms-data/variables/latest-claim-accretion-date
type: DATE
- EXHST_DT:
description:
@@ -26048,6 +29671,7 @@ cms:
original_type: DATE
text: Last date beneficiary had Medicare coverage
width: 8.0
+ reference: https://resdac.org/cms-data/variables/beneficiary-medicare-benefit-exhausted-date
type: DATE
- QLFYFROM:
description:
@@ -26055,6 +29679,7 @@ cms:
original_type: DATE
text: Beginning date of beneficiarys qualifying stay
width: 8.0
+ reference: https://resdac.org/cms-data/variables/beginning-date-beneficiarys-qualifying-snf-stay
type: DATE
- QLFYTHRU:
description:
@@ -26062,6 +29687,7 @@ cms:
original_type: DATE
text: Ending date of beneficiarys qualifying stay
width: 8.0
+ reference: https://resdac.org/cms-data/variables/ending-date-beneficiarys-qualifying-snf-stay
type: DATE
- SRC_ADMS:
description:
@@ -26070,6 +29696,7 @@ cms:
text: Admssn to an Inp facility or, for newborn admssn, type of delivery
code
width: 1.0
+ reference: https://resdac.org/cms-data/variables/source-admission-inpatient-facility-newborn-admit-type-delivery-code
type: VARCHAR(1)
- TYPE_ADM:
description:
@@ -26078,6 +29705,7 @@ cms:
text: Type and priority of benes admission to facility for Inp hosp stay
code
width: 1.0
+ reference: https://resdac.org/cms-data/variables/inpatient-admission-type-code
type: VARCHAR(1)
- ADMSNDAY:
description:
@@ -26085,6 +29713,7 @@ cms:
original_type: CHAR
text: Code indicating day of week beneficiary was admitted to facility.
width: 1.0
+ reference: https://resdac.org/cms-data/variables/code-indicating-day-week-beneficiary-was-admitted-facility
type: VARCHAR(1)
- ADMSNDT:
description:
@@ -26092,6 +29721,7 @@ cms:
original_type: DATE
text: Date beneficiary admitted for Inpatient care or date care started
width: 8.0
+ reference: https://resdac.org/cms-data/variables/date-beneficiary-admitted-inpatient-care-or-date-care-started
type: DATE
- DSCHRGDT:
description:
@@ -26099,6 +29729,7 @@ cms:
original_type: DATE
text: Date beneficiary was discharged or died
width: 8.0
+ reference: https://resdac.org/cms-data/variables/discharge-date
type: DATE
- DSTNTNCD:
description:
@@ -26106,6 +29737,7 @@ cms:
original_type: CHAR
text: Destination upon discharge from facility code
width: 2.0
+ reference: https://resdac.org/cms-data/variables/medpar-discharge-destination-code
type: VARCHAR(2)
- CVRLVLDT:
description:
@@ -26113,6 +29745,7 @@ cms:
original_type: DATE
text: Date covered level of care ended in a SNF
width: 8.0
+ reference: null
type: DATE
- DEATHDT:
description:
@@ -26120,6 +29753,7 @@ cms:
original_type: DATE
text: Date beneficiary died
width: 8.0
+ reference: https://resdac.org/cms-data/variables/date-death
type: DATE
- DEATHCD:
description:
@@ -26127,6 +29761,7 @@ cms:
original_type: CHAR
text: Death Date Verification Code
width: 1.0
+ reference: https://resdac.org/cms-data/variables/death-date-verification-code
type: VARCHAR(1)
- DEATHDAY:
description:
@@ -26134,6 +29769,7 @@ cms:
original_type: NUM
text: Days from date admitted to facility to date of death
width: 7.0
+ reference: https://resdac.org/cms-data/variables/days-date-admitted-facility-date-death
type: INT
- SSICD:
description:
@@ -26141,6 +29777,7 @@ cms:
original_type: CHAR
text: MEDPAR Internal Use SSI Indicator Code
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-internal-use-ssi-indicator-code
type: VARCHAR(1)
- SSIDAY:
description:
@@ -26148,6 +29785,7 @@ cms:
original_type: NUM
text: MEDPAR Internal Use SSI Day Count
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-internal-use-ssi-day-count
type: INT
- INTRNL_USE_SSI_DATA:
description:
@@ -26155,6 +29793,7 @@ cms:
original_type: CHAR
text: Internal Use SSI Data
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-internal-use-ssi-data
type: VARCHAR(1)
- IPSBCD:
description:
@@ -26162,6 +29801,7 @@ cms:
original_type: CHAR
text: For internal Use Only. IPSB Code
width: 3.0
+ reference: https://resdac.org/cms-data/variables/medpar-internal-use-ipsb-code
type: VARCHAR(3)
- FILDTCD:
description:
@@ -26169,6 +29809,7 @@ cms:
original_type: CHAR
text: For internal use only. Fiscal year/calendar year segments.
width: 1.0
+ reference: https://resdac.org/cms-data/variables/internal-use-only-fiscal-yearcalendar-year-segments
type: VARCHAR(1)
- SMPLSIZE:
description:
@@ -26176,6 +29817,7 @@ cms:
original_type: CHAR
text: For internal use. MEDPAR sample size.
width: 1.0
+ reference: https://resdac.org/cms-data/variables/internal-use-medpar-sample-size
type: VARCHAR(1)
- LOSCNT:
description:
@@ -26183,6 +29825,7 @@ cms:
original_type: NUM
text: Days of beneficiarys stay in a hospital/SNF
width: 7.0
+ reference: https://resdac.org/cms-data/variables/days-beneficiarys-stay-hospitalsnf
type: INT
- OUTLRDAY:
description:
@@ -26191,6 +29834,7 @@ cms:
text: Days paid as outliers (either day or cost) under PPS beyond DRG
threshld
width: 5.0
+ reference: https://resdac.org/cms-data/variables/days-paid-outliers-either-day-or-cost-under-pps-beyond-drg-threshold
type: INT
- UTIL_DAY:
description:
@@ -26198,6 +29842,7 @@ cms:
original_type: NUM
text: Covered days of care chargeable to Medicare utilization for stay
width: 7.0
+ reference: https://resdac.org/cms-data/variables/covered-days-care-chargeable-medicare-utilization-stay
type: INT
- COIN_DAY:
description:
@@ -26205,6 +29850,7 @@ cms:
original_type: NUM
text: MEDPAR Beneficiary Total Coinsurance Day Count
width: 5.0
+ reference: https://resdac.org/cms-data/variables/medpar-beneficiary-total-coinsurance-day-count
type: INT
- LRD_USE:
description:
@@ -26212,6 +29858,7 @@ cms:
original_type: NUM
text: Lifetime reserve days (LRD) used by beneficiary for stay
width: 5.0
+ reference: https://resdac.org/cms-data/variables/lifetime-reserve-days-lrd-used-beneficiary-stay
type: INT
- COIN_AMT:
description:
@@ -26219,6 +29866,7 @@ cms:
original_type: NUM
text: Beneficiarys liability for part A coinsurance for stay ($)
width: 10.0
+ reference: https://resdac.org/cms-data/variables/beneficiarys-liability-part-coinsurance-stay
type: INT
- DED_AMT:
description:
@@ -26226,6 +29874,7 @@ cms:
original_type: NUM
text: Beneficiarys liability for stay ($)
width: 10.0
+ reference: https://resdac.org/cms-data/variables/beneficiarys-liability-deductible-stay
type: INT
- BLDDEDAM:
description:
@@ -26233,6 +29882,7 @@ cms:
original_type: NUM
text: Beneficiarys liability for blood deductible for stay ($)
width: 10.0
+ reference: https://resdac.org/cms-data/variables/beneficiarys-liability-blood-deductible-stay
type: INT
- PRPAY_CD:
description:
@@ -26240,6 +29890,7 @@ cms:
original_type: CHAR
text: Primary payer responsibility code
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-beneficiary-primary-payer-code
type: VARCHAR(1)
- PRPAYAMT:
description:
@@ -26248,6 +29899,7 @@ cms:
text: Primry payer other than Medicare for covered Medicare chrgs for
stay ($)
width: 10.0
+ reference: https://resdac.org/cms-data/variables/primary-payer-paid-amount
type: INT
- DRG_CD:
description:
@@ -26255,6 +29907,7 @@ cms:
original_type: CHAR
text: DRG Code
width: 3.0
+ reference: https://resdac.org/cms-data/variables/diagnosis-related-group-drg-code
type: VARCHAR(3)
- OUTLR_CD:
description:
@@ -26262,6 +29915,7 @@ cms:
original_type: CHAR
text: Cost or Day Outlier code
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-drgoutlier-stay-code
type: VARCHAR(1)
- OUTLRAMT:
description:
@@ -26270,6 +29924,7 @@ cms:
text: Addtnl approved due to outlier situation over DRG allowance for
stay ($)
width: 10.0
+ reference: https://resdac.org/cms-data/variables/drg-outlier-approved-payment-amount
type: INT
- DRGPRICE:
description:
@@ -26278,6 +29933,7 @@ cms:
text: Wld hv bn pd if no dedctbls,coinsrnc,prmry payrs,otlrs were invlvd
($)
width: 10.0
+ reference: https://resdac.org/cms-data/variables/drg-price-amount
type: INT
- DISP_SHR:
description:
@@ -26286,6 +29942,7 @@ cms:
text: Over the DRG amount for disproportionate share hospital for stay
($)
width: 10.0
+ reference: https://resdac.org/cms-data/variables/inpatient-disproportionate-share-dsh-amount
type: INT
- IME_AMT:
description:
@@ -26293,6 +29950,7 @@ cms:
original_type: NUM
text: Additional payment made to teaching hospitals for IME for stay ($)
width: 10.0
+ reference: https://resdac.org/cms-data/variables/indirect-medical-education-ime-amount
type: INT
- PASSTHRU:
description:
@@ -26300,6 +29958,7 @@ cms:
original_type: NUM
text: Total of all claim pass thru for stay ($)
width: 10.0
+ reference: https://resdac.org/cms-data/variables/pass-thru-diem-amount-stay
type: INT
- PPS_CPTL:
description:
@@ -26307,6 +29966,7 @@ cms:
original_type: NUM
text: Total payable for capital PPS ($)
width: 10.0
+ reference: https://resdac.org/cms-data/variables/total-pps-capital-amount
type: INT
- IP_LOW_VOL_PYMT_AMT:
description:
@@ -26314,6 +29974,7 @@ cms:
original_type: NUM
text: Inpatient Low Volume Payment Amount.
width: 10.0
+ reference: https://resdac.org/cms-data/variables/inpatient-low-volume-payment-amount
type: INT
- TOTCHRG:
description:
@@ -26322,6 +29983,7 @@ cms:
text: Total all charges for all srvcs provided to beneficiary for stay
($)
width: 10.0
+ reference: https://resdac.org/cms-data/variables/total-charge-amount
type: INT
- CVRCHRG:
description:
@@ -26329,6 +29991,7 @@ cms:
original_type: NUM
text: Portion of total charges covered by Medicare for stay ($)
width: 10.0
+ reference: https://resdac.org/cms-data/variables/total-covered-charge-amount
type: INT
- PMT_AMT:
description:
@@ -26337,6 +30000,7 @@ cms:
text: Amt of payment from Medicare trust fund for srvcs covered by claim
($)
width: 10.0
+ reference: https://resdac.org/cms-data/variables/total-medicare-payment-amount
type: INT
- ACMDTNS:
description:
@@ -26345,6 +30009,7 @@ cms:
text: Total charge for all accommodations related to beneficiarys stay
($)
width: 10.0
+ reference: https://resdac.org/cms-data/variables/total-charge-all-accommodations
type: INT
- DPRTMNTL:
description:
@@ -26353,6 +30018,7 @@ cms:
text: Total charge for all ancillary depts related to beneficiarys stay
($)
width: 10.0
+ reference: https://resdac.org/cms-data/variables/total-charge-all-ancillary-departments-related-beneficiarys-stay
type: INT
- PRVTDAY:
description:
@@ -26360,6 +30026,7 @@ cms:
original_type: NUM
text: Private room days used by beneficiary for stay
width: 5.0
+ reference: https://resdac.org/cms-data/variables/private-room-day-count
type: INT
- SPRVTDAY:
description:
@@ -26367,6 +30034,7 @@ cms:
original_type: NUM
text: Semi-private room days used by beneficiary for stay
width: 5.0
+ reference: https://resdac.org/cms-data/variables/semi-private-room-day-count
type: INT
- WARDDAY:
description:
@@ -26374,6 +30042,7 @@ cms:
original_type: NUM
text: Ward days used by beneficiary for stay
width: 5.0
+ reference: https://resdac.org/cms-data/variables/ward-day-count
type: INT
- ICARECNT:
description:
@@ -26381,6 +30050,7 @@ cms:
original_type: NUM
text: Intensive care days used by beneficiary for stay
width: 5.0
+ reference: https://resdac.org/cms-data/variables/intensive-care-day-count
type: INT
- CRNRYDAY:
description:
@@ -26388,6 +30058,7 @@ cms:
original_type: NUM
text: Coronary care days used by beneficiary for stay
width: 5.0
+ reference: https://resdac.org/cms-data/variables/coronary-care-day-count
type: INT
- PRVTAMT:
description:
@@ -26395,6 +30066,7 @@ cms:
original_type: NUM
text: Private room accommodations related to beneficiarys stay ($)
width: 10.0
+ reference: https://resdac.org/cms-data/variables/private-room-charge-amount
type: INT
- SPRVTAMT:
description:
@@ -26402,6 +30074,7 @@ cms:
original_type: NUM
text: Semi-private room accommodations related to beneficiarys stay ($)
width: 10.0
+ reference: https://resdac.org/cms-data/variables/semi-private-room-charge-amount
type: INT
- WARDAMT:
description:
@@ -26409,6 +30082,7 @@ cms:
original_type: NUM
text: Ward accommodations related to beneficiarys stay ($)
width: 10.0
+ reference: https://resdac.org/cms-data/variables/ward-charge-amount
type: INT
- ICAREAMT:
description:
@@ -26416,6 +30090,7 @@ cms:
original_type: NUM
text: Intensive care accommodations related to beneficiarys stay ($)
width: 10.0
+ reference: https://resdac.org/cms-data/variables/intensive-care-charge-amount
type: INT
- CRNRYAMT:
description:
@@ -26423,6 +30098,7 @@ cms:
original_type: NUM
text: Coronary care accommodations related to beneficiarys stay ($)
width: 10.0
+ reference: https://resdac.org/cms-data/variables/coronary-care-charge-amount
type: INT
- OTHRAMT:
description:
@@ -26430,6 +30106,7 @@ cms:
original_type: NUM
text: Other services related to beneficiarys stay ($)
width: 10.0
+ reference: https://resdac.org/cms-data/variables/other-service-charge-amount
type: INT
- PHRMCAMT:
description:
@@ -26437,6 +30114,7 @@ cms:
original_type: NUM
text: Pharmaceutical costs related to beneficiarys stay ($)
width: 10.0
+ reference: https://resdac.org/cms-data/variables/pharmacy-charge-amount
type: INT
- SUPLYAMT:
description:
@@ -26444,6 +30122,7 @@ cms:
original_type: NUM
text: Medical/surgical supplies related to beneficiarys stay ($)
width: 10.0
+ reference: https://resdac.org/cms-data/variables/medicalsurgical-supplies-charge-amount
type: INT
- DME_AMT:
description:
@@ -26451,6 +30130,7 @@ cms:
original_type: NUM
text: DME related to beneficiarys stay ($)
width: 10.0
+ reference: https://resdac.org/cms-data/variables/durable-medical-equipment-dme-charge-amount
type: INT
- UDME_AMT:
description:
@@ -26458,6 +30138,7 @@ cms:
original_type: NUM
text: Used DME related to beneficiarys stay ($)
width: 10.0
+ reference: https://resdac.org/cms-data/variables/used-durable-medical-equipment-dme-charge-amount
type: INT
- PHYTHAMT:
description:
@@ -26465,6 +30146,7 @@ cms:
original_type: NUM
text: Physical therapy services provided during beneficiarys stay ($)
width: 10.0
+ reference: https://resdac.org/cms-data/variables/physical-therapy-charge-amount
type: INT
- OCPTLAMT:
description:
@@ -26473,6 +30155,7 @@ cms:
text: Occupational therapy services provided during beneficiarys stay
($)
width: 10.0
+ reference: https://resdac.org/cms-data/variables/occupational-therapy-charge-amount
type: INT
- SPCH_AMT:
description:
@@ -26480,6 +30163,7 @@ cms:
original_type: NUM
text: Speech pathology services provided during beneficiarys stay ($)
width: 10.0
+ reference: https://resdac.org/cms-data/variables/speech-pathology-charge-amount
type: INT
- INHLTAMT:
description:
@@ -26487,6 +30171,7 @@ cms:
original_type: NUM
text: Inhalation therapy services provided during beneficiarys stay ($)
width: 10.0
+ reference: https://resdac.org/cms-data/variables/inhalation-therapy-charge-amount
type: INT
- BLOODAMT:
description:
@@ -26494,6 +30179,7 @@ cms:
original_type: NUM
text: Blood provided during beneficiarys stay ($)
width: 10.0
+ reference: https://resdac.org/cms-data/variables/blood-charge-amount
type: INT
- BLDADMIN:
description:
@@ -26501,6 +30187,7 @@ cms:
original_type: NUM
text: Blood storage and processing related to beneficiarys stay ($)
width: 10.0
+ reference: https://resdac.org/cms-data/variables/blood-storage-and-processing-charge-amount
type: INT
- BLDFRNSH:
description:
@@ -26509,6 +30196,7 @@ cms:
text: Quantity of blood (whole pints) furnished to beneficiary during
stay
width: 5.0
+ reference: https://resdac.org/cms-data/variables/blood-pints-furnished-quantity
type: INT
- OROOMAMT:
description:
@@ -26517,6 +30205,7 @@ cms:
text: OR, recovery rm, and labor rm delivery used by bene during stay
($)
width: 10.0
+ reference: https://resdac.org/cms-data/variables/operating-room-charge-amount
type: INT
- LTHTRPSY:
description:
@@ -26524,6 +30213,7 @@ cms:
original_type: NUM
text: Lithotripsy services provided during beneficiarys stay ($)
width: 10.0
+ reference: https://resdac.org/cms-data/variables/lithotripsy-charge-amount
type: INT
- CRDLGY:
description:
@@ -26532,6 +30222,7 @@ cms:
text: Cardiology services and ECG(s) provided during beneficiarys stay
($)
width: 10.0
+ reference: https://resdac.org/cms-data/variables/cardiology-charge-amount
type: INT
- ANSTHSA:
description:
@@ -26539,6 +30230,7 @@ cms:
original_type: NUM
text: Anesthesia services provided during beneficiarys stay ($)
width: 10.0
+ reference: https://resdac.org/cms-data/variables/anesthesia-charge-amount
type: INT
- LAB_AMT:
description:
@@ -26546,6 +30238,7 @@ cms:
original_type: NUM
text: Laboratory costs related to beneficiarys stay ($)
width: 10.0
+ reference: https://resdac.org/cms-data/variables/laboratory-charge-amount
type: INT
- RDLGYAMT:
description:
@@ -26553,6 +30246,7 @@ cms:
original_type: NUM
text: Radiology costs (excluding MRI) related to a beneficiarys stay ($)
width: 10.0
+ reference: https://resdac.org/cms-data/variables/radiology-charge-amount-excluding-mri
type: INT
- MRI_AMT:
description:
@@ -26560,6 +30254,7 @@ cms:
original_type: NUM
text: MRI services provided during beneficiarys stay ($)
width: 10.0
+ reference: https://resdac.org/cms-data/variables/magnetic-resonance-imaging-mri-charge-amount
type: INT
- OPSRVC:
description:
@@ -26567,6 +30262,7 @@ cms:
original_type: NUM
text: Outpatient services provided during beneficiarys stay ($)
width: 10.0
+ reference: https://resdac.org/cms-data/variables/outpatient-service-charge-amount
type: INT
- ER_AMT:
description:
@@ -26574,6 +30270,7 @@ cms:
original_type: NUM
text: Emergency room services provided during beneficiarys stay ($)
width: 10.0
+ reference: https://resdac.org/cms-data/variables/emergency-room-er-charge-amount
type: INT
- AMBLNC:
description:
@@ -26581,6 +30278,7 @@ cms:
original_type: NUM
text: Ambulance services related to beneficiarys stay ($)
width: 10.0
+ reference: https://resdac.org/cms-data/variables/ambulance-charge-amount
type: INT
- PROFFEES:
description:
@@ -26588,6 +30286,7 @@ cms:
original_type: NUM
text: Professional fees related to beneficiarys stay ($)
width: 10.0
+ reference: https://resdac.org/cms-data/variables/professional-fees-charge-amount
type: INT
- ORGNAMT:
description:
@@ -26596,6 +30295,7 @@ cms:
text: Organ acquisition or oth donor bank srvcs related to benes stay
($)
width: 10.0
+ reference: https://resdac.org/cms-data/variables/organ-acquisition-or-other-donor-bank-charge-amount
type: INT
- ESRDSETG:
description:
@@ -26603,6 +30303,7 @@ cms:
original_type: NUM
text: ESRD services related to beneficiarys stay ($)
width: 10.0
+ reference: https://resdac.org/cms-data/variables/end-stage-renal-disease-esrd-charge-amount
type: INT
- CLNC_AMT:
description:
@@ -26610,6 +30311,7 @@ cms:
original_type: NUM
text: Clinic visits related to beneficiarys stay ($)
width: 10.0
+ reference: https://resdac.org/cms-data/variables/clinic-visit-charge-amount
type: INT
- ICUINDCD:
description:
@@ -26617,6 +30319,7 @@ cms:
original_type: CHAR
text: ICU type code
width: 1.0
+ reference: https://resdac.org/cms-data/variables/intensive-care-unit-icu-indicator-code
type: VARCHAR(1)
- CRNRY_CD:
description:
@@ -26624,6 +30327,7 @@ cms:
original_type: CHAR
text: Coronary care unit type code
width: 1.0
+ reference: https://resdac.org/cms-data/variables/coronary-care-unit-ccu-indicator-code
type: VARCHAR(1)
- PHRMCYCD:
description:
@@ -26631,6 +30335,7 @@ cms:
original_type: CHAR
text: Drugs type code
width: 1.0
+ reference: https://resdac.org/cms-data/variables/pharmacy-indicator-code
type: VARCHAR(1)
- TRNSPLNT:
description:
@@ -26638,6 +30343,7 @@ cms:
original_type: CHAR
text: Organ transplant code
width: 1.0
+ reference: https://resdac.org/cms-data/variables/organ-transplant-indicator-code
type: VARCHAR(1)
- ONCLGYSW:
description:
@@ -26645,6 +30351,7 @@ cms:
original_type: CHAR
text: Radiology oncology services indicator
width: 1.0
+ reference: https://resdac.org/cms-data/variables/oncology-indicator
type: VARCHAR(1)
- DGNSTCSW:
description:
@@ -26652,6 +30359,7 @@ cms:
original_type: CHAR
text: Radiology diagnostic services indicator
width: 1.0
+ reference: https://resdac.org/cms-data/variables/diagnostic-radiology-indicator
type: VARCHAR(1)
- THRPTCSW:
description:
@@ -26659,6 +30367,7 @@ cms:
original_type: CHAR
text: Radiology therapeutic services indicator
width: 1.0
+ reference: https://resdac.org/cms-data/variables/therapeutic-radiology-indicator
type: VARCHAR(1)
- NUCLR_SW:
description:
@@ -26666,6 +30375,7 @@ cms:
original_type: CHAR
text: Radiology nuclear medicine services indicator
width: 1.0
+ reference: https://resdac.org/cms-data/variables/radiology-nuclear-medicine-indicator
type: VARCHAR(1)
- CTSCANSW:
description:
@@ -26673,6 +30383,7 @@ cms:
original_type: CHAR
text: Radiology computed tomographic (CT) scan services indicator
width: 1.0
+ reference: https://resdac.org/cms-data/variables/radiology-computed-tomographic-ct-scan-indicator
type: VARCHAR(1)
- IMGNG_SW:
description:
@@ -26680,6 +30391,7 @@ cms:
original_type: CHAR
text: Radiology other imaging services indicator
width: 1.0
+ reference: https://resdac.org/cms-data/variables/radiology-other-imaging-indicator
type: VARCHAR(1)
- OPSRVCCD:
description:
@@ -26687,6 +30399,7 @@ cms:
original_type: CHAR
text: Outpatient services/ambulatory surgical care code
width: 1.0
+ reference: https://resdac.org/cms-data/variables/outpatient-servicesambulatory-surgical-care-indicator-code
type: VARCHAR(1)
- ORGNCD:
description:
@@ -26694,6 +30407,7 @@ cms:
original_type: CHAR
text: Organ acquisition type code
width: 2.0
+ reference: https://resdac.org/cms-data/variables/organ-acquisition-type-code
type: VARCHAR(2)
- ESRD_CD:
description:
@@ -26701,6 +30415,7 @@ cms:
original_type: CHAR
text: ESRD condition code
width: 2.0
+ reference: https://resdac.org/cms-data/variables/end-stage-renal-disease-esrd-condition-indicator-code
type: VARCHAR(2)
- ESRDSTG1:
description:
@@ -26708,6 +30423,7 @@ cms:
original_type: CHAR
text: Dialysis type code I
width: 2.0
+ reference: https://resdac.org/cms-data/variables/dialysis-service-type-code-1
type: VARCHAR(2)
- ESRDSTG2:
description:
@@ -26715,6 +30431,7 @@ cms:
original_type: CHAR
text: Dialysis type code II
width: 2.0
+ reference: https://resdac.org/cms-data/variables/dialysis-service-type-code-2
type: VARCHAR(2)
- ESRDSTG3:
description:
@@ -26722,6 +30439,7 @@ cms:
original_type: CHAR
text: Dialysis type code III
width: 2.0
+ reference: https://resdac.org/cms-data/variables/dialysis-service-type-code-3
type: VARCHAR(2)
- ESRDSTG4:
description:
@@ -26729,6 +30447,7 @@ cms:
original_type: CHAR
text: Dialysis type code IV
width: 2.0
+ reference: https://resdac.org/cms-data/variables/dialysis-service-type-code-4
type: VARCHAR(2)
- ESRDSTG5:
description:
@@ -26736,6 +30455,7 @@ cms:
original_type: CHAR
text: Dialysis type code V
width: 2.0
+ reference: https://resdac.org/cms-data/variables/dialysis-service-type-code-5
type: VARCHAR(2)
- AD_DGNS:
description:
@@ -26743,6 +30463,7 @@ cms:
original_type: CHAR
text: Initial diagnosis at time of admission
width: 7.0
+ reference: https://resdac.org/cms-data/variables/admitting-diagnosis-code
type: VARCHAR(7)
- ADMTG_DGNS_VRSN_CD:
description:
@@ -26750,6 +30471,7 @@ cms:
original_type: CHAR
text: MEDPAR Admitting Diagnosis Version Code
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-admitting-diagnosis-version-code-icd-9-or-icd-10
type: VARCHAR(1)
- DGNSCNT:
description:
@@ -26757,6 +30479,7 @@ cms:
original_type: NUM
text: Diagnosis codes included in stay
width: 3.0
+ reference: https://resdac.org/cms-data/variables/count-diagnosis-codes
type: INT
- DGNS_VRSN_CD:
description:
@@ -26765,6 +30488,7 @@ cms:
text: Version Code - Indicate if diagnosis code is ICD-9 or ICD-10 (Earlier
Version)
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-version-code-icd-9-or-icd-10
type: VARCHAR(1)
- DGNS_VRSN_CD_1:
description:
@@ -26772,6 +30496,7 @@ cms:
original_type: CHAR
text: Version Code 01 - Indicate if diagnosis code is ICD-9 or ICD-10.
width: 1.0
+ reference: https://resdac.org/cms-data/variables/diagnosis-version-code-1-icd-9-or-icd-10
type: VARCHAR(1)
- DGNS_VRSN_CD_2:
description:
@@ -26779,6 +30504,7 @@ cms:
original_type: CHAR
text: Version Code 02 - Indicate if diagnosis code is ICD-9 or ICD-10.
width: 1.0
+ reference: https://resdac.org/cms-data/variables/diagnosis-version-code-2-icd-9-or-icd-10
type: VARCHAR(1)
- DGNS_VRSN_CD_3:
description:
@@ -26786,6 +30512,7 @@ cms:
original_type: CHAR
text: Version Code 03 - Indicate if diagnosis code is ICD-9 or ICD-10.
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-version-code-3-icd-9-or-icd-10
type: VARCHAR(1)
- DGNS_VRSN_CD_4:
description:
@@ -26793,6 +30520,7 @@ cms:
original_type: CHAR
text: Version Code 04 - Indicate if diagnosis code is ICD-9 or ICD-10.
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-version-code-4-icd-9-or-icd-10
type: VARCHAR(1)
- DGNS_VRSN_CD_5:
description:
@@ -26800,6 +30528,7 @@ cms:
original_type: CHAR
text: Version Code 05 - Indicate if diagnosis code is ICD-9 or ICD-10.
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-version-code-5-icd-9-or-icd-10
type: VARCHAR(1)
- DGNS_VRSN_CD_6:
description:
@@ -26807,6 +30536,7 @@ cms:
original_type: CHAR
text: Version Code 06 - Indicate if diagnosis code is ICD-9 or ICD-10.
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-version-code-6-icd-9-or-icd-10
type: VARCHAR(1)
- DGNS_VRSN_CD_7:
description:
@@ -26814,6 +30544,7 @@ cms:
original_type: CHAR
text: Version Code 07 - Indicate if diagnosis code is ICD-9 or ICD-10.
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-version-code-7-icd-9-or-icd-10
type: VARCHAR(1)
- DGNS_VRSN_CD_8:
description:
@@ -26821,6 +30552,7 @@ cms:
original_type: CHAR
text: Version Code 08 - Indicate if diagnosis code is ICD-9 or ICD-10.
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-version-code-8-icd-9-or-icd-10
type: VARCHAR(1)
- DGNS_VRSN_CD_9:
description:
@@ -26828,6 +30560,7 @@ cms:
original_type: CHAR
text: Version Code 09 - Indicate if diagnosis code is ICD-9 or ICD-10.
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-version-code-9-icd-9-or-icd-10
type: VARCHAR(1)
- DGNS_VRSN_CD_10:
description:
@@ -26835,6 +30568,7 @@ cms:
original_type: CHAR
text: Version Code 10 - Indicate if diagnosis code is ICD-9 or ICD-10.
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-version-code-10-icd-9-or-icd-10
type: VARCHAR(1)
- DGNS_VRSN_CD_11:
description:
@@ -26842,6 +30576,7 @@ cms:
original_type: CHAR
text: Version Code 11 - Indicate if diagnosis code is ICD-9 or ICD-10.
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-version-code-11-icd-9-or-icd-10
type: VARCHAR(1)
- DGNS_VRSN_CD_12:
description:
@@ -26849,6 +30584,7 @@ cms:
original_type: CHAR
text: Version Code 12 - Indicate if diagnosis code is ICD-9 or ICD-10.
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-version-code-12-icd-9-or-icd-10
type: VARCHAR(1)
- DGNS_VRSN_CD_13:
description:
@@ -26856,6 +30592,7 @@ cms:
original_type: CHAR
text: Version Code 13 - Indicate if diagnosis code is ICD-9 or ICD-10.
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-version-code-13-icd-9-or-icd-10
type: VARCHAR(1)
- DGNS_VRSN_CD_14:
description:
@@ -26863,6 +30600,7 @@ cms:
original_type: CHAR
text: Version Code 14 - Indicate if diagnosis code is ICD-9 or ICD-10.
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-version-code-14-icd-9-or-icd-10
type: VARCHAR(1)
- DGNS_VRSN_CD_15:
description:
@@ -26870,6 +30608,7 @@ cms:
original_type: CHAR
text: Version Code 15 - Indicate if diagnosis code is ICD-9 or ICD-10.
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-version-code-15-icd-9-or-icd-10
type: VARCHAR(1)
- DGNS_VRSN_CD_16:
description:
@@ -26877,6 +30616,7 @@ cms:
original_type: CHAR
text: Version Code 16 - Indicate if diagnosis code is ICD-9 or ICD-10.
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-version-code-16-icd-9-or-icd-10
type: VARCHAR(1)
- DGNS_VRSN_CD_17:
description:
@@ -26884,6 +30624,7 @@ cms:
original_type: CHAR
text: Version Code 17 - Indicate if diagnosis code is ICD-9 or ICD-10.
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-version-code-17-icd-9-or-icd-10
type: VARCHAR(1)
- DGNS_VRSN_CD_18:
description:
@@ -26891,6 +30632,7 @@ cms:
original_type: CHAR
text: Version Code 18 - Indicate if diagnosis code is ICD-9 or ICD-10.
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-version-code-18-icd-9-or-icd-10
type: VARCHAR(1)
- DGNS_VRSN_CD_19:
description:
@@ -26898,6 +30640,7 @@ cms:
original_type: CHAR
text: Version Code 19 - Indicate if diagnosis code is ICD-9 or ICD-10.
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-version-code-19-icd-9-or-icd-10
type: VARCHAR(1)
- DGNS_VRSN_CD_20:
description:
@@ -26905,6 +30648,7 @@ cms:
original_type: CHAR
text: Version Code 20 - Indicate if diagnosis code is ICD-9 or ICD-10.
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-version-code-20-icd-9-or-icd-10
type: VARCHAR(1)
- DGNS_VRSN_CD_21:
description:
@@ -26912,6 +30656,7 @@ cms:
original_type: CHAR
text: Version Code 21 - Indicate if diagnosis code is ICD-9 or ICD-10.
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-version-code-21-icd-9-or-icd-10
type: VARCHAR(1)
- DGNS_VRSN_CD_22:
description:
@@ -26919,6 +30664,7 @@ cms:
original_type: CHAR
text: Version Code 22 - Indicate if diagnosis code is ICD-9 or ICD-10.
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-version-code-22-icd-9-or-icd-10
type: VARCHAR(1)
- DGNS_VRSN_CD_23:
description:
@@ -26926,6 +30672,7 @@ cms:
original_type: CHAR
text: Version Code 23 - Indicate if diagnosis code is ICD-9 or ICD-10.
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-version-code-23-icd-9-or-icd-10
type: VARCHAR(1)
- DGNS_VRSN_CD_24:
description:
@@ -26933,6 +30680,7 @@ cms:
original_type: CHAR
text: Version Code 24 - Indicate if diagnosis code is ICD-9 or ICD-10.
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-version-code-24-icd-9-or-icd-10
type: VARCHAR(1)
- DGNS_VRSN_CD_25:
description:
@@ -26940,6 +30688,7 @@ cms:
original_type: CHAR
text: Version Code 25 - Indicate if diagnosis code is ICD-9 or ICD-10.
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-version-code-25-icd-9-or-icd-10
type: VARCHAR(1)
- DGNSCD1:
description:
@@ -26947,6 +30696,7 @@ cms:
original_type: CHAR
text: Primary ICD-9-CM code
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-principal-diagnosis-code
type: VARCHAR(7)
- DGNSCD2:
description:
@@ -26954,6 +30704,7 @@ cms:
original_type: CHAR
text: ICD-9-CM Diagnosis code II
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-code-2
type: VARCHAR(7)
- DGNSCD3:
description:
@@ -26961,6 +30712,7 @@ cms:
original_type: CHAR
text: ICD-9-CM Diagnosis code III
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-code-3
type: VARCHAR(7)
- DGNSCD4:
description:
@@ -26968,6 +30720,7 @@ cms:
original_type: CHAR
text: ICD-9-CM Diagnosis code IV
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-code-4
type: VARCHAR(7)
- DGNSCD5:
description:
@@ -26975,6 +30728,7 @@ cms:
original_type: CHAR
text: ICD-9-CM Diagnosis code V
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-code-5
type: VARCHAR(7)
- DGNSCD6:
description:
@@ -26982,6 +30736,7 @@ cms:
original_type: CHAR
text: ICD-9-CM Diagnosis code VI
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-code-6
type: VARCHAR(7)
- DGNSCD7:
description:
@@ -26989,6 +30744,7 @@ cms:
original_type: CHAR
text: ICD-9-CM Diagnosis code VII
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-code-7
type: VARCHAR(7)
- DGNSCD8:
description:
@@ -26996,6 +30752,7 @@ cms:
original_type: CHAR
text: ICD-9-CM Diagnosis code VIII
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-code-8
type: VARCHAR(7)
- DGNSCD9:
description:
@@ -27003,6 +30760,7 @@ cms:
original_type: CHAR
text: ICD-9-CM Diagnosis code IX
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-code-9
type: VARCHAR(7)
- DGNSCD10:
description:
@@ -27010,6 +30768,7 @@ cms:
original_type: CHAR
text: ICD-9-CM Diagnosis code X
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-icd-9-cm-diagnosis-code-10
type: VARCHAR(7)
- DGNSCD11:
description:
@@ -27017,6 +30776,7 @@ cms:
original_type: CHAR
text: ICD-9-CM Diagnosis code XI
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-icd-9-cm-diagnosis-code-11
type: VARCHAR(7)
- DGNSCD12:
description:
@@ -27024,6 +30784,7 @@ cms:
original_type: CHAR
text: ICD-9-CM Diagnosis code XII
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-icd-9-cm-diagnosis-code-12
type: VARCHAR(7)
- DGNSCD13:
description:
@@ -27031,6 +30792,7 @@ cms:
original_type: CHAR
text: ICD-9-CM Diagnosis code XIII
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-icd-9-cm-diagnosis-code-13
type: VARCHAR(7)
- DGNSCD14:
description:
@@ -27038,6 +30800,7 @@ cms:
original_type: CHAR
text: ICD-9-CM Diagnosis code XIV
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-icd-9-cm-diagnosis-code-14
type: VARCHAR(7)
- DGNSCD15:
description:
@@ -27045,6 +30808,7 @@ cms:
original_type: CHAR
text: ICD-9-CM Diagnosis code XV
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-icd-9-cm-diagnosis-code-15
type: VARCHAR(7)
- DGNSCD16:
description:
@@ -27052,6 +30816,7 @@ cms:
original_type: CHAR
text: ICD-9-CM Diagnosis code XVI
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-icd-9-cm-diagnosis-code-16
type: VARCHAR(7)
- DGNSCD17:
description:
@@ -27059,6 +30824,7 @@ cms:
original_type: CHAR
text: ICD-9-CM Diagnosis code XVII
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-icd-9-cm-diagnosis-code-17
type: VARCHAR(7)
- DGNSCD18:
description:
@@ -27066,6 +30832,7 @@ cms:
original_type: CHAR
text: ICD-9-CM Diagnosis code XVIII
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-icd-9-cm-diagnosis-code-18
type: VARCHAR(7)
- DGNSCD19:
description:
@@ -27073,6 +30840,7 @@ cms:
original_type: CHAR
text: ICD-9-CM Diagnosis code XIX
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-icd-9-cm-diagnosis-code-19
type: VARCHAR(7)
- DGNSCD20:
description:
@@ -27080,6 +30848,7 @@ cms:
original_type: CHAR
text: ICD-9-CM Diagnosis code XX
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-icd-9-cm-diagnosis-code-20
type: VARCHAR(7)
- DGNSCD21:
description:
@@ -27087,6 +30856,7 @@ cms:
original_type: CHAR
text: ICD-9-CM Diagnosis code XXI
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-icd-9-cm-diagnosis-code-21
type: VARCHAR(7)
- DGNSCD22:
description:
@@ -27094,6 +30864,7 @@ cms:
original_type: CHAR
text: ICD-9-CM Diagnosis code XXII
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-icd-9-cm-diagnosis-code-22
type: VARCHAR(7)
- DGNSCD23:
description:
@@ -27101,6 +30872,7 @@ cms:
original_type: CHAR
text: ICD-9-CM Diagnosis code XXIII
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-icd-9-cm-diagnosis-code-23
type: VARCHAR(7)
- DGNSCD24:
description:
@@ -27108,6 +30880,7 @@ cms:
original_type: CHAR
text: ICD-9-CM Diagnosis code XXIV
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-icd-9-cm-diagnosis-code-24
type: VARCHAR(7)
- DGNSCD25:
description:
@@ -27115,6 +30888,7 @@ cms:
original_type: CHAR
text: ICD-9-CM Diagnosis code XXV
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-icd-9-cm-diagnosis-code-25
type: VARCHAR(7)
- DGNS_POA:
description:
@@ -27122,6 +30896,7 @@ cms:
original_type: CHAR
text: Diagnosis Code POA Array
width: 10.0
+ reference: https://resdac.org/cms-data/variables/diagnosis-code-poa-array
type: VARCHAR(10)
- POA_DGNS_CD_CNT:
description:
@@ -27129,6 +30904,7 @@ cms:
original_type: NUM
text: MEDPAR Claim Present on Admission Diagnosis Code Count
width: 3.0
+ reference: https://resdac.org/cms-data/variables/count-present-admission-poa-diagnosis-codes
type: INT
- POA_DGNS_1_IND_CD:
description:
@@ -27136,6 +30912,7 @@ cms:
original_type: CHAR
text: Diagnosis Present on Admission Indicator 1
width: 1.0
+ reference: https://resdac.org/cms-data/variables/diagnosis-1-present-admission-poa-indicator-code
type: VARCHAR(1)
- POA_DGNS_2_IND_CD:
description:
@@ -27143,6 +30920,7 @@ cms:
original_type: CHAR
text: Diagnosis Present on Admission Indicator 2
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-present-admission-indicator-2
type: VARCHAR(1)
- POA_DGNS_3_IND_CD:
description:
@@ -27150,6 +30928,7 @@ cms:
original_type: CHAR
text: Diagnosis Present on Admission Indicator 3
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-present-admission-indicator-3
type: VARCHAR(1)
- POA_DGNS_4_IND_CD:
description:
@@ -27157,6 +30936,7 @@ cms:
original_type: CHAR
text: Diagnosis Present on Admission Indicator 4
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-present-admission-indicator-4
type: VARCHAR(1)
- POA_DGNS_5_IND_CD:
description:
@@ -27164,6 +30944,7 @@ cms:
original_type: CHAR
text: Diagnosis Present on Admission Indicator 5
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-present-admission-indicator-5
type: VARCHAR(1)
- POA_DGNS_6_IND_CD:
description:
@@ -27171,6 +30952,7 @@ cms:
original_type: CHAR
text: Diagnosis Present on Admission Indicator 6
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-present-admission-indicator-6
type: VARCHAR(1)
- POA_DGNS_7_IND_CD:
description:
@@ -27178,6 +30960,7 @@ cms:
original_type: CHAR
text: Diagnosis Present on Admission Indicator 7
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-present-admission-indicator-7
type: VARCHAR(1)
- POA_DGNS_8_IND_CD:
description:
@@ -27185,6 +30968,7 @@ cms:
original_type: CHAR
text: Diagnosis Present on Admission Indicator 8
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-present-admission-indicator-8
type: VARCHAR(1)
- POA_DGNS_9_IND_CD:
description:
@@ -27192,6 +30976,7 @@ cms:
original_type: CHAR
text: Diagnosis Present on Admission Indicator 9
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-present-admission-indicator-9
type: VARCHAR(1)
- POA_DGNS_10_IND_CD:
description:
@@ -27199,6 +30984,7 @@ cms:
original_type: CHAR
text: Diagnosis Present on Admission Indicator 10
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-present-admission-indicator-10
type: VARCHAR(1)
- POA_DGNS_11_IND_CD:
description:
@@ -27206,6 +30992,7 @@ cms:
original_type: CHAR
text: Diagnosis Present on Admission Indicator 11
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-present-admission-indicator-11
type: VARCHAR(1)
- POA_DGNS_12_IND_CD:
description:
@@ -27213,6 +31000,7 @@ cms:
original_type: CHAR
text: Diagnosis Present on Admission Indicator 12
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-present-admission-indicator-12
type: VARCHAR(1)
- POA_DGNS_13_IND_CD:
description:
@@ -27220,6 +31008,7 @@ cms:
original_type: CHAR
text: Diagnosis Present on Admission Indicator 13
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-present-admission-indicator-13
type: VARCHAR(1)
- POA_DGNS_14_IND_CD:
description:
@@ -27227,6 +31016,7 @@ cms:
original_type: CHAR
text: Diagnosis Present on Admission Indicator 14
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-present-admission-indicator-14
type: VARCHAR(1)
- POA_DGNS_15_IND_CD:
description:
@@ -27234,6 +31024,7 @@ cms:
original_type: CHAR
text: Diagnosis Present on Admission Indicator 15
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-present-admission-indicator-15
type: VARCHAR(1)
- POA_DGNS_16_IND_CD:
description:
@@ -27241,6 +31032,7 @@ cms:
original_type: CHAR
text: Diagnosis Present on Admission Indicator 16
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-present-admission-indicator-16
type: VARCHAR(1)
- POA_DGNS_17_IND_CD:
description:
@@ -27248,6 +31040,7 @@ cms:
original_type: CHAR
text: Diagnosis Present on Admission Indicator 17
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-present-admission-indicator-17
type: VARCHAR(1)
- POA_DGNS_18_IND_CD:
description:
@@ -27255,6 +31048,7 @@ cms:
original_type: CHAR
text: Diagnosis Present on Admission Indicator 18
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-present-admission-indicator-18
type: VARCHAR(1)
- POA_DGNS_19_IND_CD:
description:
@@ -27262,6 +31056,7 @@ cms:
original_type: CHAR
text: Diagnosis Present on Admission Indicator 19
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-present-admission-indicator-19
type: VARCHAR(1)
- POA_DGNS_20_IND_CD:
description:
@@ -27269,6 +31064,7 @@ cms:
original_type: CHAR
text: Diagnosis Present on Admission Indicator 20
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-present-admission-indicator-20
type: VARCHAR(1)
- POA_DGNS_21_IND_CD:
description:
@@ -27276,6 +31072,7 @@ cms:
original_type: CHAR
text: Diagnosis Present on Admission Indicator 21
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-present-admission-indicator-21
type: VARCHAR(1)
- POA_DGNS_22_IND_CD:
description:
@@ -27283,6 +31080,7 @@ cms:
original_type: CHAR
text: Diagnosis Present on Admission Indicator 22
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-present-admission-indicator-22
type: VARCHAR(1)
- POA_DGNS_23_IND_CD:
description:
@@ -27290,6 +31088,7 @@ cms:
original_type: CHAR
text: Diagnosis Present on Admission Indicator 23
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-present-admission-indicator-23
type: VARCHAR(1)
- POA_DGNS_24_IND_CD:
description:
@@ -27297,6 +31096,7 @@ cms:
original_type: CHAR
text: Diagnosis Present on Admission Indicator 24
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-present-admission-indicator-24
type: VARCHAR(1)
- POA_DGNS_25_IND_CD:
description:
@@ -27304,6 +31104,7 @@ cms:
original_type: CHAR
text: Diagnosis Present on Admission Indicator 25
width: 1.0
+ reference: https://resdac.org/cms-data/variables/diagnosis-e-code-present-admission-indicator-8
type: VARCHAR(1)
- DGNS_E_CD_CNT:
description:
@@ -27311,6 +31112,7 @@ cms:
original_type: NUM
text: MEDPAR Diagnosis E Code Count
width: 3.0
+ reference: https://resdac.org/cms-data/variables/count-diagnosis-e-codes
type: INT
- DGNS_E_VRSN_CD:
description:
@@ -27318,6 +31120,7 @@ cms:
original_type: CHAR
text: MEDPAR Diagnosis E Version Code (Earlier Version)
width: 1.0
+ reference: https://resdac.org/cms-data/variables/diagnosis-e-version-code-earlier-version
type: VARCHAR(1)
- DGNS_E_VRSN_CD_1:
description:
@@ -27325,6 +31128,7 @@ cms:
original_type: CHAR
text: MEDPAR Diagnosis E Version Code 01
width: 1.0
+ reference: https://resdac.org/cms-data/variables/diagnosis-e-version-code-1
type: VARCHAR(1)
- DGNS_E_VRSN_CD_2:
description:
@@ -27332,6 +31136,7 @@ cms:
original_type: CHAR
text: MEDPAR Diagnosis E Version Code 02
width: 1.0
+ reference: https://resdac.org/cms-data/variables/diagnosis-e-version-code-2
type: VARCHAR(1)
- DGNS_E_VRSN_CD_3:
description:
@@ -27339,6 +31144,7 @@ cms:
original_type: CHAR
text: MEDPAR Diagnosis E Version Code 03
width: 1.0
+ reference: https://resdac.org/cms-data/variables/diagnosis-e-version-code-3
type: VARCHAR(1)
- DGNS_E_VRSN_CD_4:
description:
@@ -27346,6 +31152,7 @@ cms:
original_type: CHAR
text: MEDPAR Diagnosis E Version Code 04
width: 1.0
+ reference: https://resdac.org/cms-data/variables/diagnosis-e-version-code-4
type: VARCHAR(1)
- DGNS_E_VRSN_CD_5:
description:
@@ -27353,6 +31160,7 @@ cms:
original_type: CHAR
text: MEDPAR Diagnosis E Version Code 05
width: 1.0
+ reference: https://resdac.org/cms-data/variables/diagnosis-e-version-code-5
type: VARCHAR(1)
- DGNS_E_VRSN_CD_6:
description:
@@ -27360,6 +31168,7 @@ cms:
original_type: CHAR
text: MEDPAR Diagnosis E Version Code 06
width: 1.0
+ reference: https://resdac.org/cms-data/variables/diagnosis-e-version-code-6
type: VARCHAR(1)
- DGNS_E_VRSN_CD_7:
description:
@@ -27367,6 +31176,7 @@ cms:
original_type: CHAR
text: MEDPAR Diagnosis E Version Code 07
width: 1.0
+ reference: https://resdac.org/cms-data/variables/diagnosis-e-version-code-7
type: VARCHAR(1)
- DGNS_E_VRSN_CD_8:
description:
@@ -27374,6 +31184,7 @@ cms:
original_type: CHAR
text: MEDPAR Diagnosis E Version Code 08
width: 1.0
+ reference: https://resdac.org/cms-data/variables/diagnosis-e-version-code-8
type: VARCHAR(1)
- DGNS_E_VRSN_CD_9:
description:
@@ -27381,6 +31192,7 @@ cms:
original_type: CHAR
text: MEDPAR Diagnosis E Version Code 09
width: 1.0
+ reference: https://resdac.org/cms-data/variables/diagnosis-e-version-code-9
type: VARCHAR(1)
- DGNS_E_VRSN_CD_10:
description:
@@ -27388,6 +31200,7 @@ cms:
original_type: CHAR
text: MEDPAR Diagnosis E Version Code 10
width: 1.0
+ reference: https://resdac.org/cms-data/variables/diagnosis-e-version-code-10
type: VARCHAR(1)
- DGNS_E_VRSN_CD_11:
description:
@@ -27395,6 +31208,7 @@ cms:
original_type: CHAR
text: MEDPAR Diagnosis E Version Code 11
width: 1.0
+ reference: https://resdac.org/cms-data/variables/diagnosis-e-version-code-11
type: VARCHAR(1)
- DGNS_E_VRSN_CD_12:
description:
@@ -27402,6 +31216,7 @@ cms:
original_type: CHAR
text: MEDPAR Diagnosis E Version Code 12
width: 1.0
+ reference: https://resdac.org/cms-data/variables/diagnosis-e-version-code-12
type: VARCHAR(1)
- DGNS_E_1_CD:
description:
@@ -27410,6 +31225,7 @@ cms:
text: E Diagnosis Code 1 - Extrnl cause of injury, poisoning, or oth adverse
effect
width: 7.0
+ reference: https://resdac.org/cms-data/variables/diagnosis-e-version-code-1
type: VARCHAR(7)
- DGNS_E_2_CD:
description:
@@ -27418,6 +31234,7 @@ cms:
text: E Diagnosis Code 2 - Extrnl cause of injury, poisoning, or oth adverse
effect
width: 7.0
+ reference: https://resdac.org/cms-data/variables/diagnosis-e-code-2
type: VARCHAR(7)
- DGNS_E_3_CD:
description:
@@ -27426,6 +31243,7 @@ cms:
text: E Diagnosis Code 3 - Extrnl cause of injury, poisoning, or oth adverse
effect
width: 7.0
+ reference: https://resdac.org/cms-data/variables/diagnosis-e-code-3
type: VARCHAR(7)
- DGNS_E_4_CD:
description:
@@ -27434,6 +31252,7 @@ cms:
text: E Diagnosis Code 4 - Extrnl cause of injury, poisoning, or oth adverse
effect
width: 7.0
+ reference: https://resdac.org/cms-data/variables/diagnosis-e-code-4
type: VARCHAR(7)
- DGNS_E_5_CD:
description:
@@ -27442,6 +31261,7 @@ cms:
text: E Diagnosis Code 5 - Extrnl cause of injury, poisoning, or oth adverse
effect
width: 7.0
+ reference: https://resdac.org/cms-data/variables/diagnosis-e-code-5
type: VARCHAR(7)
- DGNS_E_6_CD:
description:
@@ -27450,6 +31270,7 @@ cms:
text: E Diagnosis Code 6 - Extrnl cause of injury, poisoning, or oth adverse
effect
width: 7.0
+ reference: https://resdac.org/cms-data/variables/diagnosis-e-code-6
type: VARCHAR(7)
- DGNS_E_7_CD:
description:
@@ -27458,6 +31279,7 @@ cms:
text: E Diagnosis Code 7 - Extrnl cause of injury, poisoning, or oth adverse
effect
width: 7.0
+ reference: https://resdac.org/cms-data/variables/diagnosis-e-code-7
type: VARCHAR(7)
- DGNS_E_8_CD:
description:
@@ -27466,6 +31288,7 @@ cms:
text: E Diagnosis Code 8 - Extrnl cause of injury, poisoning, or oth adverse
effect
width: 7.0
+ reference: https://resdac.org/cms-data/variables/diagnosis-e-code-8
type: VARCHAR(7)
- DGNS_E_9_CD:
description:
@@ -27474,6 +31297,7 @@ cms:
text: E Diagnosis Code 9 - Extrnl cause of injury, poisoning, or oth adverse
effect
width: 7.0
+ reference: https://resdac.org/cms-data/variables/diagnosis-e-code-9
type: VARCHAR(7)
- DGNS_E_10_CD:
description:
@@ -27482,6 +31306,7 @@ cms:
text: E Diagnosis Code 10 - Extrnl cause of injury, poisoning, or oth
adverse effect
width: 7.0
+ reference: https://resdac.org/cms-data/variables/diagnosis-e-code-10
type: VARCHAR(7)
- DGNS_E_11_CD:
description:
@@ -27490,6 +31315,7 @@ cms:
text: E Diagnosis Code 11 - Extrnl cause of injury, poisoning, or oth
adverse effect
width: 7.0
+ reference: https://resdac.org/cms-data/variables/diagnosis-e-code-11
type: VARCHAR(7)
- DGNS_E_12_CD:
description:
@@ -27498,6 +31324,7 @@ cms:
text: E Diagnosis Code 12 - Extrnl cause of injury, poisoning, or oth
adverse effect
width: 7.0
+ reference: https://resdac.org/cms-data/variables/diagnosis-e-version-code-1
type: VARCHAR(7)
- POA_DGNS_E_CD_CNT:
description:
@@ -27505,6 +31332,7 @@ cms:
original_type: NUM
text: MEDPAR Claim Present on Admission Diagnosis E Code Count
width: 3.0
+ reference: https://resdac.org/cms-data/variables/count-present-admission-poa-diagnosis-e-codes
type: INT
- POA_DGNS_E_1_IND_CD:
description:
@@ -27512,6 +31340,7 @@ cms:
original_type: CHAR
text: Diagnosis E Code Present on Admission Indicator 1
width: 1.0
+ reference: https://resdac.org/cms-data/variables/diagnosis-1-present-admission-poa-indicator-code
type: VARCHAR(1)
- POA_DGNS_E_2_IND_CD:
description:
@@ -27519,6 +31348,7 @@ cms:
original_type: CHAR
text: Diagnosis E Code Present on Admission Indicator 2
width: 1.0
+ reference: https://resdac.org/cms-data/variables/diagnosis-e-code-present-admission-indicator-2
type: VARCHAR(1)
- POA_DGNS_E_3_IND_CD:
description:
@@ -27526,6 +31356,7 @@ cms:
original_type: CHAR
text: Diagnosis E Code Present on Admission Indicator 3
width: 1.0
+ reference: https://resdac.org/cms-data/variables/diagnosis-e-code-present-admission-indicator-3
type: VARCHAR(1)
- POA_DGNS_E_4_IND_CD:
description:
@@ -27533,6 +31364,7 @@ cms:
original_type: CHAR
text: Diagnosis E Code Present on Admission Indicator 4
width: 1.0
+ reference: https://resdac.org/cms-data/variables/diagnosis-e-code-present-admission-indicator-4
type: VARCHAR(1)
- POA_DGNS_E_5_IND_CD:
description:
@@ -27540,6 +31372,7 @@ cms:
original_type: CHAR
text: Diagnosis E Code Present on Admission Indicator 5
width: 1.0
+ reference: https://resdac.org/cms-data/variables/diagnosis-e-code-present-admission-indicator-5
type: VARCHAR(1)
- POA_DGNS_E_6_IND_CD:
description:
@@ -27547,6 +31380,7 @@ cms:
original_type: CHAR
text: Diagnosis E Code Present on Admission Indicator 6
width: 1.0
+ reference: https://resdac.org/cms-data/variables/diagnosis-e-code-present-admission-indicator-6
type: VARCHAR(1)
- POA_DGNS_E_7_IND_CD:
description:
@@ -27554,6 +31388,7 @@ cms:
original_type: CHAR
text: Diagnosis E Code Present on Admission Indicator 7
width: 1.0
+ reference: https://resdac.org/cms-data/variables/diagnosis-e-code-present-admission-indicator-7
type: VARCHAR(1)
- POA_DGNS_E_8_IND_CD:
description:
@@ -27561,6 +31396,7 @@ cms:
original_type: CHAR
text: Diagnosis E Code Present on Admission Indicator 8
width: 1.0
+ reference: https://resdac.org/cms-data/variables/diagnosis-e-code-present-admission-indicator-8
type: VARCHAR(1)
- POA_DGNS_E_9_IND_CD:
description:
@@ -27568,6 +31404,7 @@ cms:
original_type: CHAR
text: Diagnosis E Code Present on Admission Indicator 9
width: 1.0
+ reference: https://resdac.org/cms-data/variables/diagnosis-e-code-present-admission-indicator-9
type: VARCHAR(1)
- POA_DGNS_E_10_IND_CD:
description:
@@ -27575,6 +31412,7 @@ cms:
original_type: CHAR
text: Diagnosis E Code Present on Admission Indicator 10
width: 1.0
+ reference: https://resdac.org/cms-data/variables/diagnosis-e-code-present-admission-indicator-10
type: VARCHAR(1)
- POA_DGNS_E_11_IND_CD:
description:
@@ -27582,6 +31420,7 @@ cms:
original_type: CHAR
text: Diagnosis E Code Present on Admission Indicator 11
width: 1.0
+ reference: https://resdac.org/cms-data/variables/diagnosis-e-code-present-admission-indicator-11
type: VARCHAR(1)
- POA_DGNS_E_12_IND_CD:
description:
@@ -27589,6 +31428,7 @@ cms:
original_type: CHAR
text: Diagnosis E Code Present on Admission Indicator 12
width: 1.0
+ reference: https://resdac.org/cms-data/variables/diagnosis-e-code-present-admission-indicator-12
type: VARCHAR(1)
- PRCDRSW:
description:
@@ -27596,6 +31436,7 @@ cms:
original_type: CHAR
text: Surgical procedures indicator
width: 1.0
+ reference: https://resdac.org/cms-data/variables/surgical-procedure-indicator
type: VARCHAR(1)
- PRCDRCNT:
description:
@@ -27603,6 +31444,7 @@ cms:
original_type: NUM
text: Surgical procedure codes included in stay
width: 3.0
+ reference: https://resdac.org/cms-data/variables/surgical-procedure-codes-included-stay
type: INT
- SRGCL_PRCDR_VRSN_CD:
description:
@@ -27610,6 +31452,7 @@ cms:
original_type: CHAR
text: MEDPAR Surgical Procedure Version Code (Earlier Version)
width: 1.0
+ reference: https://resdac.org/cms-data/variables/surgical-procedure-version-code-earlier-version
type: VARCHAR(1)
- SRGCL_PRCDR_VRSN_CD_1:
description:
@@ -27617,6 +31460,7 @@ cms:
original_type: CHAR
text: MEDPAR Surgical Procedure Version Code 01
width: 1.0
+ reference: https://resdac.org/cms-data/variables/principal-procedure-code
type: VARCHAR(1)
- SRGCL_PRCDR_VRSN_CD_2:
description:
@@ -27624,6 +31468,7 @@ cms:
original_type: CHAR
text: MEDPAR Surgical Procedure Version Code 02
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-surgical-procedure-version-code-2
type: VARCHAR(1)
- SRGCL_PRCDR_VRSN_CD_3:
description:
@@ -27631,6 +31476,7 @@ cms:
original_type: CHAR
text: MEDPAR Surgical Procedure Version Code 03
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-surgical-procedure-version-code-3
type: VARCHAR(1)
- SRGCL_PRCDR_VRSN_CD_4:
description:
@@ -27638,6 +31484,7 @@ cms:
original_type: CHAR
text: MEDPAR Surgical Procedure Version Code 04
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-surgical-procedure-version-code-4
type: VARCHAR(1)
- SRGCL_PRCDR_VRSN_CD_5:
description:
@@ -27645,6 +31492,7 @@ cms:
original_type: CHAR
text: MEDPAR Surgical Procedure Version Code 05
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-surgical-procedure-version-code-5
type: VARCHAR(1)
- SRGCL_PRCDR_VRSN_CD_6:
description:
@@ -27652,6 +31500,7 @@ cms:
original_type: CHAR
text: MEDPAR Surgical Procedure Version Code 06
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-surgical-procedure-version-code-6
type: VARCHAR(1)
- SRGCL_PRCDR_VRSN_CD_7:
description:
@@ -27659,6 +31508,7 @@ cms:
original_type: CHAR
text: MEDPAR Surgical Procedure Version Code 07
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-surgical-procedure-version-code-7
type: VARCHAR(1)
- SRGCL_PRCDR_VRSN_CD_8:
description:
@@ -27666,6 +31516,7 @@ cms:
original_type: CHAR
text: MEDPAR Surgical Procedure Version Code 08
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-surgical-procedure-version-code-8
type: VARCHAR(1)
- SRGCL_PRCDR_VRSN_CD_9:
description:
@@ -27673,6 +31524,7 @@ cms:
original_type: CHAR
text: MEDPAR Surgical Procedure Version Code 09
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-surgical-procedure-version-code-9
type: VARCHAR(1)
- SRGCL_PRCDR_VRSN_CD_10:
description:
@@ -27680,6 +31532,7 @@ cms:
original_type: CHAR
text: MEDPAR Surgical Procedure Version Code 10
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-surgical-procedure-version-code-10
type: VARCHAR(1)
- SRGCL_PRCDR_VRSN_CD_11:
description:
@@ -27687,6 +31540,7 @@ cms:
original_type: CHAR
text: MEDPAR Surgical Procedure Version Code 11
width: 1.0
+ reference: https://resdac.org/cms-data/variables/surgical-procedure-version-code-earlier-version
type: VARCHAR(1)
- SRGCL_PRCDR_VRSN_CD_12:
description:
@@ -27694,6 +31548,7 @@ cms:
original_type: CHAR
text: MEDPAR Surgical Procedure Version Code 12
width: 1.0
+ reference: https://resdac.org/cms-data/variables/surgical-procedure-version-code-earlier-version
type: VARCHAR(1)
- SRGCL_PRCDR_VRSN_CD_13:
description:
@@ -27701,6 +31556,7 @@ cms:
original_type: CHAR
text: MEDPAR Surgical Procedure Version Code 13
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-surgical-procedure-version-code-13
type: VARCHAR(1)
- SRGCL_PRCDR_VRSN_CD_14:
description:
@@ -27708,6 +31564,7 @@ cms:
original_type: CHAR
text: MEDPAR Surgical Procedure Version Code 14
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-surgical-procedure-version-code-14
type: VARCHAR(1)
- SRGCL_PRCDR_VRSN_CD_15:
description:
@@ -27715,6 +31572,7 @@ cms:
original_type: CHAR
text: MEDPAR Surgical Procedure Version Code 15
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-surgical-procedure-version-code-15
type: VARCHAR(1)
- SRGCL_PRCDR_VRSN_CD_16:
description:
@@ -27722,6 +31580,7 @@ cms:
original_type: CHAR
text: MEDPAR Surgical Procedure Version Code 16
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-surgical-procedure-version-code-16
type: VARCHAR(1)
- SRGCL_PRCDR_VRSN_CD_17:
description:
@@ -27729,6 +31588,7 @@ cms:
original_type: CHAR
text: MEDPAR Surgical Procedure Version Code 17
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-surgical-procedure-version-code-17
type: VARCHAR(1)
- SRGCL_PRCDR_VRSN_CD_18:
description:
@@ -27736,6 +31596,7 @@ cms:
original_type: CHAR
text: MEDPAR Surgical Procedure Version Code 18
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-surgical-procedure-version-code-18
type: VARCHAR(1)
- SRGCL_PRCDR_VRSN_CD_19:
description:
@@ -27743,6 +31604,7 @@ cms:
original_type: CHAR
text: MEDPAR Surgical Procedure Version Code 19
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-surgical-procedure-version-code-19
type: VARCHAR(1)
- SRGCL_PRCDR_VRSN_CD_20:
description:
@@ -27750,6 +31612,7 @@ cms:
original_type: CHAR
text: MEDPAR Surgical Procedure Version Code 20
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-surgical-procedure-version-code-20
type: VARCHAR(1)
- SRGCL_PRCDR_VRSN_CD_21:
description:
@@ -27757,6 +31620,7 @@ cms:
original_type: CHAR
text: MEDPAR Surgical Procedure Version Code 21
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-surgical-procedure-version-code-21
type: VARCHAR(1)
- SRGCL_PRCDR_VRSN_CD_22:
description:
@@ -27764,6 +31628,7 @@ cms:
original_type: CHAR
text: MEDPAR Surgical Procedure Version Code 22
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-surgical-procedure-version-code-22
type: VARCHAR(1)
- SRGCL_PRCDR_VRSN_CD_23:
description:
@@ -27771,6 +31636,7 @@ cms:
original_type: CHAR
text: MEDPAR Surgical Procedure Version Code 23
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-surgical-procedure-version-code-23
type: VARCHAR(1)
- SRGCL_PRCDR_VRSN_CD_24:
description:
@@ -27778,6 +31644,7 @@ cms:
original_type: CHAR
text: MEDPAR Surgical Procedure Version Code 24
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-surgical-procedure-version-code-24
type: VARCHAR(1)
- SRGCL_PRCDR_VRSN_CD_25:
description:
@@ -27785,6 +31652,7 @@ cms:
original_type: CHAR
text: MEDPAR Surgical Procedure Version Code 25
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-procedure-code-4
type: VARCHAR(1)
- PRCDRCD1:
description:
@@ -27792,6 +31660,7 @@ cms:
original_type: CHAR
text: Principal Procedure code
width: 7.0
+ reference: https://resdac.org/cms-data/variables/principal-procedure-code
type: VARCHAR(7)
- PRCDRCD2:
description:
@@ -27799,6 +31668,7 @@ cms:
original_type: CHAR
text: Procedure Code II
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-procedure-code-2
type: VARCHAR(7)
- PRCDRCD3:
description:
@@ -27806,6 +31676,7 @@ cms:
original_type: CHAR
text: Procedure Code III
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-procedure-code-3
type: VARCHAR(7)
- PRCDRCD4:
description:
@@ -27813,6 +31684,7 @@ cms:
original_type: CHAR
text: Procedure Code IV
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-procedure-code-4
type: VARCHAR(7)
- PRCDRCD5:
description:
@@ -27820,6 +31692,7 @@ cms:
original_type: CHAR
text: Procedure Code V
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-procedure-code-5
type: VARCHAR(7)
- PRCDRCD6:
description:
@@ -27827,6 +31700,7 @@ cms:
original_type: CHAR
text: Procedure Code VI
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-procedure-code-6
type: VARCHAR(7)
- PRCDRCD7:
description:
@@ -27834,6 +31708,7 @@ cms:
original_type: CHAR
text: Procedure Code VII
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-procedure-code-7
type: VARCHAR(7)
- PRCDRCD8:
description:
@@ -27841,6 +31716,7 @@ cms:
original_type: CHAR
text: Procedure Code VIII
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-procedure-code-8
type: VARCHAR(7)
- PRCDRCD9:
description:
@@ -27848,6 +31724,7 @@ cms:
original_type: CHAR
text: Procedure Code IX
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-procedure-code-9
type: VARCHAR(7)
- PRCDRCD10:
description:
@@ -27855,6 +31732,7 @@ cms:
original_type: CHAR
text: Procedure Code X
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-procedure-code-10
type: VARCHAR(7)
- PRCDRCD11:
description:
@@ -27862,6 +31740,7 @@ cms:
original_type: CHAR
text: Procedure Code XI
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-procedure-code-11
type: VARCHAR(7)
- PRCDRCD12:
description:
@@ -27869,6 +31748,7 @@ cms:
original_type: CHAR
text: Procedure Code XII
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-procedure-code-12
type: VARCHAR(7)
- PRCDRCD13:
description:
@@ -27876,6 +31756,7 @@ cms:
original_type: CHAR
text: Procedure Code XIII
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-procedure-code-13
type: VARCHAR(7)
- PRCDRCD14:
description:
@@ -27883,6 +31764,7 @@ cms:
original_type: CHAR
text: Procedure Code XIV
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-procedure-code-14
type: VARCHAR(7)
- PRCDRCD15:
description:
@@ -27890,6 +31772,7 @@ cms:
original_type: CHAR
text: Procedure Code XV
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-procedure-code-15
type: VARCHAR(7)
- PRCDRCD16:
description:
@@ -27897,6 +31780,7 @@ cms:
original_type: CHAR
text: Procedure Code XVI
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-procedure-code-16
type: VARCHAR(7)
- PRCDRCD17:
description:
@@ -27904,6 +31788,7 @@ cms:
original_type: CHAR
text: Procedure Code XVII
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-procedure-code-17
type: VARCHAR(7)
- PRCDRCD18:
description:
@@ -27911,6 +31796,7 @@ cms:
original_type: CHAR
text: Procedure Code XVIII
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-procedure-code-18
type: VARCHAR(7)
- PRCDRCD19:
description:
@@ -27918,6 +31804,7 @@ cms:
original_type: CHAR
text: Procedure Code XIX
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-procedure-code-19
type: VARCHAR(7)
- PRCDRCD20:
description:
@@ -27925,6 +31812,7 @@ cms:
original_type: CHAR
text: Procedure Code XX
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-procedure-code-20
type: VARCHAR(7)
- PRCDRCD21:
description:
@@ -27932,6 +31820,7 @@ cms:
original_type: CHAR
text: Procedure Code XXI
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-procedure-code-21
type: VARCHAR(7)
- PRCDRCD22:
description:
@@ -27939,6 +31828,7 @@ cms:
original_type: CHAR
text: Procedure Code XXII
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-procedure-code-22
type: VARCHAR(7)
- PRCDRCD23:
description:
@@ -27946,6 +31836,7 @@ cms:
original_type: CHAR
text: Procedure Code XXIII
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-procedure-code-23
type: VARCHAR(7)
- PRCDRCD24:
description:
@@ -27953,6 +31844,7 @@ cms:
original_type: CHAR
text: Procedure Code XXIV
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-procedure-code-24
type: VARCHAR(7)
- PRCDRCD25:
description:
@@ -27960,6 +31852,7 @@ cms:
original_type: CHAR
text: Procedure Code XXV
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-procedure-code-25
type: VARCHAR(7)
- PRCDTCNT:
description:
@@ -27967,6 +31860,7 @@ cms:
original_type: NUM
text: Dates associated with surgical procedures included in stay
width: 3.0
+ reference: https://resdac.org/cms-data/variables/dates-associated-surgical-procedures-included-stay
type: INT
- PRCDRDT1:
description:
@@ -27974,6 +31868,7 @@ cms:
original_type: DATE
text: Principal Procedure Date
width: 8.0
+ reference: https://resdac.org/cms-data/variables/principal-procedure-date
type: DATE
- PRCDRDT2:
description:
@@ -27981,6 +31876,7 @@ cms:
original_type: DATE
text: Procedure Date II
width: 8.0
+ reference: https://resdac.org/cms-data/variables/procedure-date-2
type: DATE
- PRCDRDT3:
description:
@@ -27988,6 +31884,7 @@ cms:
original_type: DATE
text: Procedure Date III
width: 8.0
+ reference: https://resdac.org/cms-data/variables/procedure-date-3
type: DATE
- PRCDRDT4:
description:
@@ -27995,6 +31892,7 @@ cms:
original_type: DATE
text: Procedure Date IV
width: 8.0
+ reference: https://resdac.org/cms-data/variables/procedure-date-4
type: DATE
- PRCDRDT5:
description:
@@ -28002,6 +31900,7 @@ cms:
original_type: DATE
text: Procedure Date V
width: 8.0
+ reference: null
type: DATE
- PRCDRDT6:
description:
@@ -28009,6 +31908,7 @@ cms:
original_type: DATE
text: Procedure Date VI
width: 8.0
+ reference: https://resdac.org/cms-data/variables/procedure-date-6
type: DATE
- PRCDRDT7:
description:
@@ -28016,6 +31916,7 @@ cms:
original_type: DATE
text: Procedure Date VII
width: 8.0
+ reference: https://resdac.org/cms-data/variables/procedure-date-7
type: DATE
- PRCDRDT8:
description:
@@ -28023,6 +31924,7 @@ cms:
original_type: DATE
text: Procedure Date VIII
width: 8.0
+ reference: https://resdac.org/cms-data/variables/procedure-date-8
type: DATE
- PRCDRDT9:
description:
@@ -28030,6 +31932,7 @@ cms:
original_type: DATE
text: Procedure Date IX
width: 8.0
+ reference: https://resdac.org/cms-data/variables/procedure-date-9
type: DATE
- PRCDRDT10:
description:
@@ -28037,6 +31940,7 @@ cms:
original_type: DATE
text: Procedure Date X
width: 8.0
+ reference: https://resdac.org/cms-data/variables/procedure-date-10
type: DATE
- PRCDRDT11:
description:
@@ -28044,6 +31948,7 @@ cms:
original_type: DATE
text: Procedure Date XI
width: 8.0
+ reference: https://resdac.org/cms-data/variables/procedure-date-11
type: DATE
- PRCDRDT12:
description:
@@ -28051,6 +31956,7 @@ cms:
original_type: DATE
text: Procedure Date XII
width: 8.0
+ reference: https://resdac.org/cms-data/variables/procedure-date-12
type: DATE
- PRCDRDT13:
description:
@@ -28058,6 +31964,7 @@ cms:
original_type: DATE
text: Procedure Date XIII
width: 8.0
+ reference: https://resdac.org/cms-data/variables/procedure-date-13
type: DATE
- PRCDRDT14:
description:
@@ -28065,6 +31972,7 @@ cms:
original_type: DATE
text: Procedure Date XIV
width: 8.0
+ reference: https://resdac.org/cms-data/variables/procedure-date-14
type: DATE
- PRCDRDT15:
description:
@@ -28072,6 +31980,7 @@ cms:
original_type: DATE
text: Procedure Date XV
width: 8.0
+ reference: https://resdac.org/cms-data/variables/procedure-date-15
type: DATE
- PRCDRDT16:
description:
@@ -28079,6 +31988,7 @@ cms:
original_type: DATE
text: Procedure Date XVI
width: 8.0
+ reference: https://resdac.org/cms-data/variables/procedure-date-16
type: DATE
- PRCDRDT17:
description:
@@ -28086,6 +31996,7 @@ cms:
original_type: DATE
text: Procedure Date XVII
width: 8.0
+ reference: https://resdac.org/cms-data/variables/procedure-date-17
type: DATE
- PRCDRDT18:
description:
@@ -28093,6 +32004,7 @@ cms:
original_type: DATE
text: Procedure Date XVIII
width: 8.0
+ reference: https://resdac.org/cms-data/variables/procedure-date-18
type: DATE
- PRCDRDT19:
description:
@@ -28100,6 +32012,7 @@ cms:
original_type: DATE
text: Procedure Date XIX
width: 8.0
+ reference: https://resdac.org/cms-data/variables/procedure-date-19
type: DATE
- PRCDRDT20:
description:
@@ -28107,6 +32020,7 @@ cms:
original_type: DATE
text: Procedure Date XX
width: 8.0
+ reference: https://resdac.org/cms-data/variables/procedure-date-20
type: DATE
- PRCDRDT21:
description:
@@ -28114,6 +32028,7 @@ cms:
original_type: DATE
text: Procedure Date XXI
width: 8.0
+ reference: https://resdac.org/cms-data/variables/procedure-date-21
type: DATE
- PRCDRDT22:
description:
@@ -28121,6 +32036,7 @@ cms:
original_type: DATE
text: Procedure Date XXII
width: 8.0
+ reference: https://resdac.org/cms-data/variables/procedure-date-22
type: DATE
- PRCDRDT23:
description:
@@ -28128,6 +32044,7 @@ cms:
original_type: DATE
text: Procedure Date XXIII
width: 8.0
+ reference: https://resdac.org/cms-data/variables/procedure-date-23
type: DATE
- PRCDRDT24:
description:
@@ -28135,6 +32052,7 @@ cms:
original_type: DATE
text: Procedure Date XXIV
width: 8.0
+ reference: https://resdac.org/cms-data/variables/procedure-date-24
type: DATE
- PRCDRDT25:
description:
@@ -28142,6 +32060,7 @@ cms:
original_type: DATE
text: Procedure Date XXV
width: 8.0
+ reference: https://resdac.org/cms-data/variables/procedure-date-25
type: DATE
- CLM_PTNT_RLTNSHP_CD:
description:
@@ -28149,6 +32068,7 @@ cms:
original_type: CHAR
text: Claim Patient Relationship Code
width: 2.0
+ reference: https://resdac.org/cms-data/variables/claim-patient-relationship-code
type: VARCHAR(2)
- CARE_IMPRVMT_MODEL_1_CD:
description:
@@ -28156,6 +32076,7 @@ cms:
original_type: CHAR
text: Care Improvement Model 1 Code
width: 2.0
+ reference: https://resdac.org/cms-data/variables/care-improvement-model-1-code
type: VARCHAR(2)
- CARE_IMPRVMT_MODEL_2_CD:
description:
@@ -28163,6 +32084,7 @@ cms:
original_type: CHAR
text: Care Improvement Model 2 Code
width: 2.0
+ reference: https://resdac.org/cms-data/variables/care-improvement-model-2-code
type: VARCHAR(2)
- CARE_IMPRVMT_MODEL_3_CD:
description:
@@ -28170,6 +32092,7 @@ cms:
original_type: CHAR
text: Care Improvement Model 3 Code
width: 2.0
+ reference: https://resdac.org/cms-data/variables/care-improvement-model-3-code
type: VARCHAR(2)
- CARE_IMPRVMT_MODEL_4_CD:
description:
@@ -28177,6 +32100,7 @@ cms:
original_type: CHAR
text: Care Improvement Model 4 Code
width: 2.0
+ reference: https://resdac.org/cms-data/variables/care-improvement-model-4-code
type: VARCHAR(2)
- VBP_PRTCPNT_IND_CD:
description:
@@ -28184,6 +32108,7 @@ cms:
original_type: CHAR
text: VBP Participant Indicator Code
width: 1.0
+ reference: https://resdac.org/cms-data/variables/value-based-purchasing-vbp-participant-indicator-code
type: VARCHAR(1)
- HRR_PRTCPNT_IND_CD:
description:
@@ -28191,6 +32116,7 @@ cms:
original_type: CHAR
text: HRR Participant Indicator Code
width: 1.0
+ reference: https://resdac.org/cms-data/variables/hospital-readmission-reduction-hrr-participant-indicator-code
type: VARCHAR(1)
- BNDLD_MODEL_DSCNT_PCT:
description:
@@ -28198,6 +32124,7 @@ cms:
original_type: NUM
text: Bundled Model Discount Percent
width: 7.4
+ reference: https://resdac.org/cms-data/variables/bundled-payment-model-discount-percent
type: NUMERIC(7,4)
- VBP_ADJSTMT_PCT:
description:
@@ -28205,6 +32132,7 @@ cms:
original_type: NUM
text: VBP Adjustment Percent
width: 15.12
+ reference: https://resdac.org/cms-data/variables/value-based-purchasing-vbp-adjustment-percent
type: NUMERIC(15,12)
- HRR_ADJSTMT_PCT:
description:
@@ -28212,6 +32140,7 @@ cms:
original_type: NUM
text: HRR Adjustment Percent
width: 8.5
+ reference: https://resdac.org/cms-data/variables/hospital-readmission-reduction-hrr-adjustment-percent
type: NUMERIC(8,5)
- INFRMTL_ENCTR_IND_SW:
description:
@@ -28219,6 +32148,7 @@ cms:
original_type: CHAR
text: Informational Encounter Indicator Switch
width: 1.0
+ reference: https://resdac.org/cms-data/variables/informational-encounter-indicator
type: VARCHAR(1)
- MA_TCHNG_IND_SW:
description:
@@ -28226,6 +32156,7 @@ cms:
original_type: CHAR
text: MA Teaching Indicator Switch
width: 1.0
+ reference: https://resdac.org/cms-data/variables/ma-teaching-indicator
type: VARCHAR(1)
- PROD_RPLCMT_LIFECYC_SW:
description:
@@ -28233,6 +32164,7 @@ cms:
original_type: CHAR
text: Prod Replacement Lifecycle Switch
width: 1.0
+ reference: https://resdac.org/cms-data/variables/product-replacement-within-product-lifecycle-early
type: VARCHAR(1)
- PROD_RPLCMT_RCLL_SW:
description:
@@ -28240,6 +32172,7 @@ cms:
original_type: CHAR
text: Prod Replacement Recall Switch
width: 1.0
+ reference: https://resdac.org/cms-data/variables/product-replacement-recall-product
type: VARCHAR(1)
- CRED_RCVD_RPLCD_DVC_SW:
description:
@@ -28247,6 +32180,7 @@ cms:
original_type: CHAR
text: Credit Received Replaced Device Switch
width: 1.0
+ reference: https://resdac.org/cms-data/variables/credit-received-replaced-device
type: VARCHAR(1)
- OBSRVTN_SW:
description:
@@ -28254,6 +32188,7 @@ cms:
original_type: CHAR
text: Observation Switch
width: 1.0
+ reference: https://resdac.org/cms-data/variables/observation-unit-indicator
type: VARCHAR(1)
- NEW_TCHNLGY_ADD_ON_AMT:
description:
@@ -28261,6 +32196,7 @@ cms:
original_type: NUM
text: New Technology Add-On Amount
width: 10.0
+ reference: https://resdac.org/cms-data/variables/new-technology-add-amount
type: INT
- BASE_OPRTG_DRG_AMT:
description:
@@ -28268,6 +32204,7 @@ cms:
original_type: NUM
text: Base Operating DRG Amount
width: 10.0
+ reference: https://resdac.org/cms-data/variables/base-operating-drg-amount
type: INT
- OPRTG_HSP_AMT:
description:
@@ -28275,6 +32212,7 @@ cms:
original_type: NUM
text: Operating Hospital Amount
width: 10.0
+ reference: https://resdac.org/cms-data/variables/operating-hospital-amount
type: INT
- MDCL_SRGCL_GNRL_AMT:
description:
@@ -28282,6 +32220,7 @@ cms:
original_type: NUM
text: Medical/Surgical General Amount
width: 10.0
+ reference: https://resdac.org/cms-data/variables/medicalsurgical-supplies-prosthetic-orthotic-amount
type: INT
- MDCL_SRGCL_NSTRL_AMT:
description:
@@ -28289,6 +32228,7 @@ cms:
original_type: NUM
text: Medical/Surgical Non-Sterile Amount
width: 10.0
+ reference: https://resdac.org/cms-data/variables/medicalsurgical-non-sterile-supplies-amount
type: INT
- MDCL_SRGCL_STRL_AMT:
description:
@@ -28296,6 +32236,7 @@ cms:
original_type: NUM
text: Medical/Surgical Sterile Amount
width: 10.0
+ reference: https://resdac.org/cms-data/variables/medicalsurgical-sterile-supplies-amount
type: INT
- TAKE_HOME_AMT:
description:
@@ -28303,6 +32244,7 @@ cms:
original_type: NUM
text: Take Home Amount
width: 10.0
+ reference: https://resdac.org/cms-data/variables/medicalsurgical-supplies-take-home-amount
type: INT
- PRSTHTC_ORTHTC_AMT:
description:
@@ -28310,6 +32252,7 @@ cms:
original_type: NUM
text: Prosthetic Orthotic Amount
width: 10.0
+ reference: https://resdac.org/cms-data/variables/medicalsurgical-supplies-prosthetic-orthotic-amount
type: INT
- MDCL_SRGCL_PCMKR_AMT:
description:
@@ -28317,6 +32260,7 @@ cms:
original_type: NUM
text: Medical/Surgical Pacemaker Amount
width: 10.0
+ reference: https://resdac.org/cms-data/variables/medicalsurgical-pacemaker-amount
type: INT
- INTRAOCULAR_LENS_AMT:
description:
@@ -28324,6 +32268,7 @@ cms:
original_type: NUM
text: Intraocular Lens Amount
width: 10.0
+ reference: https://resdac.org/cms-data/variables/medicalsurgical-supplies-intraocular-lens-amount
type: INT
- OXYGN_TAKE_HOME_AMT:
description:
@@ -28331,6 +32276,7 @@ cms:
original_type: NUM
text: Oxygen Take Home Amount
width: 10.0
+ reference: https://resdac.org/cms-data/variables/medicalsurgical-supplies-oxygen-take-home-amount
type: INT
- OTHR_IMPLANTS_AMT:
description:
@@ -28338,6 +32284,7 @@ cms:
original_type: NUM
text: Other Implants Amount
width: 10.0
+ reference: https://resdac.org/cms-data/variables/medicalsurgical-supplies-other-implants-amount
type: INT
- OTHR_SUPLIES_DVC_AMT:
description:
@@ -28345,6 +32292,7 @@ cms:
original_type: NUM
text: Other Supplies Device Amount
width: 10.0
+ reference: https://resdac.org/cms-data/variables/medicalsurgical-supplies-other-device-amount
type: INT
- INCDNT_RDLGY_AMT:
description:
@@ -28352,6 +32300,7 @@ cms:
original_type: NUM
text: Incident Radiology Amount
width: 10.0
+ reference: https://resdac.org/cms-data/variables/medicalsurgical-supplies-incident-radiology-amount
type: INT
- INCDNT_DGNSTC_SRVCS_AMT:
description:
@@ -28359,6 +32308,7 @@ cms:
original_type: NUM
text: Incident Diagnostic Services Amount
width: 10.0
+ reference: https://resdac.org/cms-data/variables/medicalsurgical-supplies-incident-diagnostic-services-amount
type: INT
- MDCL_SRGCL_DRSNG_AMT:
description:
@@ -28366,6 +32316,7 @@ cms:
original_type: NUM
text: Medical/Surgical Dressing Amount
width: 10.0
+ reference: https://resdac.org/cms-data/variables/medicalsurgical-dressing-amount
type: INT
- INVSTGTNL_DVC_AMT:
description:
@@ -28373,6 +32324,7 @@ cms:
original_type: NUM
text: Investigational Device Amount
width: 10.0
+ reference: https://resdac.org/cms-data/variables/medicalsurgical-supplies-investigational-device-amount
type: INT
- MDCL_SRGCL_MISC_AMT:
description:
@@ -28380,6 +32332,7 @@ cms:
original_type: NUM
text: Medical/Surgical Miscellaneous Amount
width: 10.0
+ reference: https://resdac.org/cms-data/variables/medical-surgical-miscellaneous-amount
type: INT
- RDLGY_ONCOLOGY_AMT:
description:
@@ -28387,6 +32340,7 @@ cms:
original_type: NUM
text: Radiology/Oncology Amount
width: 10.0
+ reference: https://resdac.org/cms-data/variables/oncology-amount
type: INT
- RDLGY_DGNSTC_AMT:
description:
@@ -28394,6 +32348,7 @@ cms:
original_type: NUM
text: Radiology Diagnostic Amount
width: 10.0
+ reference: https://resdac.org/cms-data/variables/radiology-diagnostic-amount
type: INT
- RDLGY_THRPTC_AMT:
description:
@@ -28401,6 +32356,7 @@ cms:
original_type: NUM
text: Radiology Therapeutic Amount
width: 10.0
+ reference: https://resdac.org/cms-data/variables/radiology-therapeutic-amount
type: INT
- RDLGY_NUCLR_MDCN_AMT:
description:
@@ -28408,6 +32364,7 @@ cms:
original_type: NUM
text: Radiology Nuclear Medicine Amount
width: 10.0
+ reference: https://resdac.org/cms-data/variables/radiology-nuclear-medicine-amount
type: INT
- RDLGY_CT_SCAN_AMT:
description:
@@ -28415,6 +32372,7 @@ cms:
original_type: NUM
text: Radiology CT Scan Amount
width: 10.0
+ reference: https://resdac.org/cms-data/variables/radiology-ct-scan-amount
type: INT
- RDLGY_OTHR_IMGNG_AMT:
description:
@@ -28422,6 +32380,7 @@ cms:
original_type: NUM
text: Radiology Other Imaging Amount
width: 10.0
+ reference: https://resdac.org/cms-data/variables/radiology-other-imaging-amount
type: INT
- OPRTG_ROOM_AMT:
description:
@@ -28429,6 +32388,7 @@ cms:
original_type: NUM
text: Operating Room Amount
width: 10.0
+ reference: https://resdac.org/cms-data/variables/operating-and-recovery-room-amount
type: INT
- OR_LABOR_DLVRY_AMT:
description:
@@ -28436,6 +32396,7 @@ cms:
original_type: NUM
text: O/R Labor Delivery Amount
width: 10.0
+ reference: https://resdac.org/cms-data/variables/labor-room-and-delivery-amount
type: INT
- CRDC_CATHRZTN_AMT:
description:
@@ -28443,6 +32404,7 @@ cms:
original_type: NUM
text: Cardiac Catheterization Amount
width: 10.0
+ reference: https://resdac.org/cms-data/variables/cardiac-catheterization-lab-amount
type: INT
- SQSTRTN_RDCTN_AMT:
description:
@@ -28450,6 +32412,7 @@ cms:
original_type: NUM
text: Sequestration Reduction Amount
width: 10.0
+ reference: https://resdac.org/cms-data/variables/sequestration-reduction-amount
type: INT
- UNCOMPD_CARE_PYMT_AMT:
description:
@@ -28457,6 +32420,7 @@ cms:
original_type: NUM
text: Uncompensated Care Payment Amount
width: 10.0
+ reference: https://resdac.org/cms-data/variables/uncompensated-care-payment-amount
type: INT
- BNDLD_ADJSTMT_AMT:
description:
@@ -28464,6 +32428,7 @@ cms:
original_type: NUM
text: Bundled Adjustment Amount
width: 10.0
+ reference: https://resdac.org/cms-data/variables/bundled-payment-adjustment-amount
type: INT
- VBP_ADJSTMT_AMT:
description:
@@ -28471,6 +32436,7 @@ cms:
original_type: NUM
text: Hospital Value Based Purchasing (VBP) Amount
width: 10.0
+ reference: https://resdac.org/cms-data/variables/hospital-value-based-purchasing-vbp-amount
type: INT
- HRR_ADJSTMT_AMT:
description:
@@ -28478,6 +32444,7 @@ cms:
original_type: NUM
text: Hospital Readmission Reduction (HRR) Adjustment Amount
width: 10.0
+ reference: https://resdac.org/cms-data/variables/hospital-readmission-reduction-hrr-adjustment-amount
type: INT
- EHR_PYMT_ADJSTMT_AMT:
description:
@@ -28485,6 +32452,7 @@ cms:
original_type: NUM
text: Electronic Health Record (EHR) Payment Adjustment Amount
width: 10.0
+ reference: https://resdac.org/cms-data/variables/electronic-health-record-ehr-payment-adjustment-amount
type: INT
- PPS_STD_VAL_PYMT_AMT:
description:
@@ -28492,6 +32460,7 @@ cms:
original_type: NUM
text: Claim PPS Standard Value Payment Amount
width: 10.0
+ reference: https://resdac.org/cms-data/variables/standard-payment-amount
type: INT
- FINL_STD_AMT:
description:
@@ -28499,6 +32468,7 @@ cms:
original_type: NUM
text: Claim Final Standard Amount
width: 10.0
+ reference: https://resdac.org/cms-data/variables/claim-final-standard-payment-amount
type: INT
- HAC_RDCTN_PMT_AMT:
description:
@@ -28506,6 +32476,7 @@ cms:
original_type: NUM
text: Hospital Acquired Conditions Reduction Payment Amount (IPPS_FLEX_PYMT_6_AMT)
width: 10.0
+ reference: https://resdac.org/cms-data/variables/hospital-acquired-conditions-hac-reduction-payment-amount
type: INT
- IPPS_FLEX_PYMT_7_AMT:
description:
@@ -28513,6 +32484,7 @@ cms:
original_type: NUM
text: IPPS Flexible Payment Amount II
width: 10.0
+ reference: https://resdac.org/cms-data/variables/flexible-payment-amount-7th-placeholder
type: INT
- PTNT_ADD_ON_PYMT_AMT:
description:
@@ -28520,6 +32492,7 @@ cms:
original_type: NUM
text: Revenue Center Patient/Initial Visit Add-On Amount
width: 10.0
+ reference: https://resdac.org/cms-data/variables/patient-add-payment-amount-new-patient
type: INT
- HAC_PGM_RDCTN_IND_SW:
description:
@@ -28527,6 +32500,7 @@ cms:
original_type: CHAR
text: Hospital Acquired Conditions (HAC) Program Reduction Indicator Switch
width: 1.0
+ reference: https://resdac.org/cms-data/variables/claim-hospital-acquired-condition-hac-program-reduction-indicator-switch
type: VARCHAR(1)
- PGM_RDCTN_IND_SW:
description:
@@ -28534,6 +32508,7 @@ cms:
original_type: CHAR
text: Electronic Health Records (EHR) Program Reduction Indicator Switch
width: 1.0
+ reference: https://resdac.org/cms-data/variables/electronic-health-records-ehr-program-reduction-indicator
type: VARCHAR(1)
- PA_IND_CD:
description:
@@ -28541,6 +32516,7 @@ cms:
original_type: CHAR
text: Claim Prior Authorization Indicator Code
width: 4.0
+ reference: https://resdac.org/cms-data/variables/prior-authorization-indicator-code
type: VARCHAR(4)
- UNIQ_TRKNG_NUM:
description:
@@ -28548,6 +32524,7 @@ cms:
original_type: CHAR
text: Claim Unique Tracking Number
width: 14.0
+ reference: https://resdac.org/cms-data/variables/unique-tracking-number
type: VARCHAR(14)
- STAY_2_IND_SW:
description:
@@ -28555,6 +32532,7 @@ cms:
original_type: CHAR
text: Stay 2 Indicator Switch
width: 1.0
+ reference: https://resdac.org/cms-data/variables/two-midnight-stay-indicator
type: VARCHAR(1)
- CLM_SITE_NTRL_PYMT_CST_AMT:
description:
@@ -28562,6 +32540,7 @@ cms:
original_type: NUM
text: Claim Site Neutral Payment Based on Cost Amount
width: 10.0
+ reference: https://resdac.org/cms-data/variables/claim-site-neutral-payment-based-cost-amount
type: INT
- CLM_SITE_NTRL_PYMT_IPPS_AMT:
description:
@@ -28569,6 +32548,7 @@ cms:
original_type: NUM
text: Claim Site Neutral Payment Based on IPPS Amount
width: 10.0
+ reference: https://resdac.org/cms-data/variables/claim-site-neutral-payment-based-ipps-amount
type: INT
- CLM_FULL_STD_PYMT_AMT:
description:
@@ -28576,6 +32556,7 @@ cms:
original_type: NUM
text: Claim Full Standard Payment Amount
width: 10.0
+ reference: https://resdac.org/cms-data/variables/claim-full-standard-payment-amount
type: INT
- CLM_SS_OUTLIER_STD_PYMT_AMT:
description:
@@ -28583,6 +32564,7 @@ cms:
original_type: NUM
text: Claim Short Stay Outlier (SSO) Standard Payment Amount
width: 10.0
+ reference: https://resdac.org/cms-data/variables/claim-short-stay-outlier-sso-standard-payment-amount
type: INT
- CLM_NGACO_IND_1_CD:
description:
@@ -28591,6 +32573,7 @@ cms:
text: Claim Next Generation (NG) Accountable Care Organization (ACO) Indicator
Code 1
width: 1.0
+ reference: https://resdac.org/cms-data/variables/claim-next-generation-ng-accountable-care-organization-aco-indicator-code-1
type: VARCHAR(1)
- CLM_NGACO_IND_2_CD:
description:
@@ -28599,6 +32582,7 @@ cms:
text: Claim Next Generation (NG) Accountable Care Organization (ACO) Indicator
Code 2
width: 1.0
+ reference: https://resdac.org/cms-data/variables/claim-next-generation-ng-accountable-care-organization-aco-indicator-code-2
type: VARCHAR(1)
- CLM_NGACO_IND_3_CD:
description:
@@ -28607,6 +32591,7 @@ cms:
text: Claim Next Generation (NG) Accountable Care Organization (ACO) Indicator
Code 3
width: 1.0
+ reference: https://resdac.org/cms-data/variables/claim-next-generation-ng-accountable-care-organization-aco-indicator-code-3
type: VARCHAR(1)
- CLM_NGACO_IND_4_CD:
description:
@@ -28615,6 +32600,7 @@ cms:
text: Claim Next Generation (NG) Accountable Care Organization (ACO) Indicator
Code 4
width: 1.0
+ reference: https://resdac.org/cms-data/variables/claim-next-generation-ng-accountable-care-organization-aco-indicator-code-4
type: VARCHAR(1)
- CLM_NGACO_IND_5_CD:
description:
@@ -28623,6 +32609,7 @@ cms:
text: Claim Next Generation (NG) Accountable Care Organization (ACO) Indicator
Code 5
width: 1.0
+ reference: https://resdac.org/cms-data/variables/claim-next-generation-ng-accountable-care-organization-aco-indicator-code-5
type: VARCHAR(1)
- CLM_RSDL_PYMT_IND_CD:
description:
@@ -28630,6 +32617,7 @@ cms:
original_type: CHAR
text: Claim Residual Payment Indicator Code
width: 1.0
+ reference: https://resdac.org/cms-data/variables/claim-residual-payment-indicator-code
type: VARCHAR(1)
- CLM_RP_IND_CD:
description:
@@ -28637,6 +32625,7 @@ cms:
original_type: CHAR
text: Claim Representative Payee (RP) Indicator Code
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-claim-representative-payee-rp-indicator-code
type: VARCHAR(1)
- RC_RP_IND_CD:
description:
@@ -28644,6 +32633,7 @@ cms:
original_type: CHAR
text: Revenue Center Representative Payee (RP) Indicator Code
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-claim-representative-payee-rp-indicator-code
type: VARCHAR(1)
- ACO_ID_NUM:
description:
@@ -28651,6 +32641,7 @@ cms:
original_type: CHAR
text: Accountable Care Organization (ACO) Identification Number
width: 10.0
+ reference: https://resdac.org/cms-data/variables/claim-accountable-care-organization-aco-identification-number
type: VARCHAR(10)
- RC_ALLOGENEIC_STEM_CELL_AMT:
description:
@@ -28658,6 +32649,7 @@ cms:
original_type: NUM
text: Revenue Center Allogeneic Stem Cell Acquisition/Donor Services Amount
width: 10.0
+ reference: https://resdac.org/cms-data/variables/revenue-center-allogeneic-stem-cell-acquisitiondonor-services-amount
type: INT
- ISLET_ADD_ON_PYMT_AMT:
description:
@@ -28665,6 +32657,7 @@ cms:
original_type: NUM
text: Islet Add-On Payment Amount
width: 10.0
+ reference: https://resdac.org/cms-data/variables/islet-add-payment-amount
type: INT
- CLM_IP_INITL_MS_DRG_CD:
description:
@@ -28672,6 +32665,7 @@ cms:
original_type: CHAR
text: Claim Inpatient Initial MS-DRG Code
width: 4.0
+ reference: https://resdac.org/cms-data/variables/medpar-claim-inpatient-initial-ms-drg-code
type: VARCHAR(4)
- VAL_CD_Q1_PYMT_RDCTN_AMT:
description:
@@ -28679,6 +32673,7 @@ cms:
original_type: NUM
text: Value Code Q1 Payment Reduction Amount
width: 10.0
+ reference: https://resdac.org/cms-data/variables/value-code-q1-payment-reduction-amount
type: INT
- CLM_MODEL_REIMBRSMT_AMT:
description:
@@ -28686,6 +32681,7 @@ cms:
original_type: NUM
text: Claim Model Reimbursement Amount
width: 10.0
+ reference: https://resdac.org/cms-data/variables/claim-model-reimbursement-amount
type: INT
- RC_MODEL_REIMBRSMT_AMT:
description:
@@ -28693,6 +32689,7 @@ cms:
original_type: NUM
text: Revenue Center Model Reimbursement Amount
width: 10.0
+ reference: https://resdac.org/cms-data/variables/revenue-center-model-reimbursement-amount
type: INT
- VAL_CD_QB_OCM_PYMT_ADJSTMT_AMT:
description:
@@ -28700,6 +32697,7 @@ cms:
original_type: NUM
text: Value Code QB OCM + Payment Adjustment Amount
width: 10.0
+ reference: https://resdac.org/cms-data/variables/value-code-qb-ocm-payment-adjustment-amount
type: INT
- CELL_GENE_THRPY_PRCDRS_TOT_AMT:
description:
@@ -28707,6 +32705,7 @@ cms:
original_type: NUM
text: Cell/Gene Therapy Procedures Total Charge Amount
width: 10.0
+ reference: https://resdac.org/cms-data/variables/cellgene-therapy-procedures-total-charge-amount
type: INT
- CELL_THRPY_DRUGS_TOT_AMT:
description:
@@ -28714,6 +32713,7 @@ cms:
original_type: NUM
text: Cell Therapy Drugs Total Charge Amount
width: 10.0
+ reference: https://resdac.org/cms-data/variables/cell-therapy-drugs-total-charge-amount
type: INT
- GENE_THRPY_DRUGS_TOT_AMT:
description:
@@ -28721,6 +32721,7 @@ cms:
original_type: NUM
text: Gene Therapy Drugs Total Charge Amount
width: 10.0
+ reference: https://resdac.org/cms-data/variables/gene-therapy-drugs-total-charge-amount
type: INT
- FILE:
description:
@@ -28729,6 +32730,7 @@ cms:
width: 128
index:
required_before_loading_data: true
+ reference: null
source:
type: file
type: VARCHAR(128)
@@ -28737,6 +32739,7 @@ cms:
original_type: BIGSERIAL
text: Record number in the file
width: null
+ reference: https://resdac.org/cms-data/variables/nch-near-line-record-identification-code-ric
type: BIGSERIAL
- STATE:
description:
@@ -28744,6 +32747,7 @@ cms:
text: SSA standard state code of a beneficiarys residence.
width: 2.0
index: true
+ reference: https://resdac.org/cms-data/variables/state-code-beneficiary-ssa-code
source:
code: GENERATED ALWAYS AS (STATE_CD) STORED
type: generated
@@ -28754,6 +32758,7 @@ cms:
text: Year of MedPAR Record
width: 4.0
index: true
+ reference: https://resdac.org/cms-data/variables/mbsf-cc-30/alzheimers-disease-end-year-indicator
source:
code: GENERATED ALWAYS AS (MEDPAR_YR_NUM) STORED
type: generated
@@ -28764,6 +32769,7 @@ cms:
text: Zip code of the mailing address where the beneficiary may be contacted.
width: 5.0
index: true
+ reference: https://resdac.org/cms-data/variables/zip-code-beneficiary
source:
code: GENERATED ALWAYS AS (BENE_ZIP) STORED
type: generated
@@ -28785,6 +32791,7 @@ cms:
text: Encrypted 723 Beneficiary ID
width: 15.0
index: true
+ reference: https://resdac.org/cms-data/variables/ccw-beneficiary-id
type: VARCHAR(15)
- MEDPARID:
description:
@@ -28792,6 +32799,7 @@ cms:
original_type: CHAR
text: Unique Key for CCW MedPAR Table
width: 15.0
+ reference: https://resdac.org/cms-data/variables/medpar-id-number
type: VARCHAR(15)
- MEDPAR_YR_NUM:
description:
@@ -28799,6 +32807,7 @@ cms:
original_type: CHAR
text: Year of MedPAR Record
width: 4.0
+ reference: https://resdac.org/cms-data/variables/year-medpar-record
type: VARCHAR(4)
- CLM_TYPE:
description:
@@ -28806,6 +32815,7 @@ cms:
original_type: CHAR
text: NCH Claim Type Code
width: 2.0
+ reference: https://resdac.org/cms-data/variables/nch-claim-type-code
type: VARCHAR(2)
- BIC:
description:
@@ -28813,6 +32823,7 @@ cms:
original_type: CHAR
text: BIC reported on first claim included in stay
width: 2.0
+ reference: https://resdac.org/cms-data/variables/bic-reported-first-claim-included-stay
type: VARCHAR(2)
- EQ_BIC:
description:
@@ -28820,6 +32831,7 @@ cms:
original_type: CHAR
text: Equated BIC
width: 2.0
+ reference: https://resdac.org/cms-data/variables/equated-bic
type: VARCHAR(2)
- AGE_CNT:
description:
@@ -28827,6 +32839,7 @@ cms:
original_type: NUM
text: Age as of Date of Admission.
width: 4.0
+ reference: https://resdac.org/cms-data/variables/age-date-admission
type: INT
- SEX:
description:
@@ -28834,6 +32847,7 @@ cms:
original_type: CHAR
text: Sex of Beneficiary
width: 1.0
+ reference: https://resdac.org/sites/datadocumentation.resdac.org/files/Introduction%20to%20DE-SynPUF%20%28Slides%29.pdf
type: VARCHAR(1)
- RACE:
description:
@@ -28841,6 +32855,7 @@ cms:
original_type: CHAR
text: Race of Beneficiary
width: 1.0
+ reference: https://resdac.org/cms-data/variables/beneficiary-race-code-base
type: VARCHAR(1)
- MS_CD:
description:
@@ -28848,6 +32863,7 @@ cms:
original_type: CHAR
text: Reason for entitlement to Medicare benefits as of CLM_THRU_DT
width: 2.0
+ reference: https://resdac.org/cms-data/variables/reason-entitlement-medicare-benefits-clmthrudt
type: VARCHAR(2)
- STATE_CD:
description:
@@ -28855,6 +32871,7 @@ cms:
original_type: CHAR
text: SSA standard state code of a beneficiarys residence.
width: 2.0
+ reference: https://resdac.org/cms-data/variables/state-code-beneficiary-ssa-code
type: VARCHAR(2)
- CNTY_CD:
description:
@@ -28862,6 +32879,7 @@ cms:
original_type: CHAR
text: SSA standard county code of a beneficiarys residence.
width: 3.0
+ reference: https://resdac.org/sites/datadocumentation.resdac.org/files/Introduction%20to%20DE-SynPUF%20%28Slides%29.pdf
type: VARCHAR(3)
- BENE_ZIP:
description:
@@ -28869,6 +32887,7 @@ cms:
original_type: CHAR
text: Zip code of the mailing address where the beneficiary may be contacted.
width: 5.0
+ reference: https://resdac.org/cms-data/variables/zip-code-beneficiary-home-or-mailing-address-latest-year
type: VARCHAR(5)
- DSCHRGCD:
description:
@@ -28876,6 +32895,7 @@ cms:
original_type: CHAR
text: Code identifying status of patient as of CLM_THRU_DT
width: 1.0
+ reference: https://resdac.org/cms-data/variables/code-identifying-status-patient-clmthrudt
type: VARCHAR(1)
- FICARR:
description:
@@ -28883,6 +32903,7 @@ cms:
original_type: CHAR
text: Intermediary processor identification
width: 5.0
+ reference: https://resdac.org/cms-data/variables/fiscal-intermediary-fi-id-number
type: VARCHAR(5)
- WRNGCD:
description:
@@ -28891,6 +32912,7 @@ cms:
text: Warn ind spcfyng dtld billing info obtnd frm clms analyzd for stay
prcss
width: 18.0
+ reference: https://resdac.org/cms-data/variables/warning-indicators-code-specifying-detailed-billing-info
type: VARCHAR(18)
- GHOPDCD:
description:
@@ -28898,6 +32920,7 @@ cms:
original_type: CHAR
text: Code indicating whether or not GHO has paid provider for claim(s)
width: 1.0
+ reference: https://resdac.org/cms-data/variables/code-indicating-whether-group-health-organization-gho-has-paid-provider-claims
type: VARCHAR(1)
- PPS_IND:
description:
@@ -28905,6 +32928,7 @@ cms:
original_type: CHAR
text: Code indicating whether or not facility is being paid under PPS
width: 1.0
+ reference: https://resdac.org/cms-data/variables/prospective-payment-system-pps-indicator-code
type: VARCHAR(1)
- ORGNPINM:
description:
@@ -28912,6 +32936,7 @@ cms:
original_type: CHAR
text: Organization NPI Number
width: 10.0
+ reference: https://resdac.org/cms-data/variables/organization-npi-number-ffs
type: VARCHAR(10)
- PRVDRNUM:
description:
@@ -28919,6 +32944,7 @@ cms:
original_type: CHAR
text: MEDPAR Provider Number
width: 10.0
+ reference: https://resdac.org/cms-data/variables/provider-number
type: VARCHAR(10)
- SPCLUNIT:
description:
@@ -28927,6 +32953,7 @@ cms:
text: Special num system code for hosp units that are PPS/SNF SB dsgntn
excl.
width: 1.0
+ reference: https://resdac.org/cms-data/variables/provider-number-special-unit-code
type: VARCHAR(1)
- SSLSSNF:
description:
@@ -28934,6 +32961,7 @@ cms:
original_type: CHAR
text: Code indicating whether stay is short stay, long stay, or SNF
width: 1.0
+ reference: https://resdac.org/cms-data/variables/short-staylong-staysnf-provider-indicator-code
type: VARCHAR(1)
- ACTV_XREF_IND:
description:
@@ -28941,6 +32969,7 @@ cms:
original_type: CHAR
text: Active Cross-Refference Indicator
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-active-cross-reference-indicator
type: VARCHAR(1)
- SLCT_RSN_CD:
description:
@@ -28948,6 +32977,7 @@ cms:
original_type: CHAR
text: Specifies whether this record is a case or control record.
width: 1.0
+ reference: https://resdac.org/cms-data/variables/specifies-whether-record-case-or-control-record
type: VARCHAR(1)
- FACLMCNT:
description:
@@ -28955,6 +32985,7 @@ cms:
original_type: NUM
text: Claims (final action) included in stay
width: 5.0
+ reference: https://resdac.org/cms-data/variables/number-claims-final-action-included-stay
type: INT
- ACRTNDT:
description:
@@ -28963,6 +32994,7 @@ cms:
text: Date latest claim incl in stay accreted to bene mstr rec at the
CWF host
width: 8.0
+ reference: https://resdac.org/cms-data/variables/latest-claim-accretion-date
type: DATE
- EXHST_DT:
description:
@@ -28970,6 +33002,7 @@ cms:
original_type: DATE
text: Last date beneficiary had Medicare coverage
width: 8.0
+ reference: https://resdac.org/cms-data/variables/beneficiary-medicare-benefit-exhausted-date
type: DATE
- QLFYFROM:
description:
@@ -28977,6 +33010,7 @@ cms:
original_type: DATE
text: Beginning date of beneficiarys qualifying stay
width: 8.0
+ reference: https://resdac.org/cms-data/variables/beginning-date-beneficiarys-qualifying-snf-stay
type: DATE
- QLFYTHRU:
description:
@@ -28984,6 +33018,7 @@ cms:
original_type: DATE
text: Ending date of beneficiarys qualifying stay
width: 8.0
+ reference: https://resdac.org/cms-data/variables/ending-date-beneficiarys-qualifying-snf-stay
type: DATE
- SRC_ADMS:
description:
@@ -28992,6 +33027,7 @@ cms:
text: Admssn to an Inp facility or, for newborn admssn, type of delivery
code
width: 1.0
+ reference: https://resdac.org/cms-data/variables/source-admission-inpatient-facility-newborn-admit-type-delivery-code
type: VARCHAR(1)
- TYPE_ADM:
description:
@@ -29000,6 +33036,7 @@ cms:
text: Type and priority of benes admission to facility for Inp hosp stay
code
width: 1.0
+ reference: https://resdac.org/cms-data/variables/inpatient-admission-type-code
type: VARCHAR(1)
- ADMSNDAY:
description:
@@ -29007,6 +33044,7 @@ cms:
original_type: CHAR
text: Code indicating day of week beneficiary was admitted to facility.
width: 1.0
+ reference: https://resdac.org/cms-data/variables/code-indicating-day-week-beneficiary-was-admitted-facility
type: VARCHAR(1)
- ADMSNDT:
description:
@@ -29014,6 +33052,7 @@ cms:
original_type: DATE
text: Date beneficiary admitted for Inpatient care or date care started
width: 8.0
+ reference: https://resdac.org/cms-data/variables/date-beneficiary-admitted-inpatient-care-or-date-care-started
type: DATE
- DSCHRGDT:
description:
@@ -29021,6 +33060,7 @@ cms:
original_type: DATE
text: Date beneficiary was discharged or died
width: 8.0
+ reference: https://resdac.org/cms-data/variables/discharge-date
type: DATE
- DSTNTNCD:
description:
@@ -29028,6 +33068,7 @@ cms:
original_type: CHAR
text: Destination upon discharge from facility code
width: 2.0
+ reference: https://resdac.org/cms-data/variables/medpar-discharge-destination-code
type: VARCHAR(2)
- CVRLVLDT:
description:
@@ -29035,6 +33076,7 @@ cms:
original_type: DATE
text: Date covered level of care ended in a SNF
width: 8.0
+ reference: null
type: DATE
- DEATHDT:
description:
@@ -29042,6 +33084,7 @@ cms:
original_type: DATE
text: Date beneficiary died
width: 8.0
+ reference: https://resdac.org/cms-data/variables/date-death
type: DATE
- DEATHCD:
description:
@@ -29049,6 +33092,7 @@ cms:
original_type: CHAR
text: Death Date Verification Code
width: 1.0
+ reference: https://resdac.org/cms-data/variables/death-date-verification-code
type: VARCHAR(1)
- DEATHDAY:
description:
@@ -29056,6 +33100,7 @@ cms:
original_type: NUM
text: Days from date admitted to facility to date of death
width: 7.0
+ reference: https://resdac.org/cms-data/variables/days-date-admitted-facility-date-death
type: INT
- SSICD:
description:
@@ -29063,6 +33108,7 @@ cms:
original_type: CHAR
text: MEDPAR Internal Use SSI Indicator Code
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-internal-use-ssi-indicator-code
type: VARCHAR(1)
- SSIDAY:
description:
@@ -29070,6 +33116,7 @@ cms:
original_type: NUM
text: MEDPAR Internal Use SSI Day Count
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-internal-use-ssi-day-count
type: INT
- INTRNL_USE_SSI_DATA:
description:
@@ -29077,6 +33124,7 @@ cms:
original_type: CHAR
text: Internal Use SSI Data
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-internal-use-ssi-data
type: VARCHAR(1)
- IPSBCD:
description:
@@ -29084,6 +33132,7 @@ cms:
original_type: CHAR
text: For internal Use Only. IPSB Code
width: 3.0
+ reference: https://resdac.org/cms-data/variables/medpar-internal-use-ipsb-code
type: VARCHAR(3)
- FILDTCD:
description:
@@ -29091,6 +33140,7 @@ cms:
original_type: CHAR
text: For internal use only. Fiscal year/calendar year segments.
width: 1.0
+ reference: https://resdac.org/cms-data/variables/internal-use-only-fiscal-yearcalendar-year-segments
type: VARCHAR(1)
- SMPLSIZE:
description:
@@ -29098,6 +33148,7 @@ cms:
original_type: CHAR
text: For internal use. MEDPAR sample size.
width: 1.0
+ reference: https://resdac.org/cms-data/variables/internal-use-medpar-sample-size
type: VARCHAR(1)
- LOSCNT:
description:
@@ -29105,6 +33156,7 @@ cms:
original_type: NUM
text: Days of beneficiarys stay in a hospital/SNF
width: 7.0
+ reference: https://resdac.org/cms-data/variables/days-beneficiarys-stay-hospitalsnf
type: INT
- OUTLRDAY:
description:
@@ -29113,6 +33165,7 @@ cms:
text: Days paid as outliers (either day or cost) under PPS beyond DRG
threshld
width: 5.0
+ reference: https://resdac.org/cms-data/variables/days-paid-outliers-either-day-or-cost-under-pps-beyond-drg-threshold
type: INT
- UTIL_DAY:
description:
@@ -29120,6 +33173,7 @@ cms:
original_type: NUM
text: Covered days of care chargeable to Medicare utilization for stay
width: 7.0
+ reference: https://resdac.org/cms-data/variables/covered-days-care-chargeable-medicare-utilization-stay
type: INT
- COIN_DAY:
description:
@@ -29127,6 +33181,7 @@ cms:
original_type: NUM
text: MEDPAR Beneficiary Total Coinsurance Day Count
width: 5.0
+ reference: https://resdac.org/cms-data/variables/medpar-beneficiary-total-coinsurance-day-count
type: INT
- LRD_USE:
description:
@@ -29134,6 +33189,7 @@ cms:
original_type: NUM
text: Lifetime reserve days (LRD) used by beneficiary for stay
width: 5.0
+ reference: https://resdac.org/cms-data/variables/lifetime-reserve-days-lrd-used-beneficiary-stay
type: INT
- COIN_AMT:
description:
@@ -29141,6 +33197,7 @@ cms:
original_type: NUM
text: Beneficiarys liability for part A coinsurance for stay ($)
width: 10.0
+ reference: https://resdac.org/cms-data/variables/beneficiarys-liability-part-coinsurance-stay
type: INT
- DED_AMT:
description:
@@ -29148,6 +33205,7 @@ cms:
original_type: NUM
text: Beneficiarys liability for stay ($)
width: 10.0
+ reference: https://resdac.org/cms-data/variables/beneficiarys-liability-deductible-stay
type: INT
- BLDDEDAM:
description:
@@ -29155,6 +33213,7 @@ cms:
original_type: NUM
text: Beneficiarys liability for blood deductible for stay ($)
width: 10.0
+ reference: https://resdac.org/cms-data/variables/beneficiarys-liability-blood-deductible-stay
type: INT
- PRPAY_CD:
description:
@@ -29162,6 +33221,7 @@ cms:
original_type: CHAR
text: Primary payer responsibility code
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-beneficiary-primary-payer-code
type: VARCHAR(1)
- PRPAYAMT:
description:
@@ -29170,6 +33230,7 @@ cms:
text: Primry payer other than Medicare for covered Medicare chrgs for
stay ($)
width: 10.0
+ reference: https://resdac.org/cms-data/variables/primary-payer-paid-amount
type: INT
- DRG_CD:
description:
@@ -29177,6 +33238,7 @@ cms:
original_type: CHAR
text: DRG Code
width: 4.0
+ reference: https://resdac.org/cms-data/variables/diagnosis-related-group-drg-code
type: VARCHAR(4)
- OUTLR_CD:
description:
@@ -29184,6 +33246,7 @@ cms:
original_type: CHAR
text: Cost or Day Outlier code
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-drgoutlier-stay-code
type: VARCHAR(1)
- OUTLRAMT:
description:
@@ -29192,6 +33255,7 @@ cms:
text: Addtnl approved due to outlier situation over DRG allowance for
stay ($)
width: 10.0
+ reference: https://resdac.org/cms-data/variables/drg-outlier-approved-payment-amount
type: INT
- DRGPRICE:
description:
@@ -29200,6 +33264,7 @@ cms:
text: Wld hv bn pd if no dedctbls,coinsrnc,prmry payrs,otlrs were invlvd
($)
width: 10.0
+ reference: https://resdac.org/cms-data/variables/drg-price-amount
type: INT
- DISP_SHR:
description:
@@ -29208,6 +33273,7 @@ cms:
text: Over the DRG amount for disproportionate share hospital for stay
($)
width: 10.0
+ reference: https://resdac.org/cms-data/variables/inpatient-disproportionate-share-dsh-amount
type: INT
- IME_AMT:
description:
@@ -29215,6 +33281,7 @@ cms:
original_type: NUM
text: Additional payment made to teaching hospitals for IME for stay ($)
width: 10.0
+ reference: https://resdac.org/cms-data/variables/indirect-medical-education-ime-amount
type: INT
- PASSTHRU:
description:
@@ -29222,6 +33289,7 @@ cms:
original_type: NUM
text: Total of all claim pass thru for stay ($)
width: 10.0
+ reference: https://resdac.org/cms-data/variables/pass-thru-diem-amount-stay
type: INT
- PPS_CPTL:
description:
@@ -29229,6 +33297,7 @@ cms:
original_type: NUM
text: Total payable for capital PPS ($)
width: 10.0
+ reference: https://resdac.org/cms-data/variables/total-pps-capital-amount
type: INT
- IP_LOW_VOL_PYMT_AMT:
description:
@@ -29236,6 +33305,7 @@ cms:
original_type: NUM
text: Inpatient Low Volume Payment Amount.
width: 10.0
+ reference: https://resdac.org/cms-data/variables/inpatient-low-volume-payment-amount
type: INT
- TOTCHRG:
description:
@@ -29244,6 +33314,7 @@ cms:
text: Total all charges for all srvcs provided to beneficiary for stay
($)
width: 10.0
+ reference: https://resdac.org/cms-data/variables/total-charge-amount
type: INT
- CVRCHRG:
description:
@@ -29251,6 +33322,7 @@ cms:
original_type: NUM
text: Portion of total charges covered by Medicare for stay ($)
width: 10.0
+ reference: https://resdac.org/cms-data/variables/total-covered-charge-amount
type: INT
- PMT_AMT:
description:
@@ -29259,6 +33331,7 @@ cms:
text: Amt of payment from Medicare trust fund for srvcs covered by claim
($)
width: 10.0
+ reference: https://resdac.org/cms-data/variables/total-medicare-payment-amount
type: INT
- ACMDTNS:
description:
@@ -29267,6 +33340,7 @@ cms:
text: Total charge for all accommodations related to beneficiarys stay
($)
width: 10.0
+ reference: https://resdac.org/cms-data/variables/total-charge-all-accommodations
type: INT
- DPRTMNTL:
description:
@@ -29275,6 +33349,7 @@ cms:
text: Total charge for all ancillary depts related to beneficiarys stay
($)
width: 10.0
+ reference: https://resdac.org/cms-data/variables/total-charge-all-ancillary-departments-related-beneficiarys-stay
type: INT
- PRVTDAY:
description:
@@ -29282,6 +33357,7 @@ cms:
original_type: NUM
text: Private room days used by beneficiary for stay
width: 5.0
+ reference: https://resdac.org/cms-data/variables/private-room-day-count
type: INT
- SPRVTDAY:
description:
@@ -29289,6 +33365,7 @@ cms:
original_type: NUM
text: Semi-private room days used by beneficiary for stay
width: 5.0
+ reference: https://resdac.org/cms-data/variables/semi-private-room-day-count
type: INT
- WARDDAY:
description:
@@ -29296,6 +33373,7 @@ cms:
original_type: NUM
text: Ward days used by beneficiary for stay
width: 5.0
+ reference: https://resdac.org/cms-data/variables/ward-day-count
type: INT
- ICARECNT:
description:
@@ -29303,6 +33381,7 @@ cms:
original_type: NUM
text: Intensive care days used by beneficiary for stay
width: 5.0
+ reference: https://resdac.org/cms-data/variables/intensive-care-day-count
type: INT
- CRNRYDAY:
description:
@@ -29310,6 +33389,7 @@ cms:
original_type: NUM
text: Coronary care days used by beneficiary for stay
width: 5.0
+ reference: https://resdac.org/cms-data/variables/coronary-care-day-count
type: INT
- PRVTAMT:
description:
@@ -29317,6 +33397,7 @@ cms:
original_type: NUM
text: Private room accommodations related to beneficiarys stay ($)
width: 10.0
+ reference: https://resdac.org/cms-data/variables/private-room-charge-amount
type: INT
- SPRVTAMT:
description:
@@ -29324,6 +33405,7 @@ cms:
original_type: NUM
text: Semi-private room accommodations related to beneficiarys stay ($)
width: 10.0
+ reference: https://resdac.org/cms-data/variables/semi-private-room-charge-amount
type: INT
- WARDAMT:
description:
@@ -29331,6 +33413,7 @@ cms:
original_type: NUM
text: Ward accommodations related to beneficiarys stay ($)
width: 10.0
+ reference: https://resdac.org/cms-data/variables/ward-charge-amount
type: INT
- ICAREAMT:
description:
@@ -29338,6 +33421,7 @@ cms:
original_type: NUM
text: Intensive care accommodations related to beneficiarys stay ($)
width: 10.0
+ reference: https://resdac.org/cms-data/variables/intensive-care-charge-amount
type: INT
- CRNRYAMT:
description:
@@ -29345,6 +33429,7 @@ cms:
original_type: NUM
text: Coronary care accommodations related to beneficiarys stay ($)
width: 10.0
+ reference: https://resdac.org/cms-data/variables/coronary-care-charge-amount
type: INT
- OTHRAMT:
description:
@@ -29352,6 +33437,7 @@ cms:
original_type: NUM
text: Other services related to beneficiarys stay ($)
width: 10.0
+ reference: https://resdac.org/cms-data/variables/other-service-charge-amount
type: INT
- PHRMCAMT:
description:
@@ -29359,6 +33445,7 @@ cms:
original_type: NUM
text: Pharmaceutical costs related to beneficiarys stay ($)
width: 10.0
+ reference: https://resdac.org/cms-data/variables/pharmacy-charge-amount
type: INT
- SUPLYAMT:
description:
@@ -29366,6 +33453,7 @@ cms:
original_type: NUM
text: Medical/surgical supplies related to beneficiarys stay ($)
width: 10.0
+ reference: https://resdac.org/cms-data/variables/medicalsurgical-supplies-charge-amount
type: INT
- DME_AMT:
description:
@@ -29373,6 +33461,7 @@ cms:
original_type: NUM
text: DME related to beneficiarys stay ($)
width: 10.0
+ reference: https://resdac.org/cms-data/variables/durable-medical-equipment-dme-charge-amount
type: INT
- UDME_AMT:
description:
@@ -29380,6 +33469,7 @@ cms:
original_type: NUM
text: Used DME related to beneficiarys stay ($)
width: 10.0
+ reference: https://resdac.org/cms-data/variables/used-durable-medical-equipment-dme-charge-amount
type: INT
- PHYTHAMT:
description:
@@ -29387,6 +33477,7 @@ cms:
original_type: NUM
text: Physical therapy services provided during beneficiarys stay ($)
width: 10.0
+ reference: https://resdac.org/cms-data/variables/physical-therapy-charge-amount
type: INT
- OCPTLAMT:
description:
@@ -29395,6 +33486,7 @@ cms:
text: Occupational therapy services provided during beneficiarys stay
($)
width: 10.0
+ reference: https://resdac.org/cms-data/variables/occupational-therapy-charge-amount
type: INT
- SPCH_AMT:
description:
@@ -29402,6 +33494,7 @@ cms:
original_type: NUM
text: Speech pathology services provided during beneficiarys stay ($)
width: 10.0
+ reference: https://resdac.org/cms-data/variables/speech-pathology-charge-amount
type: INT
- INHLTAMT:
description:
@@ -29409,6 +33502,7 @@ cms:
original_type: NUM
text: Inhalation therapy services provided during beneficiarys stay ($)
width: 10.0
+ reference: https://resdac.org/cms-data/variables/inhalation-therapy-charge-amount
type: INT
- BLOODAMT:
description:
@@ -29416,6 +33510,7 @@ cms:
original_type: NUM
text: Blood provided during beneficiarys stay ($)
width: 10.0
+ reference: https://resdac.org/cms-data/variables/blood-charge-amount
type: INT
- BLDADMIN:
description:
@@ -29423,6 +33518,7 @@ cms:
original_type: NUM
text: Blood storage and processing related to beneficiarys stay ($)
width: 10.0
+ reference: https://resdac.org/cms-data/variables/blood-storage-and-processing-charge-amount
type: INT
- BLDFRNSH:
description:
@@ -29431,6 +33527,7 @@ cms:
text: Quantity of blood (whole pints) furnished to beneficiary during
stay
width: 5.0
+ reference: https://resdac.org/cms-data/variables/blood-pints-furnished-quantity
type: INT
- OROOMAMT:
description:
@@ -29439,6 +33536,7 @@ cms:
text: OR, recovery rm, and labor rm delivery used by bene during stay
($)
width: 10.0
+ reference: https://resdac.org/cms-data/variables/operating-room-charge-amount
type: INT
- LTHTRPSY:
description:
@@ -29446,6 +33544,7 @@ cms:
original_type: NUM
text: Lithotripsy services provided during beneficiarys stay ($)
width: 10.0
+ reference: https://resdac.org/cms-data/variables/lithotripsy-charge-amount
type: INT
- CRDLGY:
description:
@@ -29454,6 +33553,7 @@ cms:
text: Cardiology services and ECG(s) provided during beneficiarys stay
($)
width: 10.0
+ reference: https://resdac.org/cms-data/variables/cardiology-charge-amount
type: INT
- ANSTHSA:
description:
@@ -29461,6 +33561,7 @@ cms:
original_type: NUM
text: Anesthesia services provided during beneficiarys stay ($)
width: 10.0
+ reference: https://resdac.org/cms-data/variables/anesthesia-charge-amount
type: INT
- LAB_AMT:
description:
@@ -29468,6 +33569,7 @@ cms:
original_type: NUM
text: Laboratory costs related to beneficiarys stay ($)
width: 10.0
+ reference: https://resdac.org/cms-data/variables/laboratory-charge-amount
type: INT
- RDLGYAMT:
description:
@@ -29475,6 +33577,7 @@ cms:
original_type: NUM
text: Radiology costs (excluding MRI) related to a beneficiarys stay ($)
width: 10.0
+ reference: https://resdac.org/cms-data/variables/radiology-charge-amount-excluding-mri
type: INT
- MRI_AMT:
description:
@@ -29482,6 +33585,7 @@ cms:
original_type: NUM
text: MRI services provided during beneficiarys stay ($)
width: 10.0
+ reference: https://resdac.org/cms-data/variables/magnetic-resonance-imaging-mri-charge-amount
type: INT
- OPSRVC:
description:
@@ -29489,6 +33593,7 @@ cms:
original_type: NUM
text: Outpatient services provided during beneficiarys stay ($)
width: 10.0
+ reference: https://resdac.org/cms-data/variables/outpatient-service-charge-amount
type: INT
- ER_AMT:
description:
@@ -29496,6 +33601,7 @@ cms:
original_type: NUM
text: Emergency room services provided during beneficiarys stay ($)
width: 10.0
+ reference: https://resdac.org/cms-data/variables/emergency-room-er-charge-amount
type: INT
- AMBLNC:
description:
@@ -29503,6 +33609,7 @@ cms:
original_type: NUM
text: Ambulance services related to beneficiarys stay ($)
width: 10.0
+ reference: https://resdac.org/cms-data/variables/ambulance-charge-amount
type: INT
- PROFFEES:
description:
@@ -29510,6 +33617,7 @@ cms:
original_type: NUM
text: Professional fees related to beneficiarys stay ($)
width: 10.0
+ reference: https://resdac.org/cms-data/variables/professional-fees-charge-amount
type: INT
- ORGNAMT:
description:
@@ -29518,6 +33626,7 @@ cms:
text: Organ acquisition or oth donor bank srvcs related to benes stay
($)
width: 10.0
+ reference: https://resdac.org/cms-data/variables/organ-acquisition-or-other-donor-bank-charge-amount
type: INT
- ESRDSETG:
description:
@@ -29525,6 +33634,7 @@ cms:
original_type: NUM
text: ESRD services related to beneficiarys stay ($)
width: 10.0
+ reference: https://resdac.org/cms-data/variables/end-stage-renal-disease-esrd-charge-amount
type: INT
- CLNC_AMT:
description:
@@ -29532,6 +33642,7 @@ cms:
original_type: NUM
text: Clinic visits related to beneficiarys stay ($)
width: 10.0
+ reference: https://resdac.org/cms-data/variables/clinic-visit-charge-amount
type: INT
- ICUINDCD:
description:
@@ -29539,6 +33650,7 @@ cms:
original_type: CHAR
text: ICU type code
width: 1.0
+ reference: https://resdac.org/cms-data/variables/intensive-care-unit-icu-indicator-code
type: VARCHAR(1)
- CRNRY_CD:
description:
@@ -29546,6 +33658,7 @@ cms:
original_type: CHAR
text: Coronary care unit type code
width: 1.0
+ reference: https://resdac.org/cms-data/variables/coronary-care-unit-ccu-indicator-code
type: VARCHAR(1)
- PHRMCYCD:
description:
@@ -29553,6 +33666,7 @@ cms:
original_type: CHAR
text: Drugs type code
width: 1.0
+ reference: https://resdac.org/cms-data/variables/pharmacy-indicator-code
type: VARCHAR(1)
- TRNSPLNT:
description:
@@ -29560,6 +33674,7 @@ cms:
original_type: CHAR
text: Organ transplant code
width: 1.0
+ reference: https://resdac.org/cms-data/variables/organ-transplant-indicator-code
type: VARCHAR(1)
- ONCLGYSW:
description:
@@ -29567,6 +33682,7 @@ cms:
original_type: CHAR
text: Radiology oncology services indicator
width: 1.0
+ reference: https://resdac.org/cms-data/variables/oncology-indicator
type: VARCHAR(1)
- DGNSTCSW:
description:
@@ -29574,6 +33690,7 @@ cms:
original_type: CHAR
text: Radiology diagnostic services indicator
width: 1.0
+ reference: https://resdac.org/cms-data/variables/diagnostic-radiology-indicator
type: VARCHAR(1)
- THRPTCSW:
description:
@@ -29581,6 +33698,7 @@ cms:
original_type: CHAR
text: Radiology therapeutic services indicator
width: 1.0
+ reference: https://resdac.org/cms-data/variables/therapeutic-radiology-indicator
type: VARCHAR(1)
- NUCLR_SW:
description:
@@ -29588,6 +33706,7 @@ cms:
original_type: CHAR
text: Radiology nuclear medicine services indicator
width: 1.0
+ reference: https://resdac.org/cms-data/variables/radiology-nuclear-medicine-indicator
type: VARCHAR(1)
- CTSCANSW:
description:
@@ -29595,6 +33714,7 @@ cms:
original_type: CHAR
text: Radiology computed tomographic (CT) scan services indicator
width: 1.0
+ reference: https://resdac.org/cms-data/variables/radiology-computed-tomographic-ct-scan-indicator
type: VARCHAR(1)
- IMGNG_SW:
description:
@@ -29602,6 +33722,7 @@ cms:
original_type: CHAR
text: Radiology other imaging services indicator
width: 1.0
+ reference: https://resdac.org/cms-data/variables/radiology-other-imaging-indicator
type: VARCHAR(1)
- OPSRVCCD:
description:
@@ -29609,6 +33730,7 @@ cms:
original_type: CHAR
text: Outpatient services/ambulatory surgical care code
width: 1.0
+ reference: https://resdac.org/cms-data/variables/outpatient-servicesambulatory-surgical-care-indicator-code
type: VARCHAR(1)
- ORGNCD:
description:
@@ -29616,6 +33738,7 @@ cms:
original_type: CHAR
text: Organ acquisition type code
width: 2.0
+ reference: https://resdac.org/cms-data/variables/organ-acquisition-type-code
type: VARCHAR(2)
- ESRD_CD:
description:
@@ -29623,6 +33746,7 @@ cms:
original_type: CHAR
text: ESRD condition code
width: 2.0
+ reference: https://resdac.org/cms-data/variables/end-stage-renal-disease-esrd-condition-indicator-code
type: VARCHAR(2)
- ESRDSTG1:
description:
@@ -29630,6 +33754,7 @@ cms:
original_type: CHAR
text: Dialysis type code I
width: 2.0
+ reference: https://resdac.org/cms-data/variables/dialysis-service-type-code-1
type: VARCHAR(2)
- ESRDSTG2:
description:
@@ -29637,6 +33762,7 @@ cms:
original_type: CHAR
text: Dialysis type code II
width: 2.0
+ reference: https://resdac.org/cms-data/variables/dialysis-service-type-code-2
type: VARCHAR(2)
- ESRDSTG3:
description:
@@ -29644,6 +33770,7 @@ cms:
original_type: CHAR
text: Dialysis type code III
width: 2.0
+ reference: https://resdac.org/cms-data/variables/dialysis-service-type-code-3
type: VARCHAR(2)
- ESRDSTG4:
description:
@@ -29651,6 +33778,7 @@ cms:
original_type: CHAR
text: Dialysis type code IV
width: 2.0
+ reference: https://resdac.org/cms-data/variables/dialysis-service-type-code-4
type: VARCHAR(2)
- ESRDSTG5:
description:
@@ -29658,6 +33786,7 @@ cms:
original_type: CHAR
text: Dialysis type code V
width: 2.0
+ reference: https://resdac.org/cms-data/variables/dialysis-service-type-code-5
type: VARCHAR(2)
- AD_DGNS:
description:
@@ -29665,6 +33794,7 @@ cms:
original_type: CHAR
text: Initial diagnosis at time of admission
width: 7.0
+ reference: https://resdac.org/cms-data/variables/admitting-diagnosis-code
type: VARCHAR(7)
- ADMTG_DGNS_VRSN_CD:
description:
@@ -29672,6 +33802,7 @@ cms:
original_type: CHAR
text: MEDPAR Admitting Diagnosis Version Code
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-admitting-diagnosis-version-code-icd-9-or-icd-10
type: VARCHAR(1)
- DGNSCNT:
description:
@@ -29679,6 +33810,7 @@ cms:
original_type: NUM
text: Diagnosis codes included in stay
width: 3.0
+ reference: https://resdac.org/cms-data/variables/count-diagnosis-codes
type: INT
- DGNS_VRSN_CD:
description:
@@ -29687,6 +33819,7 @@ cms:
text: Version Code - Indicate if diagnosis code is ICD-9 or ICD-10 (Earlier
Version)
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-version-code-icd-9-or-icd-10
type: VARCHAR(1)
- DGNS_VRSN_CD_1:
description:
@@ -29694,6 +33827,7 @@ cms:
original_type: CHAR
text: Version Code 01 - Indicate if diagnosis code is ICD-9 or ICD-10.
width: 1.0
+ reference: https://resdac.org/cms-data/variables/diagnosis-version-code-1-icd-9-or-icd-10
type: VARCHAR(1)
- DGNS_VRSN_CD_2:
description:
@@ -29701,6 +33835,7 @@ cms:
original_type: CHAR
text: Version Code 02 - Indicate if diagnosis code is ICD-9 or ICD-10.
width: 1.0
+ reference: https://resdac.org/cms-data/variables/diagnosis-version-code-2-icd-9-or-icd-10
type: VARCHAR(1)
- DGNS_VRSN_CD_3:
description:
@@ -29708,6 +33843,7 @@ cms:
original_type: CHAR
text: Version Code 03 - Indicate if diagnosis code is ICD-9 or ICD-10.
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-version-code-3-icd-9-or-icd-10
type: VARCHAR(1)
- DGNS_VRSN_CD_4:
description:
@@ -29715,6 +33851,7 @@ cms:
original_type: CHAR
text: Version Code 04 - Indicate if diagnosis code is ICD-9 or ICD-10.
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-version-code-4-icd-9-or-icd-10
type: VARCHAR(1)
- DGNS_VRSN_CD_5:
description:
@@ -29722,6 +33859,7 @@ cms:
original_type: CHAR
text: Version Code 05 - Indicate if diagnosis code is ICD-9 or ICD-10.
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-version-code-5-icd-9-or-icd-10
type: VARCHAR(1)
- DGNS_VRSN_CD_6:
description:
@@ -29729,6 +33867,7 @@ cms:
original_type: CHAR
text: Version Code 06 - Indicate if diagnosis code is ICD-9 or ICD-10.
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-version-code-6-icd-9-or-icd-10
type: VARCHAR(1)
- DGNS_VRSN_CD_7:
description:
@@ -29736,6 +33875,7 @@ cms:
original_type: CHAR
text: Version Code 07 - Indicate if diagnosis code is ICD-9 or ICD-10.
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-version-code-7-icd-9-or-icd-10
type: VARCHAR(1)
- DGNS_VRSN_CD_8:
description:
@@ -29743,6 +33883,7 @@ cms:
original_type: CHAR
text: Version Code 08 - Indicate if diagnosis code is ICD-9 or ICD-10.
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-version-code-8-icd-9-or-icd-10
type: VARCHAR(1)
- DGNS_VRSN_CD_9:
description:
@@ -29750,6 +33891,7 @@ cms:
original_type: CHAR
text: Version Code 09 - Indicate if diagnosis code is ICD-9 or ICD-10.
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-version-code-9-icd-9-or-icd-10
type: VARCHAR(1)
- DGNS_VRSN_CD_10:
description:
@@ -29757,6 +33899,7 @@ cms:
original_type: CHAR
text: Version Code 10 - Indicate if diagnosis code is ICD-9 or ICD-10.
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-version-code-10-icd-9-or-icd-10
type: VARCHAR(1)
- DGNS_VRSN_CD_11:
description:
@@ -29764,6 +33907,7 @@ cms:
original_type: CHAR
text: Version Code 11 - Indicate if diagnosis code is ICD-9 or ICD-10.
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-version-code-11-icd-9-or-icd-10
type: VARCHAR(1)
- DGNS_VRSN_CD_12:
description:
@@ -29771,6 +33915,7 @@ cms:
original_type: CHAR
text: Version Code 12 - Indicate if diagnosis code is ICD-9 or ICD-10.
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-version-code-12-icd-9-or-icd-10
type: VARCHAR(1)
- DGNS_VRSN_CD_13:
description:
@@ -29778,6 +33923,7 @@ cms:
original_type: CHAR
text: Version Code 13 - Indicate if diagnosis code is ICD-9 or ICD-10.
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-version-code-13-icd-9-or-icd-10
type: VARCHAR(1)
- DGNS_VRSN_CD_14:
description:
@@ -29785,6 +33931,7 @@ cms:
original_type: CHAR
text: Version Code 14 - Indicate if diagnosis code is ICD-9 or ICD-10.
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-version-code-14-icd-9-or-icd-10
type: VARCHAR(1)
- DGNS_VRSN_CD_15:
description:
@@ -29792,6 +33939,7 @@ cms:
original_type: CHAR
text: Version Code 15 - Indicate if diagnosis code is ICD-9 or ICD-10.
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-version-code-15-icd-9-or-icd-10
type: VARCHAR(1)
- DGNS_VRSN_CD_16:
description:
@@ -29799,6 +33947,7 @@ cms:
original_type: CHAR
text: Version Code 16 - Indicate if diagnosis code is ICD-9 or ICD-10.
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-version-code-16-icd-9-or-icd-10
type: VARCHAR(1)
- DGNS_VRSN_CD_17:
description:
@@ -29806,6 +33955,7 @@ cms:
original_type: CHAR
text: Version Code 17 - Indicate if diagnosis code is ICD-9 or ICD-10.
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-version-code-17-icd-9-or-icd-10
type: VARCHAR(1)
- DGNS_VRSN_CD_18:
description:
@@ -29813,6 +33963,7 @@ cms:
original_type: CHAR
text: Version Code 18 - Indicate if diagnosis code is ICD-9 or ICD-10.
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-version-code-18-icd-9-or-icd-10
type: VARCHAR(1)
- DGNS_VRSN_CD_19:
description:
@@ -29820,6 +33971,7 @@ cms:
original_type: CHAR
text: Version Code 19 - Indicate if diagnosis code is ICD-9 or ICD-10.
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-version-code-19-icd-9-or-icd-10
type: VARCHAR(1)
- DGNS_VRSN_CD_20:
description:
@@ -29827,6 +33979,7 @@ cms:
original_type: CHAR
text: Version Code 20 - Indicate if diagnosis code is ICD-9 or ICD-10.
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-version-code-20-icd-9-or-icd-10
type: VARCHAR(1)
- DGNS_VRSN_CD_21:
description:
@@ -29834,6 +33987,7 @@ cms:
original_type: CHAR
text: Version Code 21 - Indicate if diagnosis code is ICD-9 or ICD-10.
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-version-code-21-icd-9-or-icd-10
type: VARCHAR(1)
- DGNS_VRSN_CD_22:
description:
@@ -29841,6 +33995,7 @@ cms:
original_type: CHAR
text: Version Code 22 - Indicate if diagnosis code is ICD-9 or ICD-10.
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-version-code-22-icd-9-or-icd-10
type: VARCHAR(1)
- DGNS_VRSN_CD_23:
description:
@@ -29848,6 +34003,7 @@ cms:
original_type: CHAR
text: Version Code 23 - Indicate if diagnosis code is ICD-9 or ICD-10.
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-version-code-23-icd-9-or-icd-10
type: VARCHAR(1)
- DGNS_VRSN_CD_24:
description:
@@ -29855,6 +34011,7 @@ cms:
original_type: CHAR
text: Version Code 24 - Indicate if diagnosis code is ICD-9 or ICD-10.
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-version-code-24-icd-9-or-icd-10
type: VARCHAR(1)
- DGNS_VRSN_CD_25:
description:
@@ -29862,6 +34019,7 @@ cms:
original_type: CHAR
text: Version Code 25 - Indicate if diagnosis code is ICD-9 or ICD-10.
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-version-code-25-icd-9-or-icd-10
type: VARCHAR(1)
- DGNSCD1:
description:
@@ -29869,6 +34027,7 @@ cms:
original_type: CHAR
text: Primary Diagnosis code
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-principal-diagnosis-code
type: VARCHAR(7)
- DGNSCD2:
description:
@@ -29876,6 +34035,7 @@ cms:
original_type: CHAR
text: Diagnosis code II
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-code-2
type: VARCHAR(7)
- DGNSCD3:
description:
@@ -29883,6 +34043,7 @@ cms:
original_type: CHAR
text: Diagnosis code III
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-code-3
type: VARCHAR(7)
- DGNSCD4:
description:
@@ -29890,6 +34051,7 @@ cms:
original_type: CHAR
text: Diagnosis code IV
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-code-4
type: VARCHAR(7)
- DGNSCD5:
description:
@@ -29897,6 +34059,7 @@ cms:
original_type: CHAR
text: Diagnosis code V
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-code-5
type: VARCHAR(7)
- DGNSCD6:
description:
@@ -29904,6 +34067,7 @@ cms:
original_type: CHAR
text: Diagnosis code VI
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-code-6
type: VARCHAR(7)
- DGNSCD7:
description:
@@ -29911,6 +34075,7 @@ cms:
original_type: CHAR
text: Diagnosis code VII
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-code-7
type: VARCHAR(7)
- DGNSCD8:
description:
@@ -29918,6 +34083,7 @@ cms:
original_type: CHAR
text: Diagnosis code VIII
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-code-8
type: VARCHAR(7)
- DGNSCD9:
description:
@@ -29925,6 +34091,7 @@ cms:
original_type: CHAR
text: Diagnosis code IX
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-code-9
type: VARCHAR(7)
- DGNSCD10:
description:
@@ -29932,6 +34099,7 @@ cms:
original_type: CHAR
text: Diagnosis code X
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-icd-9-cm-diagnosis-code-10
type: VARCHAR(7)
- DGNSCD11:
description:
@@ -29939,6 +34107,7 @@ cms:
original_type: CHAR
text: Diagnosis code XI
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-icd-9-cm-diagnosis-code-11
type: VARCHAR(7)
- DGNSCD12:
description:
@@ -29946,6 +34115,7 @@ cms:
original_type: CHAR
text: Diagnosis code XII
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-icd-9-cm-diagnosis-code-12
type: VARCHAR(7)
- DGNSCD13:
description:
@@ -29953,6 +34123,7 @@ cms:
original_type: CHAR
text: Diagnosis code XIII
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-icd-9-cm-diagnosis-code-13
type: VARCHAR(7)
- DGNSCD14:
description:
@@ -29960,6 +34131,7 @@ cms:
original_type: CHAR
text: Diagnosis code XIV
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-icd-9-cm-diagnosis-code-14
type: VARCHAR(7)
- DGNSCD15:
description:
@@ -29967,6 +34139,7 @@ cms:
original_type: CHAR
text: Diagnosis code XV
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-icd-9-cm-diagnosis-code-15
type: VARCHAR(7)
- DGNSCD16:
description:
@@ -29974,6 +34147,7 @@ cms:
original_type: CHAR
text: Diagnosis code XVI
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-icd-9-cm-diagnosis-code-16
type: VARCHAR(7)
- DGNSCD17:
description:
@@ -29981,6 +34155,7 @@ cms:
original_type: CHAR
text: Diagnosis code XVII
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-icd-9-cm-diagnosis-code-17
type: VARCHAR(7)
- DGNSCD18:
description:
@@ -29988,6 +34163,7 @@ cms:
original_type: CHAR
text: Diagnosis code XVIII
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-icd-9-cm-diagnosis-code-18
type: VARCHAR(7)
- DGNSCD19:
description:
@@ -29995,6 +34171,7 @@ cms:
original_type: CHAR
text: Diagnosis code XIX
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-icd-9-cm-diagnosis-code-19
type: VARCHAR(7)
- DGNSCD20:
description:
@@ -30002,6 +34179,7 @@ cms:
original_type: CHAR
text: Diagnosis code XX
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-icd-9-cm-diagnosis-code-20
type: VARCHAR(7)
- DGNSCD21:
description:
@@ -30009,6 +34187,7 @@ cms:
original_type: CHAR
text: Diagnosis code XXI
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-icd-9-cm-diagnosis-code-21
type: VARCHAR(7)
- DGNSCD22:
description:
@@ -30016,6 +34195,7 @@ cms:
original_type: CHAR
text: Diagnosis code XXII
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-icd-9-cm-diagnosis-code-22
type: VARCHAR(7)
- DGNSCD23:
description:
@@ -30023,6 +34203,7 @@ cms:
original_type: CHAR
text: Diagnosis code XXIII
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-icd-9-cm-diagnosis-code-23
type: VARCHAR(7)
- DGNSCD24:
description:
@@ -30030,6 +34211,7 @@ cms:
original_type: CHAR
text: Diagnosis code XXIV
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-icd-9-cm-diagnosis-code-24
type: VARCHAR(7)
- DGNSCD25:
description:
@@ -30037,6 +34219,7 @@ cms:
original_type: CHAR
text: Diagnosis code XXV
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-icd-9-cm-diagnosis-code-25
type: VARCHAR(7)
- DGNS_POA:
description:
@@ -30044,6 +34227,7 @@ cms:
original_type: CHAR
text: Diagnosis Code POA Array
width: 10.0
+ reference: https://resdac.org/cms-data/variables/diagnosis-code-poa-array
type: VARCHAR(10)
- POA_DGNS_CD_CNT:
description:
@@ -30051,6 +34235,7 @@ cms:
original_type: NUM
text: MEDPAR Claim Present on Admission Diagnosis Code Count
width: 3.0
+ reference: https://resdac.org/cms-data/variables/count-present-admission-poa-diagnosis-codes
type: INT
- POA_DGNS_1_IND_CD:
description:
@@ -30058,6 +34243,7 @@ cms:
original_type: CHAR
text: Diagnosis Present on Admission Indicator 1
width: 1.0
+ reference: https://resdac.org/cms-data/variables/diagnosis-1-present-admission-poa-indicator-code
type: VARCHAR(1)
- POA_DGNS_2_IND_CD:
description:
@@ -30065,6 +34251,7 @@ cms:
original_type: CHAR
text: Diagnosis Present on Admission Indicator 2
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-present-admission-indicator-2
type: VARCHAR(1)
- POA_DGNS_3_IND_CD:
description:
@@ -30072,6 +34259,7 @@ cms:
original_type: CHAR
text: Diagnosis Present on Admission Indicator 3
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-present-admission-indicator-3
type: VARCHAR(1)
- POA_DGNS_4_IND_CD:
description:
@@ -30079,6 +34267,7 @@ cms:
original_type: CHAR
text: Diagnosis Present on Admission Indicator 4
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-present-admission-indicator-4
type: VARCHAR(1)
- POA_DGNS_5_IND_CD:
description:
@@ -30086,6 +34275,7 @@ cms:
original_type: CHAR
text: Diagnosis Present on Admission Indicator 5
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-present-admission-indicator-5
type: VARCHAR(1)
- POA_DGNS_6_IND_CD:
description:
@@ -30093,6 +34283,7 @@ cms:
original_type: CHAR
text: Diagnosis Present on Admission Indicator 6
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-present-admission-indicator-6
type: VARCHAR(1)
- POA_DGNS_7_IND_CD:
description:
@@ -30100,6 +34291,7 @@ cms:
original_type: CHAR
text: Diagnosis Present on Admission Indicator 7
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-present-admission-indicator-7
type: VARCHAR(1)
- POA_DGNS_8_IND_CD:
description:
@@ -30107,6 +34299,7 @@ cms:
original_type: CHAR
text: Diagnosis Present on Admission Indicator 8
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-present-admission-indicator-8
type: VARCHAR(1)
- POA_DGNS_9_IND_CD:
description:
@@ -30114,6 +34307,7 @@ cms:
original_type: CHAR
text: Diagnosis Present on Admission Indicator 9
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-present-admission-indicator-9
type: VARCHAR(1)
- POA_DGNS_10_IND_CD:
description:
@@ -30121,6 +34315,7 @@ cms:
original_type: CHAR
text: Diagnosis Present on Admission Indicator 10
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-present-admission-indicator-10
type: VARCHAR(1)
- POA_DGNS_11_IND_CD:
description:
@@ -30128,6 +34323,7 @@ cms:
original_type: CHAR
text: Diagnosis Present on Admission Indicator 11
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-present-admission-indicator-11
type: VARCHAR(1)
- POA_DGNS_12_IND_CD:
description:
@@ -30135,6 +34331,7 @@ cms:
original_type: CHAR
text: Diagnosis Present on Admission Indicator 12
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-present-admission-indicator-12
type: VARCHAR(1)
- POA_DGNS_13_IND_CD:
description:
@@ -30142,6 +34339,7 @@ cms:
original_type: CHAR
text: Diagnosis Present on Admission Indicator 13
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-present-admission-indicator-13
type: VARCHAR(1)
- POA_DGNS_14_IND_CD:
description:
@@ -30149,6 +34347,7 @@ cms:
original_type: CHAR
text: Diagnosis Present on Admission Indicator 14
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-present-admission-indicator-14
type: VARCHAR(1)
- POA_DGNS_15_IND_CD:
description:
@@ -30156,6 +34355,7 @@ cms:
original_type: CHAR
text: Diagnosis Present on Admission Indicator 15
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-present-admission-indicator-15
type: VARCHAR(1)
- POA_DGNS_16_IND_CD:
description:
@@ -30163,6 +34363,7 @@ cms:
original_type: CHAR
text: Diagnosis Present on Admission Indicator 16
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-present-admission-indicator-16
type: VARCHAR(1)
- POA_DGNS_17_IND_CD:
description:
@@ -30170,6 +34371,7 @@ cms:
original_type: CHAR
text: Diagnosis Present on Admission Indicator 17
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-present-admission-indicator-17
type: VARCHAR(1)
- POA_DGNS_18_IND_CD:
description:
@@ -30177,6 +34379,7 @@ cms:
original_type: CHAR
text: Diagnosis Present on Admission Indicator 18
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-present-admission-indicator-18
type: VARCHAR(1)
- POA_DGNS_19_IND_CD:
description:
@@ -30184,6 +34387,7 @@ cms:
original_type: CHAR
text: Diagnosis Present on Admission Indicator 19
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-present-admission-indicator-19
type: VARCHAR(1)
- POA_DGNS_20_IND_CD:
description:
@@ -30191,6 +34395,7 @@ cms:
original_type: CHAR
text: Diagnosis Present on Admission Indicator 20
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-present-admission-indicator-20
type: VARCHAR(1)
- POA_DGNS_21_IND_CD:
description:
@@ -30198,6 +34403,7 @@ cms:
original_type: CHAR
text: Diagnosis Present on Admission Indicator 21
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-present-admission-indicator-21
type: VARCHAR(1)
- POA_DGNS_22_IND_CD:
description:
@@ -30205,6 +34411,7 @@ cms:
original_type: CHAR
text: Diagnosis Present on Admission Indicator 22
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-present-admission-indicator-22
type: VARCHAR(1)
- POA_DGNS_23_IND_CD:
description:
@@ -30212,6 +34419,7 @@ cms:
original_type: CHAR
text: Diagnosis Present on Admission Indicator 23
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-present-admission-indicator-23
type: VARCHAR(1)
- POA_DGNS_24_IND_CD:
description:
@@ -30219,6 +34427,7 @@ cms:
original_type: CHAR
text: Diagnosis Present on Admission Indicator 24
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-diagnosis-present-admission-indicator-24
type: VARCHAR(1)
- POA_DGNS_25_IND_CD:
description:
@@ -30226,6 +34435,7 @@ cms:
original_type: CHAR
text: Diagnosis Present on Admission Indicator 25
width: 1.0
+ reference: https://resdac.org/cms-data/variables/diagnosis-e-code-present-admission-indicator-8
type: VARCHAR(1)
- DGNS_E_CD_CNT:
description:
@@ -30233,6 +34443,7 @@ cms:
original_type: NUM
text: MEDPAR Diagnosis E Code Count
width: 3.0
+ reference: https://resdac.org/cms-data/variables/count-diagnosis-e-codes
type: INT
- DGNS_E_VRSN_CD:
description:
@@ -30240,6 +34451,7 @@ cms:
original_type: CHAR
text: MEDPAR Diagnosis E Version Code (Earlier Version)
width: 1.0
+ reference: https://resdac.org/cms-data/variables/diagnosis-e-version-code-earlier-version
type: VARCHAR(1)
- DGNS_E_VRSN_CD_1:
description:
@@ -30247,6 +34459,7 @@ cms:
original_type: CHAR
text: MEDPAR Diagnosis E Version Code 01
width: 1.0
+ reference: https://resdac.org/cms-data/variables/diagnosis-e-version-code-1
type: VARCHAR(1)
- DGNS_E_VRSN_CD_2:
description:
@@ -30254,6 +34467,7 @@ cms:
original_type: CHAR
text: MEDPAR Diagnosis E Version Code 02
width: 1.0
+ reference: https://resdac.org/cms-data/variables/diagnosis-e-version-code-2
type: VARCHAR(1)
- DGNS_E_VRSN_CD_3:
description:
@@ -30261,6 +34475,7 @@ cms:
original_type: CHAR
text: MEDPAR Diagnosis E Version Code 03
width: 1.0
+ reference: https://resdac.org/cms-data/variables/diagnosis-e-version-code-3
type: VARCHAR(1)
- DGNS_E_VRSN_CD_4:
description:
@@ -30268,6 +34483,7 @@ cms:
original_type: CHAR
text: MEDPAR Diagnosis E Version Code 04
width: 1.0
+ reference: https://resdac.org/cms-data/variables/diagnosis-e-version-code-4
type: VARCHAR(1)
- DGNS_E_VRSN_CD_5:
description:
@@ -30275,6 +34491,7 @@ cms:
original_type: CHAR
text: MEDPAR Diagnosis E Version Code 05
width: 1.0
+ reference: https://resdac.org/cms-data/variables/diagnosis-e-version-code-5
type: VARCHAR(1)
- DGNS_E_VRSN_CD_6:
description:
@@ -30282,6 +34499,7 @@ cms:
original_type: CHAR
text: MEDPAR Diagnosis E Version Code 06
width: 1.0
+ reference: https://resdac.org/cms-data/variables/diagnosis-e-version-code-6
type: VARCHAR(1)
- DGNS_E_VRSN_CD_7:
description:
@@ -30289,6 +34507,7 @@ cms:
original_type: CHAR
text: MEDPAR Diagnosis E Version Code 07
width: 1.0
+ reference: https://resdac.org/cms-data/variables/diagnosis-e-version-code-7
type: VARCHAR(1)
- DGNS_E_VRSN_CD_8:
description:
@@ -30296,6 +34515,7 @@ cms:
original_type: CHAR
text: MEDPAR Diagnosis E Version Code 08
width: 1.0
+ reference: https://resdac.org/cms-data/variables/diagnosis-e-version-code-8
type: VARCHAR(1)
- DGNS_E_VRSN_CD_9:
description:
@@ -30303,6 +34523,7 @@ cms:
original_type: CHAR
text: MEDPAR Diagnosis E Version Code 09
width: 1.0
+ reference: https://resdac.org/cms-data/variables/diagnosis-e-version-code-9
type: VARCHAR(1)
- DGNS_E_VRSN_CD_10:
description:
@@ -30310,6 +34531,7 @@ cms:
original_type: CHAR
text: MEDPAR Diagnosis E Version Code 10
width: 1.0
+ reference: https://resdac.org/cms-data/variables/diagnosis-e-version-code-10
type: VARCHAR(1)
- DGNS_E_VRSN_CD_11:
description:
@@ -30317,6 +34539,7 @@ cms:
original_type: CHAR
text: MEDPAR Diagnosis E Version Code 11
width: 1.0
+ reference: https://resdac.org/cms-data/variables/diagnosis-e-version-code-11
type: VARCHAR(1)
- DGNS_E_VRSN_CD_12:
description:
@@ -30324,6 +34547,7 @@ cms:
original_type: CHAR
text: MEDPAR Diagnosis E Version Code 12
width: 1.0
+ reference: https://resdac.org/cms-data/variables/diagnosis-e-version-code-12
type: VARCHAR(1)
- DGNS_E_1_CD:
description:
@@ -30332,6 +34556,7 @@ cms:
text: E Diagnosis Code 1 - Extrnl cause of injury, poisoning, or oth adverse
effect
width: 7.0
+ reference: https://resdac.org/cms-data/variables/diagnosis-e-version-code-1
type: VARCHAR(7)
- DGNS_E_2_CD:
description:
@@ -30340,6 +34565,7 @@ cms:
text: E Diagnosis Code 2 - Extrnl cause of injury, poisoning, or oth adverse
effect
width: 7.0
+ reference: https://resdac.org/cms-data/variables/diagnosis-e-code-2
type: VARCHAR(7)
- DGNS_E_3_CD:
description:
@@ -30348,6 +34574,7 @@ cms:
text: E Diagnosis Code 3 - Extrnl cause of injury, poisoning, or oth adverse
effect
width: 7.0
+ reference: https://resdac.org/cms-data/variables/diagnosis-e-code-3
type: VARCHAR(7)
- DGNS_E_4_CD:
description:
@@ -30356,6 +34583,7 @@ cms:
text: E Diagnosis Code 4 - Extrnl cause of injury, poisoning, or oth adverse
effect
width: 7.0
+ reference: https://resdac.org/cms-data/variables/diagnosis-e-code-4
type: VARCHAR(7)
- DGNS_E_5_CD:
description:
@@ -30364,6 +34592,7 @@ cms:
text: E Diagnosis Code 5 - Extrnl cause of injury, poisoning, or oth adverse
effect
width: 7.0
+ reference: https://resdac.org/cms-data/variables/diagnosis-e-code-5
type: VARCHAR(7)
- DGNS_E_6_CD:
description:
@@ -30372,6 +34601,7 @@ cms:
text: E Diagnosis Code 6 - Extrnl cause of injury, poisoning, or oth adverse
effect
width: 7.0
+ reference: https://resdac.org/cms-data/variables/diagnosis-e-code-6
type: VARCHAR(7)
- DGNS_E_7_CD:
description:
@@ -30380,6 +34610,7 @@ cms:
text: E Diagnosis Code 7 - Extrnl cause of injury, poisoning, or oth adverse
effect
width: 7.0
+ reference: https://resdac.org/cms-data/variables/diagnosis-e-code-7
type: VARCHAR(7)
- DGNS_E_8_CD:
description:
@@ -30388,6 +34619,7 @@ cms:
text: E Diagnosis Code 8 - Extrnl cause of injury, poisoning, or oth adverse
effect
width: 7.0
+ reference: https://resdac.org/cms-data/variables/diagnosis-e-code-8
type: VARCHAR(7)
- DGNS_E_9_CD:
description:
@@ -30396,6 +34628,7 @@ cms:
text: E Diagnosis Code 9 - Extrnl cause of injury, poisoning, or oth adverse
effect
width: 7.0
+ reference: https://resdac.org/cms-data/variables/diagnosis-e-code-9
type: VARCHAR(7)
- DGNS_E_10_CD:
description:
@@ -30404,6 +34637,7 @@ cms:
text: E Diagnosis Code 10 - Extrnl cause of injury, poisoning, or oth
adverse effect
width: 7.0
+ reference: https://resdac.org/cms-data/variables/diagnosis-e-code-10
type: VARCHAR(7)
- DGNS_E_11_CD:
description:
@@ -30412,6 +34646,7 @@ cms:
text: E Diagnosis Code 11 - Extrnl cause of injury, poisoning, or oth
adverse effect
width: 7.0
+ reference: https://resdac.org/cms-data/variables/diagnosis-e-code-11
type: VARCHAR(7)
- DGNS_E_12_CD:
description:
@@ -30420,6 +34655,7 @@ cms:
text: E Diagnosis Code 12 - Extrnl cause of injury, poisoning, or oth
adverse effect
width: 7.0
+ reference: https://resdac.org/cms-data/variables/diagnosis-e-version-code-1
type: VARCHAR(7)
- POA_DGNS_E_CD_CNT:
description:
@@ -30427,6 +34663,7 @@ cms:
original_type: NUM
text: MEDPAR Claim Present on Admission Diagnosis E Code Count
width: 3.0
+ reference: https://resdac.org/cms-data/variables/count-present-admission-poa-diagnosis-e-codes
type: INT
- POA_DGNS_E_1_IND_CD:
description:
@@ -30434,6 +34671,7 @@ cms:
original_type: CHAR
text: Diagnosis E Code Present on Admission Indicator 1
width: 1.0
+ reference: https://resdac.org/cms-data/variables/diagnosis-1-present-admission-poa-indicator-code
type: VARCHAR(1)
- POA_DGNS_E_2_IND_CD:
description:
@@ -30441,6 +34679,7 @@ cms:
original_type: CHAR
text: Diagnosis E Code Present on Admission Indicator 2
width: 1.0
+ reference: https://resdac.org/cms-data/variables/diagnosis-e-code-present-admission-indicator-2
type: VARCHAR(1)
- POA_DGNS_E_3_IND_CD:
description:
@@ -30448,6 +34687,7 @@ cms:
original_type: CHAR
text: Diagnosis E Code Present on Admission Indicator 3
width: 1.0
+ reference: https://resdac.org/cms-data/variables/diagnosis-e-code-present-admission-indicator-3
type: VARCHAR(1)
- POA_DGNS_E_4_IND_CD:
description:
@@ -30455,6 +34695,7 @@ cms:
original_type: CHAR
text: Diagnosis E Code Present on Admission Indicator 4
width: 1.0
+ reference: https://resdac.org/cms-data/variables/diagnosis-e-code-present-admission-indicator-4
type: VARCHAR(1)
- POA_DGNS_E_5_IND_CD:
description:
@@ -30462,6 +34703,7 @@ cms:
original_type: CHAR
text: Diagnosis E Code Present on Admission Indicator 5
width: 1.0
+ reference: https://resdac.org/cms-data/variables/diagnosis-e-code-present-admission-indicator-5
type: VARCHAR(1)
- POA_DGNS_E_6_IND_CD:
description:
@@ -30469,6 +34711,7 @@ cms:
original_type: CHAR
text: Diagnosis E Code Present on Admission Indicator 6
width: 1.0
+ reference: https://resdac.org/cms-data/variables/diagnosis-e-code-present-admission-indicator-6
type: VARCHAR(1)
- POA_DGNS_E_7_IND_CD:
description:
@@ -30476,6 +34719,7 @@ cms:
original_type: CHAR
text: Diagnosis E Code Present on Admission Indicator 7
width: 1.0
+ reference: https://resdac.org/cms-data/variables/diagnosis-e-code-present-admission-indicator-7
type: VARCHAR(1)
- POA_DGNS_E_8_IND_CD:
description:
@@ -30483,6 +34727,7 @@ cms:
original_type: CHAR
text: Diagnosis E Code Present on Admission Indicator 8
width: 1.0
+ reference: https://resdac.org/cms-data/variables/diagnosis-e-code-present-admission-indicator-8
type: VARCHAR(1)
- POA_DGNS_E_9_IND_CD:
description:
@@ -30490,6 +34735,7 @@ cms:
original_type: CHAR
text: Diagnosis E Code Present on Admission Indicator 9
width: 1.0
+ reference: https://resdac.org/cms-data/variables/diagnosis-e-code-present-admission-indicator-9
type: VARCHAR(1)
- POA_DGNS_E_10_IND_CD:
description:
@@ -30497,6 +34743,7 @@ cms:
original_type: CHAR
text: Diagnosis E Code Present on Admission Indicator 10
width: 1.0
+ reference: https://resdac.org/cms-data/variables/diagnosis-e-code-present-admission-indicator-10
type: VARCHAR(1)
- POA_DGNS_E_11_IND_CD:
description:
@@ -30504,6 +34751,7 @@ cms:
original_type: CHAR
text: Diagnosis E Code Present on Admission Indicator 11
width: 1.0
+ reference: https://resdac.org/cms-data/variables/diagnosis-e-code-present-admission-indicator-11
type: VARCHAR(1)
- POA_DGNS_E_12_IND_CD:
description:
@@ -30511,6 +34759,7 @@ cms:
original_type: CHAR
text: Diagnosis E Code Present on Admission Indicator 12
width: 1.0
+ reference: https://resdac.org/cms-data/variables/diagnosis-e-code-present-admission-indicator-12
type: VARCHAR(1)
- PRCDRSW:
description:
@@ -30518,6 +34767,7 @@ cms:
original_type: CHAR
text: Surgical procedures indicator
width: 1.0
+ reference: https://resdac.org/cms-data/variables/surgical-procedure-indicator
type: VARCHAR(1)
- PRCDRCNT:
description:
@@ -30525,6 +34775,7 @@ cms:
original_type: NUM
text: Surgical procedure codes included in stay
width: 3.0
+ reference: https://resdac.org/cms-data/variables/surgical-procedure-codes-included-stay
type: INT
- SRGCL_PRCDR_VRSN_CD:
description:
@@ -30532,6 +34783,7 @@ cms:
original_type: CHAR
text: MEDPAR Surgical Procedure Version Code (Earlier Version)
width: 1.0
+ reference: https://resdac.org/cms-data/variables/surgical-procedure-version-code-earlier-version
type: VARCHAR(1)
- SRGCL_PRCDR_VRSN_CD_1:
description:
@@ -30539,6 +34791,7 @@ cms:
original_type: CHAR
text: MEDPAR Surgical Procedure Version Code 01
width: 1.0
+ reference: https://resdac.org/cms-data/variables/principal-procedure-code
type: VARCHAR(1)
- SRGCL_PRCDR_VRSN_CD_2:
description:
@@ -30546,6 +34799,7 @@ cms:
original_type: CHAR
text: MEDPAR Surgical Procedure Version Code 02
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-surgical-procedure-version-code-2
type: VARCHAR(1)
- SRGCL_PRCDR_VRSN_CD_3:
description:
@@ -30553,6 +34807,7 @@ cms:
original_type: CHAR
text: MEDPAR Surgical Procedure Version Code 03
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-surgical-procedure-version-code-3
type: VARCHAR(1)
- SRGCL_PRCDR_VRSN_CD_4:
description:
@@ -30560,6 +34815,7 @@ cms:
original_type: CHAR
text: MEDPAR Surgical Procedure Version Code 04
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-surgical-procedure-version-code-4
type: VARCHAR(1)
- SRGCL_PRCDR_VRSN_CD_5:
description:
@@ -30567,6 +34823,7 @@ cms:
original_type: CHAR
text: MEDPAR Surgical Procedure Version Code 05
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-surgical-procedure-version-code-5
type: VARCHAR(1)
- SRGCL_PRCDR_VRSN_CD_6:
description:
@@ -30574,6 +34831,7 @@ cms:
original_type: CHAR
text: MEDPAR Surgical Procedure Version Code 06
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-surgical-procedure-version-code-6
type: VARCHAR(1)
- SRGCL_PRCDR_VRSN_CD_7:
description:
@@ -30581,6 +34839,7 @@ cms:
original_type: CHAR
text: MEDPAR Surgical Procedure Version Code 07
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-surgical-procedure-version-code-7
type: VARCHAR(1)
- SRGCL_PRCDR_VRSN_CD_8:
description:
@@ -30588,6 +34847,7 @@ cms:
original_type: CHAR
text: MEDPAR Surgical Procedure Version Code 08
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-surgical-procedure-version-code-8
type: VARCHAR(1)
- SRGCL_PRCDR_VRSN_CD_9:
description:
@@ -30595,6 +34855,7 @@ cms:
original_type: CHAR
text: MEDPAR Surgical Procedure Version Code 09
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-surgical-procedure-version-code-9
type: VARCHAR(1)
- SRGCL_PRCDR_VRSN_CD_10:
description:
@@ -30602,6 +34863,7 @@ cms:
original_type: CHAR
text: MEDPAR Surgical Procedure Version Code 10
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-surgical-procedure-version-code-10
type: VARCHAR(1)
- SRGCL_PRCDR_VRSN_CD_11:
description:
@@ -30609,6 +34871,7 @@ cms:
original_type: CHAR
text: MEDPAR Surgical Procedure Version Code 11
width: 1.0
+ reference: https://resdac.org/cms-data/variables/surgical-procedure-version-code-earlier-version
type: VARCHAR(1)
- SRGCL_PRCDR_VRSN_CD_12:
description:
@@ -30616,6 +34879,7 @@ cms:
original_type: CHAR
text: MEDPAR Surgical Procedure Version Code 12
width: 1.0
+ reference: https://resdac.org/cms-data/variables/surgical-procedure-version-code-earlier-version
type: VARCHAR(1)
- SRGCL_PRCDR_VRSN_CD_13:
description:
@@ -30623,6 +34887,7 @@ cms:
original_type: CHAR
text: MEDPAR Surgical Procedure Version Code 13
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-surgical-procedure-version-code-13
type: VARCHAR(1)
- SRGCL_PRCDR_VRSN_CD_14:
description:
@@ -30630,6 +34895,7 @@ cms:
original_type: CHAR
text: MEDPAR Surgical Procedure Version Code 14
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-surgical-procedure-version-code-14
type: VARCHAR(1)
- SRGCL_PRCDR_VRSN_CD_15:
description:
@@ -30637,6 +34903,7 @@ cms:
original_type: CHAR
text: MEDPAR Surgical Procedure Version Code 15
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-surgical-procedure-version-code-15
type: VARCHAR(1)
- SRGCL_PRCDR_VRSN_CD_16:
description:
@@ -30644,6 +34911,7 @@ cms:
original_type: CHAR
text: MEDPAR Surgical Procedure Version Code 16
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-surgical-procedure-version-code-16
type: VARCHAR(1)
- SRGCL_PRCDR_VRSN_CD_17:
description:
@@ -30651,6 +34919,7 @@ cms:
original_type: CHAR
text: MEDPAR Surgical Procedure Version Code 17
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-surgical-procedure-version-code-17
type: VARCHAR(1)
- SRGCL_PRCDR_VRSN_CD_18:
description:
@@ -30658,6 +34927,7 @@ cms:
original_type: CHAR
text: MEDPAR Surgical Procedure Version Code 18
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-surgical-procedure-version-code-18
type: VARCHAR(1)
- SRGCL_PRCDR_VRSN_CD_19:
description:
@@ -30665,6 +34935,7 @@ cms:
original_type: CHAR
text: MEDPAR Surgical Procedure Version Code 19
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-surgical-procedure-version-code-19
type: VARCHAR(1)
- SRGCL_PRCDR_VRSN_CD_20:
description:
@@ -30672,6 +34943,7 @@ cms:
original_type: CHAR
text: MEDPAR Surgical Procedure Version Code 20
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-surgical-procedure-version-code-20
type: VARCHAR(1)
- SRGCL_PRCDR_VRSN_CD_21:
description:
@@ -30679,6 +34951,7 @@ cms:
original_type: CHAR
text: MEDPAR Surgical Procedure Version Code 21
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-surgical-procedure-version-code-21
type: VARCHAR(1)
- SRGCL_PRCDR_VRSN_CD_22:
description:
@@ -30686,6 +34959,7 @@ cms:
original_type: CHAR
text: MEDPAR Surgical Procedure Version Code 22
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-surgical-procedure-version-code-22
type: VARCHAR(1)
- SRGCL_PRCDR_VRSN_CD_23:
description:
@@ -30693,6 +34967,7 @@ cms:
original_type: CHAR
text: MEDPAR Surgical Procedure Version Code 23
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-surgical-procedure-version-code-23
type: VARCHAR(1)
- SRGCL_PRCDR_VRSN_CD_24:
description:
@@ -30700,6 +34975,7 @@ cms:
original_type: CHAR
text: MEDPAR Surgical Procedure Version Code 24
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-surgical-procedure-version-code-24
type: VARCHAR(1)
- SRGCL_PRCDR_VRSN_CD_25:
description:
@@ -30707,6 +34983,7 @@ cms:
original_type: CHAR
text: MEDPAR Surgical Procedure Version Code 25
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-procedure-code-4
type: VARCHAR(1)
- PRCDRCD1:
description:
@@ -30714,6 +34991,7 @@ cms:
original_type: CHAR
text: Principal Procedure code
width: 7.0
+ reference: https://resdac.org/cms-data/variables/principal-procedure-code
type: VARCHAR(7)
- PRCDRCD2:
description:
@@ -30721,6 +34999,7 @@ cms:
original_type: CHAR
text: Procedure Code II
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-procedure-code-2
type: VARCHAR(7)
- PRCDRCD3:
description:
@@ -30728,6 +35007,7 @@ cms:
original_type: CHAR
text: Procedure Code III
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-procedure-code-3
type: VARCHAR(7)
- PRCDRCD4:
description:
@@ -30735,6 +35015,7 @@ cms:
original_type: CHAR
text: Procedure Code IV
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-procedure-code-4
type: VARCHAR(7)
- PRCDRCD5:
description:
@@ -30742,6 +35023,7 @@ cms:
original_type: CHAR
text: Procedure Code V
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-procedure-code-5
type: VARCHAR(7)
- PRCDRCD6:
description:
@@ -30749,6 +35031,7 @@ cms:
original_type: CHAR
text: Procedure Code VI
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-procedure-code-6
type: VARCHAR(7)
- PRCDRCD7:
description:
@@ -30756,6 +35039,7 @@ cms:
original_type: CHAR
text: Procedure Code VII
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-procedure-code-7
type: VARCHAR(7)
- PRCDRCD8:
description:
@@ -30763,6 +35047,7 @@ cms:
original_type: CHAR
text: Procedure Code VIII
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-procedure-code-8
type: VARCHAR(7)
- PRCDRCD9:
description:
@@ -30770,6 +35055,7 @@ cms:
original_type: CHAR
text: Procedure Code IX
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-procedure-code-9
type: VARCHAR(7)
- PRCDRCD10:
description:
@@ -30777,6 +35063,7 @@ cms:
original_type: CHAR
text: Procedure Code X
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-procedure-code-10
type: VARCHAR(7)
- PRCDRCD11:
description:
@@ -30784,6 +35071,7 @@ cms:
original_type: CHAR
text: Procedure Code XI
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-procedure-code-11
type: VARCHAR(7)
- PRCDRCD12:
description:
@@ -30791,6 +35079,7 @@ cms:
original_type: CHAR
text: Procedure Code XII
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-procedure-code-12
type: VARCHAR(7)
- PRCDRCD13:
description:
@@ -30798,6 +35087,7 @@ cms:
original_type: CHAR
text: Procedure Code XIII
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-procedure-code-13
type: VARCHAR(7)
- PRCDRCD14:
description:
@@ -30805,6 +35095,7 @@ cms:
original_type: CHAR
text: Procedure Code XIV
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-procedure-code-14
type: VARCHAR(7)
- PRCDRCD15:
description:
@@ -30812,6 +35103,7 @@ cms:
original_type: CHAR
text: Procedure Code XV
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-procedure-code-15
type: VARCHAR(7)
- PRCDRCD16:
description:
@@ -30819,6 +35111,7 @@ cms:
original_type: CHAR
text: Procedure Code XVI
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-procedure-code-16
type: VARCHAR(7)
- PRCDRCD17:
description:
@@ -30826,6 +35119,7 @@ cms:
original_type: CHAR
text: Procedure Code XVII
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-procedure-code-17
type: VARCHAR(7)
- PRCDRCD18:
description:
@@ -30833,6 +35127,7 @@ cms:
original_type: CHAR
text: Procedure Code XVIII
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-procedure-code-18
type: VARCHAR(7)
- PRCDRCD19:
description:
@@ -30840,6 +35135,7 @@ cms:
original_type: CHAR
text: Procedure Code XIX
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-procedure-code-19
type: VARCHAR(7)
- PRCDRCD20:
description:
@@ -30847,6 +35143,7 @@ cms:
original_type: CHAR
text: Procedure Code XX
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-procedure-code-20
type: VARCHAR(7)
- PRCDRCD21:
description:
@@ -30854,6 +35151,7 @@ cms:
original_type: CHAR
text: Procedure Code XXI
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-procedure-code-21
type: VARCHAR(7)
- PRCDRCD22:
description:
@@ -30861,6 +35159,7 @@ cms:
original_type: CHAR
text: Procedure Code XXII
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-procedure-code-22
type: VARCHAR(7)
- PRCDRCD23:
description:
@@ -30868,6 +35167,7 @@ cms:
original_type: CHAR
text: Procedure Code XXIII
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-procedure-code-23
type: VARCHAR(7)
- PRCDRCD24:
description:
@@ -30875,6 +35175,7 @@ cms:
original_type: CHAR
text: Procedure Code XXIV
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-procedure-code-24
type: VARCHAR(7)
- PRCDRCD25:
description:
@@ -30882,6 +35183,7 @@ cms:
original_type: CHAR
text: Procedure Code XXV
width: 7.0
+ reference: https://resdac.org/cms-data/variables/medpar-procedure-code-25
type: VARCHAR(7)
- PRCDTCNT:
description:
@@ -30889,6 +35191,7 @@ cms:
original_type: NUM
text: Dates associated with surgical procedures included in stay
width: 3.0
+ reference: https://resdac.org/cms-data/variables/dates-associated-surgical-procedures-included-stay
type: INT
- PRCDRDT1:
description:
@@ -30896,6 +35199,7 @@ cms:
original_type: DATE
text: Principal Procedure Date
width: 8.0
+ reference: https://resdac.org/cms-data/variables/principal-procedure-date
type: DATE
- PRCDRDT2:
description:
@@ -30903,6 +35207,7 @@ cms:
original_type: DATE
text: Procedure Date II
width: 8.0
+ reference: https://resdac.org/cms-data/variables/procedure-date-2
type: DATE
- PRCDRDT3:
description:
@@ -30910,6 +35215,7 @@ cms:
original_type: DATE
text: Procedure Date III
width: 8.0
+ reference: https://resdac.org/cms-data/variables/procedure-date-3
type: DATE
- PRCDRDT4:
description:
@@ -30917,6 +35223,7 @@ cms:
original_type: DATE
text: Procedure Date IV
width: 8.0
+ reference: https://resdac.org/cms-data/variables/procedure-date-4
type: DATE
- PRCDRDT5:
description:
@@ -30924,6 +35231,7 @@ cms:
original_type: DATE
text: Procedure Date V
width: 8.0
+ reference: null
type: DATE
- PRCDRDT6:
description:
@@ -30931,6 +35239,7 @@ cms:
original_type: DATE
text: Procedure Date VI
width: 8.0
+ reference: https://resdac.org/cms-data/variables/procedure-date-6
type: DATE
- PRCDRDT7:
description:
@@ -30938,6 +35247,7 @@ cms:
original_type: DATE
text: Procedure Date VII
width: 8.0
+ reference: https://resdac.org/cms-data/variables/procedure-date-7
type: DATE
- PRCDRDT8:
description:
@@ -30945,6 +35255,7 @@ cms:
original_type: DATE
text: Procedure Date VIII
width: 8.0
+ reference: https://resdac.org/cms-data/variables/procedure-date-8
type: DATE
- PRCDRDT9:
description:
@@ -30952,6 +35263,7 @@ cms:
original_type: DATE
text: Procedure Date IX
width: 8.0
+ reference: https://resdac.org/cms-data/variables/procedure-date-9
type: DATE
- PRCDRDT10:
description:
@@ -30959,6 +35271,7 @@ cms:
original_type: DATE
text: Procedure Date X
width: 8.0
+ reference: https://resdac.org/cms-data/variables/procedure-date-10
type: DATE
- PRCDRDT11:
description:
@@ -30966,6 +35279,7 @@ cms:
original_type: DATE
text: Procedure Date XI
width: 8.0
+ reference: https://resdac.org/cms-data/variables/procedure-date-11
type: DATE
- PRCDRDT12:
description:
@@ -30973,6 +35287,7 @@ cms:
original_type: DATE
text: Procedure Date XII
width: 8.0
+ reference: https://resdac.org/cms-data/variables/procedure-date-12
type: DATE
- PRCDRDT13:
description:
@@ -30980,6 +35295,7 @@ cms:
original_type: DATE
text: Procedure Date XIII
width: 8.0
+ reference: https://resdac.org/cms-data/variables/procedure-date-13
type: DATE
- PRCDRDT14:
description:
@@ -30987,6 +35303,7 @@ cms:
original_type: DATE
text: Procedure Date XIV
width: 8.0
+ reference: https://resdac.org/cms-data/variables/procedure-date-14
type: DATE
- PRCDRDT15:
description:
@@ -30994,6 +35311,7 @@ cms:
original_type: DATE
text: Procedure Date XV
width: 8.0
+ reference: https://resdac.org/cms-data/variables/procedure-date-15
type: DATE
- PRCDRDT16:
description:
@@ -31001,6 +35319,7 @@ cms:
original_type: DATE
text: Procedure Date XVI
width: 8.0
+ reference: https://resdac.org/cms-data/variables/procedure-date-16
type: DATE
- PRCDRDT17:
description:
@@ -31008,6 +35327,7 @@ cms:
original_type: DATE
text: Procedure Date XVII
width: 8.0
+ reference: https://resdac.org/cms-data/variables/procedure-date-17
type: DATE
- PRCDRDT18:
description:
@@ -31015,6 +35335,7 @@ cms:
original_type: DATE
text: Procedure Date XVIII
width: 8.0
+ reference: https://resdac.org/cms-data/variables/procedure-date-18
type: DATE
- PRCDRDT19:
description:
@@ -31022,6 +35343,7 @@ cms:
original_type: DATE
text: Procedure Date XIX
width: 8.0
+ reference: https://resdac.org/cms-data/variables/procedure-date-19
type: DATE
- PRCDRDT20:
description:
@@ -31029,6 +35351,7 @@ cms:
original_type: DATE
text: Procedure Date XX
width: 8.0
+ reference: https://resdac.org/cms-data/variables/procedure-date-20
type: DATE
- PRCDRDT21:
description:
@@ -31036,6 +35359,7 @@ cms:
original_type: DATE
text: Procedure Date XXI
width: 8.0
+ reference: https://resdac.org/cms-data/variables/procedure-date-21
type: DATE
- PRCDRDT22:
description:
@@ -31043,6 +35367,7 @@ cms:
original_type: DATE
text: Procedure Date XXII
width: 8.0
+ reference: https://resdac.org/cms-data/variables/procedure-date-22
type: DATE
- PRCDRDT23:
description:
@@ -31050,6 +35375,7 @@ cms:
original_type: DATE
text: Procedure Date XXIII
width: 8.0
+ reference: https://resdac.org/cms-data/variables/procedure-date-23
type: DATE
- PRCDRDT24:
description:
@@ -31057,6 +35383,7 @@ cms:
original_type: DATE
text: Procedure Date XXIV
width: 8.0
+ reference: https://resdac.org/cms-data/variables/procedure-date-24
type: DATE
- PRCDRDT25:
description:
@@ -31064,6 +35391,7 @@ cms:
original_type: DATE
text: Procedure Date XXV
width: 8.0
+ reference: https://resdac.org/cms-data/variables/procedure-date-25
type: DATE
- CLM_PTNT_RLTNSHP_CD:
description:
@@ -31071,6 +35399,7 @@ cms:
original_type: CHAR
text: Claim Patient Relationship Code
width: 2.0
+ reference: https://resdac.org/cms-data/variables/claim-patient-relationship-code
type: VARCHAR(2)
- CARE_IMPRVMT_MODEL_1_CD:
description:
@@ -31078,6 +35407,7 @@ cms:
original_type: CHAR
text: Care Improvement Model 1 Code
width: 2.0
+ reference: https://resdac.org/cms-data/variables/care-improvement-model-1-code
type: VARCHAR(2)
- CARE_IMPRVMT_MODEL_2_CD:
description:
@@ -31085,6 +35415,7 @@ cms:
original_type: CHAR
text: Care Improvement Model 2 Code
width: 2.0
+ reference: https://resdac.org/cms-data/variables/care-improvement-model-2-code
type: VARCHAR(2)
- CARE_IMPRVMT_MODEL_3_CD:
description:
@@ -31092,6 +35423,7 @@ cms:
original_type: CHAR
text: Care Improvement Model 3 Code
width: 2.0
+ reference: https://resdac.org/cms-data/variables/care-improvement-model-3-code
type: VARCHAR(2)
- CARE_IMPRVMT_MODEL_4_CD:
description:
@@ -31099,6 +35431,7 @@ cms:
original_type: CHAR
text: Care Improvement Model 4 Code
width: 2.0
+ reference: https://resdac.org/cms-data/variables/care-improvement-model-4-code
type: VARCHAR(2)
- VBP_PRTCPNT_IND_CD:
description:
@@ -31106,6 +35439,7 @@ cms:
original_type: CHAR
text: VBP Participant Indicator Code
width: 1.0
+ reference: https://resdac.org/cms-data/variables/value-based-purchasing-vbp-participant-indicator-code
type: VARCHAR(1)
- HRR_PRTCPNT_IND_CD:
description:
@@ -31113,6 +35447,7 @@ cms:
original_type: CHAR
text: HRR Participant Indicator Code
width: 1.0
+ reference: https://resdac.org/cms-data/variables/hospital-readmission-reduction-hrr-participant-indicator-code
type: VARCHAR(1)
- BNDLD_MODEL_DSCNT_PCT:
description:
@@ -31120,6 +35455,7 @@ cms:
original_type: NUM
text: Bundled Model Discount Percent
width: 7.4
+ reference: https://resdac.org/cms-data/variables/bundled-payment-model-discount-percent
type: NUMERIC(7,4)
- VBP_ADJSTMT_PCT:
description:
@@ -31127,6 +35463,7 @@ cms:
original_type: NUM
text: VBP Adjustment Percent
width: 15.12
+ reference: https://resdac.org/cms-data/variables/value-based-purchasing-vbp-adjustment-percent
type: NUMERIC(15,12)
- HRR_ADJSTMT_PCT:
description:
@@ -31134,6 +35471,7 @@ cms:
original_type: NUM
text: HRR Adjustment Percent
width: 8.5
+ reference: https://resdac.org/cms-data/variables/hospital-readmission-reduction-hrr-adjustment-percent
type: NUMERIC(8,5)
- INFRMTL_ENCTR_IND_SW:
description:
@@ -31141,6 +35479,7 @@ cms:
original_type: CHAR
text: Informational Encounter Indicator Switch
width: 1.0
+ reference: https://resdac.org/cms-data/variables/informational-encounter-indicator
type: VARCHAR(1)
- MA_TCHNG_IND_SW:
description:
@@ -31148,6 +35487,7 @@ cms:
original_type: CHAR
text: MA Teaching Indicator Switch
width: 1.0
+ reference: https://resdac.org/cms-data/variables/ma-teaching-indicator
type: VARCHAR(1)
- PROD_RPLCMT_LIFECYC_SW:
description:
@@ -31155,6 +35495,7 @@ cms:
original_type: CHAR
text: Prod Replacement Lifecycle Switch
width: 1.0
+ reference: https://resdac.org/cms-data/variables/product-replacement-within-product-lifecycle-early
type: VARCHAR(1)
- PROD_RPLCMT_RCLL_SW:
description:
@@ -31162,6 +35503,7 @@ cms:
original_type: CHAR
text: Prod Replacement Recall Switch
width: 1.0
+ reference: https://resdac.org/cms-data/variables/product-replacement-recall-product
type: VARCHAR(1)
- CRED_RCVD_RPLCD_DVC_SW:
description:
@@ -31169,6 +35511,7 @@ cms:
original_type: CHAR
text: Credit Received Replaced Device Switch
width: 1.0
+ reference: https://resdac.org/cms-data/variables/credit-received-replaced-device
type: VARCHAR(1)
- OBSRVTN_SW:
description:
@@ -31176,6 +35519,7 @@ cms:
original_type: CHAR
text: Observation Switch
width: 1.0
+ reference: https://resdac.org/cms-data/variables/observation-unit-indicator
type: VARCHAR(1)
- NEW_TCHNLGY_ADD_ON_AMT:
description:
@@ -31183,6 +35527,7 @@ cms:
original_type: NUM
text: New Technology Add-On Amount
width: 10.0
+ reference: https://resdac.org/cms-data/variables/new-technology-add-amount
type: INT
- BASE_OPRTG_DRG_AMT:
description:
@@ -31190,6 +35535,7 @@ cms:
original_type: NUM
text: Base Operating DRG Amount
width: 10.0
+ reference: https://resdac.org/cms-data/variables/base-operating-drg-amount
type: INT
- OPRTG_HSP_AMT:
description:
@@ -31197,6 +35543,7 @@ cms:
original_type: NUM
text: Operating Hospital Amount
width: 10.0
+ reference: https://resdac.org/cms-data/variables/operating-hospital-amount
type: INT
- MDCL_SRGCL_GNRL_AMT:
description:
@@ -31204,6 +35551,7 @@ cms:
original_type: NUM
text: Medical/Surgical General Amount
width: 10.0
+ reference: https://resdac.org/cms-data/variables/medicalsurgical-supplies-prosthetic-orthotic-amount
type: INT
- MDCL_SRGCL_NSTRL_AMT:
description:
@@ -31211,6 +35559,7 @@ cms:
original_type: NUM
text: Medical/Surgical Non-Sterile Amount
width: 10.0
+ reference: https://resdac.org/cms-data/variables/medicalsurgical-non-sterile-supplies-amount
type: INT
- MDCL_SRGCL_STRL_AMT:
description:
@@ -31218,6 +35567,7 @@ cms:
original_type: NUM
text: Medical/Surgical Sterile Amount
width: 10.0
+ reference: https://resdac.org/cms-data/variables/medicalsurgical-sterile-supplies-amount
type: INT
- TAKE_HOME_AMT:
description:
@@ -31225,6 +35575,7 @@ cms:
original_type: NUM
text: Take Home Amount
width: 10.0
+ reference: https://resdac.org/cms-data/variables/medicalsurgical-supplies-take-home-amount
type: INT
- PRSTHTC_ORTHTC_AMT:
description:
@@ -31232,6 +35583,7 @@ cms:
original_type: NUM
text: Prosthetic Orthotic Amount
width: 10.0
+ reference: https://resdac.org/cms-data/variables/medicalsurgical-supplies-prosthetic-orthotic-amount
type: INT
- MDCL_SRGCL_PCMKR_AMT:
description:
@@ -31239,6 +35591,7 @@ cms:
original_type: NUM
text: Medical/Surgical Pacemaker Amount
width: 10.0
+ reference: https://resdac.org/cms-data/variables/medicalsurgical-pacemaker-amount
type: INT
- INTRAOCULAR_LENS_AMT:
description:
@@ -31246,6 +35599,7 @@ cms:
original_type: NUM
text: Intraocular Lens Amount
width: 10.0
+ reference: https://resdac.org/cms-data/variables/medicalsurgical-supplies-intraocular-lens-amount
type: INT
- OXYGN_TAKE_HOME_AMT:
description:
@@ -31253,6 +35607,7 @@ cms:
original_type: NUM
text: Oxygen Take Home Amount
width: 10.0
+ reference: https://resdac.org/cms-data/variables/medicalsurgical-supplies-oxygen-take-home-amount
type: INT
- OTHR_IMPLANTS_AMT:
description:
@@ -31260,6 +35615,7 @@ cms:
original_type: NUM
text: Other Implants Amount
width: 10.0
+ reference: https://resdac.org/cms-data/variables/medicalsurgical-supplies-other-implants-amount
type: INT
- OTHR_SUPLIES_DVC_AMT:
description:
@@ -31267,6 +35623,7 @@ cms:
original_type: NUM
text: Other Supplies Device Amount
width: 10.0
+ reference: https://resdac.org/cms-data/variables/medicalsurgical-supplies-other-device-amount
type: INT
- INCDNT_RDLGY_AMT:
description:
@@ -31274,6 +35631,7 @@ cms:
original_type: NUM
text: Incident Radiology Amount
width: 10.0
+ reference: https://resdac.org/cms-data/variables/medicalsurgical-supplies-incident-radiology-amount
type: INT
- INCDNT_DGNSTC_SRVCS_AMT:
description:
@@ -31281,6 +35639,7 @@ cms:
original_type: NUM
text: Incident Diagnostic Services Amount
width: 10.0
+ reference: https://resdac.org/cms-data/variables/medicalsurgical-supplies-incident-diagnostic-services-amount
type: INT
- MDCL_SRGCL_DRSNG_AMT:
description:
@@ -31288,6 +35647,7 @@ cms:
original_type: NUM
text: Medical/Surgical Dressing Amount
width: 10.0
+ reference: https://resdac.org/cms-data/variables/medicalsurgical-dressing-amount
type: INT
- INVSTGTNL_DVC_AMT:
description:
@@ -31295,6 +35655,7 @@ cms:
original_type: NUM
text: Investigational Device Amount
width: 10.0
+ reference: https://resdac.org/cms-data/variables/medicalsurgical-supplies-investigational-device-amount
type: INT
- MDCL_SRGCL_MISC_AMT:
description:
@@ -31302,6 +35663,7 @@ cms:
original_type: NUM
text: Medical/Surgical Miscellaneous Amount
width: 10.0
+ reference: https://resdac.org/cms-data/variables/medical-surgical-miscellaneous-amount
type: INT
- RDLGY_ONCOLOGY_AMT:
description:
@@ -31309,6 +35671,7 @@ cms:
original_type: NUM
text: Radiology/Oncology Amount
width: 10.0
+ reference: https://resdac.org/cms-data/variables/oncology-amount
type: INT
- RDLGY_DGNSTC_AMT:
description:
@@ -31316,6 +35679,7 @@ cms:
original_type: NUM
text: Radiology Diagnostic Amount
width: 10.0
+ reference: https://resdac.org/cms-data/variables/radiology-diagnostic-amount
type: INT
- RDLGY_THRPTC_AMT:
description:
@@ -31323,6 +35687,7 @@ cms:
original_type: NUM
text: Radiology Therapeutic Amount
width: 10.0
+ reference: https://resdac.org/cms-data/variables/radiology-therapeutic-amount
type: INT
- RDLGY_NUCLR_MDCN_AMT:
description:
@@ -31330,6 +35695,7 @@ cms:
original_type: NUM
text: Radiology Nuclear Medicine Amount
width: 10.0
+ reference: https://resdac.org/cms-data/variables/radiology-nuclear-medicine-amount
type: INT
- RDLGY_CT_SCAN_AMT:
description:
@@ -31337,6 +35703,7 @@ cms:
original_type: NUM
text: Radiology CT Scan Amount
width: 10.0
+ reference: https://resdac.org/cms-data/variables/radiology-ct-scan-amount
type: INT
- RDLGY_OTHR_IMGNG_AMT:
description:
@@ -31344,6 +35711,7 @@ cms:
original_type: NUM
text: Radiology Other Imaging Amount
width: 10.0
+ reference: https://resdac.org/cms-data/variables/radiology-other-imaging-amount
type: INT
- OPRTG_ROOM_AMT:
description:
@@ -31351,6 +35719,7 @@ cms:
original_type: NUM
text: Operating Room Amount
width: 10.0
+ reference: https://resdac.org/cms-data/variables/operating-and-recovery-room-amount
type: INT
- OR_LABOR_DLVRY_AMT:
description:
@@ -31358,6 +35727,7 @@ cms:
original_type: NUM
text: O/R Labor Delivery Amount
width: 10.0
+ reference: https://resdac.org/cms-data/variables/labor-room-and-delivery-amount
type: INT
- CRDC_CATHRZTN_AMT:
description:
@@ -31365,6 +35735,7 @@ cms:
original_type: NUM
text: Cardiac Catheterization Amount
width: 10.0
+ reference: https://resdac.org/cms-data/variables/cardiac-catheterization-lab-amount
type: INT
- SQSTRTN_RDCTN_AMT:
description:
@@ -31372,6 +35743,7 @@ cms:
original_type: NUM
text: Sequestration Reduction Amount
width: 10.0
+ reference: https://resdac.org/cms-data/variables/sequestration-reduction-amount
type: INT
- UNCOMPD_CARE_PYMT_AMT:
description:
@@ -31379,6 +35751,7 @@ cms:
original_type: NUM
text: Uncompensated Care Payment Amount
width: 10.0
+ reference: https://resdac.org/cms-data/variables/uncompensated-care-payment-amount
type: INT
- BNDLD_ADJSTMT_AMT:
description:
@@ -31386,6 +35759,7 @@ cms:
original_type: NUM
text: Bundled Adjustment Amount
width: 10.0
+ reference: https://resdac.org/cms-data/variables/bundled-payment-adjustment-amount
type: INT
- VBP_ADJSTMT_AMT:
description:
@@ -31393,6 +35767,7 @@ cms:
original_type: NUM
text: Hospital Value Based Purchasing (VBP) Amount
width: 10.0
+ reference: https://resdac.org/cms-data/variables/hospital-value-based-purchasing-vbp-amount
type: INT
- HRR_ADJSTMT_AMT:
description:
@@ -31400,6 +35775,7 @@ cms:
original_type: NUM
text: Hospital Readmission Reduction (HRR) Adjustment Amount
width: 10.0
+ reference: https://resdac.org/cms-data/variables/hospital-readmission-reduction-hrr-adjustment-amount
type: INT
- EHR_PYMT_ADJSTMT_AMT:
description:
@@ -31407,6 +35783,7 @@ cms:
original_type: NUM
text: Electronic Health Record (EHR) Payment Adjustment Amount
width: 10.0
+ reference: https://resdac.org/cms-data/variables/electronic-health-record-ehr-payment-adjustment-amount
type: INT
- PPS_STD_VAL_PYMT_AMT:
description:
@@ -31414,6 +35791,7 @@ cms:
original_type: NUM
text: Claim PPS Standard Value Payment Amount
width: 10.0
+ reference: https://resdac.org/cms-data/variables/standard-payment-amount
type: INT
- FINL_STD_AMT:
description:
@@ -31421,6 +35799,7 @@ cms:
original_type: NUM
text: Claim Final Standard Amount
width: 10.0
+ reference: https://resdac.org/cms-data/variables/claim-final-standard-payment-amount
type: INT
- HAC_RDCTN_PMT_AMT:
description:
@@ -31428,6 +35807,7 @@ cms:
original_type: NUM
text: Hospital Acquired Conditions Reduction Payment Amount (IPPS_FLEX_PYMT_6_AMT)
width: 10.0
+ reference: https://resdac.org/cms-data/variables/hospital-acquired-conditions-hac-reduction-payment-amount
type: INT
- IPPS_FLEX_PYMT_7_AMT:
description:
@@ -31435,6 +35815,7 @@ cms:
original_type: NUM
text: IPPS Flexible Payment Amount II
width: 10.0
+ reference: https://resdac.org/cms-data/variables/flexible-payment-amount-7th-placeholder
type: INT
- PTNT_ADD_ON_PYMT_AMT:
description:
@@ -31442,6 +35823,7 @@ cms:
original_type: NUM
text: Revenue Center Patient/Initial Visit Add-On Amount
width: 10.0
+ reference: https://resdac.org/cms-data/variables/patient-add-payment-amount-new-patient
type: INT
- HAC_PGM_RDCTN_IND_SW:
description:
@@ -31449,6 +35831,7 @@ cms:
original_type: CHAR
text: Hospital Acquired Conditions (HAC) Program Reduction Indicator Switch
width: 1.0
+ reference: https://resdac.org/cms-data/variables/claim-hospital-acquired-condition-hac-program-reduction-indicator-switch
type: VARCHAR(1)
- PGM_RDCTN_IND_SW:
description:
@@ -31456,6 +35839,7 @@ cms:
original_type: CHAR
text: Electronic Health Records (EHR) Program Reduction Indicator Switch
width: 1.0
+ reference: https://resdac.org/cms-data/variables/electronic-health-records-ehr-program-reduction-indicator
type: VARCHAR(1)
- PA_IND_CD:
description:
@@ -31463,6 +35847,7 @@ cms:
original_type: CHAR
text: Claim Prior Authorization Indicator Code
width: 4.0
+ reference: https://resdac.org/cms-data/variables/prior-authorization-indicator-code
type: VARCHAR(4)
- UNIQ_TRKNG_NUM:
description:
@@ -31470,6 +35855,7 @@ cms:
original_type: CHAR
text: Claim Unique Tracking Number
width: 14.0
+ reference: https://resdac.org/cms-data/variables/unique-tracking-number
type: VARCHAR(14)
- STAY_2_IND_SW:
description:
@@ -31477,6 +35863,7 @@ cms:
original_type: CHAR
text: Stay 2 Indicator Switch
width: 1.0
+ reference: https://resdac.org/cms-data/variables/two-midnight-stay-indicator
type: VARCHAR(1)
- CLM_SITE_NTRL_PYMT_CST_AMT:
description:
@@ -31484,6 +35871,7 @@ cms:
original_type: NUM
text: Claim Site Neutral Payment Based on Cost Amount
width: 10.0
+ reference: https://resdac.org/cms-data/variables/claim-site-neutral-payment-based-cost-amount
type: INT
- CLM_SITE_NTRL_PYMT_IPPS_AMT:
description:
@@ -31491,6 +35879,7 @@ cms:
original_type: NUM
text: Claim Site Neutral Payment Based on IPPS Amount
width: 10.0
+ reference: https://resdac.org/cms-data/variables/claim-site-neutral-payment-based-ipps-amount
type: INT
- CLM_FULL_STD_PYMT_AMT:
description:
@@ -31498,6 +35887,7 @@ cms:
original_type: NUM
text: Claim Full Standard Payment Amount
width: 10.0
+ reference: https://resdac.org/cms-data/variables/claim-full-standard-payment-amount
type: INT
- CLM_SS_OUTLIER_STD_PYMT_AMT:
description:
@@ -31505,6 +35895,7 @@ cms:
original_type: NUM
text: Claim Short Stay Outlier (SSO) Standard Payment Amount
width: 10.0
+ reference: https://resdac.org/cms-data/variables/claim-short-stay-outlier-sso-standard-payment-amount
type: INT
- CLM_NGACO_IND_1_CD:
description:
@@ -31513,6 +35904,7 @@ cms:
text: Claim Next Generation (NG) Accountable Care Organization (ACO) Indicator
Code 1
width: 1.0
+ reference: https://resdac.org/cms-data/variables/claim-next-generation-ng-accountable-care-organization-aco-indicator-code-1
type: VARCHAR(1)
- CLM_NGACO_IND_2_CD:
description:
@@ -31521,6 +35913,7 @@ cms:
text: Claim Next Generation (NG) Accountable Care Organization (ACO) Indicator
Code 2
width: 1.0
+ reference: https://resdac.org/cms-data/variables/claim-next-generation-ng-accountable-care-organization-aco-indicator-code-2
type: VARCHAR(1)
- CLM_NGACO_IND_3_CD:
description:
@@ -31529,6 +35922,7 @@ cms:
text: Claim Next Generation (NG) Accountable Care Organization (ACO) Indicator
Code 3
width: 1.0
+ reference: https://resdac.org/cms-data/variables/claim-next-generation-ng-accountable-care-organization-aco-indicator-code-3
type: VARCHAR(1)
- CLM_NGACO_IND_4_CD:
description:
@@ -31537,6 +35931,7 @@ cms:
text: Claim Next Generation (NG) Accountable Care Organization (ACO) Indicator
Code 4
width: 1.0
+ reference: https://resdac.org/cms-data/variables/claim-next-generation-ng-accountable-care-organization-aco-indicator-code-4
type: VARCHAR(1)
- CLM_NGACO_IND_5_CD:
description:
@@ -31545,6 +35940,7 @@ cms:
text: Claim Next Generation (NG) Accountable Care Organization (ACO) Indicator
Code 5
width: 1.0
+ reference: https://resdac.org/cms-data/variables/claim-next-generation-ng-accountable-care-organization-aco-indicator-code-5
type: VARCHAR(1)
- CLM_RSDL_PYMT_IND_CD:
description:
@@ -31552,6 +35948,7 @@ cms:
original_type: CHAR
text: Claim Residual Payment Indicator Code
width: 1.0
+ reference: https://resdac.org/cms-data/variables/claim-residual-payment-indicator-code
type: VARCHAR(1)
- CLM_RP_IND_CD:
description:
@@ -31559,6 +35956,7 @@ cms:
original_type: CHAR
text: Claim Representative Payee (RP) Indicator Code
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-claim-representative-payee-rp-indicator-code
type: VARCHAR(1)
- RC_RP_IND_CD:
description:
@@ -31566,6 +35964,7 @@ cms:
original_type: CHAR
text: Revenue Center Representative Payee (RP) Indicator Code
width: 1.0
+ reference: https://resdac.org/cms-data/variables/medpar-claim-representative-payee-rp-indicator-code
type: VARCHAR(1)
- ACO_ID_NUM:
description:
@@ -31573,6 +35972,7 @@ cms:
original_type: CHAR
text: Accountable Care Organization (ACO) Identification Number
width: 10.0
+ reference: https://resdac.org/cms-data/variables/claim-accountable-care-organization-aco-identification-number
type: VARCHAR(10)
- RC_ALLOGENEIC_STEM_CELL_AMT:
description:
@@ -31580,6 +35980,7 @@ cms:
original_type: NUM
text: Revenue Center Allogeneic Stem Cell Acquisition/Donor Services Amount
width: 10.0
+ reference: https://resdac.org/cms-data/variables/revenue-center-allogeneic-stem-cell-acquisitiondonor-services-amount
type: INT
- ISLET_ADD_ON_PYMT_AMT:
description:
@@ -31587,6 +35988,7 @@ cms:
original_type: NUM
text: Islet Add-On Payment Amount
width: 10.0
+ reference: https://resdac.org/cms-data/variables/islet-add-payment-amount
type: INT
- CLM_IP_INITL_MS_DRG_CD:
description:
@@ -31594,6 +35996,7 @@ cms:
original_type: CHAR
text: Claim Inpatient Initial MS-DRG Code
width: 4.0
+ reference: https://resdac.org/cms-data/variables/medpar-claim-inpatient-initial-ms-drg-code
type: VARCHAR(4)
- VAL_CD_Q1_PYMT_RDCTN_AMT:
description:
@@ -31601,6 +36004,7 @@ cms:
original_type: NUM
text: Value Code Q1 Payment Reduction Amount
width: 10.0
+ reference: https://resdac.org/cms-data/variables/value-code-q1-payment-reduction-amount
type: INT
- CLM_MODEL_REIMBRSMT_AMT:
description:
@@ -31608,6 +36012,7 @@ cms:
original_type: NUM
text: Claim Model Reimbursement Amount
width: 10.0
+ reference: https://resdac.org/cms-data/variables/claim-model-reimbursement-amount
type: INT
- RC_MODEL_REIMBRSMT_AMT:
description:
@@ -31615,6 +36020,7 @@ cms:
original_type: NUM
text: Revenue Center Model Reimbursement Amount
width: 10.0
+ reference: https://resdac.org/cms-data/variables/revenue-center-model-reimbursement-amount
type: INT
- VAL_CD_QB_OCM_PYMT_ADJSTMT_AMT:
description:
@@ -31622,6 +36028,7 @@ cms:
original_type: NUM
text: Value Code QB OCM + Payment Adjustment Amount
width: 10.0
+ reference: https://resdac.org/cms-data/variables/value-code-qb-ocm-payment-adjustment-amount
type: INT
- CELL_GENE_THRPY_PRCDRS_TOT_AMT:
description:
@@ -31629,6 +36036,7 @@ cms:
original_type: NUM
text: Cell/Gene Therapy Procedures Total Charge Amount
width: 10.0
+ reference: https://resdac.org/cms-data/variables/cellgene-therapy-procedures-total-charge-amount
type: INT
- CELL_THRPY_DRUGS_TOT_AMT:
description:
@@ -31636,6 +36044,7 @@ cms:
original_type: NUM
text: Cell Therapy Drugs Total Charge Amount
width: 10.0
+ reference: https://resdac.org/cms-data/variables/cell-therapy-drugs-total-charge-amount
type: INT
- GENE_THRPY_DRUGS_TOT_AMT:
description:
@@ -31643,6 +36052,7 @@ cms:
original_type: NUM
text: Gene Therapy Drugs Total Charge Amount
width: 10.0
+ reference: https://resdac.org/cms-data/variables/gene-therapy-drugs-total-charge-amount
type: INT
- LTCH_DPP_ADJSTMT_AMT:
description:
@@ -31651,6 +36061,7 @@ cms:
text: Long Term Care Hospital Discharge Payment Percentage Adjustment
Amount
width: 10.0
+ reference: https://resdac.org/cms-data/variables/long-term-care-hospital-discharge-payment-percentage-adjustment-amount
type: INT
- RC_NDC_1_CD:
description:
@@ -31658,6 +36069,7 @@ cms:
original_type: CHAR
text: Revenue Center National Drug Code (NDC) 1
width: 11.0
+ reference: https://resdac.org/cms-data/variables/revenue-center-national-drug-code-ndc-1
type: VARCHAR(11)
- RC_NDC_2_CD:
description:
@@ -31665,6 +36077,7 @@ cms:
original_type: CHAR
text: Revenue Center National Drug Code (NDC) 2
width: 11.0
+ reference: https://resdac.org/cms-data/variables/revenue-center-national-drug-code-ndc-2
type: VARCHAR(11)
- RC_NDC_3_CD:
description:
@@ -31672,6 +36085,7 @@ cms:
original_type: CHAR
text: Revenue Center National Drug Code (NDC) 3
width: 11.0
+ reference: https://resdac.org/cms-data/variables/revenue-center-national-drug-code-ndc-3
type: VARCHAR(11)
- RC_NDC_4_CD:
description:
@@ -31679,6 +36093,7 @@ cms:
original_type: CHAR
text: Revenue Center National Drug Code (NDC) 4
width: 11.0
+ reference: https://resdac.org/cms-data/variables/revenue-center-national-drug-code-ndc-4
type: VARCHAR(11)
- RC_NDC_5_CD:
description:
@@ -31686,6 +36101,7 @@ cms:
original_type: CHAR
text: Revenue Center National Drug Code (NDC) 5
width: 11.0
+ reference: https://resdac.org/cms-data/variables/revenue-center-national-drug-code-ndc-5
type: VARCHAR(11)
- RC_NDC_6_CD:
description:
@@ -31693,6 +36109,7 @@ cms:
original_type: CHAR
text: Revenue Center National Drug Code (NDC) 6
width: 11.0
+ reference: https://resdac.org/cms-data/variables/revenue-center-national-drug-code-ndc-6
type: VARCHAR(11)
- RC_NDC_7_CD:
description:
@@ -31700,6 +36117,7 @@ cms:
original_type: CHAR
text: Revenue Center National Drug Code (NDC) 7
width: 11.0
+ reference: https://resdac.org/cms-data/variables/revenue-center-national-drug-code-ndc-7
type: VARCHAR(11)
- RC_NDC_8_CD:
description:
@@ -31707,6 +36125,7 @@ cms:
original_type: CHAR
text: Revenue Center National Drug Code (NDC) 8
width: 11.0
+ reference: https://resdac.org/cms-data/variables/revenue-center-national-drug-code-ndc-8
type: VARCHAR(11)
- RC_NDC_9_CD:
description:
@@ -31714,6 +36133,7 @@ cms:
original_type: CHAR
text: Revenue Center National Drug Code (NDC) 9
width: 11.0
+ reference: https://resdac.org/cms-data/variables/revenue-center-national-drug-code-ndc-9
type: VARCHAR(11)
- RC_NDC_10_CD:
description:
@@ -31721,6 +36141,7 @@ cms:
original_type: CHAR
text: Revenue Center National Drug Code (NDC) 10
width: 11.0
+ reference: https://resdac.org/cms-data/variables/revenue-center-national-drug-code-ndc-10
type: VARCHAR(11)
- FILE:
description:
@@ -31729,6 +36150,7 @@ cms:
width: 128
index:
required_before_loading_data: true
+ reference: null
source:
type: file
type: VARCHAR(128)
@@ -31737,6 +36159,7 @@ cms:
original_type: BIGSERIAL
text: Record number in the file
width: null
+ reference: https://resdac.org/cms-data/variables/nch-near-line-record-identification-code-ric
type: BIGSERIAL
- STATE:
description:
@@ -31744,6 +36167,7 @@ cms:
text: SSA standard state code of a beneficiarys residence.
width: 2.0
index: true
+ reference: https://resdac.org/cms-data/variables/state-code-beneficiary-ssa-code
source:
code: GENERATED ALWAYS AS (STATE_CD) STORED
type: generated
@@ -31754,6 +36178,7 @@ cms:
text: Year of MedPAR Record
width: 4.0
index: true
+ reference: https://resdac.org/cms-data/variables/mbsf-cc-30/alzheimers-disease-end-year-indicator
source:
code: GENERATED ALWAYS AS (MEDPAR_YR_NUM) STORED
type: generated
@@ -31764,6 +36189,7 @@ cms:
text: Zip code of the mailing address where the beneficiary may be contacted.
width: 5.0
index: true
+ reference: https://resdac.org/cms-data/variables/zip-code-beneficiary
source:
code: GENERATED ALWAYS AS (BENE_ZIP) STORED
type: generated
diff --git a/src/python/dorieh/cms/tools/mcr_fts2db.py b/src/python/dorieh/cms/tools/mcr_fts2db.py
index aa978f74e..ffb916e8c 100644
--- a/src/python/dorieh/cms/tools/mcr_fts2db.py
+++ b/src/python/dorieh/cms/tools/mcr_fts2db.py
@@ -1,19 +1,38 @@
"""
-Command line utility to load raw Medicare data into the database.
+Raw Data Loader for Medicare files provided by ResDac.
+NSAPH Medicare pipeline uses this module for years 2011 and later.
-Used for 2011 and later years. Looks for FTS files, parses them to generate
-database model and extract
-metadata required to read DAT files. Then loads data into the database.
+This module defines a command-line utility to ingest raw Medicare data
+delivered in File Transfer Summary (FTS) and fixed-width data (DAT) format,
+as provided by ResDAC for years 2011 and later.
-This module looks for FTS files, parses them, then looks for corresponding
-DAT files. It copies FTS files to destination directory and selects a few
-random records from DAT files.
+Overview:
-Please note, that if the destination to be used with Medicare
-ingestion pipeline, the full path to resulting FTS and DAT files must include
-a directory named with the year, e.g. my_data/medicare/2018/*.fts
-"""
+Searches recursively for all FTS (*.fts) files under specified input path(s)
+Parses each FTS file using the :class:~dorieh.cms.fts2yaml.MedicareFTS parser
+Determines the appropriate database schema and metadata for the associated *.dat or *.csv.gz file
+Loads data into the database using :class:~dorieh.cms.mcr_data_loader.MedicareDataLoader
+for .dat files or a generic :class:~dorieh.platform.loader.data_loader.DataLoader for CSV files
+Applies indexing and VACUUM optimization after insertion
+
+Usage Notes:
+
+This loader requires that data be organized into year-based subfolders. For example: my_data/medicare/2018/*.fts
+The name of the parent directory of the FTS file must be a 4-digit year (e.g., 2011, 2018).
+This requirement applies to both the data and FTS file location to establish table naming conventions correctly.
+Key Components:
+:class:MedicareLoader — orchestrates ingestion logic
+:class:~dorieh.cms.mcr_data_loader.MedicareDataLoader — fixed-width reader-based data loader
+:class:~dorieh.platform.loader.data_loader.DataLoader — generic CSV reader-based loader
+
+
+See also:
+
+:doc:members/fts2yaml — for metadata extraction from FTS
+:doc:members/mcr_data_loader — for Medicare file reading
+:doc:members/medicare_yaml — for generated schema definition
+"""
# Copyright (c) 2022. Harvard University
#
@@ -56,11 +75,19 @@
class MedicareLoader:
"""
- Medicare Loader for original medicare data received from Resdac. Used
- for 2011 and later years.
+ High-level loader for raw Medicare data files provided by ResDac, using FTS and DAT.
+
+ The loader walks the input directory to locate all *.fts (File Transfer Summary) files,
+ and for each one:
+
+ - Parses its metadata and adds to the schema registry (YAML)
+ - Identifies corresponding *.dat or *.csv.gz data files
+ - Uses :class:`~dorieh.cms.mcr_data_loader.MedicareDataLoader` to load FWF files
+ or :class:`~dorieh.platform.loader.data_loader.DataLoader` for CSV files
+ - Applies schema-specific indexing and vacuum optimization
+
+ This loader is compatible with ETL processing of Medicare data for 2011 and later.
- Looks for FTS files, parses them to generate database model and extract
- metadata required to read DAT files. Then loads data into the database.
"""
@classmethod
@@ -69,6 +96,13 @@ def process(cls):
loader.traverse(loader.pattern)
def __init__(self):
+ """
+ Initializes MedicareLoader object with default CMS domain context.
+
+ Sets the input pattern and prepares the LoaderConfig context, including
+ root directory, flags like incremental/sloppy, and path normalization.
+ """
+
self.pattern = "**/*.fts"
self.context = LoaderConfig(__doc__)
self.context.domain = "cms"
@@ -83,6 +117,14 @@ def __init__(self):
return
def traverse(self, pattern: str):
+ """
+ Searches directories recursively using the given pattern to find all FTS files.
+ For each matching file, initiates schema inference and data ingestion via handle().
+
+ :param pattern: pattern (str): Glob pattern to match files (e.g., "**/*.fts")
+ :return:
+ """
+
if isinstance(self.root_dir, list):
dirs = self.root_dir
else:
@@ -103,6 +145,12 @@ def traverse(self, pattern: str):
return
def handle_empty(self):
+ """
+ Handles the case where no FTS files are found.
+
+ Creates an empty registry file (if not already present) and logs a message.
+ """
+
init_logging()
logging.info("No files to process")
if not os.path.exists(self.context.registry):
@@ -111,6 +159,20 @@ def handle_empty(self):
return
def handle(self, fts_path: str):
+ """
+ Loads a Medicare FTS/DAT or FTS/CSV pair into the database.
+
+ - Extracts the year based on the immediate parent directory of the FTS file
+ - Determines the file type from FTS file name
+ - Updates the schema registry
+ - Dispatches to the appropriate loader (.dat or .csv.gz)
+
+ :param fts_path: Full path to an FTS metadata file.
+
+ Raises:
+ ValueError: If year could not be inferred or data file is missing.
+ """
+
basedir, fname = os.path.split(fts_path)
_, ydir = os.path.split(basedir)
try:
@@ -148,6 +210,14 @@ def handle(self, fts_path: str):
@staticmethod
def loader_for_csv(context: LoaderConfig, data_path: str) -> DataLoader:
+ """
+ Creates a generic DataLoader for a delimited CSV (usually .csv.gz) file.
+
+ :param context: Configuration object with metadata and paths
+ :param data_path: Path to the input CSV file
+ :return: Configured loader for tab-delimited CSV
+ """
+
context.pattern = [os.path.join("**", os.path.basename(data_path))]
loader = DataLoader(context)
loader.csv_delimiter = '\t'
@@ -155,6 +225,14 @@ def loader_for_csv(context: LoaderConfig, data_path: str) -> DataLoader:
@staticmethod
def loader_for_fwf(context: LoaderConfig, fts_path: str) -> DataLoader:
+ """
+ Creates a MedicareDataLoader instance for a FTS/DAT file pair.
+
+ :param context: Configuration object with metadata and paths
+ :param fts_path: Path to the associated FTS metadata file
+ :return: Loader ready to ingest fixed-width records
+ """
+
context.data = [fts_path]
loader = MedicareDataLoader(context)
return loader
diff --git a/src/python/dorieh/cms/tools/mcr_sas.py b/src/python/dorieh/cms/tools/mcr_sas.py
index bbc1df007..07e33e84b 100644
--- a/src/python/dorieh/cms/tools/mcr_sas.py
+++ b/src/python/dorieh/cms/tools/mcr_sas.py
@@ -18,13 +18,20 @@
#
"""
-Abstract class to look for and process Medicare files from 1999 to 2010
+Abstract base class for processing semi-structured Medicare SAS files (1999–2010).
-These files are semi-processed files. For each year we have a denominator
-(or patient summary, or enrollment) file and an inpatient admissions file.
+This class provides common traversal and filename-parsing logic to identify and
+process Medicare data files stored in the SAS 7BDAT format.
-Files are in SAS 7BDAT format.
-"""
+These files are partially preprocessed and typically include:
+
+Denominator (patient/enrollment) files
+Inpatient admissions files
+Subclasses must implement the abstract handle() method to specify file handling logic.
+
+Typical usage:
+- :class:~dorieh.cms.tools.sas_loader.SASLoader for data ingestion
+- :class:~dorieh.cms.tools.sas_introspector.SASIntrospector for metadata extraction"""
import glob
@@ -39,14 +46,44 @@
class MedicareSAS(ABC):
"""
- Abstract class to look for and process Medicare files from 1999 to 2010
- in SAS 7BDAT format
+ Abstract base class for locating and processing Medicare SAS 7BDAT files
+ in a specified directory
+
+ This class handles:
+ - Recursively locating SAS files matching given patterns
+ - Determining file type and year from directory structure
+ - Invoking subclass-defined logic for each discovered file
+
+ Subclasses must implement:
+ - handle(table, file_path, file_type, year): method to process each file.
+
+ Attributes:
+ root_dir (str or List[str]): Directory or list of directories containing data files.
+
"""
def __init__(self, root_dir:str = '.'):
+ """
+ Initialize the MedicareSAS base class.
+
+ Args:
+ root_dir (str or List[str]): Root directory (or directories) containing SAS files.
+ This can be a single directory as a string or a list of directories.
+ """
+
self.root_dir = root_dir
def traverse(self, pattern: str):
+ """
+ Search for SAS files that match a glob-style pattern and process them.
+
+ Uses recursive glob search from the root_dir(s), filtering by .sas7bdat extension,
+ and passes matching files to self.handle_sas_file().
+
+ Args:
+ pattern (str): File search pattern (e.g., "[1-2]*/*/*.sas7bdat").
+ """
+
if isinstance(self.root_dir, list):
dirs = self.root_dir
else:
@@ -62,6 +99,17 @@ def traverse(self, pattern: str):
return
def handle_sas_file(self, f: str):
+ """
+ Analyze the SAS file path to extract file type and year,
+ then delegate the processing to subclass-defined handle() method.
+
+ Args:
+ f (str): Full path to the .sas7bdat file.
+
+ Raises:
+ ValueError: If file path does not contain a recognizable year or type.
+ """
+
basedir, fname = os.path.split(f)
ydir, basedir = os.path.split(basedir)
ydir = os.path.basename(ydir)
@@ -82,4 +130,20 @@ def handle_sas_file(self, f: str):
@abstractmethod
def handle(self, table: str, file_path: str, file_type: str, year: int):
+ """
+ Abstract method to handle a single SAS 7BDAT file.
+
+ This must be implemented by any subclass of MedicareSAS, and
+ should define how a given SAS dataset is processed.
+
+ Concrete classes override it to either generata database schema
+ or perform data loading
+
+ Args:
+ table (str): Name of the table or logical target in the system.
+ file_path (str): Full file path to the SAS file.
+ file_type (str): Subtype or directory name used to classify the file (e.g., "inpatient", "denominator").
+ year (int): Parsed year value inferred from directory name.
+ """
+
pass
diff --git a/src/python/dorieh/cms/tools/mcr_sas2db.py b/src/python/dorieh/cms/tools/mcr_sas2db.py
index 54236c0e4..f0cf4e516 100644
--- a/src/python/dorieh/cms/tools/mcr_sas2db.py
+++ b/src/python/dorieh/cms/tools/mcr_sas2db.py
@@ -17,10 +17,18 @@
# limitations under the License.
#
"""
-Loader looks for SAS 7BDAT files in a given path
-matching a given pattern and loads the data in the database.
+This loader is used to ingest files generated by SAS software
+in SAS 7BDAT format. It looks for SAS 7BDAT files in a given path
+matching a given pattern and loads the data into the database.
-Used for 1999 to 2010 years
+Before running the loader, one should generate database
+schema by introspecting the metadata defined in the SAS 7BDAT
+files.
+
+It is used to ingest Medicare data for 1999 to 2010 years.
+
+See also:
+- :class:`.SASIntrospector` for introspection and schema analysis of SAS files.
"""
import copy
@@ -34,10 +42,10 @@
class SASLoader(MedicareSAS):
"""
- Loader looks for SAS 7BDAT files in a given path
+ Loader class that looks for SAS 7BDAT files in a given path
matching a given pattern and loads the data in the database.
- Used for 1999 to 2010 years
+ This loader is used to ingest Medicare data for 1999 - 2010 years
"""
@classmethod
@@ -59,6 +67,25 @@ def __init__(self):
return
def handle(self, table: str, file_path: str, file_type: str, year: int):
+ """
+ Handle a single SAS 7BDAT file by creating a data loader instance
+ and invoking the loading process.
+
+ This method overrides the abstract method from the parent class
+ :class:`.MedicareSAS`.
+
+ For each input file, it creates an instance of
+ :class:`~dorieh.platform.loader.data_loader.DataLoader`
+ configured with the appropriate context, and then runs it to ingest data.
+
+ Args:
+ table (str): Target table name for the data.
+ file_path (str): Absolute path to the source SAS file.
+ file_type (str): Type or category of the SAS file.
+ year (int): Year associated with the data file.
+
+ """
+
context = copy.deepcopy(self.context)
context.table = table
context.pattern = [os.path.join("**", os.path.basename(file_path))]
diff --git a/src/python/dorieh/cms/tools/mcr_sas2yaml.py b/src/python/dorieh/cms/tools/mcr_sas2yaml.py
index 4de5cc9b5..b57894be6 100644
--- a/src/python/dorieh/cms/tools/mcr_sas2yaml.py
+++ b/src/python/dorieh/cms/tools/mcr_sas2yaml.py
@@ -18,10 +18,19 @@
#
"""
-Introspector that looks for all SAS 7BDAT files in a given path
-matching a given pattern, reads metadata and generates data model
-for each file in YAML format. the data model is written to the common
-registry.
+This module defines an introspector for SAS 7BDAT files related to Medicare data.
+
+The SASIntrospector class crawls a directory for SAS files matching a pattern,
+extracts metadata (column info), and generates data model definitions in YAML format.
+These models are written to a centralized registry.
+
+Typical use case: building data models from Medicare SAS files (e.g., 1999–2010).
+
+See Also:
+- :class:`.SASIntrospector` (this class)
+- :class:`.MedicareSAS` (superclass)
+- :class:`~dorieh.platform.loader.introspector.Introspector`
+- :class:`~dorieh.cms.tools.mcr_registry.MedicareRegistry`
"""
import logging
@@ -40,14 +49,32 @@
class SASIntrospector(MedicareSAS, MedicareRegistry):
"""
- Introspector that looks for all SAS 7BDAT files in a given path
- matching a given pattern, reads metadata and generates data model
- for each file in YAML format. the data model is written to the common
- registry.
+ This class traverses a file path looking for SAS .sas7bdat files,
+ extracts their schema using :class:`~dorieh.platform.loader.introspector.Introspector`,
+ and creates a structured data model serialized to a YAML registry.
+
+ In addition to field-level metadata, this introspector:
+ - Attempts to identify common fields such as bene_id, state, zip, and year
+ - Automatically generates a year column if missing
+ - Marks special fields as indexed
+ - Adds virtual key fields for file and record identifiers
+
+ Inherits from:
+ MedicareSAS: For file traversal and handling utilities
+ MedicareRegistry: For interacting with the data model YAML registry
"""
@classmethod
- def process(cls, registry_path: str, pattern: str, root_dir:str = '.'):
+ def process(cls, registry_path: str, pattern: str, root_dir: str = '.'):
+ """
+ Entry point that initializes and runs the introspector.
+
+ Args:
+ registry_path (str): Path to output YAML registry file.
+ pattern (str): Glob-like pattern to match .sas7bdat files.
+ root_dir (str): Root directory to start searching. Default is current directory.
+ """
+
introspector = SASIntrospector(registry_path, root_dir)
introspector.traverse(pattern)
introspector.save()
@@ -55,11 +82,30 @@ def process(cls, registry_path: str, pattern: str, root_dir:str = '.'):
return
def __init__(self, registry_path: str, root_dir: str = '.'):
+ """
+ Initializes the SASIntrospector with the given registry path and SAS root directory.
+
+ Args:
+ registry_path (str): Path to the YAML registry file.
+ root_dir (str): Base directory for SAS 7BDAT files.
+ """
+
MedicareSAS.__init__(self, root_dir)
MedicareRegistry.__init__(self, registry_path)
@classmethod
def matches(cls, s: str, candidates: List[str]):
+ """
+ Determines whether a string matches any string or wildcard pattern in candidates.
+
+ Args:
+ s (str): String to match.
+ candidates (List[str]): List of exact names or patterns (may include `*`).
+
+ Returns:
+ bool: True if s matches any candidate.
+ """
+
if s in candidates:
return True
patterns = [c.replace('*', '.*') for c in candidates if '*' in c]
@@ -69,6 +115,16 @@ def matches(cls, s: str, candidates: List[str]):
return False
def handle(self, table: str, file_path: str, file_type: str, year: int):
+ """
+ Handles metadata extraction for a single .sas7bdat file.
+
+ Args:
+ table (str): Target table name to use in the registry.
+ file_path (str): File path to the SAS data file.
+ file_type (str): Type of file (e.g., 'denominator').
+ year (int): Associated year of data.
+ """
+
if file_type == "denominator":
index_all = True
else:
@@ -78,6 +134,25 @@ def handle(self, table: str, file_path: str, file_type: str, year: int):
def add_sas_table(self, table: str, file_path: str, index_all: bool,
year: int):
+ """
+ Extracts schema from a SAS file and registers columns into the YAML registry.
+
+ - Uses introspection to extract columns and attach metadata.
+ - Detects and indexes key columns (e.g., bene_id, state, year).
+ - Auto-generates a 'year' column if missing using a virtual GENERATED column.
+ - Indexes all columns if index_all is True (e.g., for denominator files).
+ - Adds FILE and RECORD fields to simulate full uniqueness using a compound PK.
+
+ Args:
+ table (str): Name of the table in the registry.
+ file_path (str): Path to the SAS file.
+ index_all (bool): Whether all fields should be indexed.
+ year (int): Year to use when generating missing year columns.
+
+ Raises:
+ ValueError: If duplicate key fields are detected or mandatory fields are missing.
+ """
+
introspector = Introspector(file_path)
introspector.introspect()
introspector.append_file_column()
diff --git a/src/python/dorieh/docutils/cwl2md.py b/src/python/dorieh/docutils/cwl2md.py
index 8d18d42c5..ba0c20451 100644
--- a/src/python/dorieh/docutils/cwl2md.py
+++ b/src/python/dorieh/docutils/cwl2md.py
@@ -38,13 +38,14 @@
"""
+
cwl_src_template = """---
orphan: true
---
# {name}
-```{literalinclude} ../../src/cwl/{path}
+```{literalinclude} {path}
:linenos:
:language: yaml
```
@@ -109,9 +110,10 @@ def _add_title(self):
def _add_source(self):
of = self.output_file_path.replace(".md", "cwl_src.md")
- inf = os.path.basename(self.input_file_path)
- content = cwl_src_template.format(name=inf, path=inf,
- literalinclude="{literalinclude}")
+ name = os.path.basename(self.input_file_path)
+ abs_path = os.path.abspath(self.input_file_path)
+ rel_path = os.path.relpath(abs_path, os.path.dirname(self.output_file_path))
+ content = cwl_src_template.format(name=name, path=rel_path, literalinclude="{literalinclude}")
with open(of, "w") as out:
out.write(content)
self.md_file.add_text("\n [Source code]({}) \n".format(
@@ -134,6 +136,7 @@ def _find_title(content: str) -> Optional[str]:
for line in content.splitlines():
if line.startswith('###'):
return line.replace('###', '').strip()
+ return None
@staticmethod
def _get_filename(file_path: str) -> str:
@@ -229,6 +232,18 @@ def _add_outputs(self):
self.md_file.add_table(data=data)
+ @classmethod
+ def find_run_uri(cls, run_target:str) -> str:
+ if run_target.startswith("https://raw.githubusercontent.com/ForomePlatform/dorieh/main/src/"):
+ workflow = os.path.basename(run_target)
+ workflow = os.path.splitext(workflow)[0]
+ uri = f"https://foromeplatform.github.io/dorieh/pipeline/{workflow}.html"
+ elif run_target.startswith("https:/"):
+ uri = run_target
+ else:
+ uri = run_target.replace('.cwl', '.md')
+ return uri
+
def _add_steps(self):
if 'steps' not in self.yaml_content:
return
@@ -247,8 +262,9 @@ def _add_steps(self):
doc = arg.get('doc', ' ').replace('\n', ' ')
runs = arg['run']
if isinstance(runs, str):
- ref_uri = runs.replace('.cwl', '.md')
- target = f'[{runs}]({ref_uri})'
+ ref_uri = self.find_run_uri(runs)
+ runs_name = os.path.basename(runs)
+ target = f'[{runs_name}]({ref_uri})'
elif runs.get('class').lower() == 'workflow':
file_name = self._handle_sub_workflow(name, runs)
target = f"[sub-workflow]({file_name})"
diff --git a/src/python/dorieh/epa/airnow_downloader.py b/src/python/dorieh/epa/airnow_downloader.py
index 75ce04539..ad0acef14 100644
--- a/src/python/dorieh/epa/airnow_downloader.py
+++ b/src/python/dorieh/epa/airnow_downloader.py
@@ -28,6 +28,7 @@
import os
import time
from datetime import timedelta, datetime, date
+from io import StringIO
from pathlib import Path
from typing import List, Union, Dict
@@ -268,7 +269,7 @@ def process(self, content: str) -> List[dict]:
dictionary, with column names serving as keys
"""
- df = pandas.read_json(content)
+ df = pandas.read_json(StringIO(content))
agg = {
c: "mean" if c in [self.VALUE, self.AQI]
else "first"
diff --git a/src/python/dorieh/gis/constants.py b/src/python/dorieh/gis/constants.py
index fcee77716..f2b43a592 100644
--- a/src/python/dorieh/gis/constants.py
+++ b/src/python/dorieh/gis/constants.py
@@ -20,18 +20,24 @@ class RasterizationStrategy(Enum):
The default strategy is to include all pixels along the line render path
(for lines), or cells where the center point is within the polygon
(for polygons).
+
+ .. :noindex:
"""
all_touched = 'all_touched'
"""
Alternate, all_touched strategy, rasterizes the geometry
by including all pixels that it touches.
+
+ .. :noindex:
"""
combined = 'combined'
"""
Calculate statistics using both default and all_touched strategy and
combine results, e.g. using arithmetic means
+
+ .. :noindex:
"""
downscale = 'downscale'
@@ -48,6 +54,8 @@ class RasterizationStrategy(Enum):
and will run slower.
See `get_affine_transform <../../../gridmet/doc/gridmet_tools.html#gridmet.gridmet_tools.get_affine_transform>`_
+
+ .. :noindex:
"""
auto = 'auto'
@@ -64,6 +72,8 @@ class RasterizationStrategy(Enum):
and will run slower.
See `get_affine_transform <../../../gridmet/doc/gridmet_tools.html#gridmet.gridmet_tools.get_affine_transform>`_
+
+ .. :noindex:
"""
diff --git a/src/python/dorieh/platform/data_model/domain.py b/src/python/dorieh/platform/data_model/domain.py
index 8b5e8fa30..ed783c5d8 100644
--- a/src/python/dorieh/platform/data_model/domain.py
+++ b/src/python/dorieh/platform/data_model/domain.py
@@ -5,7 +5,7 @@
See
"""
-
+import datetime
# Copyright (c) 2021. Harvard University
#
# Developed by Research Software Engineering,
@@ -525,7 +525,8 @@ def ddl_for_node(self, node, parent = None) -> None:
self.add_column_indices(table, columns)
self.add_multi_column_indices(table, definition)
- comment = f"CREATED BY Dorieh: {get_version()}"
+ cts = str(datetime.datetime.now())
+ comment = f"CREATED BY Dorieh: {get_version()}. Created at {cts}"
comment_sql = f"COMMENT ON {object_type} {table} IS '{comment}';"
self.append_ddl(table, comment_sql)
@@ -580,6 +581,8 @@ def generate_insert_from_select(self, table: str, limit: int = None) -> str:
def is_populate_on_create(self, table) -> bool:
definition = self.find(table)
+ if not "create" in definition:
+ return False
create = definition["create"]
if "populate" in create and create["populate"] is False:
return False
diff --git a/src/python/dorieh/platform/data_model/model.py b/src/python/dorieh/platform/data_model/model.py
index 1a885e0e3..a9e56cf9e 100644
--- a/src/python/dorieh/platform/data_model/model.py
+++ b/src/python/dorieh/platform/data_model/model.py
@@ -76,10 +76,13 @@ def index_method(c: str) -> (str,None):
return None
-integer = re.compile("-?\d+")
-float_number = re.compile("(-?\d*)\.(\d+)([e|E][-|+]?\d+)?")
-exponent = re.compile("(-?\d+)([e|E][-|+]?\d+)")
-date = re.compile("([12]\d{3}-(0[1-9]|1[0-2])-(0[1-9]|[12]\d|3[01]))")
+integer = re.compile(r"-?\d+")
+float_number = re.compile(r"(-?\d*)\.(\d+)([e|E][-|+]?\d+)?")
+exponent = re.compile(r"(-?\d+)([e|E][-|+]?\d+)")
+_date = r"([12]\d{3}-(0[1-9]|1[0-2])-(0[1-9]|[12]\d|3[01]))"
+date = re.compile(_date)
+timestamp = re.compile(_date + r"[T|t][0-9]{2}:[0-9]{2}")
+
SET_COLUMN = "UPDATE {table} SET {column} = {expression}"
diff --git a/src/python/dorieh/platform/db.py b/src/python/dorieh/platform/db.py
index be4c3a531..04f750103 100644
--- a/src/python/dorieh/platform/db.py
+++ b/src/python/dorieh/platform/db.py
@@ -31,16 +31,22 @@
import logging
import socket
-import paramiko
+import sys
+import warnings
import psycopg2
import os
-import sshtunnel
from configparser import ConfigParser
import boto3
from botocore.exceptions import ClientError
from deprecated.sphinx import deprecated
+from cryptography.utils import CryptographyDeprecationWarning
+with warnings.catch_warnings():
+ warnings.simplefilter(action="ignore", category=CryptographyDeprecationWarning)
+ import paramiko
+ import sshtunnel
+
from dorieh.platform import app_name
@@ -74,14 +80,18 @@ def read_config(cls, filename, section):
pp = parameters["secret"].split(':')
region = cls.aws_default_region
name = cls.aws_default_secret_name
- for x in pp:
+ for i, x in enumerate(pp):
xx = x.split('=')
if xx[0] == "region":
region = xx[1]
elif xx[0] == "name":
- name = xx[1]
+ if xx[1] == 'arn':
+ name = xx[1] + ':' + ':'.join(pp[i+1:])
+ else:
+ name = xx[1]
data = json.loads(cls.get_aws_secret(region, name))
- print(data)
+ if os.getenv("DORIEH_DEBUG") in ["1", "True", "true", "TRUE"]:
+ print(data)
del parameters["secret"]
for key in ["password", "database"]:
if key in data:
@@ -234,8 +244,8 @@ def __enter__(self):
return self.connect()
-def test_connection ():
- with Connection() as conn:
+def test_connection (filename, section):
+ with Connection(filename=filename, section=section) as conn:
cur = conn.cursor()
logging.info('PostgreSQL database version:')
@@ -284,6 +294,6 @@ def __next__(self):
if __name__ == '__main__':
- test_connection()
+ test_connection(sys.argv[1], sys.argv[2])
diff --git a/src/python/dorieh/platform/dbt/dbt_runner.py b/src/python/dorieh/platform/dbt/dbt_runner.py
index e788b8f6a..fd7d6cd5a 100644
--- a/src/python/dorieh/platform/dbt/dbt_runner.py
+++ b/src/python/dorieh/platform/dbt/dbt_runner.py
@@ -27,6 +27,7 @@
import logging
import os.path
from typing import List
+from abc import abstractmethod, ABC
from dorieh.platform import init_logging
from dorieh.platform.db import Connection
@@ -36,7 +37,8 @@
class TestFailedError(Exception):
pass
-class DBTRunner:
+
+class DBTRunner(ABC):
def __init__(self, context: DBTConfig = None):
if not context:
context = DBTConfig(None, __doc__).instantiate()
@@ -55,52 +57,43 @@ def reset(self):
self.successes = 0
self.failures = 0
- def run(self):
- with Connection(self.context.db, self.context.connection) as cnxn:
- for script_file in self.scripts:
- with open(script_file) as script:
- self.run_script(script, cnxn)
+ def analyze_results(self, columns: List, rows: List):
+ pi = columns.index("passed")
+ n = len(columns)
+ lengths = [0 for _ in range(n)]
+ passes = 0
+ failures = 0
+ test_cases = []
+ for row in rows:
+ values = [row[i] for i in range(n)]
+ if row[pi]:
+ passes += 1
+ values[pi] = "passed"
+ else:
+ failures += 1
+ values[pi] = "failed"
+ for i in range(n):
+ if len(values[i]) > lengths[i]:
+ lengths[i] = len(str(values[i]))
+ test_cases.append(values)
+ lengths = [l + 1 for l in lengths]
+ logging.info(self.report_row(columns, lengths))
+ for row in test_cases:
+ s = self.report_row(row, lengths)
+ if row[pi] == "passed":
+ logging.info(s)
+ elif row[pi] == "failed":
+ logging.error(s)
+ else:
+ logging.warning(s)
+ logging.info("Passed: {:d}; Failed: {:d}".format(passes, failures))
+ self.runs += len(test_cases)
+ self.successes += passes
+ self.failures += failures
- def run_script(self, script, cnxn):
- lines = [line for line in script]
- query = ''.join(lines)
- with cnxn.cursor() as cursor:
- cursor.execute(query)
- columns = [desc[0] for desc in cursor.description]
- pi = columns.index("passed")
- n = len(columns)
- rows = [row for row in cursor]
- lengths = [0 for _ in range(n)]
- passes = 0
- failures = 0
- test_cases = []
- for row in rows:
- values = [row[i] for i in range(n)]
- if row[pi]:
- passes += 1
- values[pi] = "passed"
- else:
- failures += 1
- values[pi] = "failed"
- for i in range(n):
- if len(values[i]) > lengths[i]:
- lengths[i] = len(str(values[i]))
- test_cases.append(values)
- lengths = [l + 1 for l in lengths]
- logging.info(self.report_row(columns, lengths))
- for row in test_cases:
- s = self.report_row(row, lengths)
- if row[pi] == "passed":
- logging.info(s)
- elif row[pi] == "failed":
- logging.error(s)
- else:
- logging.warning(s)
- logging.info("Passed: {:d}; Failed: {:d}".format(passes, failures))
- self.runs += len(test_cases)
- self.successes += passes
- self.failures += failures
- return
+ @abstractmethod
+ def run(self):
+ pass
@classmethod
def report_row(cls, row: List, lengths: List[int]) -> str:
@@ -115,11 +108,33 @@ def test(self):
self.run()
if self.failures > 0:
err = TestFailedError(f"There are {str(self.failures)} failures")
- logging.exception("Tests FAILED", err)
+ logging.error(f"Tests FAILED: {err}")
raise err
logging.info("All tests succeeded")
+ @classmethod
+ def form_query(cls, script_file) -> str:
+ with open(script_file) as script:
+ lines = [line for line in script]
+ query = ''.join(lines)
+ return query
+
+
+class PGDBTRunner(DBTRunner):
+ def run(self):
+ with Connection(self.context.db, self.context.connection) as cnxn:
+ for script_file in self.scripts:
+ self.run_script(self.form_query(script_file), cnxn)
+
+ def run_script(self, query, cnxn):
+ with cnxn.cursor() as cursor:
+ cursor.execute(query)
+ columns = [desc[0] for desc in cursor.description]
+ rows = [row for row in cursor]
+ self.analyze_results(columns, rows)
+ return
+
if __name__ == '__main__':
- runner = DBTRunner()
+ runner = PGDBTRunner()
runner.test()
diff --git a/src/python/dorieh/platform/dbt/spark_dbt_runner.py b/src/python/dorieh/platform/dbt/spark_dbt_runner.py
new file mode 100644
index 000000000..d483efb01
--- /dev/null
+++ b/src/python/dorieh/platform/dbt/spark_dbt_runner.py
@@ -0,0 +1,67 @@
+# Copyright (c) 2024. Harvard University
+#
+# Developed by Research Software Engineering,
+# Harvard University Research Computing and Data (RCD) Services.
+#
+# Author: Michael A Bouzinier
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+#
+#
+from pyspark.sql import SparkSession
+
+from dorieh.platform import init_logging
+from dorieh.platform.dbt.dbt_runner import DBTRunner
+from dorieh.platform.util.spsql import read_parquet
+
+
+class SparkDBTRunner(DBTRunner):
+ def __init__(self):
+ super().__init__()
+ self.path_to_parquet = self.context.location
+ if not self.path_to_parquet:
+ raise ValueError("Parameter `location` is not defined, it is required for Spark")
+ if self.context.table:
+ self.table: str = self.context.table
+ if '.' in self.table:
+ self.table = self.table.replace('.', '___')
+ else:
+ self.table = "parquet_table"
+
+
+ def run(self):
+ spark = SparkSession.builder.appName("Dorieh Spark DBT Runner").getOrCreate()
+ try:
+ df = read_parquet(spark, self.context.location)
+ df.createOrReplaceTempView(self.table)
+ for script_file in self.scripts:
+ self.run_script(self.form_query(script_file), spark)
+ finally:
+ spark.stop()
+
+ def run_script(self, query: str, spark: SparkSession):
+ if self.table != self.context.table:
+ query = query.replace(self.context.table, self.table)
+ df = spark.sql(query)
+ df.show()
+ columns = df.columns
+ list_of_rows = df.collect()
+ rows = [list(row) for row in list_of_rows]
+ self.analyze_results(columns, rows)
+
+
+if __name__ == '__main__':
+ init_logging(name="run-spark-tests")
+ runner = SparkDBTRunner()
+ runner.test()
diff --git a/src/python/dorieh/platform/dictionary/__init__.py b/src/python/dorieh/platform/dictionary/__init__.py
index 09afa429d..9ac923037 100644
--- a/src/python/dorieh/platform/dictionary/__init__.py
+++ b/src/python/dorieh/platform/dictionary/__init__.py
@@ -16,3 +16,9 @@
# See the License for the specific language governing permissions and
# limitations under the License.
#
+from enum import Enum
+
+
+class RenderMode(Enum):
+ standalone = "standalone"
+ sphinx = "sphinx"
diff --git a/src/python/dorieh/platform/dictionary/columns.py b/src/python/dorieh/platform/dictionary/columns.py
index 44a99594f..c429b4359 100644
--- a/src/python/dorieh/platform/dictionary/columns.py
+++ b/src/python/dorieh/platform/dictionary/columns.py
@@ -16,15 +16,19 @@
# See the License for the specific language governing permissions and
# limitations under the License.
#
-from typing import Dict, List, Optional, Set
+import os
+import textwrap
+from typing import Dict, List, Optional, Set, Callable
import sqlparse
import yaml
from sqlparse.sql import IdentifierList, Parenthesis, Function, Identifier
import html
-from dorieh.platform.dictionary.element import HTML, DataModelElement, qstr, attrs2string
+from dorieh.platform.dictionary import RenderMode
+from dorieh.platform.dictionary.element import HTML, DataModelElement, qstr, attrs2string, hr, create_graph_envelop
from dorieh.platform.data_model.domain import Domain
+from dorieh.platform.dictionary.resdac_crawler import get_resdac_mapping
def noop(x):
@@ -32,7 +36,9 @@ def noop(x):
class Column(DataModelElement):
- def __init__(self, table_name: str, column_block: Dict):
+ column_mapping = None
+
+ def __init__(self, table_name: str, column_block: Dict, mode, describe_column_type: Callable):
if isinstance(column_block, dict):
for name in column_block:
self.name = name
@@ -50,34 +56,48 @@ def __init__(self, table_name: str, column_block: Dict):
self.copied = False
self.casts = dict()
self.requires = []
+ self.mode = mode
+ self.describe_column_type = describe_column_type
if self.block is None:
- return
- if "type" in self.block:
- self.datatype = self.block["type"]
- if "source" in self.block:
- self.expand_macro2()
- src_block = self.block["source"]
- if isinstance(src_block, list):
- for item in src_block:
- self.predecessors.add(item)
- elif isinstance(src_block, dict):
- if "type" in src_block:
- self.column_type = src_block["type"]
- if "code" in src_block:
- self.parse_expr(src_block["code"])
- elif isinstance(src_block, str):
- self.parse_expr(src_block)
- if "requires" in self.block:
- req = self.block["requires"]
- if isinstance(req, list):
- self.requires = req
+ self.predecessors.add(self.name)
+ else:
+ if "type" in self.block:
+ self.datatype = self.block["type"]
+ if "source" in self.block:
+ self.expand_macro2()
+ src_block = self.block["source"]
+ if isinstance(src_block, list):
+ for item in src_block:
+ self.predecessors.add(item)
+ elif isinstance(src_block, dict):
+ if "type" in src_block:
+ self.column_type = src_block["type"]
+ if "code" in src_block:
+ self.parse_expr(src_block["code"])
+ elif isinstance(src_block, str):
+ self.parse_expr(src_block)
+ if "requires" in self.block:
+ req = self.block["requires"]
+ if isinstance(req, list):
+ self.requires = req
+ else:
+ self.requires = [req]
+ if "cast" in self.block:
+ for t in self.block["cast"]:
+ self.casts[t] = self.block["cast"][t]
+ if self.description is None and self.is_in_mapping():
+ descr = self.column_mapping[self.name.lower()].description
+ if isinstance(descr, dict):
+ self.description = descr
else:
- self.requires = [req]
- if "cast" in self.block:
- for t in self.block["cast"]:
- self.casts[t] = self.block["cast"][t]
+ self.description = {"text": descr}
+ if self.reference is None and self.is_in_mapping():
+ self.reference = self.column_mapping[self.name.lower()].url
return
+ def is_in_mapping(self):
+ return self.column_mapping is not None and self.name.lower() in self.column_mapping
+
def is_transformed(self):
return self.expression or self.casts
@@ -122,7 +142,7 @@ def expand_macro2(self):
self.block["source"] = expansion
return
- def describe(self) -> str:
+ def describe_txt(self) -> str:
text = f'{self.name} ({self.datatype}) {self.column_type}\n'
if self.reference:
text += "See: " + self.reference + '\n\n'
@@ -142,21 +162,24 @@ def describe(self) -> str:
text += "\n\n" + exp + '\n'
return text
+ def describe(self, format: str) -> str:
+ if format == 'html':
+ return self.describe_html()
+ return self.describe_markdown()
+
def describe_html(self) -> str:
text = "\n
\n"
text += "
"
text += f'
{self.qualified_name}
'
- text += f'
{self.datatype}
'
text += "
\n"
if self.column_type:
text += f'
{self.column_type}
\n'
-
if self.reference:
text += f'
For more information see: {self.reference}
\n'
if self.description and "text" in self.description:
value = html.escape(self.description["text"])
- text += f'
{value}
\n'
+ text += f'
{value}
\n'
n = 0
if self.description is not None:
@@ -183,11 +206,94 @@ def describe_html(self) -> str:
text += "\n
\n"
return text
- def html(self, of: str, svg = None):
- body = self.describe_html()
+ def describe_node(self) -> str:
+ text = "\n
\n"
+ text += "
"
+ text += f'
{self.qualified_name}
'
+ text += "
\n"
+
+ if self.description and "text" in self.description:
+ description = self.description["text"]
+ lines = [html.escape(line) for line in textwrap.wrap(description, width=40)]
+ value = ' '.join(lines)
+ text += f'
{value}
\n'
+
+ if self.expression:
+ for exp in self.expression:
+ value = html.escape(exp)
+ text += f'\t
{value}
\n'
+ if len(self.casts) > 1:
+ for key in self.casts:
+ value = html.escape(str(self.casts[key]))
+ text += f'
{key} →
{value}
\n'
+ text += "\n
\n"
+ return text
+
+ def describe_markdown(self) -> str:
+ t, c = os.path.splitext(self.qualified_name)
+ c = c[1:]
+ if self.mode == RenderMode.standalone:
+ ext = ".html"
+ elif self.mode == RenderMode.sphinx:
+ ext = ".md"
+ else:
+ ext = ""
+ tpath = os.path.join("..", t) + ext
+ text = f"## Overview of column {c} in table {t} \n\n"
+ text += "| | |\n"
+ text += "| ----------------------------- | ---------------------- |\n"
+ text += f"| Table | [{t}]({tpath}) |\n"
+ text += f"| Qualified name | {self.qualified_name} |\n"
+ text += f"| Datatype | {self.datatype} |\n"
+ ctype = self.describe_column_type(self)
+ if ctype:
+ text += f"| Column type | {ctype} |\n"
+ if self.requires:
+ text += f"| Tables, required for computation | {self.requires} |\n"
+ if self.reference:
+ text += f"| Reference | [{self.reference}]({self.reference}) |\n"
+
+ text += "\n\n"
+ if self.description and "text" in self.description:
+ text += f"{self.description['text']}\n\n"
+
+ # Add additional description details as a Markdown table
+ if self.description is not None:
+ keys = [key for key in self.description if key != "text"]
+ if keys:
+ text += "| Key | Value |\n"
+ text += "| --- | ----- |\n"
+ for key in keys:
+ value = str(self.description[key])
+ text += f"| {key} | {value} |\n"
+ text += "\n\n"
+
+ if self.expression:
+ text += "\n## Expressions\n\n"
+ for exp in self.expression:
+ if "select" not in exp.lower():
+ exp = "SELECT " + exp
+ text += "```sql\n"
+ text += f"{exp}\n"
+ text += "```\n\n"
+
+ if self.casts:
+ text += "\n### Casts:\n\n"
+ text += "| Original type | Cast expression |\n"
+ text += "| ------------- | -------------------- |\n"
+ for key in self.casts:
+ value = str(self.casts[key])
+ text += f"| {key} | {value} |\n"
+ text += "\n\n"
+
+ return text
+
+ def html(self, of: str, svg=None):
+ fmt = 'html'
+ body = self.describe(format=fmt)
if svg:
- body += "\n"
- body += f''
+ body += hr(format=fmt)
+ body += f''
block = HTML.format(
title = f"Column {self.qualified_name}",
body = body
@@ -195,16 +301,59 @@ def html(self, of: str, svg = None):
with open(of, "wt") as out:
print(block, file=out)
- def to_dot(self):
- node_id = qstr(self.qualified_name)
- node_label = '<' + self.describe_html() + '>'
+ def column_toctree(self, targets: List[str]) -> str:
+ text = "\n```{toctree}\n"
+ text += "---\n"
+ text += "maxdepth: 1\n"
+ text += "hidden:\n"
+ text += "---\n"
+ for target in targets:
+ text += f"{target}\n"
+ text += "```\n\n"
+ return text
+
+ def markdown(self, of: str, svg=None):
+ fmt = 'markdown'
+ body = self.describe(format=fmt)
+ if svg:
+ if self.mode == RenderMode.standalone:
+ body += hr(format=fmt)
+ body += f''
+ elif self.mode == RenderMode.sphinx:
+ alt = f"Column {self.qualified_name} Lineage SVG"
+ target = create_graph_envelop(of, alt, svg)
+ body += self.column_toctree([target + ".md"])
+ body += f"\n```{{figure}} {os.path.basename(svg)}\n"
+ body += ":align: center\n"
+ body += f":alt: {alt}\n"
+ body += f":target: {target}.html\n"
+ body += "\n"
+ body += f"Data lineage for column {self.qualified_name}\n"
+ body += "\n"
+ body += "```\n\n"
+ content = f"# Column {self.qualified_name}\n\n{body}"
+ with open(of, "wt") as out:
+ print(content, file=out)
+ if self.mode == RenderMode.standalone:
+ fhtml = os.path.splitext(of)[0] + ".html"
+ os.system(f"/usr/local/bin/pandoc --from markdown --to html {of} > {fhtml}")
+
+ def to_dot(self, node_id=None, node_label=None, attributes = None):
+ if node_id is None:
+ node_id = qstr(self.qualified_name)
+ if not node_label:
+ node_label = '<' + self.describe_node() + '>'
attrs = {
"label": node_label,
"shape": "box"
}
- if self.reference:
- attrs["URL"] = qstr(self.reference)
- attrs["target"] = "_blank"
+ if attributes:
+ attrs.update(attributes)
+ t, c = os.path.splitext(self.qualified_name)
+ c = c[1:]
+ cpath = os.path.join("..", t, c) + ".html"
+ attrs["URL"] = qstr(cpath)
+ attrs["target"] = "_blank"
return f"\t{node_id} [{attrs2string(attrs)}];"
def __repr__(self):
@@ -247,35 +396,13 @@ def __str__(self) -> str:
return repr
-c1 = """
-age_min:
- source: |
- CASE
- WHEN MIN(age) <> MAX(age) THEN MIN(age)
- END
-"""
-
-c2 = """
-fips3_valdiated:
- source: public.validate_zip_fips(MAX(zip), MAX(fips2), MAX(fips3))
-"""
-
-c3="""
-ssa2_list:
- source: "string_agg(distinct ssa2, ',')"
-"""
-
-c4 = """
-fips5:
- source: "(MAX(fips2) || MAX(fips3))"
-
-"""
-
-
-if __name__ == '__main__':
- for c in [c1, c2, c3, c4]:
- a = yaml.safe_load(c)
- column = Column("xxx", a)
- print(column)
+class CMSColumn(Column):
+ @classmethod
+ def init_column_mapping(cls):
+ if cls.column_mapping is None:
+ cls.column_mapping = get_resdac_mapping(False, False)
+ def __init__(self, table_name: str, column_block: Dict, mode, describe_column_type: Callable):
+ super().__init__(table_name, column_block, mode, describe_column_type)
+ self.init_column_mapping()
diff --git a/src/python/dorieh/platform/dictionary/domain_dictionary.py b/src/python/dorieh/platform/dictionary/domain_dictionary.py
index 481c9a263..d462c429d 100644
--- a/src/python/dorieh/platform/dictionary/domain_dictionary.py
+++ b/src/python/dorieh/platform/dictionary/domain_dictionary.py
@@ -25,7 +25,8 @@
from enum import Enum
from typing import Dict, List
-from dorieh.platform.dictionary.element import HTML, qstr, attrs2string
+from dorieh.platform.dictionary import RenderMode
+from dorieh.platform.dictionary.element import HTML, qstr, attrs2string, create_graph_envelop
from dorieh.platform.dictionary.tables import Table, Relation
from dorieh.utils.io_utils import as_dict
from dorieh.platform.data_model.domain import Domain
@@ -38,7 +39,8 @@ def __init__(self, of: str, options: Dict):
self.of = of
self.basedir = os.path.dirname(os.path.abspath(of))
self.options = options
- self.link = self.options.get("fmt") in ["svg"]
+ self.link = True # self.options.get("fmt") in ["svg"]
+ self.mode = RenderMode(options["mode"])
def add(self, path):
yml = as_dict(path)
@@ -66,8 +68,8 @@ def print_node(self, out, t: str, indent: int):
node_id = qstr(table)
attrs = dict()
if self.link:
- f = os.path.join(self.basedir, "tables", t + ".html")
- table.html(f)
+ f = os.path.join(self.basedir, "tables", t + ".md")
+ table.markdown(f)
attrs["URL"] = qstr(os.path.join("tables", t + ".html"))
attrs["target"] = "_blank"
space = ''.join('\t' for _ in range(indent))
@@ -109,6 +111,7 @@ def print_other_nodes(self, out):
def to_dot(self, out = sys.stdout):
print("digraph {", file=out)
print("\tnodesep = 0.5; // even node distribution", file=out)
+ print('\tsize = "25,100"; // graph size in inches', file=out)
self.print_top_nodes(out)
self.print_other_nodes(out)
for r in self.relations:
@@ -123,14 +126,103 @@ def to_dot(self, out = sys.stdout):
def html(self, of: str, svg = None):
if svg is None:
return
- body = f''
block = HTML.format(
title = f"Table Lineage Diagram",
- body = body
+ body = self.html_body(svg)
)
with open(of, "wt") as out:
print(block, file=out)
+ @staticmethod
+ def html_body(svg):
+ body = f''
+ return body
+
+ def write_markdown(self, content: str, of: str):
+ with open(of, "wt") as out:
+ print(content, file=out)
+ if self.mode == RenderMode.standalone:
+ fhtml = os.path.splitext(of)[0] + ".html"
+ os.system(f"/usr/local/bin/pandoc --from markdown --to html {of} > {fhtml}")
+
+ def link_ext(self):
+ if self.mode == RenderMode.standalone:
+ return "html"
+ return "md"
+
+ def markdown(self, of: str, svg=None):
+ title = "# Table Lineage Diagram\n"
+ body = "\n"
+
+ if svg:
+ if self.mode == RenderMode.standalone:
+ body += self.html_body(svg)
+ elif self.mode == RenderMode.sphinx:
+ target = create_graph_envelop(of, "Table Lineage SVG Diagram", svg)
+ body += self.table_toctree([target + ".md"])
+ body += "\n"
+ body += f"\n```{{figure}} {svg}\n"
+ body += ":align: center\n"
+ body += ":alt: Table Lineage Diagram\n"
+ body += f":target: {target}.html\n"
+ body += "\n"
+ body += "Diagram illustrating data flow during transformations\n"
+ body += "\n"
+ body += "```\n\n"
+ self.write_markdown(f"{title}\n{body}", of)
+
+ def table_toctree(self, extra: List[str] = None) -> str:
+ text = "\n```{toctree}\n"
+ text += "---\n"
+ text += "maxdepth: 1\n"
+ text += "hidden:\n"
+ text += "---\n"
+ if extra:
+ for target in extra:
+ text += f"{target}\n"
+ for t in sorted(self.tables):
+ tname = self.tables[t].qualified_name
+ text += f"tables/{tname}.md\n"
+ text += "```\n\n"
+ return text
+
+ def table_list(self, of: str):
+ title = "# Alphabetic list of all tables\n"
+ body = "\n"
+ for t in sorted(self.tables):
+ tname = self.tables[t].qualified_name
+ body += f"1. [{tname}](tables/{tname}.{self.link_ext()})\n"
+
+ self.write_markdown(f"{title}\n{body}", of)
+
+ def column_list(self, of: str):
+ title = "# Alphabetic list of all columns in all tables\n"
+ body = "\n"
+ columns = dict()
+ for t in self.tables:
+ table = self.tables[t]
+ tname = table.qualified_name
+ for c in table.columns:
+ if c in columns:
+ tset = columns[c]
+ else:
+ tset = set()
+ columns[c] = tset
+ tset.add(tname)
+
+ body += "| Column | Tables |\n"
+ body += "| ------ | ------------------------- |\n"
+ ext = self.link_ext()
+ for c in sorted(columns):
+ tset = columns[c]
+ tables = []
+ for t in sorted(tset):
+ tables.append(f"[{t}](tables/{t}/{c}.{ext})")
+ row = ' '.join(tables)
+ body += f"| {c} | {row}\n"
+
+ self.write_markdown(f"{title}\n{body}", of)
+
def generate_graphs(self):
fmt = self.options.get("fmt")
generate_image = fmt and fmt != "none"
@@ -140,11 +232,13 @@ def generate_graphs(self):
os.mkdir(tdir)
with open(self.of, "w") as graph:
self.to_dot(graph)
+ self.table_list("table-list.md")
+ self.column_list("column-list.md")
if generate_image:
os.system(f"dot -T {fmt} -O {self.of}")
if fmt == "svg":
svg = os.path.basename(self.of + ".svg")
- self.html(self.of + ".html", svg)
+ self.markdown(self.of + ".md", svg)
if lod != LOD.none:
n = 0
for t in self.tables:
@@ -154,16 +248,18 @@ def generate_graphs(self):
table = self.tables[t]
for c in table.columns:
column = table.columns[c]
+ basename = os.path.join(d, c)
if lod == LOD.min and not column.predecessors:
+ column.markdown(basename + ".md", svg=None)
continue
- f = os.path.join(d, c) + ".dot"
+ f = basename + ".dot"
with open(f, "w") as graph:
table.column_lineage_to_dot(c, graph)
if generate_image:
- os.system(f"dot -T {fmt} -O '{f}'")
+ of = f"{basename}.{fmt}"
+ os.system(f"dot -T{fmt} -o{of} {f}")
if fmt == "svg":
- svg = os.path.basename(f + ".svg")
- column.html(f + ".html", svg=svg)
+ column.markdown(basename + ".md", svg=of)
n += 1
if (n % 10) == 0:
print('*', end='')
@@ -174,6 +270,10 @@ def generate_graphs(self):
class LOD(Enum):
+ """
+ Level of details to include in the generated pages
+ """
+
full = "full"
none = "none"
min = "min"
@@ -187,7 +287,7 @@ def parse_args() -> Dict:
help="Paths to YaML files with domain definitions",
nargs='+')
parser.add_argument("--fmt", "-f",
- help="Format to generate image, if 'none', "
+ help="Format of generated image, if 'none', "
"then no image is generated",
default="none",
choices=["none","png","gif","ps2","svg","cmapx","jpeg"],
@@ -196,8 +296,12 @@ def parse_args() -> Dict:
help="Level of details",
default="none",
choices=[s.value for s in LOD])
+ parser.add_argument("--mode",
+ help="Documentation generation mode",
+ default=RenderMode.standalone.value,
+ choices=[s.value for s in RenderMode])
parser.add_argument("--output", "--of", "-o",
- help="Path to the main output dot file",
+ help="with Table-level data lineage diagram",
default="tables.dot",
required=False)
args = parser.parse_args()
diff --git a/src/python/dorieh/platform/dictionary/element.py b/src/python/dorieh/platform/dictionary/element.py
index 44b95bdff..6f0c352c8 100644
--- a/src/python/dorieh/platform/dictionary/element.py
+++ b/src/python/dorieh/platform/dictionary/element.py
@@ -19,6 +19,7 @@
#
#
import math
+import os
from typing import Dict, Optional, List
HTML = """
@@ -134,6 +135,8 @@ def print_group(self, group_id, file, indent: int, max_h = 4):
def fqn(schema: str, name: str) -> str:
+ if schema is None:
+ return name
return schema + '.' + name
@@ -166,33 +169,81 @@ def add_html_row(cols: List[str], border: int = 1, align: str = None, tag = "td"
return text
-def add_row(cols: List[str]) -> str:
- return add_html_row(cols)
+def add_markdown_row(cols: List[str]) -> str:
+ row = "| " + " | ".join(cols) + " |\n"
+ return row
-def start_invisible_row() -> str:
- return '
'
+def create_graph_envelop(of: str, title: str, svg: str):
+ pp = os.path.splitext(of)
+ fmd2 = pp[0] + "_svg_envelop" + pp[1]
+ content = f"# {title}\n\n"
+ content += "```{raw} html\n"
+ content += f":file: {svg}\n\n"
+ content += "```\n\n"
+ with open(fmd2, "wt") as out:
+ print(content, file=out)
+ target = os.path.splitext(fmd2)[0]
+ return os.path.basename(target)
diff --git a/src/python/dorieh/platform/dictionary/resdac_crawler.py b/src/python/dorieh/platform/dictionary/resdac_crawler.py
new file mode 100644
index 000000000..0d97268c8
--- /dev/null
+++ b/src/python/dorieh/platform/dictionary/resdac_crawler.py
@@ -0,0 +1,213 @@
+# Copyright (c) 2024. Harvard University
+#
+# Developed by Research Software Engineering,
+# Harvard University Research Computing and Data (RCD) Services.
+#
+# Author: Michael A Bouzinier
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+#
+import datetime
+import os.path
+import re
+import sys
+import time
+from typing import Dict
+
+import requests
+import yaml
+from googlesearch import search
+
+
+GOOGLE_API_KEY = ""
+CSE_ID = ''
+
+
+MANUAL_MAP = {
+ "BENE_HMO_IND": "https://resdac.org/cms-data/variables/hmo-indicator",
+ "BENE_MDCR_ENTLMT_BUYIN_IND": "https://resdac.org/cms-data/variables/medicare-entitlementbuy-indicator",
+ "BUYIN": "https://resdac.org/cms-data/variables/medicare-entitlementbuy-indicator",
+ "BENE_AGE_AT_END_REF_YR": "https://resdac.org/cms-data/variables/age-beneficiary-end-year",
+ "BENE_MDCR_STATUS_CD": "https://resdac.org/cms-data/variables/reason-entitlement-medicare-benefits-clmthrudt"
+}
+
+
+last_request = datetime.datetime.now()
+
+def google_search(search_term, api_key, cse_id, **kwargs):
+ url = f"https://www.googleapis.com/customsearch/v1"
+ params = {
+ 'q': search_term,
+ 'key': api_key,
+ 'cx': cse_id,
+ }
+ params.update(kwargs)
+ now = datetime.datetime.now()
+ global last_request
+ if (now - last_request).total_seconds() < 1:
+ time.sleep(1)
+ response = requests.get(url, params=params)
+ last_request = datetime.datetime.now()
+ response.raise_for_status()
+ return response.json()
+
+
+URL_CACHE = dict()
+URL_CACHE.update(MANUAL_MAP)
+
+
+def get_resdac_url(column_name):
+ if column_name in URL_CACHE:
+ return URL_CACHE[column_name]
+
+ query = f'ResDac "{column_name}"'
+ print(f'Searching for: {query}')
+ try:
+ results = google_search(query, GOOGLE_API_KEY, CSE_ID)
+ for item in results.get('items', []):
+ link = item["link"]
+ if 'resdac.org/cms-data/variables/' in link:
+ URL_CACHE[column_name] = link
+ return link
+ URL_CACHE[column_name] = None
+ return None
+ except Exception as e:
+ print(f"Error searching for {query}: {e}")
+ return None
+
+
+def get_resdac_url_free(column_name):
+ """
+ Function to search for the ResDac description URL given a column name
+
+ :param column_name:
+ :return:
+ """
+
+ query = f'ResDac "{column_name}"'
+ print(f'Searching for: {query}')
+ try:
+ # Search on Google
+ search_results = search(query, num_results=10)
+ for result in search_results:
+ if 'resdac.org/cms-data/variables/' in result:
+ return result
+ return None
+ except Exception as e:
+ print(f"Error searching for {query}: {e}")
+ return None
+
+
+class ColumnInfo:
+ def __init__(self, name):
+ self.name = name
+ self.description = None
+ self.url = None
+
+
+def extract_prefix_for_month(input_string):
+ pattern = r"(.+)_([0][1-9]|1[0-2])$"
+ match = re.match(pattern, input_string)
+ if match:
+ return match.group(1)
+ return None
+
+
+NOT_FOUND = set()
+
+
+def get_resdac_mapping(search = False, update = False) -> Dict[str, ColumnInfo]:
+ """
+ Parse Model YaML file and create a mapping between column names and column metadata.
+ Optionally, search Google for a URL to ResDac description for a column.
+
+
+ :return:
+ """
+
+ column_map: Dict[str, ColumnInfo] = dict()
+ p = os.path.join(os.path.dirname(__file__), "../../cms/models/medicare_cms.yaml")
+ with open(p) as f:
+ model = yaml.safe_load(f)
+
+ tables = model["cms"]["tables"]
+ for t in tables:
+ for col in tables[t].get("columns", []):
+ if isinstance(col, str):
+ c = col
+ val = None
+ elif isinstance(col, dict):
+ c = list(col.keys())[0]
+ val = col[c]
+ else:
+ continue
+ c = c.lower()
+ if c in column_map:
+ continue
+ column = ColumnInfo(c)
+ name = c
+ if val and "description" in val:
+ column.description = val["description"]
+ if "long_name" in column.description:
+ name = column.description["long_name"]
+
+ if val and "reference" in val:
+ column.url = val["reference"]
+ if search and column.url is None:
+ url = get_resdac_url(name)
+ if not url:
+ prefix = extract_prefix_for_month(name)
+ if prefix:
+ url = get_resdac_url(prefix)
+ if url:
+ column.url = url
+ val["reference"] = url
+ print(url)
+ else:
+ print(f"No URL found for {name}")
+ NOT_FOUND.add(name)
+
+ column_map[c] = column
+
+ # Print or save the mapping dictionary
+ for column_name, info in column_map.items():
+ print(f"{column_name}: {info.url}")
+
+ if update:
+ print("Updating YaML")
+ for t in tables:
+ for col in tables[t].get("columns", []):
+ if isinstance(col, dict):
+ c = list(col.keys())[0]
+ val = col[c]
+ c = c.lower()
+ # if c in ["file", "record"]:
+ # del val["reference"]
+ # elif c in column_map:
+ if c in column_map:
+ val["reference"] = column_map[c].url
+ with open(p, "wt") as f:
+ yaml.safe_dump(model, f)
+
+ print("Not found:")
+ for name in sorted(NOT_FOUND):
+ print(name)
+
+ return column_map
+
+
+if __name__ == '__main__':
+ GOOGLE_API_KEY = sys.argv[1]
+ CSE_ID = sys.argv[2]
+ get_resdac_mapping(True, True)
diff --git a/src/python/dorieh/platform/dictionary/tables.py b/src/python/dorieh/platform/dictionary/tables.py
index 59a5d5f22..41ecd7f7f 100644
--- a/src/python/dorieh/platform/dictionary/tables.py
+++ b/src/python/dorieh/platform/dictionary/tables.py
@@ -21,12 +21,14 @@
Module to create list of tables from the Domain Data Model
"""
import math
+import os
import re
from typing import Dict, Optional, List, Set
import html
import sqlparse
from dorieh.platform.data_model.domain import Domain
+from dorieh.platform.dictionary import RenderMode
from dorieh.platform.dictionary.columns import Column
from dorieh.platform.dictionary.element import HTML, DataModelElement, Graph, fqn, qstr, \
attrs2string, add_row, start_table, add_html_row, end_table, add_header_row, \
@@ -49,6 +51,7 @@ def __init__(self, schema: str, name: str, domain: Domain, domain_dict):
self.parent = None
self.type: str = "Table"
self.master = None
+ self.mode = domain_dict.mode
create_block = None
if "create" in self.block:
create_block:Dict[str, Dict] = self.block["create"]
@@ -106,7 +109,7 @@ def __init__(self, schema: str, name: str, domain: Domain, domain_dict):
for column_block in columns_block:
cblocks = Column.expand_macro1(column_block)
for cblock in cblocks:
- column = Column(self.qualified_name, cblock)
+ column = Column(self.qualified_name, cblock, self.mode, self.describe_column_type)
self.columns[column.name.lower()] = column
if self.master is not None and create_block and "select" in create_block:
self.add_master_columns()
@@ -131,13 +134,13 @@ def add_master_columns(self):
def add_column_from_master(self, c: str):
p_column = self.master.columns[c]
column_block = {c: p_column.block}
- column = Column(self.qualified_name, column_block)
+ column = Column(self.qualified_name, column_block, self.mode, self.describe_column_type)
column.copied = True
self.columns[column.name.lower()] = column
def add_column_from_sql(self, identifier: sqlparse.sql.Identifier):
c = identifier.get_name()
- column = Column(self.qualified_name, {c: None})
+ column = Column(self.qualified_name, {c: None}, self.mode, self.describe_column_type)
column.expression = [identifier.value]
column.copied = False
identifiers = self.get_source_columns(identifier)
@@ -225,26 +228,55 @@ def get_column_links(self, column: Column) -> List:
if c in t.columns:
link = ColumnLink(r, t.columns[c], column)
links.append(link)
+ if not links:
+ for r in pt:
+ t = r.x
+ if column.name in t.columns:
+ link = ColumnLink(r, t.columns[column.name], column)
+ links.append(link)
+
return links
- def calculate_column_lineage(self, column: Column, graph: Graph):
+ def calculate_column_lineage(self, column: Column, graph: Graph, recursion):
links = self.get_column_links(column)
+
+ if len(links) > 5 and recursion > 0:
+ node_id = column.qualified_name + "_parent"
+ width = 3 + math.log(len(links), 2)
+ minlen = 2
+ text = column.to_dot(
+ node_id = qstr(node_id),
+ node_label=qstr(f"{len(links)} incoming links (columns)"),
+ attributes={
+ "shape": '"cylinder"',
+ "fillcolor": '"yellow"',
+ "style": '"filled"',
+ "minlen": minlen,
+ "width": 3,
+ "height": 1.5
+ }
+ )
+ graph.add_node(node_id, text)
+ graph.add_edge(GenericLink(node_id, column.qualified_name, width))
+ return
+
if len(links) > 3:
group = "parent_" + column.qualified_name
else:
group = None
+
for link in links:
graph.add_edge(link)
parent = qstr(link.x.qualified_name)
graph.add_node(parent, repr(link.x), group)
- link.relation.x.calculate_column_lineage(link.x, graph)
+ link.relation.x.calculate_column_lineage(link.x, graph, recursion + 1)
return
def column_lineage_to_dot(self, column_name: str, out):
column = self.columns[column_name]
graph = Graph()
graph.add_node(qstr(column.qualified_name), repr(column))
- self.calculate_column_lineage(column, graph)
+ self.calculate_column_lineage(column, graph, 0)
graph.print(indent=1, file=out)
def describe_column_type(self, column: Column):
@@ -263,67 +295,144 @@ def describe_column_type(self, column: Column):
return "transformed"
return ""
- @staticmethod
- def link_to_table(name: str):
- ref = f"{name}.html"
- return f'{name}'
-
- @staticmethod
- def link_to_column(name: str, basedir: str):
- cpath = f'{basedir}/{name}.dot.html'
- return f'{name}'
+ def describe(self, format: str = 'html', basedir: str = '') -> str:
+ if format == 'html':
+ return self.describe_html(basedir)
+ return self.describe_markdown(basedir)
- def describe_html(self, basedir) -> str:
- text = start_table(border=0)
- text += start_invisible_row()
- text += start_table(border=2)
+ def describe_html(self, basedir: str = "") -> str:
+ fmt = 'html'
+ text = start_table(border=0, format=fmt)
+ text += start_invisible_row(format=fmt)
+ text += start_table(border=2, format=fmt)
header = f'{self.type}: {self.qualified_name}'
- text += add_html_row([header], border=2)
+ text += add_row([header], format=fmt)
if self.reference:
- text += f'
For more information see: {self.reference}
\n'
+ text += add_row([f'For more information see: {self.reference}'], format=fmt)
if self.description and "text" in self.description:
value = html.escape(self.description["text"])
- text += add_row([value])
+ text += add_row([value], format=fmt)
+ if self.parent:
+ name = self.parent.qualified_name
+ text += add_row([f"Child table of {self.link_to_table(name, fmt)}"], format=fmt)
+ if self.aggregation:
+ name = self.aggregation.parent.qualified_name
+ text += add_row([f"Aggregated from {self.link_to_table(name, fmt)} on {self.aggregation.on}"], format=fmt)
+ if self.master:
+ name = self.master.qualified_name
+ text += add_row([f"Transformed from {self.link_to_table(name, fmt)}"], format=fmt)
+ elif self.join:
+ name = self.join.sql
+ text += add_row([f"Join of tables: {name}"], format=fmt)
+ if "primary_key" in self.block:
+ pk = self.block["primary_key"]
+ pk_text = ", ".join(pk)
+ text += add_row([f"Primary Key: {pk_text}"], format=fmt)
+ text += end_table(format=fmt)
+ text += end_invisible_row(format=fmt)
+ text += hr(format=fmt)
+ text += start_invisible_row(format=fmt)
+ text += start_table(border=2, format=fmt)
+ text += add_header_row(["Column Name", "Column Type", "Datatype"], format=fmt)
+
+ for c in sorted(self.columns):
+ column = self.columns[c]
+ text += add_row([
+ self.link_to_column(column.name, basedir, fmt),
+ self.describe_column_type(column),
+ column.datatype
+ ], format=fmt)
+ text += end_table(format=fmt)
+ text += end_invisible_row(format=fmt)
+ text += end_table(format=fmt)
+ return text
+
+ def columns_toctree(self) -> str:
+ text = "\n```{toctree}\n"
+ text += "---\n"
+ text += "maxdepth: 1\n"
+ text += "hidden:\n"
+ text += "---\n"
+ for c in sorted(self.columns):
+ text += f"{self.qualified_name}/{c}.md\n"
+ text += "```\n\n"
+ return text
+
+ def describe_markdown(self, basedir: str = "") -> str:
+ fmt = 'markdown'
+ text = f"## Overview for {self.qualified_name}\n\n"
+ if self.mode == RenderMode.sphinx:
+ text += self.columns_toctree()
+ text += "\n"
+
+ if self.reference:
+ text += f"*For more information see: {self.reference}*\n\n"
+ if self.description and "text" in self.description:
+ text += f"{self.description['text']}\n\n"
if self.parent:
name = self.parent.qualified_name
- text += add_row([f"Child table of {self.link_to_table(name)}"])
+ text += f"Child table of {self.link_to_table(name, fmt)}\n\n"
if self.aggregation:
name = self.aggregation.parent.qualified_name
- text += add_row([f"Aggregated from {self.link_to_table(name)} on {self.aggregation.on}"])
+ text += f"Aggregated from {self.link_to_table(name, fmt)} on {self.aggregation.on}\n\n"
if self.master:
name = self.master.qualified_name
- text += add_row([f"Transformed from {self.link_to_table(name)}"])
+ text += f"Transformed from {self.link_to_table(name, fmt)}\n\n"
elif self.join:
name = self.join.sql
- text += add_row([f"Join of tables: {name}"])
+ text += f"Join of tables: {name}\n\n"
if "primary_key" in self.block:
pk = self.block["primary_key"]
pk_text = ", ".join(pk)
- text += add_row([f"Primary Key: {pk_text}"])
- text += end_table()
- text += end_invisible_row()
- text += hr()
- text += start_invisible_row()
- text += start_table(border=2)
- text += add_header_row(["Column name", "Column type", "Datatype"])
+ text += f"Primary Key: {pk_text}\n\n"
+
+ sql = self.domain.ddl_by_table.get(self.qualified_name)
+ sql = [l for l in sql if l != f"-- {self.qualified_name} skipped;"]
+ if sql:
+ text += "\n\n\n"
+ text += "SQL/DDL Statement\n"
+ text += "```sql\n"
+ for line in sql:
+ text += line + '\n'
+ text += "```\n"
+ text += "\n\n\n"
+
+ text += hr(format=fmt)
+ text += "## Columns:\n\n"
+ text += add_header_row(["Column Name", "Column Type", "Datatype"], format=fmt)
+
for c in sorted(self.columns):
column = self.columns[c]
text += add_row([
- self.link_to_column(column.name, basedir),
+ self.link_to_column(column.name.lower(), basedir, fmt),
self.describe_column_type(column),
column.datatype
- ])
- text += end_table()
- text += end_invisible_row()
- text += end_table()
+ ], format=fmt)
+ text += "\n"
return text
- def html(self, of: str, svg = None):
- body = self.describe_html(self.qualified_name)
+ def link_to_table(self, name: str, format: str = 'html') -> str:
+ ext = "md" if (self.mode == RenderMode.sphinx) and format == "markdown" else "html"
+ if format == 'markdown':
+ return f"[{name}]({name}.{ext})"
+ ref = f"{name}.{ext}"
+ return f'{name}'
+
+ def link_to_column(self, name: str, basedir: str, format: str = 'html') -> str:
+ ext = "md" if (self.mode == RenderMode.sphinx) and format == "markdown" else "html"
+ if format == 'markdown':
+ cpath = f'{basedir}/{name}.{ext}'
+ return f"[{name}]({cpath})"
+ cpath = f'{basedir}/{name}.html'
+ return f'{name}'
+
+ def html(self, of: str, svg=None):
+ fmt = 'html'
+ body = self.describe(basedir=self.qualified_name, format=fmt)
if svg:
- body += "\n"
- body += f''
+ body += hr(format=fmt)
+ body += f''
block = HTML.format(
title = f"Table {self.qualified_name}",
body = body
@@ -331,6 +440,19 @@ def html(self, of: str, svg = None):
with open(of, "wt") as out:
print(block, file=out)
+ def markdown(self, of: str, svg=None):
+ fmt = 'markdown'
+ body = self.describe(basedir=self.qualified_name, format=fmt)
+ if svg:
+ body += hr(format=fmt)
+ body += f''
+ block = f"# {self.type.capitalize()} {self.qualified_name}\n\n{body}"
+ with open(of, "wt") as out:
+ print(block, file=out)
+ if self.mode == RenderMode.standalone:
+ fhtml = os.path.splitext(of)[0] + ".html"
+ os.system(f"/usr/local/bin/pandoc --from markdown --to html {of} > {fhtml}")
+
class Aggregation:
def __init__(self, schema: str, name: str, parent: str, columns: List, domain_dict):
@@ -434,9 +556,10 @@ def to_dot(self):
if self.y.copied:
attrs["label"] = "Copied"
elif "transformation" in attrs["label"]:
- attrs["label"] = attrs["label"].replace("transformation", "transformed")
+ attrs["label"] = attrs["label"].replace("transformation", " Transformed")
elif "aggregation" in attrs["label"]:
- attrs["label"] = attrs["label"].replace("aggregation", "aggregated")
+ attrs["label"] = attrs["label"].replace("aggregation", " Aggregated")
+ attrs["labelfloat"] = True
return f"\t{node1} -> {node2} [{attrs2string(attrs)}];"
def __str__(self):
@@ -444,3 +567,22 @@ def __str__(self):
def __repr__(self):
return self.to_dot()
+
+
+class GenericLink:
+ def __init__(self, node1, node2, width = 5.0):
+ self.node1 = node1
+ self.node2 = node2
+ self.width = width
+
+ def to_dot(self):
+ attrs = dict()
+ attrs["penwidth"] = self.width
+ attrs["color"] = "goldenrod"
+ return f"\t{qstr(self.node1)} -> {qstr(self.node2)} [{attrs2string(attrs)}];"
+
+ def __str__(self):
+ return f"{self.node1} -> {self.node2}"
+
+ def __repr__(self):
+ return self.to_dot()
diff --git a/src/python/dorieh/platform/loader/common.py b/src/python/dorieh/platform/loader/common.py
index 4c6a18d19..d976c007b 100644
--- a/src/python/dorieh/platform/loader/common.py
+++ b/src/python/dorieh/platform/loader/common.py
@@ -48,7 +48,16 @@ class DBConnectionConfig(Context):
aliases=["connection_name"],
help = "Section in the database connection parameters file",
type = str,
- default = "nsaph2",
+ default = "dorieh",
+ cardinality = Cardinality.single
+ )
+
+ _location = Argument(
+ "location",
+ aliases=["path", "p", "l"],
+ help = "URI or path to file(s) or directory containing data (e.g., in Parquet format). Wildcards are supported",
+ required = False,
+ type = str,
cardinality = Cardinality.single
)
@@ -76,6 +85,9 @@ def __init__(self, subclass, doc):
self.connection = None
''' Section in the database connection parameters file '''
+ self.location = None
+ ''' URI or path to file(s) or directory containing data (e.g., in Parquet format). Wildcards are supported '''
+
self.verbose = None
''' Generate verbose output '''
diff --git a/src/python/dorieh/platform/loader/introspector.py b/src/python/dorieh/platform/loader/introspector.py
index c066dbc20..d1cb441ac 100644
--- a/src/python/dorieh/platform/loader/introspector.py
+++ b/src/python/dorieh/platform/loader/introspector.py
@@ -43,12 +43,12 @@
PG_MAXINT = 2147483647
-integer = re.compile("-?\d+")
-float_number = re.compile("(-?\d*)\.(\d+)([e|E][-|+]?\d+)?")
-exponent = re.compile("(-?\d+)([e|E][-|+]?\d+)")
-_date = "([12]\d{3}-(0[1-9]|1[0-2])-(0[1-9]|[12]\d|3[01]))"
+integer = re.compile(r"-?\d+")
+float_number = re.compile(r"(-?\d*)\.(\d+)([e|E][-|+]?\d+)?")
+exponent = re.compile(r"(-?\d+)([e|E][-|+]?\d+)")
+_date = r"([12]\d{3}-(0[1-9]|1[0-2])-(0[1-9]|[12]\d|3[01]))"
date = re.compile(_date)
-timestamp = re.compile(_date + "[T|t][0-9]{2}:[0-9]{2}")
+timestamp = re.compile(_date + r"[T|t][0-9]{2}:[0-9]{2}")
class Introspector:
diff --git a/src/python/dorieh/platform/requests/hdf5_export.py b/src/python/dorieh/platform/requests/hdf5_export.py
index 938ee6961..de61b90c3 100644
--- a/src/python/dorieh/platform/requests/hdf5_export.py
+++ b/src/python/dorieh/platform/requests/hdf5_export.py
@@ -22,11 +22,13 @@
#
import argparse
+import logging
import os
from typing import List
import h5py
import numpy
+from psycopg2.extras import RealDictCursor, DictRow
from dorieh.platform.db import ResultSetDeprecated
from dorieh.platform.requests.query import Query
@@ -48,10 +50,11 @@ def add_index(self, idx):
def append(self, row: list):
if self.type == float:
values = [float(row[i]) for i in self.indices]
+ elif self.type == str:
+ values = [str(row[i]).encode('utf-8') for i in self.indices]
+ self.max_len = max([self.max_len] + [len(v) for v in values])
else:
values = [row[i] for i in self.indices]
- if self.type == str:
- self.max_len = max([self.max_len] + [len(v) for v in values])
self.data.append(values)
def type_name(self):
@@ -60,8 +63,11 @@ def type_name(self):
def to_hdf5(self, parent, name):
ds_name = "{}_{}".format(name, self.type_name())
if self.type == str:
- dtype = " 0:
+ g = groups[i-1]
+ if row[g] == current[g]:
+ break
+ i -= 1
+
+ if i < ng:
+ attrs = {g: str(current[g]) for g in groups}
+ logging.info(f"Storing: {str(current)}")
+ store(h5, str(current[groups[-1]]), datasets, attrs)
+ current = {g: row[g] for g in groups}
+ ii = i
+ for i in range(ii, ng):
+ h5 = h5.parent
+ for i in range(ii, ng):
+ g = groups[i]
+ h5.attrs["grouping"] = g
+ h5 = h5.create_group(str(row[g]))
+ idx += 1
+ append(datasets, row)
+ attrs = {g: str(current[g]) for g in groups}
+ store(h5, str(row[groups[-1]]), datasets, attrs)
+
+
if __name__ == '__main__':
#init_logging()
parser = argparse.ArgumentParser (description="Create table and load data")
diff --git a/src/python/dorieh/platform/util/cwl_collect_outputs.py b/src/python/dorieh/platform/util/cwl_collect_outputs.py
index 246194707..f6fb3fbd6 100644
--- a/src/python/dorieh/platform/util/cwl_collect_outputs.py
+++ b/src/python/dorieh/platform/util/cwl_collect_outputs.py
@@ -31,6 +31,8 @@
import yaml
+from dorieh.utils.io_utils import fopen
+
def encode(name: str):
if len(name) < 13:
@@ -44,7 +46,7 @@ def collect(step: str, path: str, name = None, output = sys.stdout, what=None):
what = ["step", "pipeline"]
if name is None:
name = step
- with open(path) as f:
+ with fopen(path, "r") as f:
cwl = yaml.safe_load(f)
outputs = cwl["outputs"]
if "step" in what:
@@ -53,8 +55,7 @@ def collect(step: str, path: str, name = None, output = sys.stdout, what=None):
t = outputs[o]["type"]
print(" - {}".format(o), file=output)
if "pipeline" in what:
- print("## Generated by nsaph/util/cwl_collect_outputs.py from {}:".
- format(os.path.basename(path)), file=output)
+ print(f"## Generated by dorieh.platform.util.cwl_collect_outputs from {os.path.basename(path)}:", file=output)
for o in outputs:
t = outputs[o]["type"]
if isinstance(t, str) and t.lower() in ["stdout", "stderr"]:
diff --git a/src/python/dorieh/platform/util/executors.py b/src/python/dorieh/platform/util/executors.py
index df17a8a88..12a152116 100644
--- a/src/python/dorieh/platform/util/executors.py
+++ b/src/python/dorieh/platform/util/executors.py
@@ -47,6 +47,31 @@ def thread_initializer():
class BlockingThreadPoolExecutor(ThreadPoolExecutor):
+ """
+ A ThreadPoolExecutor with a bounded queue of fixed given capacity. When
+ the queue reaches its maximum capacity, it stops accepting new tasks and
+ blocks until some tasks are removed from the queue for execution.
+
+ This is important when a task contains a significant amount of data to be
+ processed, for example, text to be parsed or ingested into a database. Reading
+ files is usually much faster than processing them, and without blocking, huge files
+ can lead to out of memory (OOM) errors. Using this executor implements
+ parallelization without the danger of causing OOM.
+
+ :param max_queue_size: The maximum size of the queue.
+ :type max_queue_size: int
+ :param timeout: The timeout for how long to wait for tasks to complete.
+ :type timeout: int or None
+
+ :Example:
+
+ .. code-block:: python
+
+ with BlockingThreadPoolExecutor(max_queue_size=10, max_workers=6, timeout=14400) as executor:
+ for batch in data_batches:
+ executor.submit(function_to_process_batch, batch)
+
+ """
def __init__(self, max_queue_size:int, timeout=None, *args, **kwargs):
super().__init__(initializer=thread_initializer, *args, **kwargs)
diff --git a/src/python/dorieh/platform/util/export_args.py b/src/python/dorieh/platform/util/export_args.py
new file mode 100644
index 000000000..042fc7ff3
--- /dev/null
+++ b/src/python/dorieh/platform/util/export_args.py
@@ -0,0 +1,86 @@
+# Copyright (c) 2024. Harvard University
+#
+# Developed by Research Software Engineering,
+# Harvard University Research Computing and Data (RCD) Services.
+#
+# Author: Michael A Bouzinier
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+#
+from argparse import ArgumentParser, Namespace
+import logging
+
+
+FORMATS = ["parquet", "json", "jsonl", "jsonlines", "csv", "hdf5"]
+
+
+def parse_args() -> Namespace:
+ parser = ArgumentParser (description="Export data to file system")
+ parser.add_argument("--format", "-f",
+ help="Format to export to",
+ choices=FORMATS,
+ default="parquet",
+ required=False)
+ parser.add_argument("--sql", "-s",
+ help="SQL Query or a path to a file containing SQL query",
+ required=False)
+ parser.add_argument("--schema",
+ help="Export all columns for all tables in the given schema",
+ required=False)
+ parser.add_argument("--table", "-t",
+ help="Export all columns a given table (fully qualified name required)",
+ required=False)
+ parser.add_argument("--partition", "-p",
+ help="Columns to be used for partitioning",
+ nargs='+',
+ required=False)
+ parser.add_argument("--output", "--destination", "-o",
+ help="Path to a directory, where the files will be exported",
+ required=True)
+ parser.add_argument("--db",
+ help="Path to a database connection parameters file",
+ default="database.ini",
+ required=True)
+ parser.add_argument("--connection", "-c",
+ help="Section in the database connection parameters file",
+ default="nsaph2",
+ required=True)
+ parser.add_argument("--batch_size", "-b",
+ help="The size of a single batch",
+ default=2000,
+ type=int,
+ required=False)
+ parser.add_argument("--hard",
+ help="Hard partitioning: execute separate SQL statement for each partition",
+ action='store_true'
+ )
+ parser.add_argument("--compatibility",
+ help="Make output compatible with specified framework",
+ required=False,
+ choices=["spark"]
+ )
+ parser.add_argument("--dryrun",
+ help="Do not perform actual export, just print SQL Query or do a dry run",
+ action='store_true'
+ )
+
+ arguments = parser.parse_args()
+ if arguments.sql and arguments.table:
+ logging.warning("Both table and sql are provided. SQL will be appended to the Table query.")
+ if arguments.sql and arguments.schema:
+ raise ValueError("Only one type of argument is accepted: sql or schema")
+ elif arguments.table and arguments.schema:
+ raise ValueError("Only one type of argument is accepted: sql, schema or table")
+
+ return arguments
diff --git a/src/python/dorieh/platform/util/import_hive.py b/src/python/dorieh/platform/util/import_hive.py
new file mode 100644
index 000000000..3f8560c8c
--- /dev/null
+++ b/src/python/dorieh/platform/util/import_hive.py
@@ -0,0 +1,60 @@
+# Copyright (c) 2025. Harvard University
+#
+# Developed by Research Software Engineering,
+# Harvard University Research Computing and Data (RCD) Services.
+#
+# Author: Michael A Bouzinier
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+
+from pyhive import hive
+from dorieh.platform.util.spsql import execute, start_session
+import os
+
+
+class HiveImporter:
+ def __init__(self, host: str = "127.0.0.1", port: int = 10000, database: str = "hive"):
+ self.hive_host = host
+ self.hive_port = port
+ self.hive_database = database
+ self.hive_table_name = 'your_table'
+ self.hive_table_location = 'hdfs:///path/to/your/hive/directory'
+
+ def introspect(self, path_to_data: str, name: str):
+ spark = start_session()
+ sql = f"DESCRIBE TABLE {name}"
+ df = execute(spark, path_to_data, sql, name)
+ columns = [
+ f"{row['col_name']} {row['data_type'].upper()}"
+ for row in df.collect()
+ ]
+ return "\n ".join(columns)
+
+ def import_table(self, path_to_data: str, name: str, hive_table_location = None):
+ if hive_table_location is None:
+ hive_table_location = path_to_data
+ parquet_schema = self.introspect(path_to_data, name)
+ conn = hive.Connection(host=self.hive_host, port=self.hive_port)
+ with conn.cursor() as cursor:
+ create_table_sql = f"""
+ CREATE EXTERNAL TABLE IF NOT EXISTS {self.hive_database}.{name} (
+ {parquet_schema}
+ )
+ STORED AS PARQUET
+ LOCATION '{hive_table_location}'
+ """
+
+ cursor.execute(create_table_sql)
+ cursor.close()
+
diff --git a/src/python/dorieh/platform/util/pg_export.py b/src/python/dorieh/platform/util/pg_export.py
new file mode 100644
index 000000000..467f468ca
--- /dev/null
+++ b/src/python/dorieh/platform/util/pg_export.py
@@ -0,0 +1,51 @@
+# Copyright (c) 2024. Harvard University
+#
+# Developed by Research Software Engineering,
+# Harvard University Research Computing and Data (RCD) Services.
+#
+# Author: Michael A Bouzinier
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+from dorieh.platform import init_logging
+from dorieh.platform.util.export_args import parse_args, FORMATS
+from dorieh.platform.util.pg_export_hdf5 import export_hdf5
+from dorieh.platform.util.pg_export_json import export_json_lines
+from dorieh.platform.util.pg_export_parquet import PgPqBase
+
+
+def export():
+ init_logging()
+ arguments = parse_args()
+ fmt = arguments.format
+ if fmt is None:
+ pp = arguments.output.split('.')
+ for p in pp:
+ if p in FORMATS:
+ fmt = p
+ break
+ if fmt is None:
+ raise ValueError("Please specify export format")
+ if fmt in ["json", "jsonl", "jsonlines"]:
+ export_json_lines(arguments)
+ elif fmt in ["parquet"]:
+ PgPqBase.run(arguments)
+ elif fmt in ["hdf5"]:
+ export_hdf5(arguments)
+ else:
+ raise ValueError(f"Format {fmt} is not implemented")
+
+
+if __name__ == '__main__':
+ export()
+
diff --git a/src/python/dorieh/platform/util/pg_export_hdf5.py b/src/python/dorieh/platform/util/pg_export_hdf5.py
new file mode 100644
index 000000000..a2dfc8a6e
--- /dev/null
+++ b/src/python/dorieh/platform/util/pg_export_hdf5.py
@@ -0,0 +1,65 @@
+# Copyright (c) 2024. Harvard University
+#
+# Developed by Research Software Engineering,
+# Harvard University Research Computing and Data (RCD) Services.
+#
+# Author: Michael A Bouzinier
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+import gzip
+import logging
+import os.path
+from argparse import Namespace
+
+from psycopg2.extras import RealDictCursor
+
+from dorieh.platform.db import Connection
+from dorieh.platform.requests.hdf5_export import export_dataset
+from dorieh.platform.util.pg_json_dump import dump
+
+
+def export_hdf5(arguments: Namespace):
+ output: str = arguments.output
+ table = arguments.table
+ partitions = arguments.partition
+ if output.lower().endswith(".hdf5"):
+ data_path = output
+ elif not os.path.isdir(output) and '.' in output:
+ raise ValueError("Ambiguous output specification")
+ else:
+ if not os.path.isdir(output):
+ os.makedirs(output)
+ data_path = os.path.join(output, table) + ".hdf5"
+ sql = f"SELECT * FROM {table}"
+ if partitions:
+ sql += f" ORDER BY {','.join(partitions)}"
+ db = None
+ try:
+ db = Connection(arguments.db, arguments.connection)
+ cnxn = db.connect()
+ types = db.get_database_types()
+ with cnxn.cursor(cursor_factory=RealDictCursor) as cursor:
+ cursor.execute(sql)
+ export_dataset(cursor=cursor, output_file=data_path, name=table, groups=partitions, db_types=types)
+ logging.info("Exported table {} to {}.".format(table, data_path))
+ finally:
+ db.close()
+
+
+
+
+
+
+
+
diff --git a/src/python/dorieh/platform/util/pg_export_json.py b/src/python/dorieh/platform/util/pg_export_json.py
new file mode 100644
index 000000000..f58eae982
--- /dev/null
+++ b/src/python/dorieh/platform/util/pg_export_json.py
@@ -0,0 +1,51 @@
+# Copyright (c) 2024. Harvard University
+#
+# Developed by Research Software Engineering,
+# Harvard University Research Computing and Data (RCD) Services.
+#
+# Author: Michael A Bouzinier
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+import gzip
+import logging
+import os.path
+from argparse import Namespace
+from dorieh.platform.db import Connection
+from dorieh.platform.util.pg_json_dump import dump
+
+
+def export_json_lines(arguments: Namespace):
+ output: str = arguments.output
+ table = arguments.table
+ if output.lower().endswith(".json.gz") or output.lower().endswith(".jsonl.gz"):
+ data_path = output
+ elif output.lower().endswith(".json") or output.lower().endswith(".jsonl"):
+ data_path = output + ".gz"
+ elif not os.path.isdir(output) and '.' in output:
+ raise ValueError("Ambiguous output specification")
+ else:
+ if not os.path.isdir(output):
+ os.makedirs(output)
+ data_path = os.path.join(output, table) + ".json.gz"
+ with Connection(arguments.db, arguments.connection) as db:
+ with gzip.open(data_path, "wt") as fd:
+ dump(db, table, fd)
+ logging.info("Exported table {} to {}.".format(table, data_path))
+
+
+
+
+
+
+
diff --git a/src/python/dorieh/platform/util/pg_export_parquet.py b/src/python/dorieh/platform/util/pg_export_parquet.py
index cf7a653d2..c97de9538 100644
--- a/src/python/dorieh/platform/util/pg_export_parquet.py
+++ b/src/python/dorieh/platform/util/pg_export_parquet.py
@@ -38,6 +38,7 @@
import pyarrow as pa
import pyarrow.dataset as ds
+from markdown.extensions.smarty import closeClass
from psycopg2.extras import RealDictCursor
from psycopg2.extensions import connection
from contextlib import contextmanager
@@ -47,6 +48,7 @@
from dorieh.platform import init_logging
from dorieh.platform.db import Connection
+from dorieh.platform.util.export_args import parse_args
from dorieh.platform.util.query_builder import QueryBuilder
from dorieh.utils.profile_utils import qmem
from dorieh.utils.io_utils import sizeof_fmt
@@ -90,14 +92,16 @@ def setup_schema(self):
s[0]: s[1] for s in schema
}
self.schema = pa.schema(schema)
- logging.info("Metdata and schema has been set up")
+ logging.info("Metadata and schema has been set up")
- @staticmethod
- def type_pg2pq(vtype: str):
+ @classmethod
+ def type_pg2pq(cls, vtype: str):
if vtype in ['int2', 'int4', 'int8']:
pa_type = pa.int32()
elif vtype.startswith("int"):
pa_type = pa.int64()
+ elif vtype.startswith("bool"):
+ pa_type = pa.bool_()
elif vtype in ["str", "varchar", "text"]:
pa_type = pa.string()
elif vtype.startswith("float") or vtype in ["numeric"]:
@@ -106,8 +110,11 @@ def type_pg2pq(vtype: str):
pa_type = pa.date32()
elif vtype in ["time"]:
pa_type = pa.date64()
- elif vtype in ["timestamp"]:
- pa_type = pa.timestamp('ns')
+ elif vtype in ["timestamp", "timestamptz"]:
+ pa_type = pa.timestamp('ms') ## Spark does not support 'ns'
+ elif vtype.startswith('_'): # List
+ velemtype = cls.type_pg2pq(vtype[1:])
+ pa_type = pa.list_(velemtype)
else:
pa_type = pa.string()
return pa_type
@@ -141,8 +148,8 @@ def get_metadata(self) -> List[Tuple]:
def set_partitioning(self, columns: List[str]):
types = []
for c in columns:
- self.partition_columns.append(c)
- pa_type = self.column_types[c]
+ self.partition_columns.append(QueryBuilder.unquote(c))
+ pa_type = self.column_types.get(c, self.column_types.get(QueryBuilder.unquote(c)))
types.append(pa_type)
self.cur_partition = {
p: None for p in self.partition_columns
@@ -158,56 +165,34 @@ def set_partitioning(self, columns: List[str]):
def export(self):
pass
- @classmethod
- def run(cls):
- parser = ArgumentParser (description="Import/Export resources")
- parser.add_argument("--sql", "-s",
- help="SQL Query or a path to a file containing SQL query",
- required=False)
- parser.add_argument("--schema",
- help="Export all columns for all tables in the given schema",
- required=False)
- parser.add_argument("--table", "-t",
- help="Export all columns a given table (fully qualified name required)",
- required=False)
- parser.add_argument("--partition", "-p",
- help="Columns to be used for partitioning",
- nargs='+',
- required=False)
- parser.add_argument("--output", "--destination", "-o",
- help="Path to a directory, where the files will be exported",
- required=True)
- parser.add_argument("--db",
- help="Path to a database connection parameters file",
- default="database.ini",
- required=True)
- parser.add_argument("--connection", "-c",
- help="Section in the database connection parameters file",
- default="nsaph2",
- required=True)
- parser.add_argument("--batch_size", "-b",
- help="The size of a single batch",
- default=2000,
- type=int,
- required=False)
- parser.add_argument("--hard",
- help="Hard partitioning: execute separate SQL statement for each partition",
- action='store_true'
- )
-
- arguments = parser.parse_args()
- if arguments.sql and (arguments.table or arguments.schema):
- raise ValueError("Only one type of argument is accepted: sql, schema or table")
+ def dryrun(self):
+ n = 10
+ sql = self.sql
+ with result_set(self.connection, sql, "c12345", self.batch_size) as rs:
+ rs_iterator = iter(rs)
+ while True:
+ try:
+ row = next(rs_iterator) # Get the next item from the iterator
+ if n > 0:
+ print(row)
+ n -= 1
+ except StopIteration:
+ break
+ except Exception as e:
+ print(f"An error occurred: {e}")
+ raise
- if arguments.sql:
+ @classmethod
+ def run(cls, arguments = None):
+ if arguments is None:
+ arguments = parse_args()
+ if not arguments.table and arguments.sql:
if os.path.isfile(arguments.sql):
with open(arguments.sql) as inp:
sql = '\n'.join([line for line in inp])
else:
sql = arguments.sql
cls.export_sql(arguments, sql)
- elif arguments.table and arguments.schema:
- raise ValueError("Only one type of argument is accepted: sql, schema or table")
elif arguments.table:
cls.export_table(arguments, arguments.table)
elif arguments.schema:
@@ -225,8 +210,12 @@ def export_sql(cls, arguments, sql):
instance = PgPqSingleQuery(db, sql, arguments.output, mode="error")
if arguments.partition:
instance.set_partitioning(arguments.partition)
+ if not arguments.dryrun:
+ instance.export()
+ else:
+ instance.dryrun()
+
- instance.export()
@classmethod
def export_table(cls, arguments, table: str):
@@ -234,6 +223,8 @@ def export_table(cls, arguments, table: str):
with Connection(arguments.db, arguments.connection) as cnxn:
query_builder = QueryBuilder(cnxn).add_table(table)
sql = query_builder.query()
+ if arguments.sql:
+ sql += f"\n{arguments.sql}"
cls.export_sql(arguments, sql)
logging.info("Exporting: " + table + " DONE")
@@ -316,11 +307,14 @@ def batch(self, data: List[Dict]):
def batches(self):
with result_set(self.connection, self.sql, self.cursor_name, self.batch_size) as rs:
data = []
- for row in rs:
- if len(data) >= self.batch_size:
- yield self.batch(data)
- data.clear()
- data.append(self.transform(row))
+ try:
+ for row in rs:
+ if len(data) >= self.batch_size:
+ yield self.batch(data)
+ data.clear()
+ data.append(self.transform(row))
+ except:
+ raise
yield self.batch(data)
@@ -390,7 +384,10 @@ def export(self):
where = " AND ".join(
f"{self.qualify_column(self.sql, column, i1)}={partition[column]}" for column in partition
)
- sql = self.sql + "\nWHERE " + where
+ if index_of(self.sql, "where") > -1:
+ sql = self.sql + "\nAND " + where
+ else:
+ sql = self.sql + "\nWHERE " + where
executor = PgPqSingleQuery(self.connection, sql, self.destination, "delete_matching", self.schema)
executor.parquet_partitioning = self.parquet_partitioning
logging.info(f"Fetching partition: " + where)
@@ -407,6 +404,8 @@ def export(self):
return
+
+
if __name__ == '__main__':
init_logging()
PgPqBase.run()
diff --git a/src/python/dorieh/platform/util/pg_json_dump.py b/src/python/dorieh/platform/util/pg_json_dump.py
index 027d47969..6a2e621db 100644
--- a/src/python/dorieh/platform/util/pg_json_dump.py
+++ b/src/python/dorieh/platform/util/pg_json_dump.py
@@ -29,6 +29,7 @@
import sys
from argparse import ArgumentParser
from contextlib import contextmanager
+from datetime import datetime
from numbers import Number
from typing import Dict, List
from psycopg2.extras import RealDictCursor
@@ -103,7 +104,9 @@ def dump(conn: connection, table: str, fd, corrector = None):
for key in row:
if isinstance(row[key], decimal.Decimal):
row[key] = float(row[key])
- print(json.dumps(row), file=fd)
+ elif isinstance(row[key], datetime):
+ row[key] = str(row[key])
+ print(json.dumps(dict(row)), file=fd)
def export(conn: connection, table: str):
diff --git a/src/python/dorieh/platform/util/psql.py b/src/python/dorieh/platform/util/psql.py
index 7eaed957c..7a3ecf9ab 100644
--- a/src/python/dorieh/platform/util/psql.py
+++ b/src/python/dorieh/platform/util/psql.py
@@ -1,6 +1,6 @@
"""
Utility to execute SQL statement or statements taken from
-command line arguments
+command line arguments in an instance of PostgreSQL
"""
# Copyright (c) 2022. Harvard University
@@ -32,6 +32,11 @@ def execute(args):
with Connection(args.db, args.connection) as cnxn:
with cnxn.cursor() as cursor:
cursor.execute(sql)
+ if cursor.pgresult_ptr is not None:
+ for row in cursor:
+ print(row)
+ else:
+ print("No results")
cnxn.commit()
diff --git a/src/python/dorieh/platform/util/query_builder.py b/src/python/dorieh/platform/util/query_builder.py
index 6f927f568..af189218f 100644
--- a/src/python/dorieh/platform/util/query_builder.py
+++ b/src/python/dorieh/platform/util/query_builder.py
@@ -54,15 +54,36 @@ def add_table(self, table: str):
return self
@staticmethod
- def split(t:str) -> Tuple[str]:
- return tuple(t.split('.'))
+ def is_quoted(s) -> bool:
+ return len(s) >= 2 and s[0] == s[-1] and s[0] in ('"', "'")
+
+ @classmethod
+ def unquote(cls, s):
+ if cls.is_quoted(s):
+ return s[1:-1]
+ return s
+
+ @staticmethod
+ def quote(s):
+ return f'"{s}"'
+
+ @classmethod
+ def split(cls, fqn:str) -> Tuple[str, ...]:
+ tt = fqn.split('.')
+ return tuple(tt)
+
+ @classmethod
+ def quote_column(cls, table: str, column: str) -> str:
+ if cls.is_quoted(table):
+ column = cls.quote(column)
+ return f"{table}.{column}"
def get_columns(self, table_fqn: str) -> List[str]:
schema, table = self.split(table_fqn)
- sql = SQL_TABLE_COLUMNS.format(schema=schema, table=table)
+ sql = SQL_TABLE_COLUMNS.format(schema=self.unquote(schema), table=self.unquote(table))
with (self.connection.cursor()) as cursor:
cursor.execute(sql)
- columns = [table + '.' + r[0] for r in cursor]
+ columns = [self.quote_column(table, r[0]) for r in cursor]
return columns
def query(self) -> str:
diff --git a/src/python/dorieh/platform/util/spsql.py b/src/python/dorieh/platform/util/spsql.py
new file mode 100644
index 000000000..76a6eda82
--- /dev/null
+++ b/src/python/dorieh/platform/util/spsql.py
@@ -0,0 +1,120 @@
+"""
+Utility to execute SQL statement or statements taken from
+command line arguments over Parquet file(s) using Spark
+"""
+
+# Copyright (c) 2024-2025. Harvard University
+#
+# Developed by Research Software Engineering,
+# Faculty of Arts and Sciences, Research Computing (FAS RC)
+# Author: Michael A Bouzinier
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+import os
+from argparse import ArgumentParser
+from typing import Dict
+
+from pyspark.sql import SparkSession, DataFrame
+
+
+def read_parquet(spark: SparkSession, location: str) -> DataFrame:
+ reader = spark.read.option("mergeSchema", "true")
+ if os.path.isdir(location):
+ content = os.listdir(location)
+ partitioned = False
+ is_parquet_dir = False
+ for f in content:
+ if os.path.isdir(os.path.join(location, f)) and '=' in f:
+ partitioned = True
+ break
+ if f.endswith('.parquet'):
+ is_parquet_dir = True
+ break
+ if partitioned:
+ reader = reader.option("basePath", location)
+ path_to_parquet = os.path.join(location, '*', '*')
+ elif is_parquet_dir:
+ path_to_parquet = os.path.join(location, '*.parquet')
+ else:
+ raise ValueError(f"Unknown directory structure: {location}")
+ else:
+ path_to_parquet = location
+ return reader.parquet(path_to_parquet)
+
+
+def start_session(app_name = None, xmx: str = None, hive = False, config: Dict = None):
+ if app_name is None:
+ app_name = "Dorieh SparkSQL"
+ session_builder = SparkSession.builder.appName(app_name) \
+ .config("spark.driver.extraJavaOptions", "--add-exports=java.base/sun.nio.ch=ALL-UNNAMED") \
+ .config("spark.executor.extraJavaOptions", "--add-exports=java.base/sun.nio.ch=ALL-UNNAMED")
+
+ if xmx is None:
+ xmx = os.environ.get("xmx")
+ if xmx:
+ session_builder = session_builder.config("spark.driver.memory", xmx).config("spark.executor.memory", xmx)
+ cores = os.environ.get("xcores")
+ if cores:
+ session_builder = session_builder.master(f"local[{cores}]")
+ if hive:
+ session_builder = session_builder.enableHiveSupport()
+ if config:
+ for key in config:
+ session_builder = session_builder.config(key, config[key])
+
+ session = session_builder.getOrCreate()
+ print(session.sparkContext.getConf().getAll())
+ return session
+
+
+def execute(spark: SparkSession, location: str, sql: str, table: str = None) -> DataFrame:
+ if table is None:
+ table = "parquet_table"
+ df = read_parquet(spark, location)
+ df.createOrReplaceTempView(table)
+ return spark.sql(sql)
+
+
+def execute_and_show(args):
+ spark = start_session()
+ sql = ' '.join(args.sql)
+ print("Executing: " + sql)
+ try:
+ result_df = execute(spark, args.location, sql, args.table)
+ result_df.show(n=args.n, truncate=False)
+ finally:
+ spark.stop()
+
+
+def parse_args():
+ parser = ArgumentParser (description="Tool to query Spark SQL Warehouse and/or Parquet files")
+ parser.add_argument("--location", "-l", "-p",
+ help="URI or path to file(s) or directory containing data (e.g., in Parquet format). "
+ + "Wildcards are supported",
+ required=True)
+ parser.add_argument("--table", "-t",
+ help="Optional table name")
+ parser.add_argument("--n", type=int, default=20,
+ help="Number of rows to output, defaults to 20")
+ parser.add_argument(dest="sql",
+ nargs='+',
+ help="SQL statement(s)")
+
+ return parser.parse_args()
+
+
+if __name__ == '__main__':
+ arguments = parse_args()
+ execute_and_show(arguments)
+
diff --git a/src/python/dorieh/rasters/config.py b/src/python/dorieh/rasters/config.py
index 7e4fa20e0..9bf80b9c4 100644
--- a/src/python/dorieh/rasters/config.py
+++ b/src/python/dorieh/rasters/config.py
@@ -62,8 +62,10 @@ def __init__(self, value: str):
if not value:
return
if ':' not in value:
- raise ValueError("Filter spec must include ':'")
- bounds = value.split(':')
+ # raise ValueError("Filter spec must include ':'")
+ bounds = [value, value]
+ else:
+ bounds = value.split(':')
if bounds[0].lower() in ["dayofmonth", "month", "date"]:
self.ftype = bounds[0].lower()
self.values = [v.strip() for v in bounds[1].split(',')]
diff --git a/src/python/dorieh/rasters/netCDF_components_consolidator.py b/src/python/dorieh/rasters/netCDF_components_consolidator.py
index ec5b1f705..0c404195f 100644
--- a/src/python/dorieh/rasters/netCDF_components_consolidator.py
+++ b/src/python/dorieh/rasters/netCDF_components_consolidator.py
@@ -84,7 +84,7 @@ def open_original_dataset(self, infile):
def read_abs_values(self, filename: str, var: str = None):
"""
- Reads the NetCDF dataset from a *.nc file
+ Reads the NetCDF dataset from a \*.nc file
Assumes that this dataset contains absolute values of
the variable with the name provided by var parameter.
diff --git a/src/python/dorieh/rasters/netCDF_file_processor.py b/src/python/dorieh/rasters/netCDF_file_processor.py
index 141f91612..bb99bf60a 100644
--- a/src/python/dorieh/rasters/netCDF_file_processor.py
+++ b/src/python/dorieh/rasters/netCDF_file_processor.py
@@ -23,10 +23,11 @@
"""
An entry point to a command line utility aggregating grid data
provided as NetCDF file over a set of shape files, assigning
-labels defined in the shape files to the aggregated values
+labels defined in the shape files to the aggregated values.
-`see https://www.unidata.ucar.edu/software/netcdf/`__
+See `NetCDF Website `__
+
"""
import logging
diff --git a/src/python/dorieh/rasters/netCDF_tools.py b/src/python/dorieh/rasters/netCDF_tools.py
index 6645e49a2..43f287c55 100644
--- a/src/python/dorieh/rasters/netCDF_tools.py
+++ b/src/python/dorieh/rasters/netCDF_tools.py
@@ -1,5 +1,5 @@
"""
-Reads a NetCDF file (*.nc) and prints some information
+Reads a NetCDF file (\*.nc) and prints some information
about it
"""
diff --git a/src/python/dorieh/utils/io_utils.py b/src/python/dorieh/utils/io_utils.py
index 979b71bb8..1ed6a1893 100644
--- a/src/python/dorieh/utils/io_utils.py
+++ b/src/python/dorieh/utils/io_utils.py
@@ -39,6 +39,7 @@
import codecs
import csv
import datetime
+import fsspec
import glob
import gzip
import io
@@ -59,7 +60,7 @@
logger = logging.getLogger(__name__)
-HEADERS = {'User-Agent': 'NSAPH Data warehouse app; https://github.com/NSAPH-Data-Platform'}
+HEADERS = {'User-Agent': 'NSAPH Data warehouse app; https://github.com/ForomePlatform'}
def sizeof_fmt(num, suffix="B") -> str:
@@ -241,12 +242,14 @@ def fopen(path: str, mode: str):
"""
if isinstance(path, io.BufferedReader):
return codecs.getreader("utf-8")(path)
- if path.lower().endswith(".gz"):
+ lpath = path.lower()
+ # if lpath.startswith("http")
+ if lpath.endswith(".gz"):
#return io.TextIOWrapper(gzip.open(path, mode))
return gzip.open(path, mode)
if 'b' in mode:
return open(path, mode)
- return open(path, mode, encoding="utf-8")
+ return fsspec.open(path, mode, encoding="utf-8")
def check_http_response(r: Response):
diff --git a/src/workflows/gridmet.cwl b/src/workflows/gridmet.cwl
index c09e74f7e..6d818cacd 100644
--- a/src/workflows/gridmet.cwl
+++ b/src/workflows/gridmet.cwl
@@ -102,7 +102,7 @@ inputs:
type: string
default: auto
doc: |
- [Rasterization strategy](https://nsaph-data-platform.github.io/nsaph-platform-docs/common/gridmet/doc/strategy.html)
+ [Rasterization strategy](https://foromeplatform.github.io/dorieh/strategy.html)
used for spatial aggregation
ram:
type: string
diff --git a/src/workflows/handshake.cwl b/src/workflows/handshake.cwl
new file mode 100644
index 000000000..403cf2250
--- /dev/null
+++ b/src/workflows/handshake.cwl
@@ -0,0 +1,69 @@
+### Workflow checking handshake with the database
+# Copyright (c) 2022. Harvard University
+#
+# Developed by Research Software Engineering,
+# Faculty of Arts and Sciences, Research Computing (FAS RC)
+# Author: Michael A Bouzinier
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+
+cwlVersion: v1.2
+class: Workflow
+
+hints:
+ DockerRequirement:
+ dockerPull: forome/dorieh
+
+doc: |
+ This workflow executes an SQL statement to connect to the database,
+ display version and list tables. SQL can be overridden
+
+inputs:
+ database:
+ type: File
+ doc: Path to database connection file, usually database.ini
+ connection_name:
+ type: string
+ doc: The name of the section in the database.ini file
+ sql:
+ type: string[]
+ default:
+ - |
+ SELECT '___', version()
+ UNION
+ SELECT table_schema, TABLE_NAME
+ FROM information_schema.tables WHERE table_schema not in ('pg_catalog', 'information_schema')
+ ORDER BY 1
+ ;
+
+steps:
+ psql:
+ run: alter_database.cwl
+ in:
+ database: database
+ connection_name: connection_name
+ sql: sql
+ out:
+ - log
+ - err
+
+
+outputs:
+ psql_log:
+ type: File
+ outputSource: psql/log
+ psql_err:
+ type: File
+ outputSource: psql/err
+
diff --git a/src/workflows/monitor.cwl b/src/workflows/monitor.cwl
new file mode 100644
index 000000000..b638d6221
--- /dev/null
+++ b/src/workflows/monitor.cwl
@@ -0,0 +1,52 @@
+### Display Dorieh platform version
+# Copyright (c) 2022. Harvard University
+#
+# Developed by Research Software Engineering,
+# Faculty of Arts and Sciences, Research Computing (FAS RC)
+# Author: Michael A Bouzinier
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+
+
+cwlVersion: v1.2
+class: CommandLineTool
+baseCommand: [python, -m, dorieh.platform.loader.monitor]
+
+requirements:
+ InlineJavascriptRequirement: {}
+ NetworkAccess:
+ networkAccess: True
+
+hints:
+ DockerRequirement:
+ dockerPull: forome/dorieh
+
+
+doc: |
+ This tool prints the DBMS activity statistics,
+ like currently running processes and some details about each process.
+
+inputs:
+ database:
+ type: File
+ doc: Path to database connection file, usually database.ini
+ inputBinding:
+ prefix: --db
+ connection_name:
+ type: string
+ doc: The name of the section in the database.ini file
+ inputBinding:
+ prefix: --connection
+
+outputs: {}
diff --git a/src/workflows/pm25_yearly_download.cwl b/src/workflows/pm25_yearly_download.cwl
index 6bc807a3a..39c2f7035 100644
--- a/src/workflows/pm25_yearly_download.cwl
+++ b/src/workflows/pm25_yearly_download.cwl
@@ -113,7 +113,7 @@ inputs:
default: auto
doc: |
Rasterization strategy, see
- [documentation](https://nsaph-data-platform.github.io/nsaph-platform-docs/common/gridmet/doc/strategy.html)
+ [documentation](https://foromeplatform.github.io/dorieh/strategy.html)
for the list of supported values and explanations
ram:
type: string
diff --git a/src/workflows/test_pm25_yearly_download.cwl b/src/workflows/test_pm25_yearly_download.cwl
index 60088d63c..aa247becd 100644
--- a/src/workflows/test_pm25_yearly_download.cwl
+++ b/src/workflows/test_pm25_yearly_download.cwl
@@ -68,7 +68,7 @@ inputs:
default: auto
doc: 'Rasterization strategy, see
- [documentation](https://nsaph-data-platform.github.io/nsaph-platform-docs/common/gridmet/doc/strategy.html)
+ [documentation](https://foromeplatform.github.io/dorieh/strategy.html)
for the list of supported values and explanations
diff --git a/src/workflows/version.cwl b/src/workflows/version.cwl
new file mode 100644
index 000000000..6a61060a5
--- /dev/null
+++ b/src/workflows/version.cwl
@@ -0,0 +1,41 @@
+### Display Dorieh platform version
+# Copyright (c) 2022. Harvard University
+#
+# Developed by Research Software Engineering,
+# Faculty of Arts and Sciences, Research Computing (FAS RC)
+# Author: Michael A Bouzinier
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+
+
+cwlVersion: v1.2
+class: CommandLineTool
+baseCommand: [python, -m, dorieh.version]
+
+requirements:
+ InlineJavascriptRequirement: {}
+ NetworkAccess:
+ networkAccess: True
+
+hints:
+ DockerRequirement:
+ dockerPull: forome/dorieh
+
+
+doc: |
+ This tool displays Dorieh Platform Version
+
+inputs: {}
+
+outputs: {}