CMSgov / price-transparency-guide-validator

Validation tool to check output files required by the price-transparency-guide
Apache License 2.0
29 stars 13 forks source link

price-validator --compress #11

Closed awatson1978 closed 2 years ago

awatson1978 commented 2 years ago

https://www.npmjs.com/package/compress-json https://www.npmjs.com/package/compressed-json https://github.com/rgcl/jsonpack https://www.npmjs.com/package/json-minifier

awatson1978 commented 2 years ago

3 Algorithms

jsonpack

reporting_entity_name|medicare|reporting_entity_type|reporting_plans|plan_name|plan_id_type|hios|plan_id|11111111111|plan_market_type|individual|medicaid|0000000000|last_updated_on|2020-08-27|version|1.0.0|out_of_network|name|Established+Patient+Office+or+Other+Outpatient+Services|billing_code_type|CPT|billing_code_type_version|2020|billing_code|99214|description|office+or+other+outpatient+visits+for+the+evaluation+and+management+of+an+established+patient,+which+requires+at+least+two+of+these+three+key+components:+a+detailed+history,+a+detailed+examination+and+medical+decision+making+of+moderate+complexity|allowed_amounts|tin|type|ein|value|1234567890|service_code|01|02|03|billing_class|professional|payments|allowed_amount|providers|billed_charge|npi^P|1E|KF12OJ|KF12OK|KF12OL|1O|IDIYTJ|1Y|10R1XN2|1J4KWGL|21I3VA4|2JVMU3N^^$0|1|2|1|3|@$4|1|5|6|7|8|9|A]|$4|B|5|6|7|C|9|A]]|D|E|F|G|H|@$I|J|K|L|M|N|O|P|Q|R|S|@$T|$U|V|W|X]|Y|@Z|10|11]|12|13|14|@$15|19|16|@$17|1A|18|@1B|1C|1D]]|$17|1E|18|@1F]]|$17|1G|18|@1H|1I|1J|1K]]]]]]]]]]

json-minifier

{
  a: 'medicare',
  b: 'medicare',
  c: [
    { g: 'medicare', h: 'hios', i: '11111111111', j: 'individual' },
    { g: 'medicaid', h: 'hios', i: '0000000000', j: 'individual' }
  ],
  d: '2020-08-27',
  e: '1.0.0',
  f: [
    {
      k: 'Established Patient Office or Other Outpatient Services',
      l: 'CPT',
      m: '2020',
      n: '99214',
      o: 'office or other outpatient visits for the evaluation and management of an established patient, which requires at least two of these three key components: a detailed history, a detailed examination and medical decision making of moderate complexity',
      p: [Array]
    }
  ]
}

compress-json

[
  [
    'reporting_entity_name',
    'reporting_entity_type',
    'reporting_plans',
    'last_updated_on',
    'version',
    'out_of_network',
    'a|0|1|2|3|4|5',
    'medicare',
    'plan_name',
    'plan_id_type',
    'plan_id',
    'plan_market_type',
    'a|8|9|A|B',
    'hios',
    '11111111111',
    'individual',
    'o|C|7|D|E|F',
    'medicaid',
    '0000000000',
    'o|C|H|D|I|F',
    'a|G|J',
    '2020-08-27',
    '1.0.0',
    'name',
    'billing_code_type',
    'billing_code_type_version',
    'billing_code',
    'description',
    'allowed_amounts',
    'a|N|O|P|Q|R|S',
    'Established Patient Office or Other Outpatient Services',
    'CPT',
    '2020',
    '99214',
    'office or other outpatient visits for the evaluation and management of an established patient, which requires at least two of these three key components: a detailed history, a detailed examination and medical decision making of moderate complexity',
    'tin',
    'service_code',
    'billing_class',
    'payments',
    'a|Z|a|b|c',
    'type',
    'value',
    'a|e|f',
    'ein',
    '1234567890',
    'o|g|h|i',
    '01',
    '02',
    '03',
    'a|k|l|m',
    'professional',
    'allowed_amount',
    'providers',
    'a|p|q',
    'n|P',
    'billed_charge',
    'npi',
    'a|t|u',
    'n|o',
    'n|1LY7VL',
    'n|1LY7VM',
    'n|1LY7VN',
    'a|x|y|z',
    'o|v|w|10',
    'n|y',
    'n|1DC6kx',
    'a|13',
    'o|v|12|14',
    'n|18',
    'n|2QODVu',
    'n|3daKGr',
    'n|4qmR1o',
    'n|63yXml',
    'a|17|18|19|1A',
    'o|v|16|1B',
    'a|11|15|1C',
    'o|r|s|1D',
    'a|1E',
    'o|d|j|n|o|1F',
    'a|1G',
    'o|T|U|V|W|X|Y|1H',
    'a|1I',
    'o|6|7|7|K|L|M|1J'
  ],
  '1K'
]
shaselton-usds commented 2 years ago

This is contrary to the goal of the project.