Skip to content

Commit

Permalink
♻️ map FHIR_DATA_TYPES.INSTANT to LongType from spark in SchemaConver…
Browse files Browse the repository at this point in the history
…ter (#235)
  • Loading branch information
YemreGurses authored Oct 1, 2024
1 parent e773ae9 commit 8a2557f
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -79,9 +79,10 @@ class SchemaConverter(majorFhirVersion: String) {
fhirType match {
case FHIR_DATA_TYPES.ID | FHIR_DATA_TYPES.URI | FHIR_DATA_TYPES.URL | FHIR_DATA_TYPES.CODE |
FHIR_DATA_TYPES.STRING | FHIR_DATA_TYPES.OID | FHIR_DATA_TYPES.UUID | FHIR_DATA_TYPES.BASE64BINARY => StringType
case FHIR_DATA_TYPES.DATE | FHIR_DATA_TYPES.TIME | FHIR_DATA_TYPES.DATETIME | FHIR_DATA_TYPES.INSTANT => StringType
case FHIR_DATA_TYPES.DATE | FHIR_DATA_TYPES.TIME | FHIR_DATA_TYPES.DATETIME => StringType
case FHIR_DATA_TYPES.DECIMAL => DoubleType
case FHIR_DATA_TYPES.INTEGER | FHIR_DATA_TYPES.POSITIVEINT => IntegerType
case FHIR_DATA_TYPES.INSTANT => TimestampType
case FHIR_DATA_TYPES.UNSIGNEDINT => LongType
case FHIR_DATA_TYPES.BOOLEAN => BooleanType
// For complex data types, utilize StringType
Expand Down

0 comments on commit 8a2557f

Please sign in to comment.