openimis/openimis-be-api_fhir_py

View on GitHub
api_fhir/models/identifier.py

Summary

Maintainability
A
0 mins
Test Coverage
from enum import Enum

from api_fhir.models import Element, Property


class Identifier(Element):

    use = Property('use', str)  # IdentifierUse
    type = Property('type', 'CodeableConcept')
    system = Property('system', str)
    value = Property('value', str)
    period = Property('period', 'Period')
    assigner = Property('assigner', 'Reference')  # referencing `Organization`


class IdentifierUse(Enum):
    USUAL = "usual"
    OFFICIAL = "official"
    TEMP = "temp"
    SECONDARY = "secondary"