iso-country-codes

Generate ISO-3166 Part 1 CodeSystem

Command line usage

/*^babelfsh
iso-country-codes
   --url URL [--dont-include-numeric-codes] [--dont-include-three-letter-codes]
   [--dont-include-two-letter-codes] [--help]
   [--supplemental-property-mapping SUPPLEMENTAL_PROPERTY_MAPPING]
^babelfsh*/

Command line argument reference

Argument name
Description

--url URL

-u URL

Required

URL to the CSV file

--dont-include-numeric-codes

--include-numeric-codes

Include numeric country codes, default true

--dont-include-three-letter-codes

--include-three-letter-codes

Include three letter country codes, default true

--dont-include-two-letter-codes

--include-two-letter-codes

Include two letter country codes, default true

--help

-h

show this help message and exit

--supplemental-property-mapping SUPPLEMENTAL_PROPERTY_MAPPING

--spm SUPPLEMENTAL_PROPERTY_MAPPING

Mapping of additional properties to columns in the CSV file. The property mapping is a JSON array of objects, where each object has the following properties:

<column>: the name of the column in the CSV file;

<code>: the code of the property in the FHIR CodeSystem;

<required>: whether the property is required (true or false, default false);

<mapper>: a mapper specification (see below)

Example: {"column": "my_column", "required": true, "property": "my_property", "mapper": {"id": "boolean", "arguments": {"1": "true", "0": "false"}}}

Supported property mappers: boolean

Last updated