validateCode
validateCode()
Section titled “validateCode()”Category: Terminology
Validates that a code is valid within the specified code system
Signature
Section titled “Signature”- Return type:
boolean - Parameters:
systemstring— Code system URLcodestring— Code to validate (optional if input is a coding)
Examples
Section titled “Examples”'male'.validateCode('http://hl7.org/fhir/administrative-gender', 'male')Patient.gender.validateCode('http://hl7.org/fhir/administrative-gender')