INTANGIBLE, NET (Details - Intangible asset schedule) - USD ($) $ in Thousands |
6 Months Ended | 12 Months Ended | |
|---|---|---|---|
Jun. 30, 2019 |
Dec. 31, 2017 |
Dec. 31, 2018 |
|
| Finite-Lived Intangible Assets [Line Items] | |||
| Intangible assets, gross | $ 3,907 | $ 3,907 | |
| Accumulated amortization | 124 | 106 | |
| Intangible assets, net | 3,783 | 3,801 | |
| In Process Research and Development [Member] | |||
| Finite-Lived Intangible Assets [Line Items] | |||
| Intangible assets, gross | 3,730 | 3,730 | |
| Accumulated amortization | 0 | 0 | |
| Intangible assets, net | 3,730 | 3,730 | |
| Trade Names [Member] | |||
| Finite-Lived Intangible Assets [Line Items] | |||
| Intangible assets, gross | 100 | 100 | |
| Accumulated amortization | 70 | 60 | |
| Intangible assets, net | $ 30 | 40 | |
| Useful life (Years) | 5 years | 5 years | |
| Noncompete Agreements [Member] | |||
| Finite-Lived Intangible Assets [Line Items] | |||
| Intangible assets, gross | $ 77 | 77 | |
| Accumulated amortization | 54 | 46 | |
| Intangible assets, net | $ 23 | $ 31 | |
| Useful life (Years) | 5 years | 5 years |
| X | ||||||||||
- Definition Useful life of finite-lived intangible assets, in 'PnYnMnDTnHnMnS' format, for example, 'P1Y5M13D' represents the reported fact of one year, five months, and thirteen days. No definition available.
|
| X | ||||||||||
- Definition Accumulated amount of amortization of assets, excluding financial assets and goodwill, lacking physical substance with a finite life. Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef
|
| X | ||||||||||
- Definition Amount before amortization of assets, excluding financial assets and goodwill, lacking physical substance with a finite life. Reference 1: http://www.xbrl.org/2003/role/disclosureRef
|
| X | ||||||||||
- Definition Line items represent financial concepts included in a table. These concepts are used to disclose reportable information associated with domain members defined in one or many axes to the table. No definition available.
|
| X | ||||||||||
- Definition Amount after amortization of assets, excluding financial assets and goodwill, lacking physical substance with a finite life. Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef
|
| X | ||||||||||
- Details
|
| X | ||||||||||
- Details
|
| X | ||||||||||
- Details
|