-
Notifications
You must be signed in to change notification settings - Fork 6
Description
Some code lists are a simple list of code / name / description. But many code lists have some extra properties such as the rec 20 (units of measure) conversion, symbol, level/category, group etc. And some code lists are hierarchies (eg WTO harmonised tariff codes).
So, I'm wondering whether there is value in a generic schema/API spec that can be used for almost any code list. There's always complex exceptions that will need dedicated API specs but I'm thinking it would be a good outcome if, for every new code list, rather than design a custom API, we say "can we use the generic API spec or do we need a custom one?". And if 90% of the time the answer is "the generic one will do" then we save ourselves a lot of design effort and we also provide implementers with some consistent model.
Anyhow, I'm thinking of something like this:
Supports the idea of a versioned scheme, contained codes (optionally in a hierarchy) with core properties like status (raw, draft, stable, deprecated) and status date. The properties element allows for an arbitrary list of additional properties of a code as name/value pairs where the name is drawn from a standard taxonomy (JSON-LD reference file?).
Thoughts?
