Feature Request: Generate Typescript enum
s for "type": [{ "code": "code" }]
elements
#8
Labels
enhancement
New feature or request
Generate and export Typescript
enum
s for"type": [{ "code": "code" }]
elements using the associated "short" element values (e.g.,DocumentReference.status
andDocumentReference.docStatus
in thedocumentreference.profile.canonical.json
profile) referencing the associatedbinding.valueSet
from the canonical.json files.These generated enums would only be exported as a convenience for developers to use in their code when setting code values in the actual data objects that implement the generated interfaces. I'm NOT suggesting that they would be used or referenced in any way within the generated interfaces.
Example:
`
/**
* DocumentReference.status
* Ref: http://hl7.org/fhir/valueset-document-reference-status.html
*/
enum DocumentReferenceStatus {
CURRENT = 'current',
SUPERSEDED = 'superseded',
ENTERED_IN_ERROR = 'entered-in-error',
}
/**
* DocumentReference.docStatus
* Ref: http://hl7.org/fhir/valueset-composition-status.html
*/
enum DocumentReferenceDocStatus {
PRELIMINARY = 'preliminary',
FINAL = 'final',
APPENDED = 'appended',
AMENDED = 'amended',
ENTERED_IN_ERROR = 'entered-in-error',
}
`
The text was updated successfully, but these errors were encountered: