-
-
Save mustmodify/c418ec42aeb1408d1471110d223da7fb to your computer and use it in GitHub Desktop.
Confused response from LOINC's FHIR API
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
jw@logopolis:~$ curl "https://fhir.loinc.org/CodeSystem/$lookup?system=http://loinc.rg&code=4544-3" -u mustmodify:random | |
<html> | |
<head><title>401 Authorization Required</title></head> | |
<body bgcolor="white"> | |
<center><h1>401 Authorization Required</h1></center> | |
<hr><center>nginx/1.15.1</center> | |
</body> | |
</html> | |
jw@logopolis:~$ curl "https://fhir.loinc.org/CodeSystem/$lookup?system=http://loinc.org&code=4544-3" -u mustmodify:$LOINC_PWD | |
{ | |
"resourceType": "Bundle", | |
"id": "51c8c0bd-0573-4a8f-ae7d-9c5534270287", | |
"meta": { | |
"lastUpdated": "2019-07-10T13:37:37.008+00:00" | |
}, | |
"type": "searchset", | |
"total": 0, | |
"link": [ | |
{ | |
"relation": "self", | |
"url": "https://fhir.loinc.org/CodeSystem/?code=4544-3&system=http%3A%2F%2Floinc.org" | |
} | |
] | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"resourceType": "Parameters", | |
"parameter": [ | |
{ | |
"name": "name", | |
"valueString": "LOINC" | |
}, | |
{ | |
"name": "display", | |
"valueString": "Hematocrit [Volume Fraction] of Blood by Automated count" | |
}, | |
{ | |
"name": "abstract", | |
"valueBoolean": false | |
}, | |
{ | |
"name": "property", | |
"part": [ | |
{ | |
"name": "code", | |
"valueCode": "SYSTEM" | |
}, | |
{ | |
"name": "value", | |
"valueCoding": { | |
"system": "http://loinc.org", | |
"code": "LP7057-5", | |
"display": "Bld" | |
} | |
} | |
] | |
}, | |
{ | |
"name": "property", | |
"part": [ | |
{ | |
"name": "code", | |
"valueCode": "CLASSTYPE" | |
}, | |
{ | |
"name": "value", | |
"valueString": "1" | |
} | |
] | |
}, | |
{ | |
"name": "property", | |
"part": [ | |
{ | |
"name": "code", | |
"valueCode": "CLASS" | |
}, | |
{ | |
"name": "value", | |
"valueString": "HEM/BC" | |
} | |
] | |
}, | |
{ | |
"name": "property", | |
"part": [ | |
{ | |
"name": "code", | |
"valueCode": "VersionLastChanged" | |
}, | |
{ | |
"name": "value", | |
"valueString": "2.34" | |
} | |
] | |
}, | |
{ | |
"name": "property", | |
"part": [ | |
{ | |
"name": "code", | |
"valueCode": "STATUS" | |
}, | |
{ | |
"name": "value", | |
"valueString": "ACTIVE" | |
} | |
] | |
}, | |
{ | |
"name": "property", | |
"part": [ | |
{ | |
"name": "code", | |
"valueCode": "VersionFirstReleased" | |
}, | |
{ | |
"name": "value", | |
"valueString": "1.0" | |
} | |
] | |
}, | |
{ | |
"name": "property", | |
"part": [ | |
{ | |
"name": "code", | |
"valueCode": "ORDER_OBS" | |
}, | |
{ | |
"name": "value", | |
"valueString": "Both" | |
} | |
] | |
}, | |
{ | |
"name": "property", | |
"part": [ | |
{ | |
"name": "code", | |
"valueCode": "TIME_ASPCT" | |
}, | |
{ | |
"name": "value", | |
"valueCoding": { | |
"system": "http://loinc.org", | |
"code": "LP6960-1", | |
"display": "Pt" | |
} | |
} | |
] | |
}, | |
{ | |
"name": "property", | |
"part": [ | |
{ | |
"name": "code", | |
"valueCode": "PROPERTY" | |
}, | |
{ | |
"name": "value", | |
"valueCoding": { | |
"system": "http://loinc.org", | |
"code": "LP6891-8", | |
"display": "VFr" | |
} | |
} | |
] | |
}, | |
{ | |
"name": "property", | |
"part": [ | |
{ | |
"name": "code", | |
"valueCode": "METHOD_TYP" | |
}, | |
{ | |
"name": "value", | |
"valueCoding": { | |
"system": "http://loinc.org", | |
"code": "LP6141-8", | |
"display": "Automated count" | |
} | |
} | |
] | |
}, | |
{ | |
"name": "property", | |
"part": [ | |
{ | |
"name": "code", | |
"valueCode": "SCALE_TYP" | |
}, | |
{ | |
"name": "value", | |
"valueCoding": { | |
"system": "http://loinc.org", | |
"code": "LP7753-9", | |
"display": "Qn" | |
} | |
} | |
] | |
}, | |
{ | |
"name": "property", | |
"part": [ | |
{ | |
"name": "code", | |
"valueCode": "COMPONENT" | |
}, | |
{ | |
"name": "value", | |
"valueCoding": { | |
"system": "http://loinc.org", | |
"code": "LP15101-6", | |
"display": "Hematocrit" | |
} | |
} | |
] | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment