A surprising amount of stuff (at least medical billing side) can be flat file moves, especially if you are billing into lots of different systems.
And yes, the idiot new person with a phD says, just quote every field with a ". Great - you program all this up, along with the required escape sequence handling, and then escapes for escapes. \ and / get used a fair bit sometimes already and we are dealing with tons of systems.
I think it must be at this point. The hot garbage that is medical data formats (HL7, in particular) and the ways you can break it as a user, unknowingly and silently. It’s incredible that a format this bad has hung around this long.
It’s not ok that users can type certain characters into a field and break the system.
(Can’t find the original source, but it goes “Cant breathe? Put in a tube. Can't pee? Tube. Can't poop? Tube. Bleeding? Tube. Infection? Tube. Heart attack? Tube.”)
They likely just exported the prices as HL7 from their EHR system and used Excel's built-in delimiter support, then called it a day
And there is the problem.
It sucks, but, like, I don't really blame people for being in a hurry to fix a problem.
For example, SCO Unix's Informix SQL's `UNLOAD TO <file> SELECT ...` queries output in a format that's very much like what avs733 describes, only that the values aren't separated by pipes, they're terminated by them, so every record ends with a pipe character.
If that's the case, there's unfortunately no built-in option to get it to include column identifiers in the report. :(
The machine-readable part is mandated here: https://www.federalregister.gov/documents/2019/11/27/2019-24...
As a taste of how specific this is:
(5) The file must use the following naming convention specified by CMS, specifically: <ein>_<hospital-name>_standardcharges.[json|xml|csv].
And here’s the consumer-readability requirement for 300 “shoppable’ services: https://www.federalregister.gov/documents/2019/11/27/2019-24...They aren’t always quite as stupid as people make them out to be, these lawyers.
> c) Format. A hospital has discretion to choose a format for making public the information described in paragraph (b) of this section online.
This is how you get Excel files with certain column widths set to zero. All it has to be is searchable, free, public, and updated regularly.
They release 'standard charges' which as far as I can tell means 'the range of charges for this particular diagnosis based on past data' as an excel file.
But the price list is a text file delimited by pipes (vertical bars... |) which just seems unnecessary. They also do nothing to define the variables or column names they use...so that's nice.