Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .codespellrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
[codespell]
# Ref: https://github.com/codespell-project/codespell#using-a-config-file
skip = .git*,.codespellrc,templates
check-hidden = true
ignore-regex = \b(Convertor|CACL)\b
# ignore-words-list =
25 changes: 25 additions & 0 deletions .github/workflows/codespell.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# Codespell configuration is within .codespellrc
---
name: Codespell

on:
push:
branches: [main]
pull_request:
branches: [main]

permissions:
contents: read

jobs:
codespell:
name: Check for spelling errors
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v4
- name: Annotate locations with typos
uses: codespell-project/codespell-problem-matcher@v1
- name: Codespell
uses: codespell-project/actions-codespell@v2
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ Currently, CEDAR provides the following types of fields: text, temporal, numeric

A class called `FieldSchemaArtifact` represents all of these field types.

Since each field has specific characteristics, a custom builder is provided to contruct each field type.
Since each field has specific characteristics, a custom builder is provided to construct each field type.

### Creating Text Fields

Expand Down Expand Up @@ -231,7 +231,7 @@ An example numeric field representing the percentage of a treatment completed an

A builder supplied by a class called `TemporalField` can be used to create a CEDAR temporal fields.

In CEDAR, temporal fields can represent a time value, a date value, and a datetime value. An enumerated type called `TemporalType` can be used to specify this type when creating a temporal field. Similarly, the desired granularity and whether a 12- or 24-hour presentation is desired can be opitionally be specified; an enumeration called `TemporalGranularity` can be used to specify the format, and an enumeration called `InputTimeFormat` for the latter. Finally, a temporal field may optionally be configured to display time zone information.
In CEDAR, temporal fields can represent a time value, a date value, and a datetime value. An enumerated type called `TemporalType` can be used to specify this type when creating a temporal field. Similarly, the desired granularity and whether a 12- or 24-hour presentation is desired can be optionally be specified; an enumeration called `TemporalGranularity` can be used to specify the format, and an enumeration called `InputTimeFormat` for the latter. Finally, a temporal field may optionally be configured to display time zone information.

An example temporal field representing the time of a patient visit recorded with the accuracy of minutes and presented in 24-hour format with time zone information displayed could be created as follows:

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -959,7 +959,7 @@ private Optional<ValueConstraints> readValueConstraints(ObjectNode sourceNode, S
Optional.of(defaultValue.get().asNumericDefaultValue()) :
Optional.empty();
if (!numberType.isPresent())
numberType = Optional.of(XsdNumericDatatype.DECIMAL); // Default to xsd:decimal if unspecifed
numberType = Optional.of(XsdNumericDatatype.DECIMAL); // Default to xsd:decimal if unspecified
return Optional.of(
NumericValueConstraints.create(numberType.get(), minValue, maxValue, decimalPlaces, unitOfMeasure,
numericDefaultValue, requiredValue, recommendedValue, multipleChoice));
Expand Down Expand Up @@ -1926,7 +1926,7 @@ private void checkSchemaArtifactModelVersion(ObjectNode sourceNode, String path)
{
Version artifactModelVersion = readModelVersion(sourceNode, path);

// TODO Renable eventually after patching older artifacts
// TODO Re-enable eventually after patching older artifacts
// if (!artifactModelVersion.equals(modelVersion))
// throw new ArtifactParseException("Expecting model version " + modelVersion + ", got " + artifactModelVersion,
// SCHEMA_ORG_SCHEMA_VERSION, path);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public class Templates2Ubkg
private static final String TEMPLATE_FILE_OPTION = "f";
private static final String TEMPLATE_IRI_OPTION = "i";
private static final String UBKG_NODE_FILE_OPTION = "un";
private static final String UBKG_EDGE_FILE_OPTION = "ue";
private static final String UBKG_EDGE_FILE_OPTION = "ue"; # codespell:ignore
private static final String CEDAR_RESOURCE_BASE_OPTION = "r";
private static final String CEDAR_APIKEY_OPTION = "k";
private static final String JSON_FILE_EXTENSION = ".json";
Expand Down