Skip to content

validateCode

Category: Terminology

Validates that a code is valid within the specified code system

  • Return type: boolean
  • Parameters:
    • system string — Code system URL
    • code string — Code to validate (optional if input is a coding)
'male'.validateCode('http://hl7.org/fhir/administrative-gender', 'male')
Patient.gender.validateCode('http://hl7.org/fhir/administrative-gender')