Skip to content

Commit

Permalink
Merge pull request #151 from OHDSI/ibms-hot-fix
Browse files Browse the repository at this point in the history
fix for NULL STDPLAC values
  • Loading branch information
bradanton authored Jan 27, 2025
2 parents d56abd3 + a383943 commit 5259d9d
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,7 @@
</Mapper>
</ConceptIdMappers>
<Fields>
<Field key="STDPLAC" defaultConceptId="0" defaultTypeId="32846"/>
<Field isNullable="true" key="STDPLAC" defaultConceptId="0" defaultTypeId="32846"/>
</Fields>
</Concept>
<Concept>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,7 @@
</Mapper>
</ConceptIdMappers>
<Fields>
<Field key="STDPLAC" defaultConceptId="0" defaultTypeId="32854"/>
<Field isNullable="true" key="STDPLAC" defaultConceptId="0" defaultTypeId="32854"/>
</Fields>
</Concept>
<Concept>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@
</Mapper>
</ConceptIdMappers>
<Fields>
<Field key="STDPLAC" defaultConceptId="0" defaultTypeId="32860"/>
<Field isNullable="true" key="STDPLAC" defaultConceptId="0" defaultTypeId="32860"/>
</Fields>
</Concept>
</Concepts>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ private static List<LookupValue> GetValues(IVocabulary vocabulary, Field field,
var conceptKey = reader.GetString(field.Key);

return conceptKey == null
? []
? [new LookupValue()]
: mapper.Map(vocabulary, field.Key, conceptKey, reader.GetDateTime(field.EventDate));
}

Expand Down

0 comments on commit 5259d9d

Please sign in to comment.