Skip to content

Extend Initial Test Suites

Task Description

First Batch

https://git-dbs.ifi.uni-heidelberg.de/main/lib-fhirdrill/-/blob/main/src/fhirdrill/utils_test.py

  • play around with and deeply understand it test_keys_forPatients(functionData)
  • improve and complete test_keys_forPatients(functionData)
  • implement test_valuesForKeys
  • implement test_guessBufferMIMEType

Second Batch (Base Mixin Classes)

Base

  • guessOutputResourceType
  • prepareCompositeOutput
  • prepareOutput
  • parseReference
  • prepareReferences
  • prepareOperationInput
  • castOperationInput
  • referencesToIds
  • referencesToResources
  • prepareInput
  • isFrame
  • getResourceType
  • resourceTypeIs
  • printPretty
  • printKeys
  • explode
  • formatAs

Extraction

https://git-dbs.ifi.uni-heidelberg.de/main/lib-fhirdrill/-/blob/main/src/fhirdrill/extraction/base.py

  • getResources
  • getURLBytes

Load

https://git-dbs.ifi.uni-heidelberg.de/main/lib-fhirdrill/-/blob/main/src/fhirdrill/load/base.py

  • sendResourcesToFile
  • sendBytearraysToFile

Transformation

https://git-dbs.ifi.uni-heidelberg.de/main/lib-fhirdrill/-/blob/main/src/fhirdrill/transformation/base.py

  • validate
  • gatherSimplePaths
  • __gatherSimplePath(self, data: dict, path: Union[str, list[str]]):
  • getPaths
  • gatherReferences
  • gatherText
  • gatherKeys
  • gatherValuesForKeys
  • gatherDates

[1]

[2]


Edited by Jayson Salazar Rodriguez