kassenaerztliche-bundesvereinigung / MIOParser

Parser für den MIO Viewer
Apache License 2.0
8 stars 1 forks source link

Generating prefilled objects #2

Closed jon-coffey closed 2 years ago

jon-coffey commented 3 years ago

Hi

I've seen that you're using io-ts under the hood. Is it possible to generate a "prefilled" object from a profile? Or even instanciate an object with your library?

E.g. ZAEBPatientVersichertenIdGKVTypeCoding interface is available and contains already system and code as literals. So it would be nice to have new ZAEBPatientVersichertenIdGKVTypeCoding() and the literals are already in as they can't be changed anyways.

Thanks for feedback

mioviewer commented 2 years ago

Hi,

this is probably possible but we do not plan to implement it in the future. However, if you would like to contribute we are open to pull requests for this feature.

Hope this helps, kind regards!