fsh_validator package

Submodules

fsh_validator.cli module

fsh_validator.fsh_validator module

fsh_validator.fshpath module

FSH file paths representations.

class fsh_validator.fshpath.FshPath(filename)[source]

Bases: object

FSH file paths representations.

absolute()[source]

Resolve relative to absolute path.

Return type

Path

Returns

Absolute filename

exists()[source]

Return whether the file represented by this class exists.

Return type

bool

Returns

True if file exists, False otherwise

fsh_base_path()[source]

Get the FSH base path (without input/fsh/).

Return type

Path

Returns

FSH base path (without input/fsh/)

fsh_name()[source]

Get the FSH filename (relative to input/fsh/).

Return type

Optional[Path]

Returns

FSH filename (relative to input/fsh/)

fsh_parts()[source]

Process a filename into the fsh base path (without input/fsh/) and the fsh filename relative to input/fsh/.

Return type

Tuple[Path, Optional[Path]]

Returns

Tuple of base path (without input/fsh/) and filename (relative to input/fsh/ folder)

Module contents

Top-level package for FHIR Shorthand Validator.