Aidbox / Issues

Issue tracker for Aidbox FHIR backend by Health Samurai
7 stars 0 forks source link

Use yaml files for seeds in zen project #518

Open ir4y opened 2 years ago

ir4y commented 2 years ago

I need the following improvement

The only way to define seeds for the zen project is to embed them to .edn files like this

{ns sdc-box
 import #{aidbox.rest vitals}

 box
 {:zen/tags #{aidbox/system}
  :zen/desc "test server"
  :services {:seed-fixtures seed-fixtures}}

 seed-fixtures
 {:zen/tags  #{aidbox/service}
  :engine    aidbox/seed
  :resources {:Client {:SPA {:grant_types ["password"]}}}}
}

It works fine with small resources like Client.

However, it is more convenient to place big resources like Questionnaire into separate yaml files like this: https://github.com/beda-software/fhir-emr/tree/master/backend/resources/entities/Questionnaire

rublag commented 2 years ago

@ir4y, although yaml is not currently supported, you can use .ndjson.gz files for seeds.

ir4y commented 2 years ago

Hi @rublag

ndjson.gz - is a compressed format. So I can't just edit it and introspect via github/gitlab web UI. I have to unpack, then edit, then pack. It is not convenient.